diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 707bdc9a3..c5298e112 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -15,7 +15,10 @@ configuration.go
docs/ASN.md
docs/ASNRange.md
docs/ASNRangeRequest.md
+docs/ASNRangeRequestRir.md
+docs/ASNRangeRequestTenant.md
docs/ASNRequest.md
+docs/ASNRequestRir.md
docs/Aggregate.md
docs/AggregateFamily.md
docs/AggregateFamilyLabel.md
@@ -31,6 +34,7 @@ docs/AvailablePrefix.md
docs/AvailableVLAN.md
docs/Bookmark.md
docs/BookmarkRequest.md
+docs/BookmarkRequestUser.md
docs/BriefCable.md
docs/BriefCableRequest.md
docs/BriefCircuit.md
@@ -40,8 +44,10 @@ docs/BriefCircuitGroupAssignmentSerializerPriority.md
docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md
docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md
docs/BriefCircuitGroupAssignmentSerializerRequest.md
+docs/BriefCircuitGroupAssignmentSerializerRequestGroup.md
docs/BriefCircuitGroupRequest.md
docs/BriefCircuitRequest.md
+docs/BriefCircuitRequestProvider.md
docs/BriefCircuitType.md
docs/BriefCircuitTypeRequest.md
docs/BriefCluster.md
@@ -53,8 +59,6 @@ docs/BriefClusterTypeRequest.md
docs/BriefConfigTemplate.md
docs/BriefConfigTemplateRequest.md
docs/BriefContact.md
-docs/BriefContactGroup.md
-docs/BriefContactGroupRequest.md
docs/BriefContactRequest.md
docs/BriefContactRole.md
docs/BriefContactRoleRequest.md
@@ -69,6 +73,7 @@ docs/BriefDeviceRole.md
docs/BriefDeviceRoleRequest.md
docs/BriefDeviceType.md
docs/BriefDeviceTypeRequest.md
+docs/BriefDeviceTypeRequestManufacturer.md
docs/BriefFHRPGroup.md
docs/BriefFHRPGroupProtocol.md
docs/BriefFHRPGroupRequest.md
@@ -82,6 +87,7 @@ docs/BriefIPSecProfile.md
docs/BriefIPSecProfileRequest.md
docs/BriefInterface.md
docs/BriefInterfaceRequest.md
+docs/BriefInterfaceRequestDevice.md
docs/BriefInventoryItemRole.md
docs/BriefInventoryItemRoleRequest.md
docs/BriefJob.md
@@ -93,6 +99,7 @@ docs/BriefL2VPN.md
docs/BriefL2VPNRequest.md
docs/BriefL2VPNTermination.md
docs/BriefL2VPNTerminationRequest.md
+docs/BriefL2VPNTerminationRequestL2vpn.md
docs/BriefL2VPNType.md
docs/BriefL2VPNTypeLabel.md
docs/BriefL2VPNTypeValue.md
@@ -105,7 +112,10 @@ docs/BriefManufacturerRequest.md
docs/BriefModule.md
docs/BriefModuleRequest.md
docs/BriefModuleType.md
+docs/BriefModuleTypeProfile.md
+docs/BriefModuleTypeProfileRequest.md
docs/BriefModuleTypeRequest.md
+docs/BriefModuleTypeRequestProfile.md
docs/BriefPlatform.md
docs/BriefPlatformRequest.md
docs/BriefPowerPanel.md
@@ -138,6 +148,7 @@ docs/BriefSite.md
docs/BriefSiteGroup.md
docs/BriefSiteGroupRequest.md
docs/BriefSiteRequest.md
+docs/BriefTag.md
docs/BriefTenant.md
docs/BriefTenantGroup.md
docs/BriefTenantGroupRequest.md
@@ -160,6 +171,7 @@ docs/BriefVirtualChassis.md
docs/BriefVirtualChassisRequest.md
docs/BriefVirtualCircuit.md
docs/BriefVirtualCircuitRequest.md
+docs/BriefVirtualCircuitRequestProviderNetwork.md
docs/BriefVirtualCircuitType.md
docs/BriefVirtualCircuitTypeRequest.md
docs/BriefVirtualMachine.md
@@ -190,11 +202,14 @@ docs/CircuitGroupAssignmentRequest.md
docs/CircuitGroupRequest.md
docs/CircuitRequest.md
docs/CircuitRequestDistanceUnit.md
+docs/CircuitRequestProviderAccount.md
+docs/CircuitRequestType.md
docs/CircuitStatus.md
docs/CircuitStatusLabel.md
docs/CircuitStatusValue.md
docs/CircuitTermination.md
docs/CircuitTerminationRequest.md
+docs/CircuitTerminationRequestCircuit.md
docs/CircuitType.md
docs/CircuitTypeRequest.md
docs/CircuitsAPI.md
@@ -205,6 +220,8 @@ docs/Cluster.md
docs/ClusterGroup.md
docs/ClusterGroupRequest.md
docs/ClusterRequest.md
+docs/ClusterRequestGroup.md
+docs/ClusterRequestType.md
docs/ClusterStatus.md
docs/ClusterStatusLabel.md
docs/ClusterStatusValue.md
@@ -212,16 +229,20 @@ docs/ClusterType.md
docs/ClusterTypeRequest.md
docs/ConfigContext.md
docs/ConfigContextRequest.md
+docs/ConfigContextRequestDataSource.md
docs/ConfigTemplate.md
docs/ConfigTemplateRequest.md
docs/ConsolePort.md
docs/ConsolePortRequest.md
+docs/ConsolePortRequestModule.md
docs/ConsolePortRequestSpeed.md
docs/ConsolePortSpeed.md
docs/ConsolePortSpeedLabel.md
docs/ConsolePortSpeedValue.md
docs/ConsolePortTemplate.md
docs/ConsolePortTemplateRequest.md
+docs/ConsolePortTemplateRequestDeviceType.md
+docs/ConsolePortTemplateRequestModuleType.md
docs/ConsolePortType.md
docs/ConsolePortTypeLabel.md
docs/ConsolePortTypeValue.md
@@ -232,6 +253,8 @@ docs/ConsoleServerPortTemplateRequest.md
docs/Contact.md
docs/ContactAssignment.md
docs/ContactAssignmentRequest.md
+docs/ContactAssignmentRequestContact.md
+docs/ContactAssignmentRequestRole.md
docs/ContactGroup.md
docs/ContactGroupRequest.md
docs/ContactRequest.md
@@ -249,6 +272,7 @@ docs/CustomFieldFilterLogic.md
docs/CustomFieldFilterLogicLabel.md
docs/CustomFieldFilterLogicValue.md
docs/CustomFieldRequest.md
+docs/CustomFieldRequestChoiceSet.md
docs/CustomFieldType.md
docs/CustomFieldTypeLabel.md
docs/CustomFieldTypeValue.md
@@ -269,6 +293,7 @@ docs/DataSourceRequest.md
docs/DataSourceStatus.md
docs/DataSourceStatusLabel.md
docs/DataSourceStatusValue.md
+docs/DataSourceSyncInterval.md
docs/DataSourceType.md
docs/DataSourceTypeLabel.md
docs/DataSourceTypeValue.md
@@ -279,7 +304,6 @@ docs/DcimConsolePortsListSpeedParameter.md
docs/DcimDeviceTypesListAirflowParameter.md
docs/DcimDeviceTypesListWeightUnitParameter.md
docs/DcimDevicesRenderConfigCreateFormatParameter.md
-docs/DcimInterfacesListModeParameter.md
docs/DcimModuleTypesListAirflowParameter.md
docs/DcimPowerFeedsListPhaseParameter.md
docs/DcimPowerFeedsListSupplyParameter.md
@@ -296,13 +320,16 @@ docs/DeviceAirflowLabel.md
docs/DeviceAirflowValue.md
docs/DeviceBay.md
docs/DeviceBayRequest.md
+docs/DeviceBayRequestInstalledDevice.md
docs/DeviceBayTemplate.md
docs/DeviceBayTemplateRequest.md
+docs/DeviceBayTemplateRequestDeviceType.md
docs/DeviceFace.md
docs/DeviceFaceLabel.md
docs/DeviceFaceValue.md
docs/DeviceRole.md
docs/DeviceRoleRequest.md
+docs/DeviceRoleRequestConfigTemplate.md
docs/DeviceStatus.md
docs/DeviceStatusLabel.md
docs/DeviceStatusValue.md
@@ -310,6 +337,7 @@ docs/DeviceType.md
docs/DeviceTypeAirflow.md
docs/DeviceTypeRequest.md
docs/DeviceTypeRequestAirflow.md
+docs/DeviceTypeRequestDefaultPlatform.md
docs/DeviceTypeRequestSubdeviceRole.md
docs/DeviceTypeRequestWeightUnit.md
docs/DeviceTypeSubdeviceRole.md
@@ -320,6 +348,13 @@ docs/DeviceTypeWeightUnitLabel.md
docs/DeviceTypeWeightUnitValue.md
docs/DeviceWithConfigContext.md
docs/DeviceWithConfigContextRequest.md
+docs/DeviceWithConfigContextRequestCluster.md
+docs/DeviceWithConfigContextRequestLocation.md
+docs/DeviceWithConfigContextRequestPrimaryIp4.md
+docs/DeviceWithConfigContextRequestRack.md
+docs/DeviceWithConfigContextRequestRole.md
+docs/DeviceWithConfigContextRequestSite.md
+docs/DeviceWithConfigContextRequestVirtualChassis.md
docs/Encryption.md
docs/End.md
docs/End1.md
@@ -341,6 +376,7 @@ docs/ExtrasCustomLinksListButtonClassParameter.md
docs/FHRPGroup.md
docs/FHRPGroupAssignment.md
docs/FHRPGroupAssignmentRequest.md
+docs/FHRPGroupAssignmentRequestGroup.md
docs/FHRPGroupRequest.md
docs/FrontPort.md
docs/FrontPortRearPort.md
@@ -348,6 +384,7 @@ docs/FrontPortRearPortRequest.md
docs/FrontPortRequest.md
docs/FrontPortTemplate.md
docs/FrontPortTemplateRequest.md
+docs/FrontPortTemplateRequestRearPort.md
docs/FrontPortType.md
docs/FrontPortTypeLabel.md
docs/FrontPortTypeValue.md
@@ -379,6 +416,7 @@ docs/IKEProposalGroupValue.md
docs/IKEProposalRequest.md
docs/IPAddress.md
docs/IPAddressRequest.md
+docs/IPAddressRequestVrf.md
docs/IPAddressRole.md
docs/IPAddressRoleLabel.md
docs/IPAddressRoleValue.md
@@ -387,6 +425,7 @@ docs/IPAddressStatusLabel.md
docs/IPAddressStatusValue.md
docs/IPRange.md
docs/IPRangeRequest.md
+docs/IPRangeRequestRole.md
docs/IPRangeStatus.md
docs/IPRangeStatusLabel.md
docs/IPRangeStatusValue.md
@@ -397,6 +436,8 @@ docs/IPSecProfileMode.md
docs/IPSecProfileModeLabel.md
docs/IPSecProfileModeValue.md
docs/IPSecProfileRequest.md
+docs/IPSecProfileRequestIkePolicy.md
+docs/IPSecProfileRequestIpsecPolicy.md
docs/IPSecProposal.md
docs/IPSecProposalRequest.md
docs/ImageAttachment.md
@@ -416,6 +457,9 @@ docs/InterfacePoeTypeLabel.md
docs/InterfacePoeTypeValue.md
docs/InterfaceRequest.md
docs/InterfaceRequestDuplex.md
+docs/InterfaceRequestPrimaryMacAddress.md
+docs/InterfaceRequestUntaggedVlan.md
+docs/InterfaceRequestVlanTranslationPolicy.md
docs/InterfaceRfChannel.md
docs/InterfaceRfChannelLabel.md
docs/InterfaceRfChannelValue.md
@@ -435,6 +479,8 @@ docs/InterfaceTypeLabel.md
docs/InterfaceTypeValue.md
docs/InventoryItem.md
docs/InventoryItemRequest.md
+docs/InventoryItemRequestManufacturer.md
+docs/InventoryItemRequestRole.md
docs/InventoryItemRole.md
docs/InventoryItemRoleRequest.md
docs/InventoryItemStatus.md
@@ -452,6 +498,9 @@ docs/JournalEntryKindValue.md
docs/JournalEntryRequest.md
docs/L2VPN.md
docs/L2VPNRequest.md
+docs/L2VPNStatus.md
+docs/L2VPNStatusLabel.md
+docs/L2VPNStatusValue.md
docs/L2VPNTermination.md
docs/L2VPNTerminationRequest.md
docs/Location.md
@@ -469,16 +518,21 @@ docs/ModuleBayRequest.md
docs/ModuleBayTemplate.md
docs/ModuleBayTemplateRequest.md
docs/ModuleRequest.md
+docs/ModuleRequestModuleType.md
docs/ModuleType.md
docs/ModuleTypeAirflow.md
docs/ModuleTypeAirflowLabel.md
docs/ModuleTypeAirflowValue.md
+docs/ModuleTypeProfile.md
+docs/ModuleTypeProfileRequest.md
docs/ModuleTypeRequest.md
docs/ModuleTypeRequestAirflow.md
docs/NestedContactGroup.md
docs/NestedContactGroupRequest.md
docs/NestedDevice.md
docs/NestedDeviceRequest.md
+docs/NestedDeviceRole.md
+docs/NestedDeviceRoleRequest.md
docs/NestedGroup.md
docs/NestedIPAddress.md
docs/NestedIPAddressRequest.md
@@ -586,6 +640,7 @@ docs/PaginatedModuleBayList.md
docs/PaginatedModuleBayTemplateList.md
docs/PaginatedModuleList.md
docs/PaginatedModuleTypeList.md
+docs/PaginatedModuleTypeProfileList.md
docs/PaginatedNotificationGroupList.md
docs/PaginatedNotificationList.md
docs/PaginatedObjectChangeList.md
@@ -620,7 +675,9 @@ docs/PaginatedServiceTemplateList.md
docs/PaginatedSiteGroupList.md
docs/PaginatedSiteList.md
docs/PaginatedSubscriptionList.md
+docs/PaginatedTableConfigList.md
docs/PaginatedTagList.md
+docs/PaginatedTaggedItemList.md
docs/PaginatedTenantGroupList.md
docs/PaginatedTenantList.md
docs/PaginatedTokenList.md
@@ -664,7 +721,6 @@ docs/PatchedCustomLinkRequest.md
docs/PatchedDashboardRequest.md
docs/PatchedDeviceBayRequest.md
docs/PatchedDeviceBayTemplateRequest.md
-docs/PatchedDeviceRoleRequest.md
docs/PatchedExportTemplateRequest.md
docs/PatchedFHRPGroupAssignmentRequest.md
docs/PatchedFHRPGroupRequest.md
@@ -677,6 +733,7 @@ docs/PatchedMACAddressRequest.md
docs/PatchedManufacturerRequest.md
docs/PatchedModuleBayRequest.md
docs/PatchedModuleBayTemplateRequest.md
+docs/PatchedModuleTypeProfileRequest.md
docs/PatchedNotificationGroupRequest.md
docs/PatchedNotificationRequest.md
docs/PatchedObjectPermissionRequest.md
@@ -687,14 +744,17 @@ docs/PatchedProviderNetworkRequest.md
docs/PatchedProviderRequest.md
docs/PatchedRIRRequest.md
docs/PatchedRackReservationRequest.md
+docs/PatchedRackReservationRequestRack.md
docs/PatchedRackRoleRequest.md
docs/PatchedRoleRequest.md
docs/PatchedRouteTargetRequest.md
docs/PatchedSavedFilterRequest.md
docs/PatchedScriptInputRequest.md
docs/PatchedSubscriptionRequest.md
+docs/PatchedTableConfigRequest.md
docs/PatchedTagRequest.md
docs/PatchedTenantRequest.md
+docs/PatchedTenantRequestGroup.md
docs/PatchedTokenRequest.md
docs/PatchedTunnelGroupRequest.md
docs/PatchedUserRequest.md
@@ -704,6 +764,7 @@ docs/PatchedVLANTranslationRuleRequest.md
docs/PatchedVRFRequest.md
docs/PatchedVirtualCircuitTypeRequest.md
docs/PatchedVirtualDiskRequest.md
+docs/PatchedVirtualDiskRequestVirtualMachine.md
docs/PatchedWebhookRequest.md
docs/PatchedWebhookRequestHttpMethod.md
docs/PatchedWritableAggregateRequest.md
@@ -729,6 +790,7 @@ docs/PatchedWritableCustomFieldRequestType.md
docs/PatchedWritableCustomFieldRequestUiEditable.md
docs/PatchedWritableCustomFieldRequestUiVisible.md
docs/PatchedWritableDataSourceRequest.md
+docs/PatchedWritableDeviceRoleRequest.md
docs/PatchedWritableDeviceTypeRequest.md
docs/PatchedWritableDeviceWithConfigContextRequest.md
docs/PatchedWritableEventRuleRequest.md
@@ -760,13 +822,17 @@ docs/PatchedWritableModuleRequest.md
docs/PatchedWritableModuleTypeRequest.md
docs/PatchedWritablePowerFeedRequest.md
docs/PatchedWritablePowerFeedRequestPhase.md
+docs/PatchedWritablePowerFeedRequestPowerPanel.md
docs/PatchedWritablePowerFeedRequestStatus.md
docs/PatchedWritablePowerFeedRequestSupply.md
docs/PatchedWritablePowerFeedRequestType.md
docs/PatchedWritablePowerOutletRequest.md
docs/PatchedWritablePowerOutletRequestFeedLeg.md
+docs/PatchedWritablePowerOutletRequestPowerPort.md
+docs/PatchedWritablePowerOutletRequestStatus.md
docs/PatchedWritablePowerOutletRequestType.md
docs/PatchedWritablePowerOutletTemplateRequest.md
+docs/PatchedWritablePowerOutletTemplateRequestPowerPort.md
docs/PatchedWritablePowerOutletTemplateRequestType.md
docs/PatchedWritablePowerPortRequest.md
docs/PatchedWritablePowerPortRequestType.md
@@ -778,6 +844,8 @@ docs/PatchedWritableRackRequest.md
docs/PatchedWritableRackRequestAirflow.md
docs/PatchedWritableRackRequestFormFactor.md
docs/PatchedWritableRackRequestOuterUnit.md
+docs/PatchedWritableRackRequestRackType.md
+docs/PatchedWritableRackRequestRole.md
docs/PatchedWritableRackRequestStatus.md
docs/PatchedWritableRackRequestWidth.md
docs/PatchedWritableRackTypeRequest.md
@@ -790,23 +858,36 @@ docs/PatchedWritableServiceRequestProtocol.md
docs/PatchedWritableServiceTemplateRequest.md
docs/PatchedWritableSiteGroupRequest.md
docs/PatchedWritableSiteRequest.md
+docs/PatchedWritableSiteRequestGroup.md
+docs/PatchedWritableSiteRequestRegion.md
docs/PatchedWritableTenantGroupRequest.md
docs/PatchedWritableTunnelRequest.md
docs/PatchedWritableTunnelRequestEncapsulation.md
+docs/PatchedWritableTunnelRequestGroup.md
+docs/PatchedWritableTunnelRequestIpsecProfile.md
docs/PatchedWritableTunnelRequestStatus.md
docs/PatchedWritableTunnelTerminationRequest.md
docs/PatchedWritableTunnelTerminationRequestRole.md
+docs/PatchedWritableTunnelTerminationRequestTunnel.md
docs/PatchedWritableVLANRequest.md
+docs/PatchedWritableVLANRequestGroup.md
+docs/PatchedWritableVLANRequestSite.md
docs/PatchedWritableVLANRequestStatus.md
docs/PatchedWritableVMInterfaceRequest.md
docs/PatchedWritableVirtualChassisRequest.md
docs/PatchedWritableVirtualCircuitRequest.md
+docs/PatchedWritableVirtualCircuitRequestType.md
docs/PatchedWritableVirtualCircuitTerminationRequest.md
+docs/PatchedWritableVirtualCircuitTerminationRequestInterface.md
+docs/PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit.md
docs/PatchedWritableVirtualDeviceContextRequest.md
docs/PatchedWritableVirtualDeviceContextRequestStatus.md
docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
+docs/PatchedWritableVirtualMachineWithConfigContextRequestRole.md
+docs/PatchedWritableVirtualMachineWithConfigContextRequestStatus.md
docs/PatchedWritableWirelessLANGroupRequest.md
docs/PatchedWritableWirelessLANRequest.md
+docs/PatchedWritableWirelessLANRequestGroup.md
docs/PatchedWritableWirelessLANRequestStatus.md
docs/PatchedWritableWirelessLinkRequest.md
docs/Platform.md
@@ -827,6 +908,8 @@ docs/PowerOutletFeedLegLabel.md
docs/PowerOutletFeedLegValue.md
docs/PowerOutletRequest.md
docs/PowerOutletRequestFeedLeg.md
+docs/PowerOutletStatus.md
+docs/PowerOutletStatusLabel.md
docs/PowerOutletTemplate.md
docs/PowerOutletTemplateRequest.md
docs/PowerOutletType.md
@@ -912,8 +995,11 @@ docs/SiteRequest.md
docs/StatusAPI.md
docs/Subscription.md
docs/SubscriptionRequest.md
+docs/TableConfig.md
+docs/TableConfigRequest.md
docs/Tag.md
docs/TagRequest.md
+docs/TaggedItem.md
docs/TenancyAPI.md
docs/Tenant.md
docs/TenantGroup.md
@@ -971,6 +1057,8 @@ docs/VirtualDisk.md
docs/VirtualDiskRequest.md
docs/VirtualMachineWithConfigContext.md
docs/VirtualMachineWithConfigContextRequest.md
+docs/VirtualMachineWithConfigContextStatus.md
+docs/VirtualMachineWithConfigContextStatusLabel.md
docs/VirtualizationAPI.md
docs/VpnAPI.md
docs/Webhook.md
@@ -1007,6 +1095,7 @@ docs/WritableContactGroupRequest.md
docs/WritableCustomFieldChoiceSetRequest.md
docs/WritableCustomFieldRequest.md
docs/WritableDataSourceRequest.md
+docs/WritableDeviceRoleRequest.md
docs/WritableDeviceTypeRequest.md
docs/WritableDeviceWithConfigContextRequest.md
docs/WritableEventRuleRequest.md
@@ -1065,7 +1154,10 @@ model_aggregate_request.go
model_asn.go
model_asn_range.go
model_asn_range_request.go
+model_asn_range_request_rir.go
+model_asn_range_request_tenant.go
model_asn_request.go
+model_asn_request_rir.go
model_authentication.go
model_authentication_cipher.go
model_authentication_type.go
@@ -1076,6 +1168,7 @@ model_available_prefix.go
model_available_vlan.go
model_bookmark.go
model_bookmark_request.go
+model_bookmark_request_user.go
model_brief_cable.go
model_brief_cable_request.go
model_brief_circuit.go
@@ -1085,8 +1178,10 @@ model_brief_circuit_group_assignment_serializer__priority.go
model_brief_circuit_group_assignment_serializer__priority_label.go
model_brief_circuit_group_assignment_serializer__priority_value.go
model_brief_circuit_group_assignment_serializer_request.go
+model_brief_circuit_group_assignment_serializer_request_group.go
model_brief_circuit_group_request.go
model_brief_circuit_request.go
+model_brief_circuit_request_provider.go
model_brief_circuit_type.go
model_brief_circuit_type_request.go
model_brief_cluster.go
@@ -1098,8 +1193,6 @@ model_brief_cluster_type_request.go
model_brief_config_template.go
model_brief_config_template_request.go
model_brief_contact.go
-model_brief_contact_group.go
-model_brief_contact_group_request.go
model_brief_contact_request.go
model_brief_contact_role.go
model_brief_contact_role_request.go
@@ -1114,6 +1207,7 @@ model_brief_device_role.go
model_brief_device_role_request.go
model_brief_device_type.go
model_brief_device_type_request.go
+model_brief_device_type_request_manufacturer.go
model_brief_fhrp_group.go
model_brief_fhrp_group_protocol.go
model_brief_fhrp_group_request.go
@@ -1121,6 +1215,7 @@ model_brief_ike_policy.go
model_brief_ike_policy_request.go
model_brief_interface.go
model_brief_interface_request.go
+model_brief_interface_request_device.go
model_brief_inventory_item_role.go
model_brief_inventory_item_role_request.go
model_brief_ip_address.go
@@ -1138,6 +1233,7 @@ model_brief_l2_vpn.go
model_brief_l2_vpn_request.go
model_brief_l2_vpn_termination.go
model_brief_l2_vpn_termination_request.go
+model_brief_l2_vpn_termination_request_l2vpn.go
model_brief_l2_vpn_type.go
model_brief_l2_vpn_type_label.go
model_brief_l2_vpn_type_value.go
@@ -1150,7 +1246,10 @@ model_brief_manufacturer_request.go
model_brief_module.go
model_brief_module_request.go
model_brief_module_type.go
+model_brief_module_type_profile.go
+model_brief_module_type_profile_request.go
model_brief_module_type_request.go
+model_brief_module_type_request_profile.go
model_brief_platform.go
model_brief_platform_request.go
model_brief_power_panel.go
@@ -1183,6 +1282,7 @@ model_brief_site.go
model_brief_site_group.go
model_brief_site_group_request.go
model_brief_site_request.go
+model_brief_tag.go
model_brief_tenant.go
model_brief_tenant_group.go
model_brief_tenant_group_request.go
@@ -1197,6 +1297,7 @@ model_brief_virtual_chassis.go
model_brief_virtual_chassis_request.go
model_brief_virtual_circuit.go
model_brief_virtual_circuit_request.go
+model_brief_virtual_circuit_request_provider_network.go
model_brief_virtual_circuit_type.go
model_brief_virtual_circuit_type_request.go
model_brief_virtual_machine.go
@@ -1235,11 +1336,14 @@ model_circuit_group_assignment_request.go
model_circuit_group_request.go
model_circuit_request.go
model_circuit_request_distance_unit.go
+model_circuit_request_provider_account.go
+model_circuit_request_type.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_termination_request_circuit.go
model_circuit_type.go
model_circuit_type_request.go
model_circuits_circuit_group_assignments_list_priority_parameter.go
@@ -1249,6 +1353,8 @@ model_cluster.go
model_cluster_group.go
model_cluster_group_request.go
model_cluster_request.go
+model_cluster_request_group.go
+model_cluster_request_type.go
model_cluster_status.go
model_cluster_status_label.go
model_cluster_status_value.go
@@ -1256,16 +1362,20 @@ model_cluster_type.go
model_cluster_type_request.go
model_config_context.go
model_config_context_request.go
+model_config_context_request_data_source.go
model_config_template.go
model_config_template_request.go
model_console_port.go
model_console_port_request.go
+model_console_port_request_module.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_template_request_device_type.go
+model_console_port_template_request_module_type.go
model_console_port_type.go
model_console_port_type_label.go
model_console_port_type_value.go
@@ -1276,6 +1386,8 @@ model_console_server_port_template_request.go
model_contact.go
model_contact_assignment.go
model_contact_assignment_request.go
+model_contact_assignment_request_contact.go
+model_contact_assignment_request_role.go
model_contact_group.go
model_contact_group_request.go
model_contact_request.go
@@ -1292,6 +1404,7 @@ 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_request_choice_set.go
model_custom_field_type.go
model_custom_field_type_label.go
model_custom_field_type_value.go
@@ -1312,6 +1425,7 @@ 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_sync_interval.go
model_data_source_type.go
model_data_source_type_label.go
model_data_source_type_value.go
@@ -1321,7 +1435,6 @@ model_dcim_console_ports_list_speed_parameter.go
model_dcim_device_types_list_airflow_parameter.go
model_dcim_device_types_list_weight_unit_parameter.go
model_dcim_devices_render_config_create_format_parameter.go
-model_dcim_interfaces_list_mode_parameter.go
model_dcim_module_types_list_airflow_parameter.go
model_dcim_power_feeds_list_phase_parameter.go
model_dcim_power_feeds_list_supply_parameter.go
@@ -1338,13 +1451,16 @@ model_device_airflow_label.go
model_device_airflow_value.go
model_device_bay.go
model_device_bay_request.go
+model_device_bay_request_installed_device.go
model_device_bay_template.go
model_device_bay_template_request.go
+model_device_bay_template_request_device_type.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_role_request_config_template.go
model_device_status.go
model_device_status_label.go
model_device_status_value.go
@@ -1352,6 +1468,7 @@ model_device_type.go
model_device_type_airflow.go
model_device_type_request.go
model_device_type_request_airflow.go
+model_device_type_request_default_platform.go
model_device_type_request_subdevice_role.go
model_device_type_request_weight_unit.go
model_device_type_subdevice_role.go
@@ -1362,6 +1479,13 @@ 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_device_with_config_context_request_cluster.go
+model_device_with_config_context_request_location.go
+model_device_with_config_context_request_primary_ip4.go
+model_device_with_config_context_request_rack.go
+model_device_with_config_context_request_role.go
+model_device_with_config_context_request_site.go
+model_device_with_config_context_request_virtual_chassis.go
model_encryption.go
model_end.go
model_end_1.go
@@ -1382,6 +1506,7 @@ model_extras_custom_links_list_button_class_parameter.go
model_fhrp_group.go
model_fhrp_group_assignment.go
model_fhrp_group_assignment_request.go
+model_fhrp_group_assignment_request_group.go
model_fhrp_group_request.go
model_front_port.go
model_front_port_rear_port.go
@@ -1389,6 +1514,7 @@ model_front_port_rear_port_request.go
model_front_port_request.go
model_front_port_template.go
model_front_port_template_request.go
+model_front_port_template_request_rear_port.go
model_front_port_type.go
model_front_port_type_label.go
model_front_port_type_value.go
@@ -1435,6 +1561,9 @@ model_interface_poe_type_label.go
model_interface_poe_type_value.go
model_interface_request.go
model_interface_request_duplex.go
+model_interface_request_primary_mac_address.go
+model_interface_request_untagged_vlan.go
+model_interface_request_vlan_translation_policy.go
model_interface_rf_channel.go
model_interface_rf_channel_label.go
model_interface_rf_channel_value.go
@@ -1454,6 +1583,8 @@ model_interface_type_label.go
model_interface_type_value.go
model_inventory_item.go
model_inventory_item_request.go
+model_inventory_item_request_manufacturer.go
+model_inventory_item_request_role.go
model_inventory_item_role.go
model_inventory_item_role_request.go
model_inventory_item_status.go
@@ -1463,6 +1594,7 @@ model_inventory_item_template.go
model_inventory_item_template_request.go
model_ip_address.go
model_ip_address_request.go
+model_ip_address_request_vrf.go
model_ip_address_role.go
model_ip_address_role_label.go
model_ip_address_role_value.go
@@ -1471,6 +1603,7 @@ model_ip_address_status_label.go
model_ip_address_status_value.go
model_ip_range.go
model_ip_range_request.go
+model_ip_range_request_role.go
model_ip_range_status.go
model_ip_range_status_label.go
model_ip_range_status_value.go
@@ -1481,6 +1614,8 @@ 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_profile_request_ike_policy.go
+model_ip_sec_profile_request_ipsec_policy.go
model_ip_sec_proposal.go
model_ip_sec_proposal_request.go
model_ipam_service_templates_list_protocol_parameter.go
@@ -1492,6 +1627,9 @@ model_journal_entry_kind_value.go
model_journal_entry_request.go
model_l2_vpn.go
model_l2_vpn_request.go
+model_l2_vpn_status.go
+model_l2_vpn_status_label.go
+model_l2_vpn_status_value.go
model_l2_vpn_termination.go
model_l2_vpn_termination_request.go
model_location.go
@@ -1509,16 +1647,21 @@ model_module_bay_request.go
model_module_bay_template.go
model_module_bay_template_request.go
model_module_request.go
+model_module_request_module_type.go
model_module_type.go
model_module_type_airflow.go
model_module_type_airflow_label.go
model_module_type_airflow_value.go
+model_module_type_profile.go
+model_module_type_profile_request.go
model_module_type_request.go
model_module_type_request_airflow.go
model_nested_contact_group.go
model_nested_contact_group_request.go
model_nested_device.go
model_nested_device_request.go
+model_nested_device_role.go
+model_nested_device_role_request.go
model_nested_group.go
model_nested_interface.go
model_nested_interface_request.go
@@ -1626,6 +1769,7 @@ model_paginated_module_bay_list.go
model_paginated_module_bay_template_list.go
model_paginated_module_list.go
model_paginated_module_type_list.go
+model_paginated_module_type_profile_list.go
model_paginated_notification_group_list.go
model_paginated_notification_list.go
model_paginated_object_change_list.go
@@ -1660,7 +1804,9 @@ model_paginated_service_template_list.go
model_paginated_site_group_list.go
model_paginated_site_list.go
model_paginated_subscription_list.go
+model_paginated_table_config_list.go
model_paginated_tag_list.go
+model_paginated_tagged_item_list.go
model_paginated_tenant_group_list.go
model_paginated_tenant_list.go
model_paginated_token_list.go
@@ -1704,7 +1850,6 @@ model_patched_custom_link_request.go
model_patched_dashboard_request.go
model_patched_device_bay_request.go
model_patched_device_bay_template_request.go
-model_patched_device_role_request.go
model_patched_export_template_request.go
model_patched_fhrp_group_assignment_request.go
model_patched_fhrp_group_request.go
@@ -1717,6 +1862,7 @@ model_patched_mac_address_request.go
model_patched_manufacturer_request.go
model_patched_module_bay_request.go
model_patched_module_bay_template_request.go
+model_patched_module_type_profile_request.go
model_patched_notification_group_request.go
model_patched_notification_request.go
model_patched_object_permission_request.go
@@ -1726,6 +1872,7 @@ model_patched_provider_account_request.go
model_patched_provider_network_request.go
model_patched_provider_request.go
model_patched_rack_reservation_request.go
+model_patched_rack_reservation_request_rack.go
model_patched_rack_role_request.go
model_patched_rir_request.go
model_patched_role_request.go
@@ -1733,13 +1880,16 @@ model_patched_route_target_request.go
model_patched_saved_filter_request.go
model_patched_script_input_request.go
model_patched_subscription_request.go
+model_patched_table_config_request.go
model_patched_tag_request.go
model_patched_tenant_request.go
+model_patched_tenant_request_group.go
model_patched_token_request.go
model_patched_tunnel_group_request.go
model_patched_user_request.go
model_patched_virtual_circuit_type_request.go
model_patched_virtual_disk_request.go
+model_patched_virtual_disk_request_virtual_machine.go
model_patched_vlan_group_request.go
model_patched_vlan_translation_policy_request.go
model_patched_vlan_translation_rule_request.go
@@ -1769,6 +1919,7 @@ 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_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
@@ -1800,13 +1951,17 @@ model_patched_writable_module_request.go
model_patched_writable_module_type_request.go
model_patched_writable_power_feed_request.go
model_patched_writable_power_feed_request_phase.go
+model_patched_writable_power_feed_request_power_panel.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_power_port.go
+model_patched_writable_power_outlet_request_status.go
model_patched_writable_power_outlet_request_type.go
model_patched_writable_power_outlet_template_request.go
+model_patched_writable_power_outlet_template_request_power_port.go
model_patched_writable_power_outlet_template_request_type.go
model_patched_writable_power_port_request.go
model_patched_writable_power_port_request_type.go
@@ -1818,6 +1973,8 @@ model_patched_writable_rack_request.go
model_patched_writable_rack_request_airflow.go
model_patched_writable_rack_request_form_factor.go
model_patched_writable_rack_request_outer_unit.go
+model_patched_writable_rack_request_rack_type.go
+model_patched_writable_rack_request_role.go
model_patched_writable_rack_request_status.go
model_patched_writable_rack_request_width.go
model_patched_writable_rack_type_request.go
@@ -1830,23 +1987,36 @@ 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_site_request_group.go
+model_patched_writable_site_request_region.go
model_patched_writable_tenant_group_request.go
model_patched_writable_tunnel_request.go
model_patched_writable_tunnel_request_encapsulation.go
+model_patched_writable_tunnel_request_group.go
+model_patched_writable_tunnel_request_ipsec_profile.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_tunnel_termination_request_tunnel.go
model_patched_writable_virtual_chassis_request.go
model_patched_writable_virtual_circuit_request.go
+model_patched_writable_virtual_circuit_request_type.go
model_patched_writable_virtual_circuit_termination_request.go
+model_patched_writable_virtual_circuit_termination_request_interface.go
+model_patched_writable_virtual_circuit_termination_request_virtual_circuit.go
model_patched_writable_virtual_device_context_request.go
model_patched_writable_virtual_device_context_request_status.go
model_patched_writable_virtual_machine_with_config_context_request.go
+model_patched_writable_virtual_machine_with_config_context_request_role.go
+model_patched_writable_virtual_machine_with_config_context_request_status.go
model_patched_writable_vlan_request.go
+model_patched_writable_vlan_request_group.go
+model_patched_writable_vlan_request_site.go
model_patched_writable_vlan_request_status.go
model_patched_writable_vm_interface_request.go
model_patched_writable_wireless_lan_group_request.go
model_patched_writable_wireless_lan_request.go
+model_patched_writable_wireless_lan_request_group.go
model_patched_writable_wireless_lan_request_status.go
model_patched_writable_wireless_link_request.go
model_platform.go
@@ -1867,6 +2037,8 @@ 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_status.go
+model_power_outlet_status_label.go
model_power_outlet_template.go
model_power_outlet_template_request.go
model_power_outlet_type.go
@@ -1950,8 +2122,11 @@ model_site_group_request.go
model_site_request.go
model_subscription.go
model_subscription_request.go
+model_table_config.go
+model_table_config_request.go
model_tag.go
model_tag_request.go
+model_tagged_item.go
model_tenant.go
model_tenant_group.go
model_tenant_group_request.go
@@ -1992,6 +2167,8 @@ 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_virtual_machine_with_config_context_status.go
+model_virtual_machine_with_config_context_status_label.go
model_vlan.go
model_vlan_group.go
model_vlan_group_request.go
@@ -2040,6 +2217,7 @@ model_writable_contact_group_request.go
model_writable_custom_field_choice_set_request.go
model_writable_custom_field_request.go
model_writable_data_source_request.go
+model_writable_device_role_request.go
model_writable_device_type_request.go
model_writable_device_with_config_context_request.go
model_writable_event_rule_request.go
diff --git a/api/netbox_docker_version b/api/netbox_docker_version
index fd2a01863..15a279981 100644
--- a/api/netbox_docker_version
+++ b/api/netbox_docker_version
@@ -1 +1 @@
-3.1.0
+3.3.0
diff --git a/api/netbox_version b/api/netbox_version
index af8c8ec7c..80895903a 100644
--- a/api/netbox_version
+++ b/api/netbox_version
@@ -1 +1 @@
-4.2.2
+4.3.0
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 1dc57488c..5a6c3ddf8 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: NetBox REST API
- version: 4.2.2 (4.2)
+ version: 4.3.0-Docker-3.3.0 (4.3)
license:
name: Apache v2 License
paths:
@@ -397,6 +397,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -1131,6 +1147,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -2140,6 +2172,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: term_side
schema:
@@ -3184,6 +3232,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -4023,6 +4087,24 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: location_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Location (ID)
+ explode: true
+ style: form
+ - in: query
+ name: location_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Location (ID)
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -4347,6 +4429,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -4867,6 +4965,58 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -5304,6 +5454,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -6057,6 +6223,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -6968,6 +7150,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -7721,6 +7919,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -8563,6 +8777,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -9382,6 +9612,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -11050,6 +11296,106 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: sync_interval
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__ic
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__ie
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__iew
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__isw
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__n
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__nic
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__nie
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__niew
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
+ - in: query
+ name: sync_interval__nisw
+ schema:
+ type: array
+ items:
+ type: integer
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ explode: true
+ style: form
- in: query
name: tag
schema:
@@ -11066,6 +11412,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
@@ -13754,6 +14116,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -15963,6 +16341,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
@@ -18092,6 +18486,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
@@ -20118,6 +20528,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -20386,6 +20812,38 @@ paths:
operationId: dcim_device_roles_list
description: Get a list of device role objects.
parameters:
+ - in: query
+ name: ancestor
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: ancestor__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: color
schema:
@@ -20870,6 +21328,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: Parent device role (slug)
+ explode: true
+ style: form
+ - in: query
+ name: parent__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Parent device role (slug)
+ explode: true
+ style: form
+ - in: query
+ name: parent_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Parent device role (ID)
+ explode: true
+ style: form
+ - in: query
+ name: parent_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Parent device role (ID)
+ explode: true
+ style: form
- in: query
name: q
schema:
@@ -20975,6 +21471,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -21005,10 +21517,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/DeviceRoleRequest'
+ $ref: '#/components/schemas/WritableDeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/DeviceRoleRequest'
+ $ref: '#/components/schemas/WritableDeviceRoleRequest'
required: true
security:
- cookieAuth: []
@@ -21143,10 +21655,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/DeviceRoleRequest'
+ $ref: '#/components/schemas/WritableDeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/DeviceRoleRequest'
+ $ref: '#/components/schemas/WritableDeviceRoleRequest'
required: true
security:
- cookieAuth: []
@@ -21174,10 +21686,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedDeviceRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableDeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedDeviceRoleRequest'
+ $ref: '#/components/schemas/PatchedWritableDeviceRoleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -22550,6 +23062,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: u_height
schema:
@@ -23943,6 +24471,22 @@ paths:
schema:
type: boolean
description: Has local config context data
+ - in: query
+ name: location
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: location__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: location_id
schema:
@@ -24596,6 +25140,24 @@ paths:
schema:
type: boolean
description: Has power ports
+ - in: query
+ name: primary_ip4
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip4__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip4_id
schema:
@@ -24614,6 +25176,24 @@ paths:
description: Primary IPv4 (ID)
explode: true
style: form
+ - in: query
+ name: primary_ip6
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip6__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip6_id
schema:
@@ -24751,7 +25331,6 @@ paths:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
@@ -24760,7 +25339,6 @@ paths:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
@@ -24768,8 +25346,7 @@ paths:
schema:
type: array
items:
- type: integer
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
@@ -24777,8 +25354,7 @@ paths:
schema:
type: array
items:
- type: integer
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
@@ -25043,6 +25619,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -26199,7 +26791,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26212,7 +26804,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26221,7 +26813,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26230,7 +26822,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26239,7 +26831,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26248,7 +26840,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26257,7 +26849,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26266,7 +26858,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26275,7 +26867,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -26284,7 +26876,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27602,13 +28194,29 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27621,7 +28229,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27630,7 +28238,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27639,7 +28247,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27648,7 +28256,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27657,7 +28265,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27666,7 +28274,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27675,7 +28283,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27684,7 +28292,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -27693,7 +28301,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -28848,7 +29456,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28861,7 +29469,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28870,7 +29478,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28879,7 +29487,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28888,7 +29496,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28897,7 +29505,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28906,7 +29514,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28915,7 +29523,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28924,7 +29532,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -28933,7 +29541,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -30095,24 +30703,118 @@ paths:
- in: query
name: mode
schema:
- type: string
- x-spec-enum-id: b6fe48fe21dbf01d
- nullable: true
- enum:
- - access
- - q-in-q
- - tagged
- - tagged-all
- description: 'IEEE 802.1Q tagging strategy
-
-
- * `access` - Access
-
- * `tagged` - Tagged
-
- * `tagged-all` - Tagged (All)
-
- * `q-in-q` - Q-in-Q (802.1ad)'
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__empty
+ schema:
+ type: boolean
+ description: 802.1Q Mode
+ - in: query
+ name: mode__ic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__ie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__iew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__isw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__niew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -31122,6 +31824,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tx_power
schema:
@@ -31186,7 +31904,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31199,7 +31917,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31208,7 +31926,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31217,7 +31935,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31226,7 +31944,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31235,7 +31953,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31244,7 +31962,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31253,7 +31971,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31262,7 +31980,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -31271,7 +31989,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
explode: true
style: form
- in: query
@@ -32452,6 +33170,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -35032,6 +35766,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -36185,6 +36935,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -37003,6 +37769,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -37825,6 +38607,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -39885,6 +40683,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -40148,45 +40962,11 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/module-types/:
+ /api/dcim/module-type-profiles/:
get:
- operationId: dcim_module_types_list
- description: Get a list of module type objects.
+ operationId: dcim_module_type_profiles_list
+ description: Get a list of module type profile objects.
parameters:
- - in: query
- name: airflow
- schema:
- type: string
- x-spec-enum-id: f6e5562e0e98d69d
- nullable: true
- enum:
- - front-to-rear
- - left-to-right
- - passive
- - rear-to-front
- - right-to-left
- - side-to-rear
- description: '* `front-to-rear` - Front to rear
-
- * `rear-to-front` - Rear to front
-
- * `left-to-right` - Left to right
-
- * `right-to-left` - Right to left
-
- * `side-to-rear` - Side to rear
-
- * `passive` - Passive'
- - in: query
- name: console_ports
- schema:
- type: boolean
- description: Has console ports
- - in: query
- name: console_server_ports
- schema:
- type: boolean
- description: Has console server ports
- in: query
name: created
schema:
@@ -40397,11 +41177,6 @@ paths:
format: int32
explode: true
style: form
- - in: query
- name: interfaces
- schema:
- type: boolean
- description: Has interfaces
- in: query
name: last_updated
schema:
@@ -40472,43 +41247,12 @@ paths:
schema:
type: integer
- in: query
- name: manufacturer
- schema:
- type: array
- items:
- type: string
- description: Manufacturer (slug)
- explode: true
- style: form
- - in: query
- name: manufacturer__n
- schema:
- type: array
- items:
- type: string
- description: Manufacturer (slug)
- explode: true
- style: form
- - in: query
- name: manufacturer_id
- schema:
- type: array
- items:
- type: integer
- description: Manufacturer (ID)
- explode: true
- style: form
- - in: query
- name: manufacturer_id__n
+ name: modified_by_request
schema:
- type: array
- items:
- type: integer
- description: Manufacturer (ID)
- explode: true
- style: form
+ type: string
+ format: uuid
- in: query
- name: model
+ name: name
schema:
type: array
items:
@@ -40516,11 +41260,11 @@ paths:
explode: true
style: form
- in: query
- name: model__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: model__ic
+ name: name__ic
schema:
type: array
items:
@@ -40528,7 +41272,7 @@ paths:
explode: true
style: form
- in: query
- name: model__ie
+ name: name__ie
schema:
type: array
items:
@@ -40536,7 +41280,7 @@ paths:
explode: true
style: form
- in: query
- name: model__iew
+ name: name__iew
schema:
type: array
items:
@@ -40544,7 +41288,7 @@ paths:
explode: true
style: form
- in: query
- name: model__isw
+ name: name__isw
schema:
type: array
items:
@@ -40552,7 +41296,7 @@ paths:
explode: true
style: form
- in: query
- name: model__n
+ name: name__n
schema:
type: array
items:
@@ -40560,7 +41304,7 @@ paths:
explode: true
style: form
- in: query
- name: model__nic
+ name: name__nic
schema:
type: array
items:
@@ -40568,7 +41312,7 @@ paths:
explode: true
style: form
- in: query
- name: model__nie
+ name: name__nie
schema:
type: array
items:
@@ -40576,7 +41320,7 @@ paths:
explode: true
style: form
- in: query
- name: model__niew
+ name: name__niew
schema:
type: array
items:
@@ -40584,18 +41328,13 @@ paths:
explode: true
style: form
- in: query
- name: model__nisw
+ name: name__nisw
schema:
type: array
items:
type: string
explode: true
style: form
- - in: query
- name: modified_by_request
- schema:
- type: string
- format: uuid
- name: offset
required: false
in: query
@@ -40608,105 +41347,6 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
- - in: query
- name: part_number
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__empty
- schema:
- type: boolean
- - in: query
- name: part_number__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: part_number__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: pass_through_ports
- schema:
- type: boolean
- description: Has pass-through ports
- - in: query
- name: power_outlets
- schema:
- type: boolean
- description: Has power outlets
- - in: query
- name: power_ports
- schema:
- type: boolean
- description: Has power ports
- in: query
name: q
schema:
@@ -40729,86 +41369,26 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: weight
- schema:
- type: array
- items:
- type: number
- format: double
- explode: true
- style: form
- - in: query
- name: weight__empty
- schema:
- type: boolean
- - in: query
- name: weight__gt
- schema:
- type: array
- items:
- type: number
- format: double
- explode: true
- style: form
- - in: query
- name: weight__gte
- schema:
- type: array
- items:
- type: number
- format: double
- explode: true
- style: form
- - in: query
- name: weight__lt
- schema:
- type: array
- items:
- type: number
- format: double
- explode: true
- style: form
- - in: query
- name: weight__lte
+ name: tag_id
schema:
type: array
items:
- type: number
- format: double
+ type: integer
explode: true
style: form
- in: query
- name: weight__n
+ name: tag_id__n
schema:
type: array
items:
- type: number
- format: double
+ type: integer
explode: true
style: form
- in: query
- name: weight_unit
+ name: updated_by_request
schema:
type: string
- x-spec-enum-id: 7c1876f422815884
- nullable: true
- enum:
- - g
- - kg
- - lb
- - oz
- description: '* `kg` - Kilograms
-
- * `g` - Grams
-
- * `lb` - Pounds
-
- * `oz` - Ounces'
+ format: uuid
tags:
- dcim
security:
@@ -40819,21 +41399,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedModuleTypeList'
+ $ref: '#/components/schemas/PaginatedModuleTypeProfileList'
description: ''
post:
- operationId: dcim_module_types_create
- description: Post a list of module type objects.
+ operationId: dcim_module_type_profiles_create
+ description: Post a list of module type profile objects.
tags:
- dcim
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
required: true
security:
- cookieAuth: []
@@ -40843,11 +41423,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
put:
- operationId: dcim_module_types_bulk_update
- description: Put a list of module type objects.
+ operationId: dcim_module_type_profiles_bulk_update
+ description: Put a list of module type profile objects.
tags:
- dcim
requestBody:
@@ -40856,12 +41436,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
required: true
security:
- cookieAuth: []
@@ -40873,11 +41453,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
patch:
- operationId: dcim_module_types_bulk_partial_update
- description: Patch a list of module type objects.
+ operationId: dcim_module_type_profiles_bulk_partial_update
+ description: Patch a list of module type profile objects.
tags:
- dcim
requestBody:
@@ -40886,12 +41466,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
required: true
security:
- cookieAuth: []
@@ -40903,11 +41483,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
delete:
- operationId: dcim_module_types_bulk_destroy
- description: Delete a list of module type objects.
+ operationId: dcim_module_type_profiles_bulk_destroy
+ description: Delete a list of module type profile objects.
tags:
- dcim
requestBody:
@@ -40916,12 +41496,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
required: true
security:
- cookieAuth: []
@@ -40929,16 +41509,16 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/module-types/{id}/:
+ /api/dcim/module-type-profiles/{id}/:
get:
- operationId: dcim_module_types_retrieve
- description: Get a module type object.
+ operationId: dcim_module_type_profiles_retrieve
+ description: Get a module type profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module type.
+ description: A unique integer value identifying this module type profile.
required: true
tags:
- dcim
@@ -40950,17 +41530,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
put:
- operationId: dcim_module_types_update
- description: Put a module type object.
+ operationId: dcim_module_type_profiles_update
+ description: Put a module type profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module type.
+ description: A unique integer value identifying this module type profile.
required: true
tags:
- dcim
@@ -40968,10 +41548,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleTypeRequest'
+ $ref: '#/components/schemas/ModuleTypeProfileRequest'
required: true
security:
- cookieAuth: []
@@ -40981,17 +41561,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
patch:
- operationId: dcim_module_types_partial_update
- description: Patch a module type object.
+ operationId: dcim_module_type_profiles_partial_update
+ description: Patch a module type profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module type.
+ description: A unique integer value identifying this module type profile.
required: true
tags:
- dcim
@@ -40999,10 +41579,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleTypeRequest'
+ $ref: '#/components/schemas/PatchedModuleTypeProfileRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleTypeRequest'
+ $ref: '#/components/schemas/PatchedModuleTypeProfileRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -41011,17 +41591,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ModuleType'
+ $ref: '#/components/schemas/ModuleTypeProfile'
description: ''
delete:
- operationId: dcim_module_types_destroy
- description: Delete a module type object.
+ operationId: dcim_module_type_profiles_destroy
+ description: Delete a module type profile object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module type.
+ description: A unique integer value identifying this module type profile.
required: true
tags:
- dcim
@@ -41031,95 +41611,45 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/modules/:
+ /api/dcim/module-types/:
get:
- operationId: dcim_modules_list
- description: Get a list of module objects.
+ operationId: dcim_module_types_list
+ description: Get a list of module type objects.
parameters:
- in: query
- name: asset_tag
+ name: airflow
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
+ x-spec-enum-id: f6e5562e0e98d69d
+ nullable: true
+ enum:
+ - front-to-rear
+ - left-to-right
+ - passive
+ - rear-to-front
+ - right-to-left
+ - side-to-rear
+ description: '* `front-to-rear` - Front to rear
+
+ * `rear-to-front` - Rear to front
+
+ * `left-to-right` - Left to right
+
+ * `right-to-left` - Right to left
+
+ * `side-to-rear` - Side to rear
+
+ * `passive` - Passive'
- in: query
- name: asset_tag__empty
+ name: console_ports
schema:
type: boolean
+ description: Has console ports
- in: query
- name: asset_tag__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: asset_tag__nisw
+ name: console_server_ports
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: boolean
+ description: Has console server ports
- in: query
name: created
schema:
@@ -41272,24 +41802,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: device_id
- schema:
- type: array
- items:
- type: integer
- description: Device (ID)
- explode: true
- style: form
- - in: query
- name: device_id__n
- schema:
- type: array
- items:
- type: integer
- description: Device (ID)
- explode: true
- style: form
- in: query
name: id
schema:
@@ -41348,6 +41860,11 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: interfaces
+ schema:
+ type: boolean
+ description: Has interfaces
- in: query
name: last_updated
schema:
@@ -41454,12 +41971,19 @@ paths:
explode: true
style: form
- in: query
- name: modified_by_request
+ name: model
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: module_bay_id
+ name: model__empty
+ schema:
+ type: boolean
+ - in: query
+ name: model__ic
schema:
type: array
items:
@@ -41467,7 +41991,7 @@ paths:
explode: true
style: form
- in: query
- name: module_bay_id__n
+ name: model__ie
schema:
type: array
items:
@@ -41475,41 +41999,66 @@ paths:
explode: true
style: form
- in: query
- name: module_type
+ name: model__iew
schema:
type: array
items:
type: string
- description: Module type (model)
explode: true
style: form
- in: query
- name: module_type__n
+ name: model__isw
schema:
type: array
items:
type: string
- description: Module type (model)
explode: true
style: form
- in: query
- name: module_type_id
+ name: model__n
schema:
type: array
items:
- type: integer
- description: Module type (ID)
+ type: string
explode: true
style: form
- in: query
- name: module_type_id__n
+ name: model__nic
schema:
type: array
items:
- type: integer
- description: Module type (ID)
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: model__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: model__niew
+ schema:
+ type: array
+ items:
+ type: string
explode: true
style: form
+ - in: query
+ name: model__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- name: offset
required: false
in: query
@@ -41523,12 +42072,7 @@ paths:
schema:
type: string
- in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: serial
+ name: part_number
schema:
type: array
items:
@@ -41536,11 +42080,11 @@ paths:
explode: true
style: form
- in: query
- name: serial__empty
+ name: part_number__empty
schema:
type: boolean
- in: query
- name: serial__ic
+ name: part_number__ic
schema:
type: array
items:
@@ -41548,7 +42092,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__ie
+ name: part_number__ie
schema:
type: array
items:
@@ -41556,7 +42100,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__iew
+ name: part_number__iew
schema:
type: array
items:
@@ -41564,7 +42108,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__isw
+ name: part_number__isw
schema:
type: array
items:
@@ -41572,7 +42116,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__n
+ name: part_number__n
schema:
type: array
items:
@@ -41580,7 +42124,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__nic
+ name: part_number__nic
schema:
type: array
items:
@@ -41588,7 +42132,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__nie
+ name: part_number__nie
schema:
type: array
items:
@@ -41596,7 +42140,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__niew
+ name: part_number__niew
schema:
type: array
items:
@@ -41604,7 +42148,7 @@ paths:
explode: true
style: form
- in: query
- name: serial__nisw
+ name: part_number__nisw
schema:
type: array
items:
@@ -41612,120 +42156,176 @@ paths:
explode: true
style: form
- in: query
- name: status
+ name: pass_through_ports
+ schema:
+ type: boolean
+ description: Has pass-through ports
+ - in: query
+ name: power_outlets
+ schema:
+ type: boolean
+ description: Has power outlets
+ - in: query
+ name: power_ports
+ schema:
+ type: boolean
+ description: Has power ports
+ - in: query
+ name: profile
schema:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ description: Profile (name)
explode: true
style: form
- in: query
- name: status__empty
+ name: profile__n
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ description: Profile (name)
+ explode: true
+ style: form
- in: query
- name: status__ic
+ name: profile_id
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: integer
+ nullable: true
+ description: Profile (ID)
explode: true
style: form
- in: query
- name: status__ie
+ name: profile_id__n
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: integer
+ nullable: true
+ description: Profile (ID)
explode: true
style: form
- in: query
- name: status__iew
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: tag
schema:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: status__isw
+ name: tag__n
schema:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: status__n
+ name: tag_id
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: integer
explode: true
style: form
- in: query
- name: status__nic
+ name: tag_id__n
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: integer
explode: true
style: form
- in: query
- name: status__nie
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: weight
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: number
+ format: double
explode: true
style: form
- in: query
- name: status__niew
+ name: weight__empty
+ schema:
+ type: boolean
+ - in: query
+ name: weight__gt
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: number
+ format: double
explode: true
style: form
- in: query
- name: status__nisw
+ name: weight__gte
schema:
type: array
items:
- type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ type: number
+ format: double
explode: true
style: form
- in: query
- name: tag
+ name: weight__lt
schema:
type: array
items:
- type: string
+ type: number
+ format: double
explode: true
style: form
- in: query
- name: tag__n
+ name: weight__lte
schema:
type: array
items:
- type: string
+ type: number
+ format: double
explode: true
style: form
- in: query
- name: updated_by_request
+ name: weight__n
+ schema:
+ type: array
+ items:
+ type: number
+ format: double
+ explode: true
+ style: form
+ - in: query
+ name: weight_unit
schema:
type: string
- format: uuid
+ x-spec-enum-id: 7c1876f422815884
+ nullable: true
+ enum:
+ - g
+ - kg
+ - lb
+ - oz
+ description: '* `kg` - Kilograms
+
+ * `g` - Grams
+
+ * `lb` - Pounds
+
+ * `oz` - Ounces'
tags:
- dcim
security:
@@ -41736,21 +42336,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedModuleList'
+ $ref: '#/components/schemas/PaginatedModuleTypeList'
description: ''
post:
- operationId: dcim_modules_create
- description: Post a list of module objects.
+ operationId: dcim_module_types_create
+ description: Post a list of module type objects.
tags:
- dcim
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleRequest'
+ $ref: '#/components/schemas/WritableModuleTypeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleRequest'
+ $ref: '#/components/schemas/WritableModuleTypeRequest'
required: true
security:
- cookieAuth: []
@@ -41760,11 +42360,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
put:
- operationId: dcim_modules_bulk_update
- description: Put a list of module objects.
+ operationId: dcim_module_types_bulk_update
+ description: Put a list of module type objects.
tags:
- dcim
requestBody:
@@ -41773,12 +42373,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
required: true
security:
- cookieAuth: []
@@ -41790,11 +42390,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
patch:
- operationId: dcim_modules_bulk_partial_update
- description: Patch a list of module objects.
+ operationId: dcim_module_types_bulk_partial_update
+ description: Patch a list of module type objects.
tags:
- dcim
requestBody:
@@ -41803,12 +42403,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
required: true
security:
- cookieAuth: []
@@ -41820,11 +42420,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
delete:
- operationId: dcim_modules_bulk_destroy
- description: Delete a list of module objects.
+ operationId: dcim_module_types_bulk_destroy
+ description: Delete a list of module type objects.
tags:
- dcim
requestBody:
@@ -41833,12 +42433,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/ModuleRequest'
+ $ref: '#/components/schemas/ModuleTypeRequest'
required: true
security:
- cookieAuth: []
@@ -41846,16 +42446,16 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/modules/{id}/:
+ /api/dcim/module-types/{id}/:
get:
- operationId: dcim_modules_retrieve
- description: Get a module object.
+ operationId: dcim_module_types_retrieve
+ description: Get a module type object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module.
+ description: A unique integer value identifying this module type.
required: true
tags:
- dcim
@@ -41867,17 +42467,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
put:
- operationId: dcim_modules_update
- description: Put a module object.
+ operationId: dcim_module_types_update
+ description: Put a module type object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module.
+ description: A unique integer value identifying this module type.
required: true
tags:
- dcim
@@ -41885,10 +42485,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleRequest'
+ $ref: '#/components/schemas/WritableModuleTypeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleRequest'
+ $ref: '#/components/schemas/WritableModuleTypeRequest'
required: true
security:
- cookieAuth: []
@@ -41898,17 +42498,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
patch:
- operationId: dcim_modules_partial_update
- description: Patch a module object.
+ operationId: dcim_module_types_partial_update
+ description: Patch a module type object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module.
+ description: A unique integer value identifying this module type.
required: true
tags:
- dcim
@@ -41916,10 +42516,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleRequest'
+ $ref: '#/components/schemas/PatchedWritableModuleTypeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleRequest'
+ $ref: '#/components/schemas/PatchedWritableModuleTypeRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -41928,17 +42528,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Module'
+ $ref: '#/components/schemas/ModuleType'
description: ''
delete:
- operationId: dcim_modules_destroy
- description: Delete a module object.
+ operationId: dcim_module_types_destroy
+ description: Delete a module type object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this module.
+ description: A unique integer value identifying this module type.
required: true
tags:
- dcim
@@ -41948,33 +42548,93 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/platforms/:
+ /api/dcim/modules/:
get:
- operationId: dcim_platforms_list
- description: Get a list of platform objects.
+ operationId: dcim_modules_list
+ description: Get a list of module objects.
parameters:
- in: query
- name: available_for_device_type
+ name: asset_tag
schema:
- type: string
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: config_template_id
+ name: asset_tag__empty
+ schema:
+ type: boolean
+ - in: query
+ name: asset_tag__ic
schema:
type: array
items:
- type: integer
- nullable: true
- description: Config template (ID)
+ type: string
explode: true
style: form
- in: query
- name: config_template_id__n
+ name: asset_tag__ie
schema:
type: array
items:
- type: integer
- nullable: true
- description: Config template (ID)
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: asset_tag__nisw
+ schema:
+ type: array
+ items:
+ type: string
explode: true
style: form
- in: query
@@ -42129,6 +42789,44 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: device
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: Device (name)
+ explode: true
+ style: form
+ - in: query
+ name: device__n
+ schema:
+ type: array
+ items:
+ type: string
+ nullable: true
+ description: Device (name)
+ explode: true
+ style: form
+ - in: query
+ name: device_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Device (ID)
+ explode: true
+ style: form
+ - in: query
+ name: device_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Device (ID)
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -42256,6 +42954,42 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: location
+ schema:
+ type: array
+ items:
+ type: string
+ description: Location (slug)
+ explode: true
+ style: form
+ - in: query
+ name: location__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Location (slug)
+ explode: true
+ style: form
+ - in: query
+ name: location_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Location (ID)
+ explode: true
+ style: form
+ - in: query
+ name: location_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Location (ID)
+ explode: true
+ style: form
- in: query
name: manufacturer
schema:
@@ -42298,7 +43032,7 @@ paths:
type: string
format: uuid
- in: query
- name: name
+ name: module_bay_id
schema:
type: array
items:
@@ -42306,11 +43040,148 @@ paths:
explode: true
style: form
- in: query
- name: name__empty
+ name: module_bay_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: module_type
+ schema:
+ type: array
+ items:
+ type: string
+ description: Module type (model)
+ explode: true
+ style: form
+ - in: query
+ name: module_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Module type (model)
+ explode: true
+ style: form
+ - in: query
+ name: module_type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Module type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: module_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Module type (ID)
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: rack
+ schema:
+ type: array
+ items:
+ type: string
+ description: Rack (name)
+ explode: true
+ style: form
+ - in: query
+ name: rack__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Rack (name)
+ explode: true
+ style: form
+ - in: query
+ name: rack_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Rack (ID)
+ explode: true
+ style: form
+ - in: query
+ name: rack_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Rack (ID)
+ explode: true
+ style: form
+ - in: query
+ name: region
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: region__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: region_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: region_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: serial
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: serial__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: serial__ic
schema:
type: array
items:
@@ -42318,7 +43189,7 @@ paths:
explode: true
style: form
- in: query
- name: name__ie
+ name: serial__ie
schema:
type: array
items:
@@ -42326,7 +43197,7 @@ paths:
explode: true
style: form
- in: query
- name: name__iew
+ name: serial__iew
schema:
type: array
items:
@@ -42334,7 +43205,7 @@ paths:
explode: true
style: form
- in: query
- name: name__isw
+ name: serial__isw
schema:
type: array
items:
@@ -42342,7 +43213,7 @@ paths:
explode: true
style: form
- in: query
- name: name__n
+ name: serial__n
schema:
type: array
items:
@@ -42350,7 +43221,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nic
+ name: serial__nic
schema:
type: array
items:
@@ -42358,7 +43229,7 @@ paths:
explode: true
style: form
- in: query
- name: name__nie
+ name: serial__nie
schema:
type: array
items:
@@ -42366,7 +43237,7 @@ paths:
explode: true
style: form
- in: query
- name: name__niew
+ name: serial__niew
schema:
type: array
items:
@@ -42374,32 +43245,41 @@ paths:
explode: true
style: form
- in: query
- name: name__nisw
+ name: serial__nisw
schema:
type: array
items:
type: string
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ - in: query
+ name: site
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: string
+ description: Site name (slug)
+ explode: true
+ style: form
+ - in: query
+ name: site__n
schema:
- type: string
+ type: array
+ items:
+ type: string
+ description: Site name (slug)
+ explode: true
+ style: form
- in: query
- name: q
+ name: site_group
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: slug
+ name: site_group__n
schema:
type: array
items:
@@ -42407,79 +43287,131 @@ paths:
explode: true
style: form
- in: query
- name: slug__empty
+ name: site_group_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: site_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site (ID)
+ explode: true
+ style: form
+ - in: query
+ name: status
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 2217e87d0c3efdda
+ explode: true
+ style: form
+ - in: query
+ name: status__empty
schema:
type: boolean
- in: query
- name: slug__ic
+ name: status__ic
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__ie
+ name: status__ie
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__iew
+ name: status__iew
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__isw
+ name: status__isw
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__n
+ name: status__n
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__nic
+ name: status__nic
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__nie
+ name: status__nie
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__niew
+ name: status__niew
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
- name: slug__nisw
+ name: status__nisw
schema:
type: array
items:
type: string
+ x-spec-enum-id: 2217e87d0c3efdda
explode: true
style: form
- in: query
@@ -42498,6 +43430,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -42513,21 +43461,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedPlatformList'
+ $ref: '#/components/schemas/PaginatedModuleList'
description: ''
post:
- operationId: dcim_platforms_create
- description: Post a list of platform objects.
+ operationId: dcim_modules_create
+ description: Post a list of module objects.
tags:
- dcim
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/WritableModuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/WritableModuleRequest'
required: true
security:
- cookieAuth: []
@@ -42537,11 +43485,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
put:
- operationId: dcim_platforms_bulk_update
- description: Put a list of platform objects.
+ operationId: dcim_modules_bulk_update
+ description: Put a list of module objects.
tags:
- dcim
requestBody:
@@ -42550,12 +43498,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
required: true
security:
- cookieAuth: []
@@ -42567,11 +43515,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
patch:
- operationId: dcim_platforms_bulk_partial_update
- description: Patch a list of platform objects.
+ operationId: dcim_modules_bulk_partial_update
+ description: Patch a list of module objects.
tags:
- dcim
requestBody:
@@ -42580,12 +43528,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
required: true
security:
- cookieAuth: []
@@ -42597,11 +43545,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
delete:
- operationId: dcim_platforms_bulk_destroy
- description: Delete a list of platform objects.
+ operationId: dcim_modules_bulk_destroy
+ description: Delete a list of module objects.
tags:
- dcim
requestBody:
@@ -42610,12 +43558,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/ModuleRequest'
required: true
security:
- cookieAuth: []
@@ -42623,16 +43571,16 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/platforms/{id}/:
+ /api/dcim/modules/{id}/:
get:
- operationId: dcim_platforms_retrieve
- description: Get a platform object.
+ operationId: dcim_modules_retrieve
+ description: Get a module object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this platform.
+ description: A unique integer value identifying this module.
required: true
tags:
- dcim
@@ -42644,17 +43592,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
put:
- operationId: dcim_platforms_update
- description: Put a platform object.
+ operationId: dcim_modules_update
+ description: Put a module object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this platform.
+ description: A unique integer value identifying this module.
required: true
tags:
- dcim
@@ -42662,10 +43610,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/WritableModuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PlatformRequest'
+ $ref: '#/components/schemas/WritableModuleRequest'
required: true
security:
- cookieAuth: []
@@ -42675,17 +43623,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
patch:
- operationId: dcim_platforms_partial_update
- description: Patch a platform object.
+ operationId: dcim_modules_partial_update
+ description: Patch a module object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this platform.
+ description: A unique integer value identifying this module.
required: true
tags:
- dcim
@@ -42693,10 +43641,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedPlatformRequest'
+ $ref: '#/components/schemas/PatchedWritableModuleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedPlatformRequest'
+ $ref: '#/components/schemas/PatchedWritableModuleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -42705,17 +43653,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Platform'
+ $ref: '#/components/schemas/Module'
description: ''
delete:
- operationId: dcim_platforms_destroy
- description: Delete a platform object.
+ operationId: dcim_modules_destroy
+ description: Delete a module object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this platform.
+ description: A unique integer value identifying this module.
required: true
tags:
- dcim
@@ -42725,167 +43673,35 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/power-feeds/:
+ /api/dcim/platforms/:
get:
- operationId: dcim_power_feeds_list
- description: Get a list of power feed objects.
+ operationId: dcim_platforms_list
+ description: Get a list of platform objects.
parameters:
- in: query
- name: amperage
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: amperage__empty
- schema:
- type: boolean
- - in: query
- name: amperage__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: amperage__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: amperage__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: amperage__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: amperage__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power__empty
- schema:
- type: boolean
- - in: query
- name: available_power__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: available_power__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: cable_end
+ name: available_for_device_type
schema:
type: string
- x-spec-enum-id: 1db84f9b93b261c8
- nullable: true
- enum:
- - A
- - B
- description: '* `A` - A
-
- * `B` - B'
- in: query
- name: cable_id
+ name: config_template_id
schema:
type: array
items:
type: integer
nullable: true
- description: Cable (ID)
+ description: Config template (ID)
explode: true
style: form
- in: query
- name: cable_id__n
+ name: config_template_id__n
schema:
type: array
items:
type: integer
nullable: true
- description: Cable (ID)
+ description: Config template (ID)
explode: true
style: form
- - in: query
- name: cabled
- schema:
- type: boolean
- - in: query
- name: connected
- schema:
- type: boolean
- in: query
name: created
schema:
@@ -43166,65 +43982,39 @@ paths:
schema:
type: integer
- in: query
- name: mark_connected
- schema:
- type: boolean
- - in: query
- name: max_utilization
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: max_utilization__empty
- schema:
- type: boolean
- - in: query
- name: max_utilization__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: max_utilization__gte
+ name: manufacturer
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: Manufacturer (slug)
explode: true
style: form
- in: query
- name: max_utilization__lt
+ name: manufacturer__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ description: Manufacturer (slug)
explode: true
style: form
- in: query
- name: max_utilization__lte
+ name: manufacturer_id
schema:
type: array
items:
type: integer
- format: int32
+ description: Manufacturer (ID)
explode: true
style: form
- in: query
- name: max_utilization__n
+ name: manufacturer_id__n
schema:
type: array
items:
type: integer
- format: int32
+ description: Manufacturer (ID)
explode: true
style: form
- in: query
@@ -43316,10 +44106,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: occupied
- schema:
- type: boolean
- name: offset
required: false
in: query
@@ -43332,263 +44118,95 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
- - in: query
- name: phase
- schema:
- type: string
- x-spec-enum-id: 994bc0696f4df57f
- enum:
- - single-phase
- - three-phase
- description: '* `single-phase` - Single phase
-
- * `three-phase` - Three-phase'
- - in: query
- name: power_panel_id
- schema:
- type: array
- items:
- type: integer
- description: Power panel (ID)
- explode: true
- style: form
- - in: query
- name: power_panel_id__n
- schema:
- type: array
- items:
- type: integer
- description: Power panel (ID)
- explode: true
- style: form
- in: query
name: q
schema:
type: string
description: Search
- in: query
- name: rack_id
- schema:
- type: array
- items:
- type: integer
- description: Rack (ID)
- explode: true
- style: form
- - in: query
- name: rack_id__n
- schema:
- type: array
- items:
- type: integer
- description: Rack (ID)
- explode: true
- style: form
- - in: query
- name: region
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: region__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: region_id
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: region_id__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: site
- schema:
- type: array
- items:
- type: string
- description: Site name (slug)
- explode: true
- style: form
- - in: query
- name: site__n
- schema:
- type: array
- items:
- type: string
- description: Site name (slug)
- explode: true
- style: form
- - in: query
- name: site_group
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: site_group__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: site_group_id
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: site_group_id__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: site_id
- schema:
- type: array
- items:
- type: integer
- description: Site (ID)
- explode: true
- style: form
- - in: query
- name: site_id__n
- schema:
- type: array
- items:
- type: integer
- description: Site (ID)
- explode: true
- style: form
- - in: query
- name: status
+ name: slug
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__empty
+ name: slug__empty
schema:
type: boolean
- in: query
- name: status__ic
+ name: slug__ic
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__ie
+ name: slug__ie
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__iew
+ name: slug__iew
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__isw
+ name: slug__isw
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__n
+ name: slug__n
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__nic
+ name: slug__nic
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__nie
+ name: slug__nie
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__niew
+ name: slug__niew
schema:
type: array
items:
type: string
- x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: status__nisw
+ name: slug__nisw
schema:
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
- enum:
- - ac
- - dc
- description: '* `ac` - AC
-
- * `dc` - DC'
- in: query
name: tag
schema:
@@ -43606,149 +44224,26 @@ paths:
explode: true
style: form
- in: query
- name: tenant
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant__n
- schema:
- type: array
- items:
- type: string
- description: Tenant (slug)
- explode: true
- style: form
- - in: query
- name: tenant_group
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tenant_group__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tenant_group_id
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tenant_group_id__n
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: tenant_id
+ name: tag_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Tenant (ID)
explode: true
style: form
- in: query
- name: tenant_id__n
+ name: tag_id__n
schema:
type: array
items:
type: integer
- nullable: true
- description: Tenant (ID)
explode: true
style: form
- - in: query
- name: type
- schema:
- type: string
- x-spec-enum-id: 093a164236819eb8
- enum:
- - primary
- - redundant
- description: '* `primary` - Primary
-
- * `redundant` - Redundant'
- in: query
name: updated_by_request
schema:
type: string
format: uuid
- - in: query
- name: voltage
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: voltage__empty
- schema:
- type: boolean
- - in: query
- name: voltage__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: voltage__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: voltage__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: voltage__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: voltage__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
tags:
- dcim
security:
@@ -43759,21 +44254,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedPowerFeedList'
+ $ref: '#/components/schemas/PaginatedPlatformList'
description: ''
post:
- operationId: dcim_power_feeds_create
- description: Post a list of power feed objects.
+ operationId: dcim_platforms_create
+ description: Post a list of platform objects.
tags:
- dcim
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -43783,11 +44278,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
put:
- operationId: dcim_power_feeds_bulk_update
- description: Put a list of power feed objects.
+ operationId: dcim_platforms_bulk_update
+ description: Put a list of platform objects.
tags:
- dcim
requestBody:
@@ -43796,12 +44291,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -43813,11 +44308,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
patch:
- operationId: dcim_power_feeds_bulk_partial_update
- description: Patch a list of power feed objects.
+ operationId: dcim_platforms_bulk_partial_update
+ description: Patch a list of platform objects.
tags:
- dcim
requestBody:
@@ -43826,12 +44321,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -43843,11 +44338,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
delete:
- operationId: dcim_power_feeds_bulk_destroy
- description: Delete a list of power feed objects.
+ operationId: dcim_platforms_bulk_destroy
+ description: Delete a list of platform objects.
tags:
- dcim
requestBody:
@@ -43856,12 +44351,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -43869,16 +44364,16 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/power-feeds/{id}/:
+ /api/dcim/platforms/{id}/:
get:
- operationId: dcim_power_feeds_retrieve
- description: Get a power feed object.
+ operationId: dcim_platforms_retrieve
+ description: Get a platform object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power feed.
+ description: A unique integer value identifying this platform.
required: true
tags:
- dcim
@@ -43890,17 +44385,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
put:
- operationId: dcim_power_feeds_update
- description: Put a power feed object.
+ operationId: dcim_platforms_update
+ description: Put a platform object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power feed.
+ description: A unique integer value identifying this platform.
required: true
tags:
- dcim
@@ -43908,10 +44403,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerFeedRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -43921,17 +44416,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
patch:
- operationId: dcim_power_feeds_partial_update
- description: Patch a power feed object.
+ operationId: dcim_platforms_partial_update
+ description: Patch a platform object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power feed.
+ description: A unique integer value identifying this platform.
required: true
tags:
- dcim
@@ -43939,10 +44434,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerFeedRequest'
+ $ref: '#/components/schemas/PatchedPlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerFeedRequest'
+ $ref: '#/components/schemas/PatchedPlatformRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -43951,17 +44446,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerFeed'
+ $ref: '#/components/schemas/Platform'
description: ''
delete:
- operationId: dcim_power_feeds_destroy
- description: Delete a power feed object.
+ operationId: dcim_platforms_destroy
+ description: Delete a platform object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power feed.
+ description: A unique integer value identifying this platform.
required: true
tags:
- dcim
@@ -43971,35 +44466,167 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/power-feeds/{id}/trace/:
+ /api/dcim/power-feeds/:
get:
- operationId: dcim_power_feeds_trace_retrieve
- description: Trace a complete cable path and return each segment as a three-tuple
- of (termination, cable, termination).
+ operationId: dcim_power_feeds_list
+ description: Get a list of power feed objects.
parameters:
- - in: path
- name: id
+ - in: query
+ name: amperage
schema:
- type: integer
- description: A unique integer value identifying this power feed.
- required: true
- tags:
- - dcim
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PowerFeed'
- description: ''
- /api/dcim/power-outlet-templates/:
- get:
- operationId: dcim_power_outlet_templates_list
- description: Get a list of power outlet template objects.
- parameters:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: amperage__empty
+ schema:
+ type: boolean
+ - in: query
+ name: amperage__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: amperage__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: amperage__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: amperage__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: amperage__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__empty
+ schema:
+ type: boolean
+ - in: query
+ name: available_power__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: cable_end
+ schema:
+ type: string
+ x-spec-enum-id: 1db84f9b93b261c8
+ nullable: true
+ enum:
+ - A
+ - B
+ description: '* `A` - A
+
+ * `B` - B'
+ - in: query
+ name: cable_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cable_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cabled
+ schema:
+ type: boolean
+ - in: query
+ name: connected
+ schema:
+ type: boolean
- in: query
name: created
schema:
@@ -44153,141 +44780,138 @@ paths:
explode: true
style: form
- in: query
- name: device_type_id
+ name: id
schema:
type: array
items:
type: integer
- nullable: true
- description: Device type (ID)
+ format: int32
explode: true
style: form
- in: query
- name: device_type_id__n
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
schema:
type: array
items:
type: integer
- nullable: true
- description: Device type (ID)
+ format: int32
explode: true
style: form
- in: query
- name: feed_leg
+ name: id__gte
schema:
type: array
items:
- type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: feed_leg__empty
+ name: id__lt
schema:
- type: boolean
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: feed_leg__ic
+ name: id__lte
schema:
type: array
items:
- type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: feed_leg__ie
+ name: id__n
schema:
type: array
items:
- type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: feed_leg__iew
+ name: last_updated
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__isw
+ name: last_updated__empty
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__n
+ name: last_updated__gt
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__nic
+ name: last_updated__gte
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__nie
+ name: last_updated__lt
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__niew
+ name: last_updated__lte
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
- in: query
- name: feed_leg__nisw
+ name: last_updated__n
schema:
type: array
items:
type: string
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
- description: Phase (for three-phase feeds)
+ format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: id
+ name: mark_connected
+ schema:
+ type: boolean
+ - in: query
+ name: max_utilization
schema:
type: array
items:
@@ -44296,11 +44920,11 @@ paths:
explode: true
style: form
- in: query
- name: id__empty
+ name: max_utilization__empty
schema:
type: boolean
- in: query
- name: id__gt
+ name: max_utilization__gt
schema:
type: array
items:
@@ -44309,7 +44933,7 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ name: max_utilization__gte
schema:
type: array
items:
@@ -44318,7 +44942,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lt
+ name: max_utilization__lt
schema:
type: array
items:
@@ -44327,7 +44951,7 @@ paths:
explode: true
style: form
- in: query
- name: id__lte
+ name: max_utilization__lte
schema:
type: array
items:
@@ -44336,7 +44960,7 @@ paths:
explode: true
style: form
- in: query
- name: id__n
+ name: max_utilization__n
schema:
type: array
items:
@@ -44345,7 +44969,12 @@ paths:
explode: true
style: form
- in: query
- name: label
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
schema:
type: array
items:
@@ -44353,11 +44982,11 @@ paths:
explode: true
style: form
- in: query
- name: label__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: label__ic
+ name: name__ic
schema:
type: array
items:
@@ -44365,7 +44994,7 @@ paths:
explode: true
style: form
- in: query
- name: label__ie
+ name: name__ie
schema:
type: array
items:
@@ -44373,7 +45002,7 @@ paths:
explode: true
style: form
- in: query
- name: label__iew
+ name: name__iew
schema:
type: array
items:
@@ -44381,7 +45010,7 @@ paths:
explode: true
style: form
- in: query
- name: label__isw
+ name: name__isw
schema:
type: array
items:
@@ -44389,7 +45018,7 @@ paths:
explode: true
style: form
- in: query
- name: label__n
+ name: name__n
schema:
type: array
items:
@@ -44397,7 +45026,7 @@ paths:
explode: true
style: form
- in: query
- name: label__nic
+ name: name__nic
schema:
type: array
items:
@@ -44405,7 +45034,7 @@ paths:
explode: true
style: form
- in: query
- name: label__nie
+ name: name__nie
schema:
type: array
items:
@@ -44413,7 +45042,7 @@ paths:
explode: true
style: form
- in: query
- name: label__niew
+ name: name__niew
schema:
type: array
items:
@@ -44421,7 +45050,7 @@ paths:
explode: true
style: form
- in: query
- name: label__nisw
+ name: name__nisw
schema:
type: array
items:
@@ -44429,309 +45058,454 @@ paths:
explode: true
style: form
- in: query
- name: last_updated
+ name: occupied
+ schema:
+ type: boolean
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: phase
+ schema:
+ type: string
+ x-spec-enum-id: 994bc0696f4df57f
+ enum:
+ - single-phase
+ - three-phase
+ description: '* `single-phase` - Single phase
+
+ * `three-phase` - Three-phase'
+ - in: query
+ name: power_panel_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Power panel (ID)
+ explode: true
+ style: form
+ - in: query
+ name: power_panel_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Power panel (ID)
+ explode: true
+ style: form
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: rack_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Rack (ID)
+ explode: true
+ style: form
+ - in: query
+ name: rack_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Rack (ID)
+ explode: true
+ style: form
+ - in: query
+ name: region
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__empty
+ name: region__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gt
+ name: region_id
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gte
+ name: region_id__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lt
+ name: site
schema:
type: array
items:
type: string
- format: date-time
+ description: Site name (slug)
explode: true
style: form
- in: query
- name: last_updated__lte
+ name: site__n
schema:
type: array
items:
type: string
- format: date-time
+ description: Site name (slug)
explode: true
style: form
- in: query
- name: last_updated__n
+ name: site_group
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ - in: query
+ name: site_group__n
schema:
- type: integer
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: modified_by_request
+ name: site_group_id
schema:
- type: string
- format: uuid
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: module_type_id
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Module type (ID)
+ description: Site (ID)
explode: true
style: form
- in: query
- name: module_type_id__n
+ name: site_id__n
schema:
type: array
items:
type: integer
- nullable: true
- description: Module type (ID)
+ description: Site (ID)
explode: true
style: form
- in: query
- name: name
+ name: status
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__empty
+ name: status__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: status__ic
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__ie
+ name: status__ie
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__iew
+ name: status__iew
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__isw
+ name: status__isw
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__n
+ name: status__n
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__nic
+ name: status__nic
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__nie
+ name: status__nie
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__niew
+ name: status__niew
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- in: query
- name: name__nisw
+ name: status__nisw
schema:
type: array
items:
type: string
+ x-spec-enum-id: b77fc919138c12f6
explode: true
style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ - in: query
+ name: supply
schema:
type: string
+ x-spec-enum-id: 1b6d99616ca6412b
+ enum:
+ - ac
+ - dc
+ description: '* `ac` - AC
+
+ * `dc` - DC'
- in: query
- name: power_port_id
+ 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: tag_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Power port (ID)
explode: true
style: form
- in: query
- name: power_port_id__n
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tenant
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id
schema:
type: array
items:
type: integer
nullable: true
- description: Power port (ID)
+ description: Tenant (ID)
explode: true
style: form
- in: query
- name: q
+ name: tenant_id__n
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
- in: query
name: type
schema:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
+ x-spec-enum-id: 093a164236819eb8
enum:
- - California Style
- - DC
- - IEC 60309
- - IEC 60320
- - IEC 60906-1
- - ITA/International
- - Molex
- - NEMA (Locking)
- - NEMA (Non-locking)
- - Other
- - Proprietary
- - USB
- description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'',
- ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'',
- ''C19''), (''iec-60320-c21'', ''C21'')]
-
- * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'',
- ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'',
- ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'',
- ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'',
- ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'',
- ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'',
- ''3P+N+E 9H'')]
-
- * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'',
- ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')]
-
- * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'',
- ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA
- 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''),
- (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'',
- ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA
- 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA
- 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA
- 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA
- 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA
- 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')]
-
- * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'',
- ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'',
- ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'',
- ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'',
- ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'',
- ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'',
- ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'',
- ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'',
- ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'',
- ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'',
- ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'',
- ''NEMA L22-30R'')]
-
- * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''),
- (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''),
- (''CS8464C'', ''CS8464C'')]
-
- * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'',
- ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'',
- ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''),
- (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'',
- ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA
- Type O''), (''ita-multistandard'', ''ITA Multistandard'')]
-
- * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''),
- (''usb-c'', ''USB Type C'')]
-
- * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'',
- ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')]
-
- * `DC` - [(''dc-terminal'', ''DC Terminal'')]
-
- * `Proprietary` - [(''eaton-c39'', ''Eaton C39''), (''hdot-cx'', ''HDOT
- Cx''), (''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20a'', ''Neutrik
- powerCON (20A)''), (''neutrik-powercon-32a'', ''Neutrik powerCON (32A)''),
- (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'',
- ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')]
+ - primary
+ - redundant
+ description: '* `primary` - Primary
- * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]'
+ * `redundant` - Redundant'
- in: query
name: updated_by_request
schema:
type: string
format: uuid
+ - in: query
+ name: voltage
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: voltage__empty
+ schema:
+ type: boolean
+ - in: query
+ name: voltage__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: voltage__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: voltage__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: voltage__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: voltage__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
tags:
- dcim
security:
@@ -44742,21 +45516,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedPowerOutletTemplateList'
+ $ref: '#/components/schemas/PaginatedPowerFeedList'
description: ''
post:
- operationId: dcim_power_outlet_templates_create
- description: Post a list of power outlet template objects.
+ operationId: dcim_power_feeds_create
+ description: Post a list of power feed objects.
tags:
- dcim
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/WritablePowerFeedRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/WritablePowerFeedRequest'
required: true
security:
- cookieAuth: []
@@ -44766,11 +45540,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
put:
- operationId: dcim_power_outlet_templates_bulk_update
- description: Put a list of power outlet template objects.
+ operationId: dcim_power_feeds_bulk_update
+ description: Put a list of power feed objects.
tags:
- dcim
requestBody:
@@ -44779,12 +45553,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
required: true
security:
- cookieAuth: []
@@ -44796,11 +45570,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
patch:
- operationId: dcim_power_outlet_templates_bulk_partial_update
- description: Patch a list of power outlet template objects.
+ operationId: dcim_power_feeds_bulk_partial_update
+ description: Patch a list of power feed objects.
tags:
- dcim
requestBody:
@@ -44809,12 +45583,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
required: true
security:
- cookieAuth: []
@@ -44826,11 +45600,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
delete:
- operationId: dcim_power_outlet_templates_bulk_destroy
- description: Delete a list of power outlet template objects.
+ operationId: dcim_power_feeds_bulk_destroy
+ description: Delete a list of power feed objects.
tags:
- dcim
requestBody:
@@ -44839,12 +45613,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PowerFeedRequest'
required: true
security:
- cookieAuth: []
@@ -44852,16 +45626,16 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/power-outlet-templates/{id}/:
+ /api/dcim/power-feeds/{id}/:
get:
- operationId: dcim_power_outlet_templates_retrieve
- description: Get a power outlet template object.
+ operationId: dcim_power_feeds_retrieve
+ description: Get a power feed object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power outlet template.
+ description: A unique integer value identifying this power feed.
required: true
tags:
- dcim
@@ -44873,17 +45647,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
put:
- operationId: dcim_power_outlet_templates_update
- description: Put a power outlet template object.
+ operationId: dcim_power_feeds_update
+ description: Put a power feed object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power outlet template.
+ description: A unique integer value identifying this power feed.
required: true
tags:
- dcim
@@ -44891,10 +45665,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/WritablePowerFeedRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/WritablePowerFeedRequest'
required: true
security:
- cookieAuth: []
@@ -44904,17 +45678,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
patch:
- operationId: dcim_power_outlet_templates_partial_update
- description: Patch a power outlet template object.
+ operationId: dcim_power_feeds_partial_update
+ description: Patch a power feed object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power outlet template.
+ description: A unique integer value identifying this power feed.
required: true
tags:
- dcim
@@ -44922,10 +45696,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PatchedWritablePowerFeedRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest'
+ $ref: '#/components/schemas/PatchedWritablePowerFeedRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -44934,17 +45708,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PowerOutletTemplate'
+ $ref: '#/components/schemas/PowerFeed'
description: ''
delete:
- operationId: dcim_power_outlet_templates_destroy
- description: Delete a power outlet template object.
+ operationId: dcim_power_feeds_destroy
+ description: Delete a power feed object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this power outlet template.
+ description: A unique integer value identifying this power feed.
required: true
tags:
- dcim
@@ -44954,93 +45728,105 @@ paths:
responses:
'204':
description: No response body
- /api/dcim/power-outlets/:
+ /api/dcim/power-feeds/{id}/trace/:
get:
- operationId: dcim_power_outlets_list
- description: Get a list of power outlet objects.
+ operationId: dcim_power_feeds_trace_retrieve
+ description: Trace a complete cable path and return each segment as a three-tuple
+ of (termination, cable, termination).
parameters:
- - in: query
- name: cable_end
+ - in: path
+ name: id
schema:
- type: string
- x-spec-enum-id: 1db84f9b93b261c8
- nullable: true
- enum:
- - A
- - B
- description: '* `A` - A
-
- * `B` - B'
+ type: integer
+ description: A unique integer value identifying this power feed.
+ required: true
+ tags:
+ - dcim
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PowerFeed'
+ description: ''
+ /api/dcim/power-outlet-templates/:
+ get:
+ operationId: dcim_power_outlet_templates_list
+ description: Get a list of power outlet template objects.
+ parameters:
- in: query
- name: cable_id
+ name: created
schema:
type: array
items:
- type: integer
- nullable: true
- description: Cable (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: cable_id__n
+ name: created__empty
schema:
type: array
items:
- type: integer
- nullable: true
- description: Cable (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: cabled
- schema:
- type: boolean
- - in: query
- name: color
+ name: created__gt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: color__empty
- schema:
- type: boolean
- - in: query
- name: color__ic
+ name: created__gte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: color__ie
+ name: created__lt
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: color__iew
+ name: created__lte
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: color__isw
+ name: created__n
schema:
type: array
items:
type: string
+ format: date-time
explode: true
style: form
- in: query
- name: color__n
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: description
schema:
type: array
items:
@@ -45048,7 +45834,11 @@ paths:
explode: true
style: form
- in: query
- name: color__nic
+ name: description__empty
+ schema:
+ type: boolean
+ - in: query
+ name: description__ic
schema:
type: array
items:
@@ -45056,7 +45846,7 @@ paths:
explode: true
style: form
- in: query
- name: color__nie
+ name: description__ie
schema:
type: array
items:
@@ -45064,7 +45854,7 @@ paths:
explode: true
style: form
- in: query
- name: color__niew
+ name: description__iew
schema:
type: array
items:
@@ -45072,7 +45862,7 @@ paths:
explode: true
style: form
- in: query
- name: color__nisw
+ name: description__isw
schema:
type: array
items:
@@ -45080,175 +45870,1142 @@ paths:
explode: true
style: form
- in: query
- name: connected
- schema:
- type: boolean
- - 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: device_type_id
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ nullable: true
+ description: Device type (ID)
explode: true
style: form
- in: query
- name: created__n
+ name: device_type_id__n
schema:
type: array
items:
- type: string
- format: date-time
+ type: integer
+ nullable: true
+ description: Device type (ID)
explode: true
style: form
- in: query
- name: created_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: description
+ name: feed_leg
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__empty
+ name: feed_leg__empty
schema:
type: boolean
- in: query
- name: description__ic
+ name: feed_leg__ic
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__ie
+ name: feed_leg__ie
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__iew
+ name: feed_leg__iew
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__isw
+ name: feed_leg__isw
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__n
+ name: feed_leg__n
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__nic
+ name: feed_leg__nic
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__nie
+ name: feed_leg__nie
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__niew
+ name: feed_leg__niew
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: description__nisw
+ name: feed_leg__nisw
schema:
type: array
items:
type: string
+ x-spec-enum-id: a4902339df0b7c06
+ nullable: true
+ description: Phase (for three-phase feeds)
explode: true
style: form
- in: query
- name: device
+ name: id
schema:
type: array
items:
- type: string
- nullable: true
- description: Device (name)
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: device__n
+ name: id__empty
schema:
- type: array
+ 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: label
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__empty
+ schema:
+ type: boolean
+ - in: query
+ name: label__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: label__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: module_type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Module type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: module_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Module type (ID)
+ explode: true
+ style: form
+ - in: query
+ name: name
+ schema:
+ 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: power_port_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Power port (ID)
+ explode: true
+ style: form
+ - in: query
+ name: power_port_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Power port (ID)
+ explode: true
+ style: form
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: type
+ schema:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ enum:
+ - California Style
+ - DC
+ - IEC 60309
+ - IEC 60320
+ - IEC 60906-1
+ - ITA/International
+ - Molex
+ - NEMA (Locking)
+ - NEMA (Non-locking)
+ - Other
+ - Proprietary
+ - USB
+ description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'',
+ ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'',
+ ''C19''), (''iec-60320-c21'', ''C21'')]
+
+ * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'',
+ ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'',
+ ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'',
+ ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'',
+ ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'',
+ ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'',
+ ''3P+N+E 9H'')]
+
+ * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'',
+ ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')]
+
+ * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'',
+ ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA
+ 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''),
+ (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'',
+ ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA
+ 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA
+ 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA
+ 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA
+ 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA
+ 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')]
+
+ * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'',
+ ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'',
+ ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'',
+ ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'',
+ ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'',
+ ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'',
+ ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'',
+ ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'',
+ ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'',
+ ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'',
+ ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'',
+ ''NEMA L22-30R'')]
+
+ * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''),
+ (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''),
+ (''CS8464C'', ''CS8464C'')]
+
+ * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'',
+ ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'',
+ ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''),
+ (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'',
+ ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA
+ Type O''), (''ita-multistandard'', ''ITA Multistandard'')]
+
+ * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''),
+ (''usb-c'', ''USB Type C'')]
+
+ * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'',
+ ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')]
+
+ * `DC` - [(''dc-terminal'', ''DC Terminal'')]
+
+ * `Proprietary` - [(''eaton-c39'', ''Eaton C39''), (''hdot-cx'', ''HDOT
+ Cx''), (''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20a'', ''Neutrik
+ powerCON (20A)''), (''neutrik-powercon-32a'', ''Neutrik powerCON (32A)''),
+ (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'',
+ ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')]
+
+ * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]'
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - dcim
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedPowerOutletTemplateList'
+ description: ''
+ post:
+ operationId: dcim_power_outlet_templates_create
+ description: Post a list of power outlet template objects.
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ put:
+ operationId: dcim_power_outlet_templates_bulk_update
+ description: Put a list of power outlet template objects.
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ patch:
+ operationId: dcim_power_outlet_templates_bulk_partial_update
+ description: Patch a list of power outlet template objects.
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ delete:
+ operationId: dcim_power_outlet_templates_bulk_destroy
+ description: Delete a list of power outlet template objects.
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PowerOutletTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/dcim/power-outlet-templates/{id}/:
+ get:
+ operationId: dcim_power_outlet_templates_retrieve
+ description: Get a power outlet template object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this power outlet template.
+ required: true
+ tags:
+ - dcim
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ put:
+ operationId: dcim_power_outlet_templates_update
+ description: Put a power outlet template object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this power outlet template.
+ required: true
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritablePowerOutletTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ patch:
+ operationId: dcim_power_outlet_templates_partial_update
+ description: Patch a power outlet template object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this power outlet template.
+ required: true
+ tags:
+ - dcim
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ description: ''
+ delete:
+ operationId: dcim_power_outlet_templates_destroy
+ description: Delete a power outlet template object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this power outlet template.
+ required: true
+ tags:
+ - dcim
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/dcim/power-outlets/:
+ get:
+ operationId: dcim_power_outlets_list
+ description: Get a list of power outlet objects.
+ parameters:
+ - in: query
+ name: cable_end
+ schema:
+ type: string
+ x-spec-enum-id: 1db84f9b93b261c8
+ nullable: true
+ enum:
+ - A
+ - B
+ description: '* `A` - A
+
+ * `B` - B'
+ - in: query
+ name: cable_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cable_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
+ - in: query
+ name: cabled
+ schema:
+ type: boolean
+ - in: query
+ name: color
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__empty
+ schema:
+ type: boolean
+ - in: query
+ name: color__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: color__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: connected
+ schema:
+ type: boolean
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: 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 (name)
+ explode: true
+ style: form
+ - in: query
+ name: device__n
+ schema:
+ type: array
items:
type: string
nullable: true
@@ -46091,151 +47848,261 @@ paths:
explode: true
style: form
- in: query
- name: tag
+ name: status
schema:
type: array
items:
type: string
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: tag__n
+ name: status__empty
+ schema:
+ type: boolean
+ - in: query
+ name: status__ic
schema:
type: array
items:
type: string
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type
+ name: status__ie
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__empty
- schema:
- type: boolean
- - in: query
- name: type__ic
+ name: status__iew
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__ie
+ name: status__isw
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__iew
+ name: status__n
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__isw
+ name: status__nic
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__n
+ name: status__nie
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__nic
+ name: status__niew
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__nie
+ name: status__nisw
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
+ x-spec-enum-id: 1024f7deaed962d7
explode: true
style: form
- in: query
- name: type__niew
+ name: tag
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
explode: true
style: form
- in: query
- name: type__nisw
+ name: tag__n
schema:
type: array
items:
type: string
- x-spec-enum-id: f8c08053f2db8830
- nullable: true
- description: Physical port type
explode: true
style: form
- in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: virtual_chassis
+ name: tag_id
schema:
type: array
items:
- type: string
- description: Virtual Chassis
+ type: integer
explode: true
style: form
- in: query
- name: virtual_chassis__n
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: type
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__empty
+ schema:
+ type: boolean
+ - in: query
+ name: type__ic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__ie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__iew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__isw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__nic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__nie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__niew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: type__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: f8c08053f2db8830
+ nullable: true
+ description: Physical port type
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: virtual_chassis
+ schema:
+ type: array
+ items:
+ type: string
+ description: Virtual Chassis
+ explode: true
+ style: form
+ - in: query
+ name: virtual_chassis__n
schema:
type: array
items:
@@ -47081,6 +48948,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -49302,6 +51185,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
@@ -50175,6 +52074,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -51086,6 +53001,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -52006,6 +53937,64 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: outer_height
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__empty
+ schema:
+ type: boolean
+ - in: query
+ name: outer_height__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: outer_unit
schema:
@@ -52239,6 +54228,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: u_height
schema:
@@ -53667,6 +55672,64 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: outer_height
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__empty
+ schema:
+ type: boolean
+ - in: query
+ name: outer_height__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: outer_height__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: outer_unit
schema:
@@ -54170,6 +56233,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -55462,7 +57541,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55475,7 +57554,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55484,7 +57563,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55493,7 +57572,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55502,7 +57581,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55511,7 +57590,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55520,7 +57599,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55529,7 +57608,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55538,7 +57617,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -55547,7 +57626,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56849,13 +58928,29 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: type
schema:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56868,7 +58963,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56877,7 +58972,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56886,7 +58981,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56895,7 +58990,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56904,7 +58999,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56913,7 +59008,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56922,7 +59017,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56931,7 +59026,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -56940,7 +59035,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
explode: true
style: form
- in: query
@@ -57841,6 +59936,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -58680,6 +60791,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -59849,6 +61976,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -60914,6 +63057,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -61679,6 +63838,24 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: primary_ip4
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip4__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip4_id
schema:
@@ -61697,6 +63874,24 @@ paths:
description: Primary IPv4 (ID)
explode: true
style: form
+ - in: query
+ name: primary_ip6
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip6__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip6_id
schema:
@@ -61830,6 +64025,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -63851,6 +66062,10 @@ paths:
operationId: extras_config_templates_list
description: Get a list of config template objects.
parameters:
+ - in: query
+ name: as_attachment
+ schema:
+ type: boolean
- in: query
name: auto_sync_enabled
schema:
@@ -64105,6 +66320,174 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: file_extension
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__empty
+ schema:
+ type: boolean
+ - in: query
+ name: file_extension__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: file_name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -64232,6 +66615,90 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: mime_type
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__empty
+ schema:
+ type: boolean
+ - in: query
+ name: mime_type__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -64354,6 +66821,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -68298,6 +70781,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -68873,146 +71372,19 @@ paths:
explode: true
style: form
- in: query
- name: id
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: id__empty
- schema:
- type: boolean
- - in: query
- name: id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: id__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: last_updated
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: last_updated__empty
+ name: file_name
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gt
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: last_updated__gte
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: last_updated__lt
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: last_updated__lte
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: last_updated__n
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- - in: query
- name: mime_type
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: mime_type__empty
+ name: file_name__empty
schema:
type: boolean
- in: query
- name: mime_type__ic
+ name: file_name__ic
schema:
type: array
items:
@@ -69020,7 +71392,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__ie
+ name: file_name__ie
schema:
type: array
items:
@@ -69028,7 +71400,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__iew
+ name: file_name__iew
schema:
type: array
items:
@@ -69036,7 +71408,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__isw
+ name: file_name__isw
schema:
type: array
items:
@@ -69044,7 +71416,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__n
+ name: file_name__n
schema:
type: array
items:
@@ -69052,7 +71424,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__nic
+ name: file_name__nic
schema:
type: array
items:
@@ -69060,7 +71432,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__nie
+ name: file_name__nie
schema:
type: array
items:
@@ -69068,7 +71440,7 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__niew
+ name: file_name__niew
schema:
type: array
items:
@@ -69076,508 +71448,719 @@ paths:
explode: true
style: form
- in: query
- name: mime_type__nisw
+ name: file_name__nisw
schema:
type: array
items:
type: string
explode: true
style: form
- - in: query
- name: modified_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: name
- schema:
- 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_type
- schema:
- type: string
- - in: query
- name: object_type__ic
- schema:
- type: string
- - in: query
- name: object_type__ie
- schema:
- type: string
- - in: query
- name: object_type__iew
- schema:
- type: string
- - in: query
- name: object_type__isw
- schema:
- type: string
- - in: query
- name: object_type__n
- schema:
- type: string
- - in: query
- name: object_type__nic
- schema:
- type: string
- - in: query
- name: object_type__nie
- schema:
- type: string
- - in: query
- name: object_type__niew
- schema:
- type: string
- - in: query
- name: object_type__nisw
- schema:
- type: string
- - in: query
- name: object_type_id
- schema:
- type: array
- items:
- type: integer
- explode: true
- style: form
- - in: query
- name: object_type_id__n
- schema:
- type: array
- items:
- type: integer
- explode: true
- style: form
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- - in: query
- name: q
- schema:
- type: string
- description: Search
- - in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedExportTemplateList'
- description: ''
- post:
- operationId: extras_export_templates_create
- description: Post a list of export template objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- put:
- operationId: extras_export_templates_bulk_update
- description: Put a list of export template objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- patch:
- operationId: extras_export_templates_bulk_partial_update
- description: Patch a list of export template objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- delete:
- operationId: extras_export_templates_bulk_destroy
- description: Delete a list of export template objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/export-templates/{id}/:
- get:
- 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 export template.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- put:
- 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 export template.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- patch:
- 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 export template.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PatchedExportTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/PatchedExportTemplateRequest'
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- delete:
- 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 export template.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/export-templates/{id}/sync/:
- post:
- operationId: extras_export_templates_sync_create
- description: Provide a /sync API endpoint to synchronize an object's data from
- its associated DataFile (if any).
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this export template.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/ExportTemplateRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExportTemplate'
- description: ''
- /api/extras/image-attachments/:
- get:
- operationId: extras_image_attachments_list
- description: Get a list of image attachment objects.
- parameters:
- - in: query
- name: created
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__empty
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__gt
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__gte
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__lt
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__lte
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created__n
- schema:
- type: array
- items:
- type: string
- format: date-time
- explode: true
- style: form
- - in: query
- name: created_by_request
- schema:
- type: string
- format: uuid
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: mime_type
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__empty
+ schema:
+ type: boolean
+ - in: query
+ name: mime_type__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: name
+ schema:
+ 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_type
+ schema:
+ type: string
+ - in: query
+ name: object_type__ic
+ schema:
+ type: string
+ - in: query
+ name: object_type__ie
+ schema:
+ type: string
+ - in: query
+ name: object_type__iew
+ schema:
+ type: string
+ - in: query
+ name: object_type__isw
+ schema:
+ type: string
+ - in: query
+ name: object_type__n
+ schema:
+ type: string
+ - in: query
+ name: object_type__nic
+ schema:
+ type: string
+ - in: query
+ name: object_type__nie
+ schema:
+ type: string
+ - in: query
+ name: object_type__niew
+ schema:
+ type: string
+ - in: query
+ name: object_type__nisw
+ schema:
+ type: string
+ - in: query
+ name: object_type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: object_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedExportTemplateList'
+ description: ''
+ post:
+ operationId: extras_export_templates_create
+ description: Post a list of export template objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ put:
+ operationId: extras_export_templates_bulk_update
+ description: Put a list of export template objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ patch:
+ operationId: extras_export_templates_bulk_partial_update
+ description: Patch a list of export template objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ delete:
+ operationId: extras_export_templates_bulk_destroy
+ description: Delete a list of export template objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/export-templates/{id}/:
+ get:
+ 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 export template.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ put:
+ 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 export template.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ patch:
+ 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 export template.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedExportTemplateRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ delete:
+ 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 export template.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/export-templates/{id}/sync/:
+ post:
+ operationId: extras_export_templates_sync_create
+ description: Provide a /sync API endpoint to synchronize an object's data from
+ its associated DataFile (if any).
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this export template.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/ExportTemplateRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExportTemplate'
+ description: ''
+ /api/extras/image-attachments/:
+ get:
+ operationId: extras_image_attachments_list
+ description: Get a list of image attachment objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: id
schema:
@@ -70217,37 +72800,1387 @@ paths:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this image attachment.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/journal-entries/:
- get:
- operationId: extras_journal_entries_list
- description: Get a list of journal entry objects.
- parameters:
+ type: integer
+ description: A unique integer value identifying this image attachment.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/journal-entries/:
+ get:
+ operationId: extras_journal_entries_list
+ description: Get a list of journal entry objects.
+ parameters:
+ - in: query
+ name: assigned_object_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: assigned_object_id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_type
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type__n
+ schema:
+ type: string
+ - in: query
+ name: assigned_object_type_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: assigned_object_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ 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
+ 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: 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:
+ 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: kind
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__empty
+ schema:
+ type: boolean
+ - in: query
+ name: kind__ic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__ie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__iew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__isw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__nic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__nie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__niew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: kind__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: a21af280f632fa34
+ explode: true
+ style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: 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: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedJournalEntryList'
+ description: ''
+ post:
+ operationId: extras_journal_entries_create
+ description: Post a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ put:
+ operationId: extras_journal_entries_bulk_update
+ description: Put a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ patch:
+ operationId: extras_journal_entries_bulk_partial_update
+ description: Patch a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ delete:
+ operationId: extras_journal_entries_bulk_destroy
+ description: Delete a list of journal entry objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/JournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/journal-entries/{id}/:
+ get:
+ operationId: extras_journal_entries_retrieve
+ description: Get a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ put:
+ operationId: extras_journal_entries_update
+ description: Put a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/WritableJournalEntryRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ patch:
+ operationId: extras_journal_entries_partial_update
+ description: Patch a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JournalEntry'
+ description: ''
+ delete:
+ operationId: extras_journal_entries_destroy
+ description: Delete a journal entry object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this journal entry.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/notification-groups/:
+ get:
+ operationId: extras_notification_groups_list
+ description: Get a list of notification group objects.
+ parameters:
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedNotificationGroupList'
+ description: ''
+ post:
+ operationId: extras_notification_groups_create
+ description: Post a list of notification group objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ put:
+ operationId: extras_notification_groups_bulk_update
+ description: Put a list of notification group objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ patch:
+ operationId: extras_notification_groups_bulk_partial_update
+ description: Patch a list of notification group objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ delete:
+ operationId: extras_notification_groups_bulk_destroy
+ description: Delete a list of notification group objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/notification-groups/{id}/:
+ get:
+ operationId: extras_notification_groups_retrieve
+ description: Get a notification group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification group.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ put:
+ operationId: extras_notification_groups_update
+ description: Put a notification group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification group.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/NotificationGroupRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ patch:
+ operationId: extras_notification_groups_partial_update
+ description: Patch a notification group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification group.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedNotificationGroupRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedNotificationGroupRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationGroup'
+ description: ''
+ delete:
+ operationId: extras_notification_groups_destroy
+ description: Delete a notification group object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification group.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/notifications/:
+ get:
+ operationId: extras_notifications_list
+ description: Get a list of notification objects.
+ parameters:
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedNotificationList'
+ description: ''
+ post:
+ operationId: extras_notifications_create
+ description: Post a list of notification objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/NotificationRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ put:
+ operationId: extras_notifications_bulk_update
+ description: Put a list of notification objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ patch:
+ operationId: extras_notifications_bulk_partial_update
+ description: Patch a list of notification objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ delete:
+ operationId: extras_notifications_bulk_destroy
+ description: Delete a list of notification objects.
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ multipart/form-data:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/NotificationRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/notifications/{id}/:
+ get:
+ operationId: extras_notifications_retrieve
+ description: Get a notification object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ put:
+ operationId: extras_notifications_update
+ description: Put a notification object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotificationRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/NotificationRequest'
+ required: true
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ patch:
+ operationId: extras_notifications_partial_update
+ description: Patch a notification object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification.
+ required: true
+ tags:
+ - extras
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchedNotificationRequest'
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/PatchedNotificationRequest'
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Notification'
+ description: ''
+ delete:
+ operationId: extras_notifications_destroy
+ description: Delete a notification object.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this notification.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '204':
+ description: No response body
+ /api/extras/object-types/:
+ get:
+ operationId: extras_object_types_list
+ description: Read-only list of ObjectTypes.
+ parameters:
+ - in: query
+ name: app_label
+ schema:
+ type: string
+ - in: query
+ name: id
+ schema:
+ type: integer
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
+ - in: query
+ name: model
+ schema:
+ type: string
+ - name: offset
+ required: false
+ in: query
+ description: The initial index from which to return the results.
+ schema:
+ type: integer
+ - name: ordering
+ required: false
+ in: query
+ description: Which field to use when ordering the results.
+ schema:
+ type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedObjectTypeList'
+ description: ''
+ /api/extras/object-types/{id}/:
+ get:
+ operationId: extras_object_types_retrieve
+ description: Read-only list of ObjectTypes.
+ parameters:
+ - in: path
+ name: id
+ schema:
+ type: integer
+ description: A unique integer value identifying this object type.
+ required: true
+ tags:
+ - extras
+ security:
+ - cookieAuth: []
+ - tokenAuth: []
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectType'
+ description: ''
+ /api/extras/saved-filters/:
+ get:
+ operationId: extras_saved_filters_list
+ description: Get a list of saved filter objects.
+ parameters:
+ - in: query
+ name: created
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
+ schema:
+ 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: assigned_object_id
+ name: description__nisw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: assigned_object_id__empty
+ name: enabled
schema:
type: boolean
- in: query
- name: assigned_object_id__gt
+ name: id
schema:
type: array
items:
@@ -70256,7 +74189,11 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__gte
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
schema:
type: array
items:
@@ -70265,7 +74202,7 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__lt
+ name: id__gte
schema:
type: array
items:
@@ -70274,7 +74211,7 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__lte
+ name: id__lt
schema:
type: array
items:
@@ -70283,7 +74220,7 @@ paths:
explode: true
style: form
- in: query
- name: assigned_object_id__n
+ name: id__lte
schema:
type: array
items:
@@ -70292,346 +74229,438 @@ 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__n
schema:
type: array
items:
type: integer
+ format: int32
explode: true
style: form
- in: query
- name: assigned_object_type_id__n
+ name: last_updated
schema:
type: array
items:
- type: integer
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: created_after
+ name: last_updated__empty
schema:
- type: string
- format: date-time
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: created_before
+ name: last_updated__gt
schema:
- type: string
- format: date-time
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: created_by
+ name: last_updated__gte
schema:
type: array
items:
type: string
- description: User (name)
+ format: date-time
explode: true
style: form
- in: query
- name: created_by__n
+ name: last_updated__lt
schema:
type: array
items:
type: string
- description: User (name)
+ format: date-time
explode: true
style: form
- in: query
- name: created_by_id
+ name: last_updated__lte
schema:
type: array
items:
- type: integer
- nullable: true
- description: User (ID)
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: created_by_id__n
+ name: last_updated__n
schema:
type: array
items:
- type: integer
- nullable: true
- description: User (ID)
+ type: string
+ format: date-time
explode: true
style: form
+ - name: limit
+ required: false
+ in: query
+ description: Number of results to return per page.
+ schema:
+ type: integer
- in: query
- name: created_by_request
+ name: modified_by_request
schema:
type: string
format: uuid
- in: query
- name: id
+ name: name
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__empty
+ name: name__empty
schema:
type: boolean
- in: query
- name: id__gt
+ name: name__ic
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__gte
+ name: name__ie
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lt
+ name: name__iew
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__lte
+ name: name__isw
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: id__n
+ name: name__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
explode: true
style: form
- in: query
- name: kind
+ name: name__nic
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__empty
+ name: name__nie
schema:
- type: boolean
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
- name: kind__ic
+ name: name__niew
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__ie
+ name: name__nisw
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__iew
+ name: object_type
+ schema:
+ type: string
+ - in: query
+ name: object_type__ic
+ schema:
+ type: string
+ - in: query
+ name: object_type__ie
+ schema:
+ type: string
+ - in: query
+ name: object_type__iew
+ schema:
+ type: string
+ - in: query
+ name: object_type__isw
+ schema:
+ type: string
+ - in: query
+ name: object_type__n
+ schema:
+ type: string
+ - in: query
+ name: object_type__nic
+ schema:
+ type: string
+ - in: query
+ name: object_type__nie
+ schema:
+ type: string
+ - in: query
+ name: object_type__niew
+ schema:
+ type: string
+ - in: query
+ name: object_type__nisw
+ schema:
+ type: string
+ - in: query
+ name: object_type_id
schema:
type: array
items:
- type: string
- x-spec-enum-id: a21af280f632fa34
+ type: integer
explode: true
style: form
- in: query
- name: kind__isw
+ name: object_type_id__n
schema:
type: array
items:
- type: string
- x-spec-enum-id: a21af280f632fa34
+ 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: kind__n
+ name: q
+ schema:
+ type: string
+ description: Search
+ - in: query
+ name: shared
+ schema:
+ type: boolean
+ - in: query
+ name: slug
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__nic
+ name: slug__empty
+ schema:
+ type: boolean
+ - in: query
+ name: slug__ic
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__nie
+ name: slug__ie
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__niew
+ name: slug__iew
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: kind__nisw
+ name: slug__isw
schema:
type: array
items:
type: string
- x-spec-enum-id: a21af280f632fa34
explode: true
style: form
- in: query
- name: last_updated
+ name: slug__n
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__empty
+ name: slug__nic
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gt
+ name: slug__nie
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__gte
+ name: slug__niew
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lt
+ name: slug__nisw
schema:
type: array
items:
type: string
- format: date-time
explode: true
style: form
- in: query
- name: last_updated__lte
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: usable
+ schema:
+ type: boolean
+ - in: query
+ name: user
schema:
type: array
items:
type: string
- format: date-time
+ description: User (name)
explode: true
style: form
- in: query
- name: last_updated__n
+ name: user__n
schema:
type: array
items:
type: string
- format: date-time
+ description: User (name)
explode: true
style: form
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ - in: query
+ name: user_id
schema:
- type: integer
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: User (ID)
+ explode: true
+ style: form
- in: query
- name: modified_by_request
+ name: user_id__n
schema:
- type: string
- format: uuid
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: User (ID)
+ explode: true
+ style: form
+ - in: query
+ name: weight
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__empty
schema:
- type: string
+ type: boolean
- in: query
- name: q
+ name: weight__gt
schema:
- type: string
- description: Search
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: tag
+ name: weight__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: tag__n
+ name: weight__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: updated_by_request
+ name: weight__lte
schema:
- type: string
- format: uuid
+ 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:
@@ -70642,21 +74671,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedJournalEntryList'
+ $ref: '#/components/schemas/PaginatedSavedFilterList'
description: ''
post:
- operationId: extras_journal_entries_create
- description: Post a list of journal entry objects.
+ operationId: extras_saved_filters_create
+ description: Post a list of saved filter objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
required: true
security:
- cookieAuth: []
@@ -70666,11 +74695,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
put:
- operationId: extras_journal_entries_bulk_update
- description: Put a list of journal entry objects.
+ operationId: extras_saved_filters_bulk_update
+ description: Put a list of saved filter objects.
tags:
- extras
requestBody:
@@ -70679,12 +74708,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
required: true
security:
- cookieAuth: []
@@ -70696,11 +74725,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
patch:
- operationId: extras_journal_entries_bulk_partial_update
- description: Patch a list of journal entry objects.
+ operationId: extras_saved_filters_bulk_partial_update
+ description: Patch a list of saved filter objects.
tags:
- extras
requestBody:
@@ -70709,12 +74738,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
required: true
security:
- cookieAuth: []
@@ -70726,11 +74755,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
delete:
- operationId: extras_journal_entries_bulk_destroy
- description: Delete a list of journal entry objects.
+ operationId: extras_saved_filters_bulk_destroy
+ description: Delete a list of saved filter objects.
tags:
- extras
requestBody:
@@ -70739,12 +74768,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/JournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
required: true
security:
- cookieAuth: []
@@ -70752,16 +74781,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/journal-entries/{id}/:
+ /api/extras/saved-filters/{id}/:
get:
- operationId: extras_journal_entries_retrieve
- description: Get a journal entry object.
+ operationId: extras_saved_filters_retrieve
+ description: Get a saved filter object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this saved filter.
required: true
tags:
- extras
@@ -70773,17 +74802,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
put:
- operationId: extras_journal_entries_update
- description: Put a journal entry object.
+ operationId: extras_saved_filters_update
+ description: Put a saved filter object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this saved filter.
required: true
tags:
- extras
@@ -70791,10 +74820,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableJournalEntryRequest'
+ $ref: '#/components/schemas/SavedFilterRequest'
required: true
security:
- cookieAuth: []
@@ -70804,17 +74833,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
patch:
- operationId: extras_journal_entries_partial_update
- description: Patch a journal entry object.
+ operationId: extras_saved_filters_partial_update
+ description: Patch a saved filter object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this saved filter.
required: true
tags:
- extras
@@ -70822,10 +74851,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ $ref: '#/components/schemas/PatchedSavedFilterRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableJournalEntryRequest'
+ $ref: '#/components/schemas/PatchedSavedFilterRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -70834,17 +74863,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/JournalEntry'
+ $ref: '#/components/schemas/SavedFilter'
description: ''
delete:
- operationId: extras_journal_entries_destroy
- description: Delete a journal entry object.
+ operationId: extras_saved_filters_destroy
+ description: Delete a saved filter object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this journal entry.
+ description: A unique integer value identifying this saved filter.
required: true
tags:
- extras
@@ -70854,17 +74883,181 @@ paths:
responses:
'204':
description: No response body
- /api/extras/notification-groups/:
+ /api/extras/scripts/:
get:
- operationId: extras_notification_groups_list
- description: Get a list of notification group objects.
+ operationId: extras_scripts_list
+ description: Get a list of script objects.
parameters:
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: is_executable
+ schema:
+ type: boolean
- name: limit
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: module_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Script module (ID)
+ explode: true
+ style: form
+ - in: query
+ name: module_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Script module (ID)
+ explode: true
+ style: form
+ - in: query
+ name: name
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__empty
+ schema:
+ type: boolean
+ - in: query
+ name: name__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: name__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- name: offset
required: false
in: query
@@ -70877,6 +75070,11 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: q
+ schema:
+ type: string
+ description: Search
tags:
- extras
security:
@@ -70887,22 +75085,13 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedNotificationGroupList'
+ $ref: '#/components/schemas/PaginatedScriptList'
description: ''
post:
- operationId: extras_notification_groups_create
- description: Post a list of notification group objects.
+ operationId: extras_scripts_create
+ description: Post a list of script objects.
tags:
- extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NotificationGroupRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/NotificationGroupRequest'
- required: true
security:
- cookieAuth: []
- tokenAuth: []
@@ -70911,102 +75100,18 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationGroup'
- description: ''
- put:
- operationId: extras_notification_groups_bulk_update
- description: Put a list of notification group objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroup'
- description: ''
- patch:
- operationId: extras_notification_groups_bulk_partial_update
- description: Patch a list of notification group objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroup'
+ $ref: '#/components/schemas/Script'
description: ''
- delete:
- operationId: extras_notification_groups_bulk_destroy
- description: Delete a list of notification group objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/NotificationGroupRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/notification-groups/{id}/:
+ /api/extras/scripts/{id}/:
get:
- operationId: extras_notification_groups_retrieve
- description: Get a notification group object.
+ operationId: extras_scripts_retrieve
+ description: Get a script object.
parameters:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this notification group.
+ type: string
+ pattern: ^[^/]+$
required: true
tags:
- extras
@@ -71018,17 +75123,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationGroup'
+ $ref: '#/components/schemas/Script'
description: ''
put:
- operationId: extras_notification_groups_update
- description: Put a notification group object.
+ operationId: extras_scripts_update
+ description: Put a script object.
parameters:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this notification group.
+ type: string
+ pattern: ^[^/]+$
required: true
tags:
- extras
@@ -71036,10 +75141,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationGroupRequest'
+ $ref: '#/components/schemas/ScriptInputRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/NotificationGroupRequest'
+ $ref: '#/components/schemas/ScriptInputRequest'
required: true
security:
- cookieAuth: []
@@ -71049,17 +75154,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationGroup'
+ $ref: '#/components/schemas/Script'
description: ''
patch:
- operationId: extras_notification_groups_partial_update
- description: Patch a notification group object.
+ operationId: extras_scripts_partial_update
+ description: Patch a script object.
parameters:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this notification group.
+ type: string
+ pattern: ^[^/]+$
required: true
tags:
- extras
@@ -71067,10 +75172,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedNotificationGroupRequest'
+ $ref: '#/components/schemas/PatchedScriptInputRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedNotificationGroupRequest'
+ $ref: '#/components/schemas/PatchedScriptInputRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -71079,17 +75184,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationGroup'
+ $ref: '#/components/schemas/Script'
description: ''
delete:
- operationId: extras_notification_groups_destroy
- description: Delete a notification group object.
+ operationId: extras_scripts_destroy
+ description: Delete a script object.
parameters:
- in: path
name: id
schema:
- type: integer
- description: A unique integer value identifying this notification group.
+ type: string
+ pattern: ^[^/]+$
required: true
tags:
- extras
@@ -71099,10 +75204,10 @@ paths:
responses:
'204':
description: No response body
- /api/extras/notifications/:
+ /api/extras/subscriptions/:
get:
- operationId: extras_notifications_list
- description: Get a list of notification objects.
+ operationId: extras_subscriptions_list
+ description: Get a list of subscription objects.
parameters:
- name: limit
required: false
@@ -71132,21 +75237,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedNotificationList'
+ $ref: '#/components/schemas/PaginatedSubscriptionList'
description: ''
post:
- operationId: extras_notifications_create
- description: Post a list of notification objects.
+ operationId: extras_subscriptions_create
+ description: Post a list of subscription objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
required: true
security:
- cookieAuth: []
@@ -71156,11 +75261,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
put:
- operationId: extras_notifications_bulk_update
- description: Put a list of notification objects.
+ operationId: extras_subscriptions_bulk_update
+ description: Put a list of subscription objects.
tags:
- extras
requestBody:
@@ -71169,12 +75274,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
required: true
security:
- cookieAuth: []
@@ -71186,11 +75291,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
patch:
- operationId: extras_notifications_bulk_partial_update
- description: Patch a list of notification objects.
+ operationId: extras_subscriptions_bulk_partial_update
+ description: Patch a list of subscription objects.
tags:
- extras
requestBody:
@@ -71199,12 +75304,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
required: true
security:
- cookieAuth: []
@@ -71216,11 +75321,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
delete:
- operationId: extras_notifications_bulk_destroy
- description: Delete a list of notification objects.
+ operationId: extras_subscriptions_bulk_destroy
+ description: Delete a list of subscription objects.
tags:
- extras
requestBody:
@@ -71229,12 +75334,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
required: true
security:
- cookieAuth: []
@@ -71242,16 +75347,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/notifications/{id}/:
+ /api/extras/subscriptions/{id}/:
get:
- operationId: extras_notifications_retrieve
- description: Get a notification object.
+ operationId: extras_subscriptions_retrieve
+ description: Get a subscription object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this notification.
+ description: A unique integer value identifying this subscription.
required: true
tags:
- extras
@@ -71263,17 +75368,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
put:
- operationId: extras_notifications_update
- description: Put a notification object.
+ operationId: extras_subscriptions_update
+ description: Put a subscription object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this notification.
+ description: A unique integer value identifying this subscription.
required: true
tags:
- extras
@@ -71281,10 +75386,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/NotificationRequest'
+ $ref: '#/components/schemas/SubscriptionRequest'
required: true
security:
- cookieAuth: []
@@ -71294,17 +75399,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
patch:
- operationId: extras_notifications_partial_update
- description: Patch a notification object.
+ operationId: extras_subscriptions_partial_update
+ description: Patch a subscription object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this notification.
+ description: A unique integer value identifying this subscription.
required: true
tags:
- extras
@@ -71312,10 +75417,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedNotificationRequest'
+ $ref: '#/components/schemas/PatchedSubscriptionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedNotificationRequest'
+ $ref: '#/components/schemas/PatchedSubscriptionRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -71324,17 +75429,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Notification'
+ $ref: '#/components/schemas/Subscription'
description: ''
delete:
- operationId: extras_notifications_destroy
- description: Delete a notification object.
+ operationId: extras_subscriptions_destroy
+ description: Delete a subscription object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this notification.
+ description: A unique integer value identifying this subscription.
required: true
tags:
- extras
@@ -71344,85 +75449,10 @@ paths:
responses:
'204':
description: No response body
- /api/extras/object-types/:
- get:
- operationId: extras_object_types_list
- description: Read-only list of ObjectTypes.
- parameters:
- - in: query
- name: app_label
- schema:
- type: string
- - in: query
- name: id
- schema:
- type: integer
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
- schema:
- type: integer
- - in: query
- name: model
- schema:
- type: string
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
- schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
- schema:
- type: string
- - in: query
- name: q
- schema:
- type: string
- description: Search
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedObjectTypeList'
- description: ''
- /api/extras/object-types/{id}/:
- get:
- operationId: extras_object_types_retrieve
- description: Read-only list of ObjectTypes.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this object type.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ObjectType'
- description: ''
- /api/extras/saved-filters/:
+ /api/extras/table-configs/:
get:
- operationId: extras_saved_filters_list
- description: Get a list of saved filter objects.
+ operationId: extras_table_configs_list
+ description: Get a list of table config objects.
parameters:
- in: query
name: created
@@ -71800,42 +75830,10 @@ paths:
name: object_type
schema:
type: string
- - in: query
- name: object_type__ic
- schema:
- type: string
- - in: query
- name: object_type__ie
- schema:
- type: string
- - in: query
- name: object_type__iew
- schema:
- type: string
- - in: query
- name: object_type__isw
- schema:
- type: string
- in: query
name: object_type__n
schema:
type: string
- - in: query
- name: object_type__nic
- schema:
- type: string
- - in: query
- name: object_type__nie
- schema:
- type: string
- - in: query
- name: object_type__niew
- schema:
- type: string
- - in: query
- name: object_type__nisw
- schema:
- type: string
- in: query
name: object_type_id
schema:
@@ -71874,7 +75872,7 @@ paths:
schema:
type: boolean
- in: query
- name: slug
+ name: table
schema:
type: array
items:
@@ -71882,11 +75880,11 @@ paths:
explode: true
style: form
- in: query
- name: slug__empty
+ name: table__empty
schema:
type: boolean
- in: query
- name: slug__ic
+ name: table__ic
schema:
type: array
items:
@@ -71894,7 +75892,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__ie
+ name: table__ie
schema:
type: array
items:
@@ -71902,7 +75900,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__iew
+ name: table__iew
schema:
type: array
items:
@@ -71910,7 +75908,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__isw
+ name: table__isw
schema:
type: array
items:
@@ -71918,7 +75916,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__n
+ name: table__n
schema:
type: array
items:
@@ -71926,7 +75924,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nic
+ name: table__nic
schema:
type: array
items:
@@ -71934,7 +75932,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nie
+ name: table__nie
schema:
type: array
items:
@@ -71942,7 +75940,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__niew
+ name: table__niew
schema:
type: array
items:
@@ -71950,7 +75948,7 @@ paths:
explode: true
style: form
- in: query
- name: slug__nisw
+ name: table__nisw
schema:
type: array
items:
@@ -72072,21 +76070,21 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedSavedFilterList'
+ $ref: '#/components/schemas/PaginatedTableConfigList'
description: ''
post:
- operationId: extras_saved_filters_create
- description: Post a list of saved filter objects.
+ operationId: extras_table_configs_create
+ description: Post a list of table config objects.
tags:
- extras
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
required: true
security:
- cookieAuth: []
@@ -72096,11 +76094,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
put:
- operationId: extras_saved_filters_bulk_update
- description: Put a list of saved filter objects.
+ operationId: extras_table_configs_bulk_update
+ description: Put a list of table config objects.
tags:
- extras
requestBody:
@@ -72109,12 +76107,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
required: true
security:
- cookieAuth: []
@@ -72126,11 +76124,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
patch:
- operationId: extras_saved_filters_bulk_partial_update
- description: Patch a list of saved filter objects.
+ operationId: extras_table_configs_bulk_partial_update
+ description: Patch a list of table config objects.
tags:
- extras
requestBody:
@@ -72139,12 +76137,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
required: true
security:
- cookieAuth: []
@@ -72156,11 +76154,11 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
delete:
- operationId: extras_saved_filters_bulk_destroy
- description: Delete a list of saved filter objects.
+ operationId: extras_table_configs_bulk_destroy
+ description: Delete a list of table config objects.
tags:
- extras
requestBody:
@@ -72169,12 +76167,12 @@ paths:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
multipart/form-data:
schema:
type: array
items:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
required: true
security:
- cookieAuth: []
@@ -72182,16 +76180,16 @@ paths:
responses:
'204':
description: No response body
- /api/extras/saved-filters/{id}/:
+ /api/extras/table-configs/{id}/:
get:
- operationId: extras_saved_filters_retrieve
- description: Get a saved filter object.
+ operationId: extras_table_configs_retrieve
+ description: Get a table config object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this saved filter.
+ description: A unique integer value identifying this table config.
required: true
tags:
- extras
@@ -72203,17 +76201,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
put:
- operationId: extras_saved_filters_update
- description: Put a saved filter object.
+ operationId: extras_table_configs_update
+ description: Put a table config object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this saved filter.
+ description: A unique integer value identifying this table config.
required: true
tags:
- extras
@@ -72221,10 +76219,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/SavedFilterRequest'
+ $ref: '#/components/schemas/TableConfigRequest'
required: true
security:
- cookieAuth: []
@@ -72234,17 +76232,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
patch:
- operationId: extras_saved_filters_partial_update
- description: Patch a saved filter object.
+ operationId: extras_table_configs_partial_update
+ description: Patch a table config object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this saved filter.
+ description: A unique integer value identifying this table config.
required: true
tags:
- extras
@@ -72252,10 +76250,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedSavedFilterRequest'
+ $ref: '#/components/schemas/PatchedTableConfigRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedSavedFilterRequest'
+ $ref: '#/components/schemas/PatchedTableConfigRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -72264,17 +76262,17 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SavedFilter'
+ $ref: '#/components/schemas/TableConfig'
description: ''
delete:
- operationId: extras_saved_filters_destroy
- description: Delete a saved filter object.
+ operationId: extras_table_configs_destroy
+ description: Delete a table config object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this saved filter.
+ description: A unique integer value identifying this table config.
required: true
tags:
- extras
@@ -72284,10 +76282,10 @@ paths:
responses:
'204':
description: No response body
- /api/extras/scripts/:
+ /api/extras/tagged-objects/:
get:
- operationId: extras_scripts_list
- description: Get a list of script objects.
+ operationId: extras_tagged_objects_list
+ description: Get a list of tagged item objects.
parameters:
- in: query
name: id
@@ -72347,10 +76345,6 @@ paths:
format: int32
explode: true
style: form
- - in: query
- name: is_executable
- schema:
- type: boolean
- name: limit
required: false
in: query
@@ -72358,105 +76352,85 @@ paths:
schema:
type: integer
- in: query
- name: module_id
- schema:
- type: array
- items:
- type: integer
- description: Script module (ID)
- explode: true
- style: form
- - in: query
- name: module_id__n
+ name: object_id
schema:
type: array
items:
type: integer
- description: Script module (ID)
- explode: true
- style: form
- - in: query
- name: name
- schema:
- type: array
- items:
- type: string
+ format: int32
explode: true
style: form
- in: query
- name: name__empty
+ name: object_id__empty
schema:
type: boolean
- in: query
- name: name__ic
+ name: object_id__gt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__ie
+ name: object_id__gte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__iew
+ name: object_id__lt
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__isw
+ name: object_id__lte
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__n
+ name: object_id__n
schema:
type: array
items:
- type: string
+ type: integer
+ format: int32
explode: true
style: form
- in: query
- name: name__nic
+ name: object_type
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
- in: query
- name: name__nie
+ name: object_type__n
schema:
- type: array
- items:
- type: string
- explode: true
- style: form
+ type: string
- in: query
- name: name__niew
+ name: object_type_id
schema:
type: array
items:
- type: string
+ type: integer
explode: true
style: form
- in: query
- name: name__nisw
+ name: object_type_id__n
schema:
type: array
items:
- type: string
+ type: integer
explode: true
style: form
- name: offset
@@ -72476,242 +76450,40 @@ paths:
schema:
type: string
description: Search
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedScriptList'
- description: ''
- post:
- operationId: extras_scripts_create
- description: Post a list of script objects.
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Script'
- description: ''
- /api/extras/scripts/{id}/:
- get:
- operationId: extras_scripts_retrieve
- description: Get a script object.
- parameters:
- - in: path
- name: id
- schema:
- type: string
- pattern: ^[^/]+$
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Script'
- description: ''
- put:
- operationId: extras_scripts_update
- description: Put a script object.
- parameters:
- - in: path
- name: id
- schema:
- type: string
- pattern: ^[^/]+$
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ScriptInputRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/ScriptInputRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Script'
- description: ''
- patch:
- operationId: extras_scripts_partial_update
- description: Patch a script object.
- parameters:
- - in: path
- name: id
- schema:
- type: string
- pattern: ^[^/]+$
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PatchedScriptInputRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/PatchedScriptInputRequest'
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Script'
- description: ''
- delete:
- operationId: extras_scripts_destroy
- description: Delete a script object.
- parameters:
- - in: path
- name: id
+ - in: query
+ name: tag
schema:
- type: string
- pattern: ^[^/]+$
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/subscriptions/:
- get:
- operationId: extras_subscriptions_list
- description: Get a list of subscription objects.
- parameters:
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag__n
schema:
- type: integer
- - name: offset
- required: false
- in: query
- description: The initial index from which to return the results.
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tag_id
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
schema:
- type: string
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedSubscriptionList'
- description: ''
- post:
- operationId: extras_subscriptions_create
- description: Post a list of subscription objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SubscriptionRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/SubscriptionRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Subscription'
- description: ''
- put:
- operationId: extras_subscriptions_bulk_update
- description: Put a list of subscription objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Subscription'
- description: ''
- patch:
- operationId: extras_subscriptions_bulk_partial_update
- description: Patch a list of subscription objects.
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
tags:
- extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- required: true
security:
- cookieAuth: []
- tokenAuth: []
@@ -72720,44 +76492,18 @@ paths:
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/Subscription'
+ $ref: '#/components/schemas/PaginatedTaggedItemList'
description: ''
- delete:
- operationId: extras_subscriptions_bulk_destroy
- description: Delete a list of subscription objects.
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- multipart/form-data:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SubscriptionRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
- /api/extras/subscriptions/{id}/:
+ /api/extras/tagged-objects/{id}/:
get:
- operationId: extras_subscriptions_retrieve
- description: Get a subscription object.
+ operationId: extras_tagged_objects_retrieve
+ description: Get a tagged item object.
parameters:
- in: path
name: id
schema:
type: integer
- description: A unique integer value identifying this subscription.
+ description: A unique integer value identifying this tagged item.
required: true
tags:
- extras
@@ -72769,87 +76515,8 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Subscription'
+ $ref: '#/components/schemas/TaggedItem'
description: ''
- put:
- operationId: extras_subscriptions_update
- description: Put a subscription object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this subscription.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SubscriptionRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/SubscriptionRequest'
- required: true
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Subscription'
- description: ''
- patch:
- operationId: extras_subscriptions_partial_update
- description: Patch a subscription object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this subscription.
- required: true
- tags:
- - extras
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PatchedSubscriptionRequest'
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/PatchedSubscriptionRequest'
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Subscription'
- description: ''
- delete:
- operationId: extras_subscriptions_destroy
- description: Delete a subscription object.
- parameters:
- - in: path
- name: id
- schema:
- type: integer
- description: A unique integer value identifying this subscription.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '204':
- description: No response body
/api/extras/tags/:
get:
operationId: extras_tags_list
@@ -73455,6 +77122,64 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: weight
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__empty
+ schema:
+ type: boolean
+ - in: query
+ name: weight__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: weight__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
tags:
- extras
security:
@@ -74441,6 +78166,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -74673,6 +78414,58 @@ paths:
operationId: ipam_aggregates_list
description: Get a list of aggregate objects.
parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -75093,6 +78886,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -76032,6 +79841,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -76843,6 +80668,38 @@ paths:
description: Site (slug)
explode: true
style: form
+ - in: query
+ name: site_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: site_group_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: site_id
schema:
@@ -76877,6 +80734,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -78558,6 +82431,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -78874,6 +82763,58 @@ paths:
schema:
type: boolean
description: Is assigned to an interface
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -79637,6 +83578,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -80034,6 +83991,58 @@ paths:
operationId: ipam_ip_ranges_list
description: Get a list of IP range objects.
parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: contains
schema:
@@ -80330,6 +84339,10 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: mark_populated
+ schema:
+ type: boolean
- in: query
name: mark_utilized
schema:
@@ -80588,6 +84601,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -81055,6 +85084,58 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: contains
schema:
@@ -81825,6 +85906,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -81900,6 +85997,42 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: vlan_group
+ schema:
+ type: array
+ items:
+ type: string
+ description: VLAN Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: vlan_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: VLAN Group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: vlan_group_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: VLAN Group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: vlan_group_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: VLAN Group (ID)
+ explode: true
+ style: form
- in: query
name: vlan_id
schema:
@@ -82843,6 +86976,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -83560,6 +87709,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -84419,6 +88584,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -85140,6 +89321,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -85372,6 +89569,58 @@ paths:
operationId: ipam_services_list
description: Get a list of service objects.
parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -85530,38 +89779,32 @@ paths:
type: array
items:
type: string
- nullable: true
- description: Device (name)
explode: true
style: form
- in: query
- name: device__n
+ name: device_id
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: fhrpgroup
schema:
type: array
items:
- type: integer
- nullable: true
- description: Device (ID)
+ type: string
explode: true
style: form
- in: query
- name: device_id__n
+ name: fhrpgroup_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Device (ID)
+ format: int32
explode: true
style: form
- in: query
@@ -85828,6 +90071,72 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: parent_object_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: parent_object_id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: parent_object_type
+ schema:
+ type: integer
+ - in: query
+ name: parent_object_type__n
+ schema:
+ type: integer
- in: query
name: port
schema:
@@ -85868,46 +90177,41 @@ paths:
explode: true
style: form
- in: query
- name: updated_by_request
- schema:
- type: string
- format: uuid
- - in: query
- name: virtual_machine
+ name: tag_id
schema:
type: array
items:
- type: string
- description: Virtual machine (name)
+ type: integer
explode: true
style: form
- in: query
- name: virtual_machine__n
+ name: tag_id__n
schema:
type: array
items:
- type: string
- description: Virtual machine (name)
+ type: integer
explode: true
style: form
- in: query
- name: virtual_machine_id
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
+ - in: query
+ name: virtual_machine
schema:
type: array
items:
- type: integer
- nullable: true
- description: Virtual machine (ID)
+ type: string
explode: true
style: form
- in: query
- name: virtual_machine_id__n
+ name: virtual_machine_id
schema:
type: array
items:
type: integer
- nullable: true
- description: Virtual machine (ID)
+ format: int32
explode: true
style: form
tags:
@@ -86720,6 +91024,92 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tenant
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Tenant (slug)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_group_id__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
+ - in: query
+ name: tenant_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Tenant (ID)
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -87413,6 +91803,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -88114,6 +92520,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -89297,6 +93719,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -90223,6 +94661,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -91018,6 +95472,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -91282,6 +95752,24 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: contact_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact (ID)
+ explode: true
+ style: form
+ - in: query
+ name: contact_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact (ID)
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -91805,6 +96293,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -92522,6 +97026,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -93523,6 +98043,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: title
schema:
@@ -94394,6 +98930,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -95195,6 +99747,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -98633,6 +103201,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -99350,6 +103934,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -100365,6 +104965,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -101167,24 +105783,118 @@ paths:
- in: query
name: mode
schema:
- type: string
- x-spec-enum-id: b6fe48fe21dbf01d
- nullable: true
- enum:
- - access
- - q-in-q
- - tagged
- - tagged-all
- description: 'IEEE 802.1Q tagging strategy
-
-
- * `access` - Access
-
- * `tagged` - Tagged
-
- * `tagged-all` - Tagged (All)
-
- * `q-in-q` - Q-in-Q (802.1ad)'
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__empty
+ schema:
+ type: boolean
+ description: 802.1Q Mode
+ - in: query
+ name: mode__ic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__ie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__iew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__isw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__niew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
+ - in: query
+ name: mode__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: b6fe48fe21dbf01d
+ nullable: true
+ description: 802.1Q Mode
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -101419,6 +106129,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -102232,6 +106958,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -103404,6 +108146,24 @@ paths:
description: Platform (ID)
explode: true
style: form
+ - in: query
+ name: primary_ip4
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip4__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv4 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip4_id
schema:
@@ -103422,6 +108182,24 @@ paths:
description: Primary IPv4 (ID)
explode: true
style: form
+ - in: query
+ name: primary_ip6
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
+ - in: query
+ name: primary_ip6__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Primary IPv6 (address)
+ explode: true
+ style: form
- in: query
name: primary_ip6_id
schema:
@@ -103483,7 +108261,6 @@ paths:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
@@ -103492,7 +108269,6 @@ paths:
type: array
items:
type: string
- description: Role (slug)
explode: true
style: form
- in: query
@@ -103500,9 +108276,7 @@ paths:
schema:
type: array
items:
- type: integer
- nullable: true
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
@@ -103510,9 +108284,7 @@ paths:
schema:
type: array
items:
- type: integer
- nullable: true
- description: Role (ID)
+ type: string
explode: true
style: form
- in: query
@@ -103675,7 +108447,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103688,7 +108460,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103697,7 +108469,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103706,7 +108478,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103715,7 +108487,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103724,7 +108496,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103733,7 +108505,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103742,7 +108514,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103751,7 +108523,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103760,7 +108532,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 2217e87d0c3efdda
+ x-spec-enum-id: c649dc8de233760f
explode: true
style: form
- in: query
@@ -103779,6 +108551,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -104816,6 +109604,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -106025,6 +110829,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -106800,6 +111620,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -107599,6 +112435,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -108612,6 +113464,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -109287,6 +114155,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -109662,6 +114546,58 @@ paths:
operationId: vpn_l2vpns_list
description: Get a list of L2VPN objects.
parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -110261,6 +115197,100 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: status
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__empty
+ schema:
+ type: boolean
+ - in: query
+ name: status__ic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__ie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__iew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__isw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__n
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__nic
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__nie
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__niew
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
+ - in: query
+ name: status__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ x-spec-enum-id: 937bacafb9d5d4bb
+ explode: true
+ style: form
- in: query
name: tag
schema:
@@ -110277,6 +115307,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -110353,7 +115399,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110366,7 +115412,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110375,7 +115421,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110384,7 +115430,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110393,7 +115439,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110402,7 +115448,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110411,7 +115457,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110420,7 +115466,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110429,7 +115475,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110438,7 +115484,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 4c9738ba3d741dd4
+ x-spec-enum-id: 730136816a2885f9
explode: true
style: form
- in: query
@@ -110673,6 +115719,58 @@ paths:
operationId: vpn_tunnel_groups_list
description: Get a list of tunnel 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: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -111158,6 +116256,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -111771,6 +116885,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: termination_id
schema:
@@ -112141,6 +117271,58 @@ paths:
operationId: vpn_tunnels_list
description: Get a list of tunnel objects.
parameters:
+ - in: query
+ name: contact
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact
+ explode: true
+ style: form
+ - in: query
+ name: contact_group
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_group__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: contact_role
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
+ - in: query
+ name: contact_role__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact Role
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -112806,6 +117988,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -113717,6 +118915,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -115002,6 +120216,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -116237,6 +121467,22 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: tag_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: tag_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: tenant
schema:
@@ -116690,7 +121936,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
rir:
- $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRIRRequest'
start:
type: integer
maximum: 4294967295
@@ -116702,8 +121950,11 @@ components:
minimum: 1
format: int64
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -116732,12 +121983,18 @@ components:
format: int64
description: 16- or 32-bit autonomous system number
rir:
- allOf:
- - $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRIRRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -116838,10 +122095,15 @@ components:
type: string
minLength: 1
rir:
- $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRIRRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
date_added:
type: string
@@ -116980,7 +122242,9 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
required:
- object_id
- object_type
@@ -117123,7 +122387,9 @@ components:
description: Base serializer for group assignments under CircuitSerializer.
properties:
group:
- $ref: '#/components/schemas/BriefCircuitGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitGroupRequest'
priority:
enum:
- primary
@@ -117163,7 +122429,9 @@ components:
description: Unique circuit ID
maxLength: 100
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
description:
type: string
maxLength: 200
@@ -117440,64 +122708,6 @@ components:
- id
- name
- url
- BriefContactGroup:
- type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- contact_count:
- type: integer
- readOnly: true
- default: 0
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
- required:
- - _depth
- - display
- - id
- - name
- - slug
- - url
- BriefContactGroupRequest:
- type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- required:
- - name
- - slug
BriefContactRequest:
type: object
description: Adds support for custom fields and tags.
@@ -117706,7 +122916,7 @@ components:
maxLength: 200
BriefDeviceRole:
type: object
- description: Adds support for custom fields and tags.
+ description: Extends PrimaryModelSerializer to include MPTT support.
properties:
id:
type: integer
@@ -117736,7 +122946,12 @@ components:
type: integer
format: int64
readOnly: true
+ _depth:
+ type: integer
+ readOnly: true
+ title: ' depth'
required:
+ - _depth
- display
- id
- name
@@ -117744,7 +122959,7 @@ components:
- url
BriefDeviceRoleRequest:
type: object
- description: Adds support for custom fields and tags.
+ description: Extends PrimaryModelSerializer to include MPTT support.
properties:
name:
type: string
@@ -117803,7 +123018,9 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -118121,7 +123338,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
name:
type: string
minLength: 1
@@ -118294,6 +123513,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -118319,8 +123539,10 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
label:
type: string
enum:
@@ -118337,6 +123559,7 @@ components:
- Ethernet Virtual Private LAN
- Ethernet Private Tree
- Ethernet Virtual Private Tree
+ - SPB
description:
type: string
maxLength: 200
@@ -118380,6 +123603,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -118405,8 +123629,10 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
description:
type: string
maxLength: 200
@@ -118439,7 +123665,9 @@ components:
description: Adds support for custom fields and tags.
properties:
l2vpn:
- $ref: '#/components/schemas/BriefL2VPNRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefL2VPNRequest'
required:
- l2vpn
BriefLocation:
@@ -118617,7 +123845,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module_bay:
$ref: '#/components/schemas/NestedModuleBayRequest'
required:
@@ -118637,6 +123867,10 @@ components:
display:
type: string
readOnly: true
+ profile:
+ allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfile'
+ nullable: true
manufacturer:
$ref: '#/components/schemas/BriefManufacturer'
model:
@@ -118651,12 +123885,59 @@ components:
- manufacturer
- model
- url
+ BriefModuleTypeProfile:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - display
+ - id
+ - name
+ - url
+ BriefModuleTypeProfileRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - name
BriefModuleTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
+ profile:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfileRequest'
+ nullable: true
+ nullable: true
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -118809,7 +124090,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
name:
type: string
minLength: 1
@@ -119195,7 +124478,9 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -119299,7 +124584,153 @@ components:
- name
- slug
- url
- BriefRegionRequest:
+ BriefRegionRequest:
+ type: object
+ description: Extends PrimaryModelSerializer to include MPTT support.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ slug:
+ type: string
+ minLength: 1
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - name
+ - slug
+ BriefRole:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ maxLength: 100
+ slug:
+ type: string
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ prefix_count:
+ type: integer
+ format: int64
+ readOnly: true
+ vlan_count:
+ type: integer
+ format: int64
+ readOnly: true
+ required:
+ - display
+ - id
+ - name
+ - slug
+ - url
+ BriefRoleRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ slug:
+ type: string
+ minLength: 1
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - name
+ - slug
+ BriefSite:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ description: Full name of the site
+ maxLength: 100
+ slug:
+ type: string
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ required:
+ - display
+ - id
+ - name
+ - slug
+ - url
+ BriefSiteGroup:
+ type: object
+ description: Extends PrimaryModelSerializer to include MPTT support.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ maxLength: 100
+ slug:
+ type: string
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ site_count:
+ type: integer
+ readOnly: true
+ default: 0
+ _depth:
+ type: integer
+ readOnly: true
+ title: ' depth'
+ required:
+ - _depth
+ - display
+ - id
+ - name
+ - slug
+ - url
+ BriefSiteGroupRequest:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
properties:
@@ -119318,51 +124749,14 @@ components:
required:
- name
- slug
- BriefRole:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- prefix_count:
- type: integer
- format: int64
- readOnly: true
- vlan_count:
- type: integer
- format: int64
- readOnly: true
- required:
- - display
- - id
- - name
- - slug
- - url
- BriefRoleRequest:
+ BriefSiteRequest:
type: object
description: Adds support for custom fields and tags.
properties:
name:
type: string
minLength: 1
+ description: Full name of the site
maxLength: 100
slug:
type: string
@@ -119375,9 +124769,12 @@ components:
required:
- name
- slug
- BriefSite:
+ BriefTag:
type: object
- description: Adds support for custom fields and tags.
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
id:
type: integer
@@ -119391,99 +124788,24 @@ components:
readOnly: true
name:
type: string
- description: Full name of the site
maxLength: 100
slug:
type: string
+ pattern: ^[-\w]+$
maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- required:
- - display
- - id
- - name
- - slug
- - url
- BriefSiteGroup:
- type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ color:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
description:
type: string
maxLength: 200
- site_count:
- type: integer
- readOnly: true
- default: 0
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
required:
- - _depth
- display
- id
- name
- slug
- url
- BriefSiteGroupRequest:
- type: object
- description: Extends PrimaryModelSerializer to include MPTT support.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- required:
- - name
- - slug
- BriefSiteRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- description: Full name of the site
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
- type: string
- maxLength: 200
- required:
- - name
- - slug
BriefTenant:
type: object
description: Adds support for custom fields and tags.
@@ -120013,7 +125335,9 @@ components:
description: Unique circuit ID
maxLength: 100
provider_network:
- $ref: '#/components/schemas/BriefProviderNetworkRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderNetworkRequest'
description:
type: string
maxLength: 200
@@ -120476,8 +125800,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
label:
type: string
@@ -121010,7 +126337,9 @@ components:
description: Base serializer for group assignments under CircuitSerializer.
properties:
group:
- $ref: '#/components/schemas/BriefCircuitGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitGroupRequest'
member_type:
type: string
member_id:
@@ -121059,8 +126388,11 @@ components:
type: string
maxLength: 200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -121083,13 +126415,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitTypeRequest'
status:
enum:
- planned
@@ -121112,8 +126451,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
install_date:
type: string
@@ -121297,7 +126639,9 @@ components:
description: Adds support for custom fields and tags.
properties:
circuit:
- $ref: '#/components/schemas/BriefCircuitRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitRequest'
term_side:
enum:
- A
@@ -121652,10 +126996,15 @@ components:
minLength: 1
maxLength: 100
type:
- $ref: '#/components/schemas/BriefClusterTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefClusterTypeRequest'
group:
- allOf:
- - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -121676,8 +127025,11 @@ components:
* `offline` - Offline'
x-spec-enum-id: 79d20a734d0eecbb
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -121975,7 +127327,9 @@ components:
type: string
minLength: 1
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
data: {}
required:
- data
@@ -122010,11 +127364,26 @@ components:
environment_params:
nullable: true
title: Environment parameters
- description: Any additional
- parameters to pass when constructing the Jinja2 environment.
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
- description: Jinja2 template code.
+ description: Jinja template code.
+ mime_type:
+ type: string
+ description: Defaults to text/plain; charset=utf-8
+ maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
+ file_extension:
+ type: string
+ description: Extension to append to the rendered filename
+ maxLength: 15
+ as_attachment:
+ type: boolean
+ description: Download file as attachment
data_source:
$ref: '#/components/schemas/BriefDataSource'
data_path:
@@ -122067,14 +127436,31 @@ components:
environment_params:
nullable: true
title: Environment parameters
- description: Any additional
- parameters to pass when constructing the Jinja2 environment.
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
minLength: 1
- description: Jinja2 template code.
+ description: Jinja template code.
+ mime_type:
+ type: string
+ description: Defaults to text/plain; charset=utf-8
+ maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
+ file_extension:
+ type: string
+ description: Extension to append to the rendered filename
+ maxLength: 15
+ as_attachment:
+ type: boolean
+ description: Download file as attachment
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
tags:
type: array
items:
@@ -122295,10 +127681,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -122531,12 +127922,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -122815,10 +128212,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -123051,12 +128453,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -123140,10 +128548,10 @@ components:
display:
type: string
readOnly: true
- group:
- allOf:
- - $ref: '#/components/schemas/BriefContactGroup'
- nullable: true
+ groups:
+ type: array
+ items:
+ $ref: '#/components/schemas/ContactGroup'
name:
type: string
maxLength: 100
@@ -123285,10 +128693,15 @@ components:
minimum: 0
format: int64
contact:
- $ref: '#/components/schemas/BriefContactRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefContactRequest'
role:
- allOf:
- - $ref: '#/components/schemas/BriefContactRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefContactRoleRequest'
+ nullable: true
nullable: true
priority:
enum:
@@ -123370,6 +128783,8 @@ components:
type: integer
readOnly: true
default: 0
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -123408,6 +128823,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -123415,10 +128832,10 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- group:
- allOf:
- - $ref: '#/components/schemas/BriefContactGroupRequest'
- nullable: true
+ groups:
+ type: array
+ items:
+ type: integer
name:
type: string
minLength: 1
@@ -124060,8 +129477,11 @@ components:
will limit values to exactly three uppercase letters.
maxLength: 500
choice_set:
- allOf:
- - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -124418,6 +129838,30 @@ components:
description:
type: string
maxLength: 200
+ sync_interval:
+ enum:
+ - 1
+ - 60
+ - 720
+ - 1440
+ - 10080
+ - 43200
+ type: integer
+ description: '* `1` - Minutely
+
+ * `60` - Hourly
+
+ * `720` - 12 hours
+
+ * `1440` - Daily
+
+ * `10080` - Weekly
+
+ * `43200` - 30 days'
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ minimum: 0
+ maximum: 32767
parameters:
nullable: true
ignore_rules:
@@ -124486,6 +129930,30 @@ components:
description:
type: string
maxLength: 200
+ sync_interval:
+ enum:
+ - 1
+ - 60
+ - 720
+ - 1440
+ - 10080
+ - 43200
+ type: integer
+ description: '* `1` - Minutely
+
+ * `60` - Hourly
+
+ * `720` - 12 hours
+
+ * `1440` - Daily
+
+ * `10080` - Weekly
+
+ * `43200` - 30 days'
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ minimum: 0
+ maximum: 32767
parameters:
nullable: true
ignore_rules:
@@ -124854,7 +130322,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
name:
type: string
minLength: 1
@@ -124867,8 +130337,11 @@ components:
type: string
maxLength: 200
installed_device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -124935,7 +130408,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
name:
type: string
minLength: 1
@@ -124954,7 +130429,7 @@ components:
- name
DeviceRole:
type: object
- description: Adds support for custom fields and tags.
+ description: Extends PrimaryModelSerializer to include MPTT support.
properties:
id:
type: integer
@@ -124988,6 +130463,10 @@ components:
allOf:
- $ref: '#/components/schemas/BriefConfigTemplate'
nullable: true
+ parent:
+ allOf:
+ - $ref: '#/components/schemas/NestedDeviceRole'
+ nullable: true
description:
type: string
maxLength: 200
@@ -125016,7 +130495,14 @@ components:
type: integer
format: int64
readOnly: true
+ comments:
+ type: string
+ _depth:
+ type: integer
+ readOnly: true
+ title: ' depth'
required:
+ - _depth
- display
- id
- name
@@ -125024,7 +130510,7 @@ components:
- url
DeviceRoleRequest:
type: object
- description: Adds support for custom fields and tags.
+ description: Extends PrimaryModelSerializer to include MPTT support.
properties:
name:
type: string
@@ -125044,8 +130530,15 @@ components:
type: boolean
description: Virtual machines may be assigned to this role
config_template:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
+ nullable: true
+ parent:
allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ - $ref: '#/components/schemas/NestedDeviceRoleRequest'
nullable: true
description:
type: string
@@ -125057,6 +130550,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -125300,10 +130795,15 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
default_platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
model:
type: string
@@ -125739,16 +131239,26 @@ components:
nullable: true
maxLength: 64
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
role:
- $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -125761,14 +131271,22 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
position:
type: number
@@ -125865,24 +131383,39 @@ components:
* `mixed` - Mixed'
x-spec-enum-id: 943288113dad6782
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
oob_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
virtual_chassis:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ nullable: true
nullable: true
vc_position:
type: integer
@@ -125901,8 +131434,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -126152,14 +131688,22 @@ components:
description:
type: string
maxLength: 200
+ environment_params:
+ nullable: true
+ title: Environment parameters
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
- description: Jinja2 template code. The list of objects being exported is
- passed as a context variable named queryset
.
+ description: Jinja template code.
mime_type:
type: string
description: Defaults to text/plain; charset=utf-8
maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
file_extension:
type: string
description: Extension to append to the rendered filename
@@ -126220,15 +131764,23 @@ components:
description:
type: string
maxLength: 200
+ environment_params:
+ nullable: true
+ title: Environment parameters
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
minLength: 1
- description: Jinja2 template code. The list of objects being exported is
- passed as a context variable named queryset
.
+ description: Jinja template code.
mime_type:
type: string
description: Defaults to text/plain; charset=utf-8
maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
file_extension:
type: string
description: Extension to append to the rendered filename
@@ -126237,7 +131789,9 @@ components:
type: boolean
description: Download file as attachment
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
required:
- name
- object_types
@@ -126394,7 +131948,9 @@ components:
description: Adds support for custom fields and tags.
properties:
group:
- $ref: '#/components/schemas/BriefFHRPGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefFHRPGroupRequest'
interface_type:
type: string
interface_id:
@@ -126532,6 +132088,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -126607,6 +132166,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -126678,7 +132243,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
label:
type: string
enum:
@@ -126701,6 +132266,9 @@ components:
- N Connector
- MRJ21
- FC
+ - FC/PC
+ - FC/UPC
+ - FC/APC
- LC
- LC/PC
- LC/UPC
@@ -126859,10 +132427,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -126893,6 +132466,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -126968,6 +132544,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -127039,7 +132621,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -127127,6 +132709,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -127202,6 +132787,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -127273,7 +132864,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
label:
type: string
enum:
@@ -127296,6 +132887,9 @@ components:
- N Connector
- MRJ21
- FC
+ - FC/PC
+ - FC/UPC
+ - FC/APC
- LC
- LC/PC
- LC/UPC
@@ -127370,12 +132964,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -127408,6 +133008,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -127483,6 +133086,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -127554,13 +133163,15 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- $ref: '#/components/schemas/BriefRearPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRearPortTemplateRequest'
rear_port_position:
type: integer
maximum: 1024
@@ -128399,12 +134010,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -128582,9 +134199,12 @@ components:
format: date-time
readOnly: true
nullable: true
+ mark_populated:
+ type: boolean
+ description: Prevent the creation of IP addresses within this range
mark_utilized:
type: boolean
- description: Treat as fully utilized
+ description: Report space as 100% utilized
required:
- display
- end_address
@@ -128604,12 +134224,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -128624,8 +134250,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 6388dfb94ca1cc15
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -128639,9 +134268,12 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ mark_populated:
+ type: boolean
+ description: Prevent the creation of IP addresses within this range
mark_utilized:
type: boolean
- description: Treat as fully utilized
+ description: Report space as 100% utilized
required:
- end_address
- start_address
@@ -128996,9 +134628,13 @@ components:
* `ah` - AH'
x-spec-enum-id: 1136c2cdfee84436
ike_policy:
- $ref: '#/components/schemas/BriefIKEPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIKEPolicyRequest'
ipsec_policy:
- $ref: '#/components/schemas/BriefIPSecPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIPSecPolicyRequest'
comments:
type: string
tags:
@@ -129308,6 +134944,22 @@ components:
- image
- object_id
- object_type
+ IntegerRange:
+ type: array
+ items:
+ type: array
+ items:
+ type: integer
+ minItems: 2
+ maxItems: 2
+ IntegerRangeRequest:
+ type: array
+ items:
+ type: array
+ items:
+ type: integer
+ minItems: 2
+ maxItems: 2
Interface:
type: object
description: Adds support for custom fields and tags.
@@ -129454,6 +135106,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -129691,6 +135344,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -129738,7 +135393,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
label:
type: string
enum:
@@ -129848,6 +135503,7 @@ components:
- E3 (34 Mbps)
- xDSL
- DOCSIS
+ - MoCA
- BPON (622 Mbps / 155 Mbps)
- EPON (1 Gbps)
- 10G-EPON (10 Gbps)
@@ -130982,14 +136638,19 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
vdcs:
type: array
items:
type: integer
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -131107,6 +136768,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -131344,6 +137006,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -131391,7 +137055,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
parent:
@@ -131412,8 +137076,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
speed:
type: integer
@@ -132131,20 +137798,29 @@ components:
nullable: true
title: Transmit power (dBm)
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
mark_connected:
type: boolean
@@ -132154,8 +137830,11 @@ components:
items:
type: integer
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -132313,6 +137992,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -132550,6 +138230,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -132597,7 +138279,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
label:
type: string
enum:
@@ -132707,6 +138389,7 @@ components:
- E3 (34 Mbps)
- xDSL
- DOCSIS
+ - MoCA
- BPON (622 Mbps / 155 Mbps)
- EPON (1 Gbps)
- 10G-EPON (10 Gbps)
@@ -132848,12 +138531,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -132973,6 +138662,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -133210,6 +138900,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -133257,7 +138949,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
mgmt_only:
@@ -133459,7 +139151,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
parent:
type: integer
nullable: true
@@ -133493,12 +139187,18 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: 2217e87d0c3efdda
role:
- allOf:
- - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ nullable: true
nullable: true
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
part_id:
type: string
@@ -133715,7 +139415,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
parent:
type: integer
nullable: true
@@ -133730,12 +139432,18 @@ components:
description: Physical label
maxLength: 64
role:
- allOf:
- - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ nullable: true
nullable: true
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
part_id:
type: string
@@ -134037,6 +139745,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -134062,8 +139771,10 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
label:
type: string
enum:
@@ -134080,6 +139791,28 @@ components:
- Ethernet Virtual Private LAN
- Ethernet Private Tree
- Ethernet Virtual Private Tree
+ - SPB
+ status:
+ type: object
+ properties:
+ value:
+ enum:
+ - active
+ - planned
+ - decommissioning
+ type: string
+ description: '* `active` - Active
+
+ * `planned` - Planned
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 937bacafb9d5d4bb
+ label:
+ type: string
+ enum:
+ - Active
+ - Planned
+ - Decommissioning
import_targets:
type: array
items:
@@ -134154,6 +139887,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -134179,8 +139913,22 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
+ status:
+ enum:
+ - active
+ - planned
+ - decommissioning
+ type: string
+ description: '* `active` - Active
+
+ * `planned` - Planned
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 937bacafb9d5d4bb
import_targets:
type: array
items:
@@ -134195,8 +139943,11 @@ components:
comments:
type: string
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -134267,7 +140018,9 @@ components:
description: Adds support for custom fields and tags.
properties:
l2vpn:
- $ref: '#/components/schemas/BriefL2VPNRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefL2VPNRequest'
assigned_object_type:
type: string
assigned_object_id:
@@ -134386,6 +140139,8 @@ components:
type: integer
format: int64
readOnly: true
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -134412,7 +140167,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
parent:
allOf:
- $ref: '#/components/schemas/NestedLocationRequest'
@@ -134436,8 +140193,11 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -134453,6 +140213,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- site
@@ -134799,18 +140561,26 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
minLength: 1
maxLength: 64
installed_module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
label:
type: string
@@ -134897,12 +140667,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -134928,11 +140704,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module_bay:
$ref: '#/components/schemas/NestedModuleBayRequest'
module_type:
- $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
status:
enum:
- offline
@@ -134997,6 +140777,10 @@ components:
display:
type: string
readOnly: true
+ profile:
+ allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfile'
+ nullable: true
manufacturer:
$ref: '#/components/schemas/BriefManufacturer'
model:
@@ -135079,6 +140863,8 @@ components:
description:
type: string
maxLength: 200
+ attributes:
+ nullable: true
comments:
type: string
tags:
@@ -135104,12 +140890,95 @@ components:
- manufacturer
- model
- url
+ ModuleTypeProfile:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display_url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ schema:
+ nullable: true
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTag'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ created:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ last_updated:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ required:
+ - display
+ - id
+ - name
+ - url
+ ModuleTypeProfileRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ schema:
+ nullable: true
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ required:
+ - name
ModuleTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
+ profile:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfileRequest'
+ nullable: true
+ nullable: true
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -135169,6 +141038,8 @@ components:
description:
type: string
maxLength: 200
+ attributes:
+ nullable: true
comments:
type: string
tags:
@@ -135271,13 +141142,59 @@ components:
readOnly: true
name:
type: string
- nullable: true
- maxLength: 64
+ nullable: true
+ maxLength: 64
+ required:
+ - display
+ - id
+ - url
+ NestedDeviceRequest:
+ type: object
+ description: 'Represents an object related through a ForeignKey field. On write,
+ it accepts a primary key (PK) value or a
+
+ dictionary of attributes which can be used to uniquely identify the related
+ object. This class should be
+
+ subclassed to return a full representation of the related object on read.'
+ properties:
+ name:
+ type: string
+ nullable: true
+ maxLength: 64
+ NestedDeviceRole:
+ type: object
+ description: 'Represents an object related through a ForeignKey field. On write,
+ it accepts a primary key (PK) value or a
+
+ dictionary of attributes which can be used to uniquely identify the related
+ object. This class should be
+
+ subclassed to return a full representation of the related object on read.'
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display_url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ name:
+ type: string
+ maxLength: 100
required:
- display
- id
+ - name
- url
- NestedDeviceRequest:
+ NestedDeviceRoleRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -135289,8 +141206,10 @@ components:
properties:
name:
type: string
- nullable: true
- maxLength: 64
+ minLength: 1
+ maxLength: 100
+ required:
+ - name
NestedGroup:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
@@ -136350,7 +142269,9 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
read:
type: string
format: date-time
@@ -138089,6 +144010,29 @@ components:
type: array
items:
$ref: '#/components/schemas/ModuleType'
+ PaginatedModuleTypeProfileList:
+ type: object
+ required:
+ - count
+ - results
+ properties:
+ count:
+ type: integer
+ example: 123
+ next:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ModuleTypeProfile'
PaginatedNotificationGroupList:
type: object
required:
@@ -138871,6 +144815,29 @@ components:
type: array
items:
$ref: '#/components/schemas/Subscription'
+ PaginatedTableConfigList:
+ type: object
+ required:
+ - count
+ - results
+ properties:
+ count:
+ type: integer
+ example: 123
+ next:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/TableConfig'
PaginatedTagList:
type: object
required:
@@ -138894,6 +144861,29 @@ components:
type: array
items:
$ref: '#/components/schemas/Tag'
+ PaginatedTaggedItemList:
+ type: object
+ required:
+ - count
+ - results
+ properties:
+ count:
+ type: integer
+ example: 123
+ next:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/TaggedItem'
PaginatedTenantGroupList:
type: object
required:
@@ -139460,7 +145450,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
rir:
- $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRIRRequest'
start:
type: integer
maximum: 4294967295
@@ -139472,8 +145464,11 @@ components:
minimum: 1
format: int64
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -139496,12 +145491,18 @@ components:
format: int64
description: 16- or 32-bit autonomous system number
rir:
- allOf:
- - $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRIRRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -139530,7 +145531,9 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
PatchedCableTerminationRequest:
type: object
description: Adds support for custom fields and tags.
@@ -139571,8 +145574,11 @@ components:
type: string
maxLength: 200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -139586,7 +145592,9 @@ components:
description: Adds support for custom fields and tags.
properties:
circuit:
- $ref: '#/components/schemas/BriefCircuitRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitRequest'
term_side:
enum:
- A
@@ -139787,7 +145795,9 @@ components:
type: string
minLength: 1
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
data: {}
PatchedConfigTemplateRequest:
type: object
@@ -139806,14 +145816,31 @@ components:
environment_params:
nullable: true
title: Environment parameters
- description: Any additional
- parameters to pass when constructing the Jinja2 environment.
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
minLength: 1
- description: Jinja2 template code.
+ description: Jinja template code.
+ mime_type:
+ type: string
+ description: Defaults to text/plain; charset=utf-8
+ maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
+ file_extension:
+ type: string
+ description: Extension to append to the rendered filename
+ maxLength: 15
+ as_attachment:
+ type: boolean
+ description: Download file as attachment
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
tags:
type: array
items:
@@ -139822,10 +145849,10 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- group:
- allOf:
- - $ref: '#/components/schemas/BriefContactGroupRequest'
- nullable: true
+ groups:
+ type: array
+ items:
+ type: integer
name:
type: string
minLength: 1
@@ -139980,7 +146007,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
name:
type: string
minLength: 1
@@ -139993,8 +146022,11 @@ components:
type: string
maxLength: 200
installed_device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -140011,7 +146043,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
name:
type: string
minLength: 1
@@ -140025,41 +146059,6 @@ components:
description:
type: string
maxLength: 200
- PatchedDeviceRoleRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- color:
- type: string
- minLength: 1
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- vm_role:
- type: boolean
- description: Virtual machines may be assigned to this role
- config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
PatchedExportTemplateRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -140078,15 +146077,23 @@ components:
description:
type: string
maxLength: 200
+ environment_params:
+ nullable: true
+ title: Environment parameters
+ description: Any additional
+ parameters to pass when constructing the Jinja environment
template_code:
type: string
minLength: 1
- description: Jinja2 template code. The list of objects being exported is
- passed as a context variable named queryset
.
+ description: Jinja template code.
mime_type:
type: string
description: Defaults to text/plain; charset=utf-8
maxLength: 50
+ file_name:
+ type: string
+ description: Filename to give to the rendered export file
+ maxLength: 200
file_extension:
type: string
description: Extension to append to the rendered filename
@@ -140095,13 +146102,17 @@ components:
type: boolean
description: Download file as attachment
data_source:
- $ref: '#/components/schemas/BriefDataSourceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDataSourceRequest'
PatchedFHRPGroupAssignmentRequest:
type: object
description: Adds support for custom fields and tags.
properties:
group:
- $ref: '#/components/schemas/BriefFHRPGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefFHRPGroupRequest'
interface_type:
type: string
interface_id:
@@ -140250,7 +146261,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
parent:
type: integer
nullable: true
@@ -140265,12 +146278,18 @@ components:
description: Physical label
maxLength: 64
role:
- allOf:
- - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ nullable: true
nullable: true
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
part_id:
type: string
@@ -140293,7 +146312,9 @@ components:
description: Adds support for custom fields and tags.
properties:
l2vpn:
- $ref: '#/components/schemas/BriefL2VPNRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefL2VPNRequest'
assigned_object_type:
type: string
assigned_object_id:
@@ -140363,18 +146384,26 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
minLength: 1
maxLength: 64
installed_module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
label:
type: string
@@ -140402,12 +146431,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -140426,6 +146461,28 @@ components:
description:
type: string
maxLength: 200
+ PatchedModuleTypeProfileRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ schema:
+ nullable: true
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedNotificationGroupRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -140463,7 +146520,9 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
read:
type: string
format: date-time
@@ -140546,12 +146605,18 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -140568,10 +146633,15 @@ components:
description: Adds support for custom fields and tags.
properties:
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -140594,7 +146664,9 @@ components:
description: Adds support for custom fields and tags.
properties:
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
name:
type: string
default: ''
@@ -140621,7 +146693,9 @@ components:
description: Adds support for custom fields and tags.
properties:
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
name:
type: string
minLength: 1
@@ -140707,7 +146781,9 @@ components:
description: Adds support for custom fields and tags.
properties:
rack:
- $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRackRequest'
units:
type: array
items:
@@ -140715,10 +146791,15 @@ components:
maximum: 32767
minimum: 0
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -140798,8 +146879,11 @@ components:
description: Route target value (formatted in accordance with RFC 4360)
maxLength: 21
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -140876,7 +146960,53 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
+ PatchedTableConfigRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ object_type:
+ type: string
+ table:
+ type: string
+ minLength: 1
+ maxLength: 100
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ user:
+ type: integer
+ nullable: true
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ enabled:
+ type: boolean
+ shared:
+ type: boolean
+ columns:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 100
+ ordering:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 100
+ nullable: true
PatchedTagRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -140901,6 +147031,10 @@ components:
description:
type: string
maxLength: 200
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
object_types:
type: array
items:
@@ -140919,8 +147053,11 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
group:
- allOf:
- - $ref: '#/components/schemas/BriefTenantGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantGroupRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -140942,7 +147079,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
expires:
type: string
format: date-time
@@ -140953,6 +147092,7 @@ components:
nullable: true
key:
type: string
+ writeOnly: true
maxLength: 40
minLength: 40
write_enabled:
@@ -141057,6 +147197,17 @@ components:
scope_id:
type: integer
nullable: true
+ vid_ranges:
+ type: array
+ items:
+ $ref: '#/components/schemas/IntegerRangeRequest'
+ tenant:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
+ nullable: true
description:
type: string
maxLength: 200
@@ -141114,8 +147265,11 @@ components:
description: Unique route distinguisher (as defined in RFC 4364)
maxLength: 21
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
enforce_unique:
type: boolean
@@ -141173,7 +147327,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/BriefVirtualMachineRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualMachineRequest'
name:
type: string
minLength: 1
@@ -141278,10 +147434,15 @@ components:
type: string
minLength: 1
rir:
- $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRIRRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
date_added:
type: string
@@ -141401,8 +147562,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
label:
type: string
@@ -141459,7 +147623,9 @@ components:
description: Base serializer for group assignments under CircuitSerializer.
properties:
group:
- $ref: '#/components/schemas/BriefCircuitGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitGroupRequest'
member_type:
type: string
member_id:
@@ -141499,13 +147665,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitTypeRequest'
status:
enum:
- planned
@@ -141528,8 +147701,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
install_date:
type: string
@@ -141598,10 +147774,15 @@ components:
minLength: 1
maxLength: 100
type:
- $ref: '#/components/schemas/BriefClusterTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefClusterTypeRequest'
group:
- allOf:
- - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -141622,8 +147803,11 @@ components:
* `offline` - Offline'
x-spec-enum-id: 79d20a734d0eecbb
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -141648,10 +147832,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -141768,12 +147957,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -141843,10 +148038,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -141963,12 +148163,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -142045,10 +148251,15 @@ components:
minimum: 0
format: int64
contact:
- $ref: '#/components/schemas/BriefContactRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefContactRequest'
role:
- allOf:
- - $ref: '#/components/schemas/BriefContactRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefContactRoleRequest'
+ nullable: true
nullable: true
priority:
enum:
@@ -142100,6 +148311,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableCustomFieldChoiceSetRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -142319,8 +148532,11 @@ components:
will limit values to exactly three uppercase letters.
maxLength: 500
choice_set:
- allOf:
- - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -142346,6 +148562,30 @@ components:
description:
type: string
maxLength: 200
+ sync_interval:
+ enum:
+ - 1
+ - 60
+ - 720
+ - 1440
+ - 10080
+ - 43200
+ type: integer
+ description: '* `1` - Minutely
+
+ * `60` - Hourly
+
+ * `720` - 12 hours
+
+ * `1440` - Daily
+
+ * `10080` - Weekly
+
+ * `43200` - 30 days'
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ minimum: 0
+ maximum: 32767
parameters:
nullable: true
ignore_rules:
@@ -142356,15 +148596,63 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedWritableDeviceRoleRequest:
+ 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_]+$
+ color:
+ type: string
+ minLength: 1
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
+ vm_role:
+ type: boolean
+ description: Virtual machines may be assigned to this role
+ config_template:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
+ nullable: true
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ comments:
+ type: string
PatchedWritableDeviceTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
default_platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
model:
type: string
@@ -142496,16 +148784,26 @@ components:
nullable: true
maxLength: 64
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
role:
- $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -142518,14 +148816,22 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
position:
type: number
@@ -142625,24 +148931,39 @@ components:
x-spec-enum-id: 943288113dad6782
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
oob_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
virtual_chassis:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ nullable: true
nullable: true
vc_position:
type: integer
@@ -142661,8 +148982,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -142755,10 +149079,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -142789,6 +149118,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -142864,6 +149196,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -142935,7 +149273,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -142968,12 +149306,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -143006,6 +149350,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -143081,6 +149428,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -143152,13 +149505,15 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- $ref: '#/components/schemas/BriefRearPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRearPortTemplateRequest'
rear_port_position:
type: integer
maximum: 1024
@@ -143391,12 +149746,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -143493,12 +149854,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -143516,8 +149883,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -143531,9 +149901,12 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ mark_populated:
+ type: boolean
+ description: Prevent the creation of IP addresses within this range
mark_utilized:
type: boolean
- description: Treat as fully utilized
+ description: Report space as 100% utilized
PatchedWritableIPSecPolicyRequest:
type: object
description: Adds support for custom fields and tags.
@@ -143660,9 +150033,13 @@ components:
* `ah` - AH'
x-spec-enum-id: 1136c2cdfee84436
ike_policy:
- $ref: '#/components/schemas/BriefIKEPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIKEPolicyRequest'
ipsec_policy:
- $ref: '#/components/schemas/BriefIPSecPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIPSecPolicyRequest'
comments:
type: string
tags:
@@ -143762,14 +150139,19 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
vdcs:
type: array
items:
type: integer
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -143887,6 +150269,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -144124,6 +150507,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -144171,7 +150556,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
parent:
@@ -144192,8 +150577,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
speed:
type: integer
@@ -144921,20 +151309,29 @@ components:
nullable: true
title: Transmit power (dBm)
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
mark_connected:
type: boolean
@@ -144944,8 +151341,11 @@ components:
items:
type: integer
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -144962,12 +151362,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -145087,6 +151493,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -145324,6 +151731,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -145371,7 +151780,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
mgmt_only:
@@ -145441,7 +151850,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
parent:
type: integer
nullable: true
@@ -145475,12 +151886,18 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: 2217e87d0c3efdda
role:
- allOf:
- - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ nullable: true
nullable: true
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
part_id:
type: string
@@ -145590,6 +152007,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -145615,8 +152033,22 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
+ status:
+ enum:
+ - active
+ - planned
+ - decommissioning
+ type: string
+ description: '* `active` - Active
+
+ * `planned` - Planned
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 937bacafb9d5d4bb
import_targets:
type: array
items:
@@ -145631,8 +152063,11 @@ components:
comments:
type: string
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -145655,7 +152090,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
parent:
type: integer
nullable: true
@@ -145678,8 +152115,11 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -145695,16 +152135,22 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableModuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module_bay:
type: integer
module_type:
- $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
status:
enum:
- offline
@@ -145751,8 +152197,17 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
+ profile:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfileRequest'
+ nullable: true
+ nullable: true
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -145812,6 +152267,8 @@ components:
description:
type: string
maxLength: 200
+ attributes:
+ nullable: true
comments:
type: string
tags:
@@ -145826,10 +152283,15 @@ components:
description: Adds support for custom fields and tags.
properties:
power_panel:
- $ref: '#/components/schemas/BriefPowerPanelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefPowerPanelRequest'
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -145897,8 +152359,11 @@ components:
type: string
maxLength: 200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -145914,10 +152379,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -146229,13 +152699,28 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
+ status:
+ enum:
+ - enabled
+ - disabled
+ - faulty
+ type: string
+ description: '* `enabled` - Enabled
+
+ * `disabled` - Disabled
+
+ * `faulty` - Faulty'
+ x-spec-enum-id: 1024f7deaed962d7
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -146275,12 +152760,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -146592,8 +153083,11 @@ components:
x-spec-enum-id: f8c08053f2db8830
nullable: true
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -146620,10 +153114,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -146986,12 +153485,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -147343,8 +153848,11 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -147353,12 +153861,18 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -147379,8 +153893,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
is_pool:
type: boolean
@@ -147414,14 +153931,22 @@ components:
nullable: true
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -147442,8 +153967,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 0c556d55dc1baa13
role:
- allOf:
- - $ref: '#/components/schemas/BriefRackRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRoleRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -147455,8 +153983,11 @@ components:
description: A unique tag used to identify this rack
maxLength: 50
rack_type:
- allOf:
- - $ref: '#/components/schemas/BriefRackTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackTypeRequest'
+ nullable: true
nullable: true
form_factor:
enum:
@@ -147556,6 +154087,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -147608,7 +154145,9 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -147686,6 +154225,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -147755,10 +154300,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -147789,6 +154339,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -147864,6 +154417,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -147935,7 +154494,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -147966,12 +154525,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -148004,6 +154569,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -148079,6 +154647,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -148150,7 +154724,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -148188,18 +154762,19 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableServiceRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
- nullable: true
- virtual_machine:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualMachineRequest'
- nullable: true
+ parent_object_type:
+ type: string
+ parent_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
name:
type: string
minLength: 1
@@ -148304,6 +154879,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableSiteRequest:
type: object
description: Adds support for custom fields and tags.
@@ -148337,16 +154914,25 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
region:
- allOf:
- - $ref: '#/components/schemas/BriefRegionRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRegionRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -148424,6 +155010,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableTunnelRequest:
type: object
description: Adds support for custom fields and tags.
@@ -148445,8 +155033,11 @@ components:
* `disabled` - Disabled'
x-spec-enum-id: 0d65f7912cba74aa
group:
- allOf:
- - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ nullable: true
nullable: true
encapsulation:
enum:
@@ -148476,12 +155067,18 @@ components:
* `pptp` - PPTP'
x-spec-enum-id: 54a2e45824009c49
ipsec_profile:
- allOf:
- - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tunnel_id:
type: integer
@@ -148506,7 +155103,9 @@ components:
description: Adds support for custom fields and tags.
properties:
tunnel:
- $ref: '#/components/schemas/BriefTunnelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefTunnelRequest'
role:
enum:
- peer
@@ -148528,8 +155127,11 @@ components:
format: int64
nullable: true
outside_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -148543,12 +155145,18 @@ components:
description: Adds support for custom fields and tags.
properties:
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ nullable: true
nullable: true
vid:
type: integer
@@ -148561,8 +155169,11 @@ components:
minLength: 1
maxLength: 64
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -148580,8 +155191,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -148618,7 +155232,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/BriefVirtualMachineRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualMachineRequest'
name:
type: string
minLength: 1
@@ -148639,8 +155255,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -148666,24 +155285,36 @@ components:
* `q-in-q` - Q-in-Q (802.1ad)'
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -148729,13 +155360,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider_network:
- $ref: '#/components/schemas/BriefProviderNetworkRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderNetworkRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
status:
enum:
- planned
@@ -148758,8 +155396,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -148778,7 +155419,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_circuit:
- $ref: '#/components/schemas/BriefVirtualCircuitRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitRequest'
role:
enum:
- peer
@@ -148792,7 +155435,9 @@ components:
* `spoke` - Spoke'
x-spec-enum-id: 52225cd60b867572
interface:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
description:
type: string
maxLength: 200
@@ -148812,23 +155457,34 @@ components:
minLength: 1
maxLength: 64
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -148870,6 +155526,7 @@ components:
- staged
- failed
- decommissioning
+ - paused
type: string
description: '* `offline` - Offline
@@ -148881,43 +155538,69 @@ components:
* `failed` - Failed
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
+ * `decommissioning` - Decommissioning
+
+ * `paused` - Paused'
+ x-spec-enum-id: c649dc8de233760f
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRequest'
+ nullable: true
nullable: true
serial:
type: string
title: Serial number
maxLength: 50
role:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
vcpus:
type: number
@@ -148944,8 +155627,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -148984,6 +155670,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
PatchedWritableWirelessLANRequest:
type: object
description: Adds support for custom fields and tags.
@@ -148996,8 +155684,11 @@ components:
type: string
maxLength: 200
group:
- allOf:
- - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -149015,8 +155706,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 412ebdca597f609e
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -149025,8 +155719,11 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
@@ -149079,9 +155776,13 @@ components:
description: Adds support for custom fields and tags.
properties:
interface_a:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
interface_b:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
ssid:
type: string
maxLength: 32
@@ -149098,8 +155799,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
@@ -149256,12 +155960,18 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -149468,10 +156178,15 @@ components:
description: Adds support for custom fields and tags.
properties:
power_panel:
- $ref: '#/components/schemas/BriefPowerPanelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefPowerPanelRequest'
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -149539,8 +156254,11 @@ components:
type: string
maxLength: 200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -149988,6 +156706,27 @@ components:
- Hardwired
- Other
nullable: true
+ status:
+ type: object
+ properties:
+ value:
+ enum:
+ - enabled
+ - disabled
+ - faulty
+ type: string
+ description: '* `enabled` - Enabled
+
+ * `disabled` - Disabled
+
+ * `faulty` - Faulty'
+ x-spec-enum-id: 1024f7deaed962d7
+ label:
+ type: string
+ enum:
+ - Enabled
+ - Disabled
+ - Faulty
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -150089,10 +156828,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -150401,13 +157145,28 @@ components:
* `other` - Other'
x-spec-enum-id: f8c08053f2db8830
nullable: true
+ status:
+ enum:
+ - enabled
+ - disabled
+ - faulty
+ type: string
+ description: '* `enabled` - Enabled
+
+ * `disabled` - Disabled
+
+ * `faulty` - Faulty'
+ x-spec-enum-id: 1024f7deaed962d7
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -150929,12 +157688,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -151246,8 +158011,11 @@ components:
x-spec-enum-id: f8c08053f2db8830
nullable: true
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -151332,10 +158100,15 @@ components:
description: Adds support for custom fields and tags.
properties:
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -151896,10 +158669,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -152753,12 +159531,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -153244,8 +160028,11 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -153254,12 +160041,18 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -153277,8 +160070,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: d38bee5f512701d9
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
is_pool:
type: boolean
@@ -153428,7 +160224,9 @@ components:
description: Adds support for custom fields and tags.
properties:
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
name:
type: string
default: ''
@@ -153512,7 +160310,9 @@ components:
description: Adds support for custom fields and tags.
properties:
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
name:
type: string
minLength: 1
@@ -153868,6 +160668,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -153967,14 +160773,22 @@ components:
nullable: true
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -153995,8 +160809,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 0c556d55dc1baa13
role:
- allOf:
- - $ref: '#/components/schemas/BriefRackRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRoleRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -154008,8 +160825,11 @@ components:
description: A unique tag used to identify this rack
maxLength: 50
rack_type:
- allOf:
- - $ref: '#/components/schemas/BriefRackTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackTypeRequest'
+ nullable: true
nullable: true
form_factor:
enum:
@@ -154104,6 +160924,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -154220,7 +161046,9 @@ components:
description: Adds support for custom fields and tags.
properties:
rack:
- $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRackRequest'
units:
type: array
items:
@@ -154228,10 +161056,15 @@ components:
maximum: 32767
minimum: 0
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -154456,6 +161289,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -154560,7 +161399,9 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -154635,6 +161476,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -154809,6 +161656,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -154884,6 +161734,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -154955,7 +161811,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
label:
type: string
enum:
@@ -154978,6 +161834,9 @@ components:
- N Connector
- MRJ21
- FC
+ - FC/PC
+ - FC/UPC
+ - FC/APC
- LC
- LC/PC
- LC/UPC
@@ -155081,10 +161940,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -155115,6 +161979,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -155190,6 +162057,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -155261,7 +162134,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -155346,6 +162219,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -155421,6 +162297,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -155492,7 +162374,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
label:
type: string
enum:
@@ -155515,6 +162397,9 @@ components:
- N Connector
- MRJ21
- FC
+ - FC/PC
+ - FC/UPC
+ - FC/APC
- LC
- LC/PC
- LC/UPC
@@ -155586,12 +162471,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -155624,6 +162515,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -155699,6 +162593,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -155770,7 +162670,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -155842,6 +162742,8 @@ components:
type: integer
format: int64
readOnly: true
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -155880,6 +162782,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -156039,8 +162943,11 @@ components:
description: Route target value (formatted in accordance with RFC 4360)
maxLength: 21
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -156244,14 +163151,16 @@ components:
display:
type: string
readOnly: true
- device:
- allOf:
- - $ref: '#/components/schemas/BriefDevice'
- nullable: true
- virtual_machine:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualMachine'
+ parent_object_type:
+ type: string
+ parent_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ parent:
nullable: true
+ readOnly: true
name:
type: string
maxLength: 100
@@ -156313,20 +163222,21 @@ components:
- display
- id
- name
+ - parent_object_id
+ - parent_object_type
- ports
- url
ServiceRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
- nullable: true
- virtual_machine:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualMachineRequest'
- nullable: true
+ parent_object_type:
+ type: string
+ parent_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
name:
type: string
minLength: 1
@@ -156368,6 +163278,8 @@ components:
additionalProperties: {}
required:
- name
+ - parent_object_id
+ - parent_object_type
- ports
ServiceTemplate:
type: object
@@ -156701,6 +163613,8 @@ components:
type: integer
format: int64
readOnly: true
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -156739,6 +163653,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -156775,16 +163691,25 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
region:
- allOf:
- - $ref: '#/components/schemas/BriefRegionRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRegionRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -156894,11 +163819,134 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
required:
- object_id
- object_type
- user
+ TableConfig:
+ 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_url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ object_type:
+ type: string
+ table:
+ type: string
+ maxLength: 100
+ name:
+ type: string
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ user:
+ type: integer
+ nullable: true
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ enabled:
+ type: boolean
+ shared:
+ type: boolean
+ columns:
+ type: array
+ items:
+ type: string
+ maxLength: 100
+ ordering:
+ type: array
+ items:
+ type: string
+ maxLength: 100
+ nullable: true
+ created:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ last_updated:
+ type: string
+ format: date-time
+ readOnly: true
+ nullable: true
+ required:
+ - columns
+ - display
+ - id
+ - name
+ - object_type
+ - table
+ - url
+ TableConfigRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ object_type:
+ type: string
+ table:
+ type: string
+ minLength: 1
+ maxLength: 100
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ user:
+ type: integer
+ nullable: true
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ enabled:
+ type: boolean
+ shared:
+ type: boolean
+ columns:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 100
+ ordering:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 100
+ nullable: true
+ required:
+ - columns
+ - name
+ - object_type
+ - table
Tag:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -156934,6 +163982,10 @@ components:
description:
type: string
maxLength: 200
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
object_types:
type: array
items:
@@ -156957,7 +164009,6 @@ components:
- id
- name
- slug
- - tagged_items
- url
TagRequest:
type: object
@@ -156983,6 +164034,10 @@ components:
description:
type: string
maxLength: 200
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
object_types:
type: array
items:
@@ -156990,6 +164045,40 @@ components:
required:
- name
- slug
+ TaggedItem:
+ type: object
+ properties:
+ id:
+ type: integer
+ readOnly: true
+ url:
+ type: string
+ format: uri
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ object_type:
+ type: string
+ readOnly: true
+ object_id:
+ type: integer
+ maximum: 2147483647
+ minimum: -2147483648
+ object:
+ readOnly: true
+ tag:
+ allOf:
+ - $ref: '#/components/schemas/BriefTag'
+ readOnly: true
+ required:
+ - display
+ - id
+ - object
+ - object_id
+ - object_type
+ - tag
+ - url
Tenant:
type: object
description: Adds support for custom fields and tags.
@@ -157140,6 +164229,8 @@ components:
type: integer
readOnly: true
default: 0
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -157178,6 +164269,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -157195,8 +164288,11 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
group:
- allOf:
- - $ref: '#/components/schemas/BriefTenantGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantGroupRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -157248,10 +164344,6 @@ components:
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
@@ -157352,7 +164444,9 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
user:
- $ref: '#/components/schemas/BriefUserRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefUserRequest'
expires:
type: string
format: date-time
@@ -157363,6 +164457,7 @@ components:
nullable: true
key:
type: string
+ writeOnly: true
maxLength: 40
minLength: 40
write_enabled:
@@ -157609,8 +164704,11 @@ components:
* `disabled` - Disabled'
x-spec-enum-id: 0d65f7912cba74aa
group:
- allOf:
- - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ nullable: true
nullable: true
encapsulation:
enum:
@@ -157640,12 +164738,18 @@ components:
* `pptp` - PPTP'
x-spec-enum-id: 54a2e45824009c49
ipsec_profile:
- allOf:
- - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tunnel_id:
type: integer
@@ -157754,7 +164858,9 @@ components:
description: Adds support for custom fields and tags.
properties:
tunnel:
- $ref: '#/components/schemas/BriefTunnelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefTunnelRequest'
role:
enum:
- peer
@@ -157776,8 +164882,11 @@ components:
format: int64
nullable: true
outside_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -158070,6 +165179,14 @@ components:
scope:
nullable: true
readOnly: true
+ vid_ranges:
+ type: array
+ items:
+ $ref: '#/components/schemas/IntegerRange'
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/BriefTenant'
+ nullable: true
description:
type: string
maxLength: 200
@@ -158123,6 +165240,17 @@ components:
scope_id:
type: integer
nullable: true
+ vid_ranges:
+ type: array
+ items:
+ $ref: '#/components/schemas/IntegerRangeRequest'
+ tenant:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
+ nullable: true
description:
type: string
maxLength: 200
@@ -158141,12 +165269,18 @@ components:
description: Adds support for custom fields and tags.
properties:
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ nullable: true
nullable: true
vid:
type: integer
@@ -158159,8 +165293,11 @@ components:
minLength: 1
maxLength: 64
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -158175,8 +165312,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 6388dfb94ca1cc15
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -158455,7 +165595,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/BriefVirtualMachineRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualMachineRequest'
name:
type: string
minLength: 1
@@ -158476,8 +165618,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -158499,24 +165644,36 @@ components:
* `q-in-q` - Q-in-Q (802.1ad)'
x-spec-enum-id: b6fe48fe21dbf01d
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -158621,8 +165778,11 @@ components:
description: Unique route distinguisher (as defined in RFC 4364)
maxLength: 21
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
enforce_unique:
type: boolean
@@ -158851,13 +166011,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider_network:
- $ref: '#/components/schemas/BriefProviderNetworkRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderNetworkRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
status:
enum:
- planned
@@ -158880,8 +166047,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -158973,7 +166143,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_circuit:
- $ref: '#/components/schemas/BriefVirtualCircuitRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitRequest'
role:
enum:
- peer
@@ -158987,7 +166159,9 @@ components:
* `spoke` - Spoke'
x-spec-enum-id: 52225cd60b867572
interface:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
description:
type: string
maxLength: 200
@@ -159199,23 +166373,34 @@ components:
minLength: 1
maxLength: 64
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -159305,7 +166490,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/BriefVirtualMachineRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualMachineRequest'
name:
type: string
minLength: 1
@@ -159361,6 +166548,7 @@ components:
- staged
- failed
- decommissioning
+ - paused
type: string
description: '* `offline` - Offline
@@ -159372,8 +166560,10 @@ components:
* `failed` - Failed
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
+ * `decommissioning` - Decommissioning
+
+ * `paused` - Paused'
+ x-spec-enum-id: c649dc8de233760f
label:
type: string
enum:
@@ -159383,6 +166573,7 @@ components:
- Staged
- Failed
- Decommissioning
+ - Paused
site:
allOf:
- $ref: '#/components/schemas/BriefSite'
@@ -159504,6 +166695,7 @@ components:
- staged
- failed
- decommissioning
+ - paused
type: string
description: '* `offline` - Offline
@@ -159515,43 +166707,69 @@ components:
* `failed` - Failed
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
+ * `decommissioning` - Decommissioning
+
+ * `paused` - Paused'
+ x-spec-enum-id: c649dc8de233760f
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRequest'
+ nullable: true
nullable: true
serial:
type: string
title: Serial number
maxLength: 50
role:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
vcpus:
type: number
@@ -159578,8 +166796,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -159978,6 +167199,8 @@ components:
type: integer
readOnly: true
default: 0
+ comments:
+ type: string
_depth:
type: integer
readOnly: true
@@ -160016,6 +167239,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -160031,8 +167256,11 @@ components:
type: string
maxLength: 200
group:
- allOf:
- - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -160051,8 +167279,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 412ebdca597f609e
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -160061,8 +167292,11 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
@@ -160278,9 +167512,13 @@ components:
description: Adds support for custom fields and tags.
properties:
interface_a:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
interface_b:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
ssid:
type: string
maxLength: 32
@@ -160297,8 +167535,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
@@ -160381,10 +167622,15 @@ components:
type: string
minLength: 1
rir:
- $ref: '#/components/schemas/BriefRIRRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRIRRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
date_added:
type: string
@@ -160507,8 +167753,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
label:
type: string
@@ -160565,7 +167814,9 @@ components:
description: Base serializer for group assignments under CircuitSerializer.
properties:
group:
- $ref: '#/components/schemas/BriefCircuitGroupRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitGroupRequest'
member_type:
type: string
member_id:
@@ -160609,13 +167860,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider:
- $ref: '#/components/schemas/BriefProviderRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefCircuitTypeRequest'
status:
enum:
- planned
@@ -160638,8 +167896,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
install_date:
type: string
@@ -160712,10 +167973,15 @@ components:
minLength: 1
maxLength: 100
type:
- $ref: '#/components/schemas/BriefClusterTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefClusterTypeRequest'
group:
- allOf:
- - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -160736,8 +168002,11 @@ components:
* `offline` - Offline'
x-spec-enum-id: 79d20a734d0eecbb
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -160765,10 +168034,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -160888,12 +168162,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -160965,10 +168245,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -161088,12 +168373,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -161172,10 +168463,15 @@ components:
minimum: 0
format: int64
contact:
- $ref: '#/components/schemas/BriefContactRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefContactRequest'
role:
- allOf:
- - $ref: '#/components/schemas/BriefContactRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefContactRoleRequest'
+ nullable: true
nullable: true
priority:
enum:
@@ -161231,6 +168527,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -161456,8 +168754,11 @@ components:
will limit values to exactly three uppercase letters.
maxLength: 500
choice_set:
- allOf:
- - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -161486,6 +168787,30 @@ components:
description:
type: string
maxLength: 200
+ sync_interval:
+ enum:
+ - 1
+ - 60
+ - 720
+ - 1440
+ - 10080
+ - 43200
+ type: integer
+ description: '* `1` - Minutely
+
+ * `60` - Hourly
+
+ * `720` - 12 hours
+
+ * `1440` - Daily
+
+ * `10080` - Weekly
+
+ * `43200` - 30 days'
+ x-spec-enum-id: 2e9f2567ecd93fbe
+ nullable: true
+ minimum: 0
+ maximum: 32767
parameters:
nullable: true
ignore_rules:
@@ -161500,15 +168825,66 @@ components:
- name
- source_url
- type
+ WritableDeviceRoleRequest:
+ 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_]+$
+ color:
+ type: string
+ minLength: 1
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
+ vm_role:
+ type: boolean
+ description: Virtual machines may be assigned to this role
+ config_template:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
+ nullable: true
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ comments:
+ type: string
+ required:
+ - name
+ - slug
WritableDeviceTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
default_platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
model:
type: string
@@ -161644,16 +169020,26 @@ components:
nullable: true
maxLength: 64
device_type:
- $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
role:
- $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -161666,14 +169052,22 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
position:
type: number
@@ -161773,24 +169167,39 @@ components:
x-spec-enum-id: 943288113dad6782
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
oob_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
virtual_chassis:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVirtualChassisRequest'
+ nullable: true
nullable: true
vc_position:
type: integer
@@ -161809,8 +169218,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -161912,10 +169324,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -161946,6 +169363,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -162021,6 +169441,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -162092,7 +169518,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -162130,12 +169556,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -162168,6 +169600,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -162243,6 +169678,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -162314,13 +169755,15 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- $ref: '#/components/schemas/BriefRearPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefRearPortTemplateRequest'
rear_port_position:
type: integer
maximum: 1024
@@ -162564,12 +170007,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -162668,12 +170117,18 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -162691,8 +170146,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -162706,9 +170164,12 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ mark_populated:
+ type: boolean
+ description: Prevent the creation of IP addresses within this range
mark_utilized:
type: boolean
- description: Treat as fully utilized
+ description: Report space as 100% utilized
required:
- end_address
- start_address
@@ -162840,9 +170301,13 @@ components:
* `ah` - AH'
x-spec-enum-id: 1136c2cdfee84436
ike_policy:
- $ref: '#/components/schemas/BriefIKEPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIKEPolicyRequest'
ipsec_policy:
- $ref: '#/components/schemas/BriefIPSecPolicyRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefIPSecPolicyRequest'
comments:
type: string
tags:
@@ -162949,14 +170414,19 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
vdcs:
type: array
items:
type: integer
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -163074,6 +170544,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -163311,6 +170782,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -163358,7 +170831,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
parent:
@@ -163379,8 +170852,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
speed:
type: integer
@@ -164108,20 +171584,29 @@ components:
nullable: true
title: Transmit power (dBm)
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
mark_connected:
type: boolean
@@ -164131,8 +171616,11 @@ components:
items:
type: integer
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -164153,12 +171641,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -164278,6 +171772,7 @@ components:
- e3
- xdsl
- docsis
+ - moca
- bpon
- epon
- 10g-epon
@@ -164515,6 +172010,8 @@ components:
* `docsis` - DOCSIS
+ * `moca` - MoCA
+
* `bpon` - BPON (622 Mbps / 155 Mbps)
* `epon` - EPON (1 Gbps)
@@ -164562,7 +172059,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 4b917ee05489852b
+ x-spec-enum-id: 017cd578206eb6ae
enabled:
type: boolean
mgmt_only:
@@ -164635,7 +172132,9 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
parent:
type: integer
nullable: true
@@ -164669,12 +172168,18 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: 2217e87d0c3efdda
role:
- allOf:
- - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefInventoryItemRoleRequest'
+ nullable: true
nullable: true
manufacturer:
- allOf:
- - $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
+ nullable: true
nullable: true
part_id:
type: string
@@ -164791,6 +172296,7 @@ components:
- evp-lan
- ep-tree
- evp-tree
+ - spb
type: string
description: '* `vpws` - VPWS
@@ -164816,8 +172322,22 @@ components:
* `ep-tree` - Ethernet Private Tree
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: 4c9738ba3d741dd4
+ * `evp-tree` - Ethernet Virtual Private Tree
+
+ * `spb` - SPB'
+ x-spec-enum-id: 730136816a2885f9
+ status:
+ enum:
+ - active
+ - planned
+ - decommissioning
+ type: string
+ description: '* `active` - Active
+
+ * `planned` - Planned
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 937bacafb9d5d4bb
import_targets:
type: array
items:
@@ -164832,8 +172352,11 @@ components:
comments:
type: string
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -164860,7 +172383,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
parent:
type: integer
nullable: true
@@ -164883,8 +172408,11 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -164900,6 +172428,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- site
@@ -164909,11 +172439,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module_bay:
type: integer
module_type:
- $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
status:
enum:
- offline
@@ -164964,8 +172498,17 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
+ profile:
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeProfileRequest'
+ nullable: true
+ nullable: true
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -165025,6 +172568,8 @@ components:
description:
type: string
maxLength: 200
+ attributes:
+ nullable: true
comments:
type: string
tags:
@@ -165042,10 +172587,15 @@ components:
description: Adds support for custom fields and tags.
properties:
power_panel:
- $ref: '#/components/schemas/BriefPowerPanelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefPowerPanelRequest'
rack:
- allOf:
- - $ref: '#/components/schemas/BriefRackRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -165113,8 +172663,11 @@ components:
type: string
maxLength: 200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
comments:
type: string
@@ -165133,10 +172686,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -165448,13 +173006,28 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
+ status:
+ enum:
+ - enabled
+ - disabled
+ - faulty
+ type: string
+ description: '* `enabled` - Enabled
+
+ * `disabled` - Disabled
+
+ * `faulty` - Faulty'
+ x-spec-enum-id: 1024f7deaed962d7
color:
type: string
pattern: ^[0-9a-f]{6}$
maxLength: 6
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -165497,12 +173070,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -165814,8 +173393,11 @@ components:
x-spec-enum-id: f8c08053f2db8830
nullable: true
power_port:
- allOf:
- - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPowerPortTemplateRequest'
+ nullable: true
nullable: true
feed_leg:
enum:
@@ -165844,10 +173426,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -166213,12 +173800,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -166572,8 +174165,11 @@ components:
type: string
minLength: 1
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -166582,12 +174178,18 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -166608,8 +174210,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
is_pool:
type: boolean
@@ -166645,14 +174250,22 @@ components:
nullable: true
maxLength: 50
site:
- $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefSiteRequest'
location:
- allOf:
- - $ref: '#/components/schemas/BriefLocationRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefLocationRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -166673,8 +174286,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 0c556d55dc1baa13
role:
- allOf:
- - $ref: '#/components/schemas/BriefRackRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackRoleRequest'
+ nullable: true
nullable: true
serial:
type: string
@@ -166686,8 +174302,11 @@ components:
description: A unique tag used to identify this rack
maxLength: 50
rack_type:
- allOf:
- - $ref: '#/components/schemas/BriefRackTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRackTypeRequest'
+ nullable: true
nullable: true
form_factor:
enum:
@@ -166787,6 +174406,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -166842,7 +174467,9 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/BriefManufacturerRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefManufacturerRequest'
model:
type: string
minLength: 1
@@ -166920,6 +174547,12 @@ components:
minimum: 0
nullable: true
description: Outer dimension of rack (width)
+ outer_height:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ description: Outer dimension of rack (height)
outer_depth:
type: integer
maximum: 32767
@@ -166994,10 +174627,15 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
module:
- allOf:
- - $ref: '#/components/schemas/BriefModuleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -167028,6 +174666,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -167103,6 +174744,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -167174,7 +174821,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -167209,12 +174856,18 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceTypeRequest'
+ nullable: true
nullable: true
module_type:
- allOf:
- - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefModuleTypeRequest'
+ nullable: true
nullable: true
name:
type: string
@@ -167247,6 +174900,9 @@ components:
- n
- mrj21
- fc
+ - fc-pc
+ - fc-upc
+ - fc-apc
- lc
- lc-pc
- lc-upc
@@ -167322,6 +174978,12 @@ components:
* `fc` - FC
+ * `fc-pc` - FC/PC
+
+ * `fc-upc` - FC/UPC
+
+ * `fc-apc` - FC/APC
+
* `lc` - LC
* `lc-pc` - LC/PC
@@ -167393,7 +175055,7 @@ components:
* `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: c5086c01f1f9c18a
+ x-spec-enum-id: ea67ae8ba4602f8a
color:
type: string
pattern: ^[0-9a-f]{6}$
@@ -167434,6 +175096,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -167441,14 +175105,13 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
- nullable: true
- virtual_machine:
- allOf:
- - $ref: '#/components/schemas/BriefVirtualMachineRequest'
- nullable: true
+ parent_object_type:
+ type: string
+ parent_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
name:
type: string
minLength: 1
@@ -167490,6 +175153,8 @@ components:
additionalProperties: {}
required:
- name
+ - parent_object_id
+ - parent_object_type
- ports
- protocol
WritableServiceTemplateRequest:
@@ -167561,6 +175226,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -167597,16 +175264,25 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
region:
- allOf:
- - $ref: '#/components/schemas/BriefRegionRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRegionRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteGroupRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
facility:
type: string
@@ -167687,6 +175363,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -167711,8 +175389,11 @@ components:
* `disabled` - Disabled'
x-spec-enum-id: 0d65f7912cba74aa
group:
- allOf:
- - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTunnelGroupRequest'
+ nullable: true
nullable: true
encapsulation:
enum:
@@ -167742,12 +175423,18 @@ components:
* `pptp` - PPTP'
x-spec-enum-id: 54a2e45824009c49
ipsec_profile:
- allOf:
- - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPSecProfileRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
tunnel_id:
type: integer
@@ -167775,7 +175462,9 @@ components:
description: Adds support for custom fields and tags.
properties:
tunnel:
- $ref: '#/components/schemas/BriefTunnelRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefTunnelRequest'
role:
enum:
- peer
@@ -167797,8 +175486,11 @@ components:
format: int64
nullable: true
outside_ip:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -167815,12 +175507,18 @@ components:
description: Adds support for custom fields and tags.
properties:
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
group:
- allOf:
- - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANGroupRequest'
+ nullable: true
nullable: true
vid:
type: integer
@@ -167833,8 +175531,11 @@ components:
minLength: 1
maxLength: 64
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -167852,8 +175553,11 @@ components:
* `deprecated` - Deprecated'
role:
- allOf:
- - $ref: '#/components/schemas/BriefRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefRoleRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -167893,7 +175597,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/BriefVirtualMachineRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualMachineRequest'
name:
type: string
minLength: 1
@@ -167914,8 +175620,11 @@ components:
minimum: 1
nullable: true
primary_mac_address:
- allOf:
- - $ref: '#/components/schemas/BriefMACAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefMACAddressRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -167941,24 +175650,36 @@ components:
* `q-in-q` - Q-in-Q (802.1ad)'
untagged_vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
tagged_vlans:
type: array
items:
type: integer
qinq_svlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
vlan_translation_policy:
- allOf:
- - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest'
+ nullable: true
nullable: true
vrf:
- allOf:
- - $ref: '#/components/schemas/BriefVRFRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVRFRequest'
+ nullable: true
nullable: true
tags:
type: array
@@ -168009,13 +175730,20 @@ components:
description: Unique circuit ID
maxLength: 100
provider_network:
- $ref: '#/components/schemas/BriefProviderNetworkRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefProviderNetworkRequest'
provider_account:
- allOf:
- - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefProviderAccountRequest'
+ nullable: true
nullable: true
type:
- $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest'
status:
enum:
- planned
@@ -168038,8 +175766,11 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
description:
type: string
@@ -168062,7 +175793,9 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_circuit:
- $ref: '#/components/schemas/BriefVirtualCircuitRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefVirtualCircuitRequest'
role:
enum:
- peer
@@ -168076,7 +175809,9 @@ components:
* `spoke` - Spoke'
x-spec-enum-id: 52225cd60b867572
interface:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
description:
type: string
maxLength: 200
@@ -168099,23 +175834,34 @@ components:
minLength: 1
maxLength: 64
device:
- $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefDeviceRequest'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -168161,6 +175907,7 @@ components:
- staged
- failed
- decommissioning
+ - paused
type: string
description: '* `offline` - Offline
@@ -168172,43 +175919,69 @@ components:
* `failed` - Failed
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
+ * `decommissioning` - Decommissioning
+
+ * `paused` - Paused'
+ x-spec-enum-id: c649dc8de233760f
site:
- allOf:
- - $ref: '#/components/schemas/BriefSiteRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefSiteRequest'
+ nullable: true
nullable: true
cluster:
- allOf:
- - $ref: '#/components/schemas/BriefClusterRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefClusterRequest'
+ nullable: true
nullable: true
device:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRequest'
+ nullable: true
nullable: true
serial:
type: string
title: Serial number
maxLength: 50
role:
- allOf:
- - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefDeviceRoleRequest'
+ nullable: true
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
platform:
- allOf:
- - $ref: '#/components/schemas/BriefPlatformRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefPlatformRequest'
+ nullable: true
nullable: true
primary_ip4:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
primary_ip6:
- allOf:
- - $ref: '#/components/schemas/BriefIPAddressRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefIPAddressRequest'
+ nullable: true
nullable: true
vcpus:
type: number
@@ -168235,8 +176008,11 @@ components:
comments:
type: string
config_template:
- allOf:
- - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefConfigTemplateRequest'
+ nullable: true
nullable: true
local_context_data:
nullable: true
@@ -168277,6 +176053,8 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ comments:
+ type: string
required:
- name
- slug
@@ -168292,8 +176070,11 @@ components:
type: string
maxLength: 200
group:
- allOf:
- - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefWirelessLANGroupRequest'
+ nullable: true
nullable: true
status:
enum:
@@ -168311,8 +176092,11 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 412ebdca597f609e
vlan:
- allOf:
- - $ref: '#/components/schemas/BriefVLANRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefVLANRequest'
+ nullable: true
nullable: true
scope_type:
type: string
@@ -168321,8 +176105,11 @@ components:
type: integer
nullable: true
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
@@ -168377,9 +176164,13 @@ components:
description: Adds support for custom fields and tags.
properties:
interface_a:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
interface_b:
- $ref: '#/components/schemas/BriefInterfaceRequest'
+ oneOf:
+ - type: integer
+ - $ref: '#/components/schemas/BriefInterfaceRequest'
ssid:
type: string
maxLength: 32
@@ -168396,8 +176187,11 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- allOf:
- - $ref: '#/components/schemas/BriefTenantRequest'
+ oneOf:
+ - type: integer
+ - allOf:
+ - $ref: '#/components/schemas/BriefTenantRequest'
+ nullable: true
nullable: true
auth_type:
enum:
diff --git a/api_circuits.go b/api_circuits.go
index d1d516a58..4f318347b 100644
--- a/api_circuits.go
+++ b/api_circuits.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type CircuitsAPI interface {
/*
- CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy
+ CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy
- Delete a list of Circuit group assignment objects.
+ Delete a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest
*/
CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest
@@ -38,12 +37,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate
+ CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate
- Patch a list of Circuit group assignment objects.
+ Patch a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest
*/
CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate
+ CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate
- Put a list of Circuit group assignment objects.
+ Put a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest
*/
CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest
@@ -66,12 +65,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate
+ CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate
- Post a list of Circuit group assignment objects.
+ Post a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsCreateRequest
*/
CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest
@@ -80,13 +79,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy
+ CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy
- Delete a Circuit group assignment object.
+ Delete a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest
*/
CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest
@@ -94,12 +93,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList
+ CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList
- Get a list of Circuit group assignment objects.
+ Get a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsListRequest
*/
CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest
@@ -108,13 +107,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate
+ CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate
- Patch a Circuit group assignment object.
+ Patch a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest
*/
CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest
@@ -123,13 +122,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve
+ CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve
- Get a Circuit group assignment object.
+ Get a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest
*/
CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest
@@ -138,13 +137,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate
+ CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate
- Put a Circuit group assignment object.
+ Put a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest
*/
CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest
@@ -153,12 +152,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error)
/*
- CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy
+ CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy
- Delete a list of circuit group objects.
+ Delete a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkDestroyRequest
*/
CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest
@@ -166,12 +165,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate
+ CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate
- Patch a list of circuit group objects.
+ Patch a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest
*/
CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate
+ CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate
- Put a list of circuit group objects.
+ Put a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkUpdateRequest
*/
CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest
@@ -194,12 +193,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate
+ CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate
- Post a list of circuit group objects.
+ Post a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsCreateRequest
*/
CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest
@@ -208,13 +207,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy
+ CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy
- Delete a circuit group object.
+ Delete a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsDestroyRequest
*/
CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest
@@ -222,12 +221,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList
+ CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList
- Get a list of circuit group objects.
+ Get a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsListRequest
*/
CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest
@@ -236,13 +235,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error)
/*
- CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate
+ CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate
- Patch a circuit group object.
+ Patch a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsPartialUpdateRequest
*/
CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest
@@ -251,13 +250,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve
+ CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve
- Get a circuit group object.
+ Get a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsRetrieveRequest
*/
CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest
@@ -266,13 +265,13 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate
+ CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate
- Put a circuit group object.
+ Put a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsUpdateRequest
*/
CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest
@@ -281,12 +280,12 @@ type CircuitsAPI interface {
CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error)
/*
- CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBulkDestroy
+ CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBulkDestroy
- Delete a list of circuit termination objects.
+ Delete a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkDestroyRequest
*/
CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest
@@ -294,12 +293,12 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminationsBulkPartialUpdate
+ CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminationsBulkPartialUpdate
- Patch a list of circuit termination objects.
+ Patch a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest
*/
CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest
@@ -308,12 +307,12 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulkUpdate
+ CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulkUpdate
- Put a list of circuit termination objects.
+ Put a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkUpdateRequest
*/
CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest
@@ -322,12 +321,12 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsCreate Method for CircuitsCircuitTerminationsCreate
+ CircuitsCircuitTerminationsCreate Method for CircuitsCircuitTerminationsCreate
- Post a list of circuit termination objects.
+ Post a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsCreateRequest
*/
CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest
@@ -336,13 +335,13 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsDestroy Method for CircuitsCircuitTerminationsDestroy
+ CircuitsCircuitTerminationsDestroy Method for CircuitsCircuitTerminationsDestroy
- Delete a circuit termination object.
+ Delete a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsDestroyRequest
*/
CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest
@@ -350,12 +349,12 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList
+ CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList
- Get a list of circuit termination objects.
+ Get a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsListRequest
*/
CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest
@@ -364,13 +363,13 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error)
/*
- CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsPartialUpdate
+ CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsPartialUpdate
- Patch a circuit termination object.
+ Patch a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsPartialUpdateRequest
*/
CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest
@@ -379,13 +378,13 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsPathsRetrieve
+ CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsPathsRetrieve
- Return all CablePaths which traverse a given pass-through port.
+ Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest
*/
CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest
@@ -394,13 +393,13 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrieve
+ CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrieve
- Get a circuit termination object.
+ Get a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsRetrieveRequest
*/
CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest
@@ -409,13 +408,13 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate
+ CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate
- Put a circuit termination object.
+ Put a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsUpdateRequest
*/
CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest
@@ -424,12 +423,12 @@ type CircuitsAPI interface {
CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error)
/*
- CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy
+ CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy
- Delete a list of circuit type objects.
+ Delete a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkDestroyRequest
*/
CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest
@@ -437,12 +436,12 @@ type CircuitsAPI interface {
CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartialUpdate
+ CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartialUpdate
- Patch a list of circuit type objects.
+ Patch a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest
*/
CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest
@@ -451,12 +450,12 @@ type CircuitsAPI interface {
CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error)
/*
- CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate
+ CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate
- Put a list of circuit type objects.
+ Put a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkUpdateRequest
*/
CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest
@@ -465,12 +464,12 @@ type CircuitsAPI interface {
CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error)
/*
- CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate
+ CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate
- Post a list of circuit type objects.
+ Post a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesCreateRequest
*/
CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest
@@ -479,13 +478,13 @@ type CircuitsAPI interface {
CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error)
/*
- CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy
+ CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy
- Delete a circuit type object.
+ Delete a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesDestroyRequest
*/
CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest
@@ -493,12 +492,12 @@ type CircuitsAPI interface {
CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitTypesList Method for CircuitsCircuitTypesList
+ CircuitsCircuitTypesList Method for CircuitsCircuitTypesList
- Get a list of circuit type objects.
+ Get a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesListRequest
*/
CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest
@@ -507,13 +506,13 @@ type CircuitsAPI interface {
CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error)
/*
- CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate
+ CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate
- Patch a circuit type object.
+ Patch a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesPartialUpdateRequest
*/
CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest
@@ -522,13 +521,13 @@ type CircuitsAPI interface {
CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error)
/*
- CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve
+ CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve
- Get a circuit type object.
+ Get a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesRetrieveRequest
*/
CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest
@@ -537,13 +536,13 @@ type CircuitsAPI interface {
CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error)
/*
- CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate
+ CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate
- Put a circuit type object.
+ Put a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesUpdateRequest
*/
CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest
@@ -552,12 +551,12 @@ type CircuitsAPI interface {
CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error)
/*
- CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy
+ CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy
- Delete a list of circuit objects.
+ Delete a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkDestroyRequest
*/
CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest
@@ -565,12 +564,12 @@ type CircuitsAPI interface {
CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate
+ CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate
- Patch a list of circuit objects.
+ Patch a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkPartialUpdateRequest
*/
CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest
@@ -579,12 +578,12 @@ type CircuitsAPI interface {
CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error)
/*
- CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate
+ CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate
- Put a list of circuit objects.
+ Put a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkUpdateRequest
*/
CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest
@@ -593,12 +592,12 @@ type CircuitsAPI interface {
CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error)
/*
- CircuitsCircuitsCreate Method for CircuitsCircuitsCreate
+ CircuitsCircuitsCreate Method for CircuitsCircuitsCreate
- Post a list of circuit objects.
+ Post a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsCreateRequest
*/
CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest
@@ -607,13 +606,13 @@ type CircuitsAPI interface {
CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error)
/*
- CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy
+ CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy
- Delete a circuit object.
+ Delete a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsDestroyRequest
*/
CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest
@@ -621,12 +620,12 @@ type CircuitsAPI interface {
CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error)
/*
- CircuitsCircuitsList Method for CircuitsCircuitsList
+ CircuitsCircuitsList Method for CircuitsCircuitsList
- Get a list of circuit objects.
+ Get a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsListRequest
*/
CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest
@@ -635,13 +634,13 @@ type CircuitsAPI interface {
CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error)
/*
- CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate
+ CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate
- Patch a circuit object.
+ Patch a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsPartialUpdateRequest
*/
CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest
@@ -650,13 +649,13 @@ type CircuitsAPI interface {
CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error)
/*
- CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve
+ CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve
- Get a circuit object.
+ Get a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsRetrieveRequest
*/
CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest
@@ -665,13 +664,13 @@ type CircuitsAPI interface {
CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error)
/*
- CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate
+ CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate
- Put a circuit object.
+ Put a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsUpdateRequest
*/
CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest
@@ -680,12 +679,12 @@ type CircuitsAPI interface {
CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error)
/*
- CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestroy
+ CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestroy
- Delete a list of provider account objects.
+ Delete a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkDestroyRequest
*/
CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest
@@ -693,12 +692,12 @@ type CircuitsAPI interface {
CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBulkPartialUpdate
+ CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBulkPartialUpdate
- Patch a list of provider account objects.
+ Patch a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest
*/
CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest
@@ -707,12 +706,12 @@ type CircuitsAPI interface {
CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error)
/*
- CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate
+ CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate
- Put a list of provider account objects.
+ Put a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkUpdateRequest
*/
CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest
@@ -721,12 +720,12 @@ type CircuitsAPI interface {
CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error)
/*
- CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate
+ CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate
- Post a list of provider account objects.
+ Post a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsCreateRequest
*/
CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest
@@ -735,13 +734,13 @@ type CircuitsAPI interface {
CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error)
/*
- CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy
+ CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy
- Delete a provider account object.
+ Delete a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsDestroyRequest
*/
CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest
@@ -749,12 +748,12 @@ type CircuitsAPI interface {
CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error)
/*
- CircuitsProviderAccountsList Method for CircuitsProviderAccountsList
+ CircuitsProviderAccountsList Method for CircuitsProviderAccountsList
- Get a list of provider account objects.
+ Get a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsListRequest
*/
CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest
@@ -763,13 +762,13 @@ type CircuitsAPI interface {
CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error)
/*
- CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartialUpdate
+ CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartialUpdate
- Patch a provider account object.
+ Patch a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsPartialUpdateRequest
*/
CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest
@@ -778,13 +777,13 @@ type CircuitsAPI interface {
CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error)
/*
- CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve
+ CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve
- Get a provider account object.
+ Get a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsRetrieveRequest
*/
CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest
@@ -793,13 +792,13 @@ type CircuitsAPI interface {
CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error)
/*
- CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate
+ CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate
- Put a provider account object.
+ Put a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsUpdateRequest
*/
CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest
@@ -808,12 +807,12 @@ type CircuitsAPI interface {
CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error)
/*
- CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestroy
+ CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestroy
- Delete a list of provider network objects.
+ Delete a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkDestroyRequest
*/
CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest
@@ -821,12 +820,12 @@ type CircuitsAPI interface {
CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBulkPartialUpdate
+ CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBulkPartialUpdate
- Patch a list of provider network objects.
+ Patch a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest
*/
CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest
@@ -835,12 +834,12 @@ type CircuitsAPI interface {
CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error)
/*
- CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate
+ CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate
- Put a list of provider network objects.
+ Put a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkUpdateRequest
*/
CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest
@@ -849,12 +848,12 @@ type CircuitsAPI interface {
CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error)
/*
- CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate
+ CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate
- Post a list of provider network objects.
+ Post a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksCreateRequest
*/
CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest
@@ -863,13 +862,13 @@ type CircuitsAPI interface {
CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error)
/*
- CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy
+ CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy
- Delete a provider network object.
+ Delete a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksDestroyRequest
*/
CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest
@@ -877,12 +876,12 @@ type CircuitsAPI interface {
CircuitsProviderNetworksDestroyExecute(r ApiCircuitsProviderNetworksDestroyRequest) (*http.Response, error)
/*
- CircuitsProviderNetworksList Method for CircuitsProviderNetworksList
+ CircuitsProviderNetworksList Method for CircuitsProviderNetworksList
- Get a list of provider network objects.
+ Get a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksListRequest
*/
CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest
@@ -891,13 +890,13 @@ type CircuitsAPI interface {
CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error)
/*
- CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartialUpdate
+ CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartialUpdate
- Patch a provider network object.
+ Patch a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksPartialUpdateRequest
*/
CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest
@@ -906,13 +905,13 @@ type CircuitsAPI interface {
CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error)
/*
- CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve
+ CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve
- Get a provider network object.
+ Get a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksRetrieveRequest
*/
CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest
@@ -921,13 +920,13 @@ type CircuitsAPI interface {
CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error)
/*
- CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate
+ CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate
- Put a provider network object.
+ Put a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksUpdateRequest
*/
CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest
@@ -936,12 +935,12 @@ type CircuitsAPI interface {
CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error)
/*
- CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy
+ CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy
- Delete a list of provider objects.
+ Delete a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkDestroyRequest
*/
CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest
@@ -949,12 +948,12 @@ type CircuitsAPI interface {
CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate
+ CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate
- Patch a list of provider objects.
+ Patch a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkPartialUpdateRequest
*/
CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest
@@ -963,12 +962,12 @@ type CircuitsAPI interface {
CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error)
/*
- CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate
+ CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate
- Put a list of provider objects.
+ Put a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkUpdateRequest
*/
CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest
@@ -977,12 +976,12 @@ type CircuitsAPI interface {
CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error)
/*
- CircuitsProvidersCreate Method for CircuitsProvidersCreate
+ CircuitsProvidersCreate Method for CircuitsProvidersCreate
- Post a list of provider objects.
+ Post a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersCreateRequest
*/
CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest
@@ -991,13 +990,13 @@ type CircuitsAPI interface {
CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error)
/*
- CircuitsProvidersDestroy Method for CircuitsProvidersDestroy
+ CircuitsProvidersDestroy Method for CircuitsProvidersDestroy
- Delete a provider object.
+ Delete a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersDestroyRequest
*/
CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest
@@ -1005,12 +1004,12 @@ type CircuitsAPI interface {
CircuitsProvidersDestroyExecute(r ApiCircuitsProvidersDestroyRequest) (*http.Response, error)
/*
- CircuitsProvidersList Method for CircuitsProvidersList
+ CircuitsProvidersList Method for CircuitsProvidersList
- Get a list of provider objects.
+ Get a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersListRequest
*/
CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest
@@ -1019,13 +1018,13 @@ type CircuitsAPI interface {
CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error)
/*
- CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate
+ CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate
- Patch a provider object.
+ Patch a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersPartialUpdateRequest
*/
CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest
@@ -1034,13 +1033,13 @@ type CircuitsAPI interface {
CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error)
/*
- CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve
+ CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve
- Get a provider object.
+ Get a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersRetrieveRequest
*/
CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest
@@ -1049,13 +1048,13 @@ type CircuitsAPI interface {
CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error)
/*
- CircuitsProvidersUpdate Method for CircuitsProvidersUpdate
+ CircuitsProvidersUpdate Method for CircuitsProvidersUpdate
- Put a provider object.
+ Put a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersUpdateRequest
*/
CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest
@@ -1064,12 +1063,12 @@ type CircuitsAPI interface {
CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsBulkDestroy Method for CircuitsVirtualCircuitTerminationsBulkDestroy
+ CircuitsVirtualCircuitTerminationsBulkDestroy Method for CircuitsVirtualCircuitTerminationsBulkDestroy
- Delete a list of virtual circuit termination objects.
+ Delete a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest
*/
CircuitsVirtualCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest
@@ -1077,12 +1076,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsBulkDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsBulkPartialUpdate Method for CircuitsVirtualCircuitTerminationsBulkPartialUpdate
+ CircuitsVirtualCircuitTerminationsBulkPartialUpdate Method for CircuitsVirtualCircuitTerminationsBulkPartialUpdate
- Patch a list of virtual circuit termination objects.
+ Patch a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest
*/
CircuitsVirtualCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest
@@ -1091,12 +1090,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsBulkUpdate Method for CircuitsVirtualCircuitTerminationsBulkUpdate
+ CircuitsVirtualCircuitTerminationsBulkUpdate Method for CircuitsVirtualCircuitTerminationsBulkUpdate
- Put a list of virtual circuit termination objects.
+ Put a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest
*/
CircuitsVirtualCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest
@@ -1105,12 +1104,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsBulkUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsCreate Method for CircuitsVirtualCircuitTerminationsCreate
+ CircuitsVirtualCircuitTerminationsCreate Method for CircuitsVirtualCircuitTerminationsCreate
- Post a list of virtual circuit termination objects.
+ Post a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsCreateRequest
*/
CircuitsVirtualCircuitTerminationsCreate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsCreateRequest
@@ -1119,13 +1118,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsCreateExecute(r ApiCircuitsVirtualCircuitTerminationsCreateRequest) (*VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsDestroy Method for CircuitsVirtualCircuitTerminationsDestroy
+ CircuitsVirtualCircuitTerminationsDestroy Method for CircuitsVirtualCircuitTerminationsDestroy
- Delete a virtual circuit termination object.
+ Delete a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest
*/
CircuitsVirtualCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsDestroyRequest
@@ -1133,12 +1132,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsList Method for CircuitsVirtualCircuitTerminationsList
+ CircuitsVirtualCircuitTerminationsList Method for CircuitsVirtualCircuitTerminationsList
- Get a list of virtual circuit termination objects.
+ Get a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsListRequest
*/
CircuitsVirtualCircuitTerminationsList(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsListRequest
@@ -1147,13 +1146,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsListExecute(r ApiCircuitsVirtualCircuitTerminationsListRequest) (*PaginatedVirtualCircuitTerminationList, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsPartialUpdate Method for CircuitsVirtualCircuitTerminationsPartialUpdate
+ CircuitsVirtualCircuitTerminationsPartialUpdate Method for CircuitsVirtualCircuitTerminationsPartialUpdate
- Patch a virtual circuit termination object.
+ Patch a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest
*/
CircuitsVirtualCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest
@@ -1162,13 +1161,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) (*VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsPathsRetrieve Method for CircuitsVirtualCircuitTerminationsPathsRetrieve
+ CircuitsVirtualCircuitTerminationsPathsRetrieve Method for CircuitsVirtualCircuitTerminationsPathsRetrieve
- Return all CablePaths which traverse a given pass-through port.
+ Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest
*/
CircuitsVirtualCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest
@@ -1177,13 +1176,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsRetrieve Method for CircuitsVirtualCircuitTerminationsRetrieve
+ CircuitsVirtualCircuitTerminationsRetrieve Method for CircuitsVirtualCircuitTerminationsRetrieve
- Get a virtual circuit termination object.
+ Get a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest
*/
CircuitsVirtualCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsRetrieveRequest
@@ -1192,13 +1191,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTerminationsUpdate Method for CircuitsVirtualCircuitTerminationsUpdate
+ CircuitsVirtualCircuitTerminationsUpdate Method for CircuitsVirtualCircuitTerminationsUpdate
- Put a virtual circuit termination object.
+ Put a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest
*/
CircuitsVirtualCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsUpdateRequest
@@ -1207,12 +1206,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTerminationsUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) (*VirtualCircuitTermination, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesBulkDestroy Method for CircuitsVirtualCircuitTypesBulkDestroy
+ CircuitsVirtualCircuitTypesBulkDestroy Method for CircuitsVirtualCircuitTypesBulkDestroy
- Delete a list of virtual circuit type objects.
+ Delete a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest
*/
CircuitsVirtualCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkDestroyRequest
@@ -1220,12 +1219,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesBulkDestroyExecute(r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitTypesBulkPartialUpdate Method for CircuitsVirtualCircuitTypesBulkPartialUpdate
+ CircuitsVirtualCircuitTypesBulkPartialUpdate Method for CircuitsVirtualCircuitTypesBulkPartialUpdate
- Patch a list of virtual circuit type objects.
+ Patch a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest
*/
CircuitsVirtualCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest
@@ -1234,12 +1233,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) ([]VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesBulkUpdate Method for CircuitsVirtualCircuitTypesBulkUpdate
+ CircuitsVirtualCircuitTypesBulkUpdate Method for CircuitsVirtualCircuitTypesBulkUpdate
- Put a list of virtual circuit type objects.
+ Put a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest
*/
CircuitsVirtualCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkUpdateRequest
@@ -1248,12 +1247,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesBulkUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) ([]VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesCreate Method for CircuitsVirtualCircuitTypesCreate
+ CircuitsVirtualCircuitTypesCreate Method for CircuitsVirtualCircuitTypesCreate
- Post a list of virtual circuit type objects.
+ Post a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesCreateRequest
*/
CircuitsVirtualCircuitTypesCreate(ctx context.Context) ApiCircuitsVirtualCircuitTypesCreateRequest
@@ -1262,13 +1261,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesCreateExecute(r ApiCircuitsVirtualCircuitTypesCreateRequest) (*VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesDestroy Method for CircuitsVirtualCircuitTypesDestroy
+ CircuitsVirtualCircuitTypesDestroy Method for CircuitsVirtualCircuitTypesDestroy
- Delete a virtual circuit type object.
+ Delete a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesDestroyRequest
*/
CircuitsVirtualCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesDestroyRequest
@@ -1276,12 +1275,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesDestroyExecute(r ApiCircuitsVirtualCircuitTypesDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitTypesList Method for CircuitsVirtualCircuitTypesList
+ CircuitsVirtualCircuitTypesList Method for CircuitsVirtualCircuitTypesList
- Get a list of virtual circuit type objects.
+ Get a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesListRequest
*/
CircuitsVirtualCircuitTypesList(ctx context.Context) ApiCircuitsVirtualCircuitTypesListRequest
@@ -1290,13 +1289,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesListExecute(r ApiCircuitsVirtualCircuitTypesListRequest) (*PaginatedVirtualCircuitTypeList, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesPartialUpdate Method for CircuitsVirtualCircuitTypesPartialUpdate
+ CircuitsVirtualCircuitTypesPartialUpdate Method for CircuitsVirtualCircuitTypesPartialUpdate
- Patch a virtual circuit type object.
+ Patch a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest
*/
CircuitsVirtualCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesPartialUpdateRequest
@@ -1305,13 +1304,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) (*VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesRetrieve Method for CircuitsVirtualCircuitTypesRetrieve
+ CircuitsVirtualCircuitTypesRetrieve Method for CircuitsVirtualCircuitTypesRetrieve
- Get a virtual circuit type object.
+ Get a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesRetrieveRequest
*/
CircuitsVirtualCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesRetrieveRequest
@@ -1320,13 +1319,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesRetrieveExecute(r ApiCircuitsVirtualCircuitTypesRetrieveRequest) (*VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitTypesUpdate Method for CircuitsVirtualCircuitTypesUpdate
+ CircuitsVirtualCircuitTypesUpdate Method for CircuitsVirtualCircuitTypesUpdate
- Put a virtual circuit type object.
+ Put a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesUpdateRequest
*/
CircuitsVirtualCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesUpdateRequest
@@ -1335,12 +1334,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitTypesUpdateExecute(r ApiCircuitsVirtualCircuitTypesUpdateRequest) (*VirtualCircuitType, *http.Response, error)
/*
- CircuitsVirtualCircuitsBulkDestroy Method for CircuitsVirtualCircuitsBulkDestroy
+ CircuitsVirtualCircuitsBulkDestroy Method for CircuitsVirtualCircuitsBulkDestroy
- Delete a list of virtual circuit objects.
+ Delete a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkDestroyRequest
*/
CircuitsVirtualCircuitsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitsBulkDestroyRequest
@@ -1348,12 +1347,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsBulkDestroyExecute(r ApiCircuitsVirtualCircuitsBulkDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitsBulkPartialUpdate Method for CircuitsVirtualCircuitsBulkPartialUpdate
+ CircuitsVirtualCircuitsBulkPartialUpdate Method for CircuitsVirtualCircuitsBulkPartialUpdate
- Patch a list of virtual circuit objects.
+ Patch a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest
*/
CircuitsVirtualCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest
@@ -1362,12 +1361,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) ([]VirtualCircuit, *http.Response, error)
/*
- CircuitsVirtualCircuitsBulkUpdate Method for CircuitsVirtualCircuitsBulkUpdate
+ CircuitsVirtualCircuitsBulkUpdate Method for CircuitsVirtualCircuitsBulkUpdate
- Put a list of virtual circuit objects.
+ Put a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkUpdateRequest
*/
CircuitsVirtualCircuitsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkUpdateRequest
@@ -1376,12 +1375,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsBulkUpdateExecute(r ApiCircuitsVirtualCircuitsBulkUpdateRequest) ([]VirtualCircuit, *http.Response, error)
/*
- CircuitsVirtualCircuitsCreate Method for CircuitsVirtualCircuitsCreate
+ CircuitsVirtualCircuitsCreate Method for CircuitsVirtualCircuitsCreate
- Post a list of virtual circuit objects.
+ Post a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsCreateRequest
*/
CircuitsVirtualCircuitsCreate(ctx context.Context) ApiCircuitsVirtualCircuitsCreateRequest
@@ -1390,13 +1389,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsCreateExecute(r ApiCircuitsVirtualCircuitsCreateRequest) (*VirtualCircuit, *http.Response, error)
/*
- CircuitsVirtualCircuitsDestroy Method for CircuitsVirtualCircuitsDestroy
+ CircuitsVirtualCircuitsDestroy Method for CircuitsVirtualCircuitsDestroy
- Delete a virtual circuit object.
+ Delete a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsDestroyRequest
*/
CircuitsVirtualCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsDestroyRequest
@@ -1404,12 +1403,12 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsDestroyExecute(r ApiCircuitsVirtualCircuitsDestroyRequest) (*http.Response, error)
/*
- CircuitsVirtualCircuitsList Method for CircuitsVirtualCircuitsList
+ CircuitsVirtualCircuitsList Method for CircuitsVirtualCircuitsList
- Get a list of virtual circuit objects.
+ Get a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsListRequest
*/
CircuitsVirtualCircuitsList(ctx context.Context) ApiCircuitsVirtualCircuitsListRequest
@@ -1418,13 +1417,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsListExecute(r ApiCircuitsVirtualCircuitsListRequest) (*PaginatedVirtualCircuitList, *http.Response, error)
/*
- CircuitsVirtualCircuitsPartialUpdate Method for CircuitsVirtualCircuitsPartialUpdate
+ CircuitsVirtualCircuitsPartialUpdate Method for CircuitsVirtualCircuitsPartialUpdate
- Patch a virtual circuit object.
+ Patch a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsPartialUpdateRequest
*/
CircuitsVirtualCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsPartialUpdateRequest
@@ -1433,13 +1432,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsPartialUpdateExecute(r ApiCircuitsVirtualCircuitsPartialUpdateRequest) (*VirtualCircuit, *http.Response, error)
/*
- CircuitsVirtualCircuitsRetrieve Method for CircuitsVirtualCircuitsRetrieve
+ CircuitsVirtualCircuitsRetrieve Method for CircuitsVirtualCircuitsRetrieve
- Get a virtual circuit object.
+ Get a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsRetrieveRequest
*/
CircuitsVirtualCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsRetrieveRequest
@@ -1448,13 +1447,13 @@ type CircuitsAPI interface {
CircuitsVirtualCircuitsRetrieveExecute(r ApiCircuitsVirtualCircuitsRetrieveRequest) (*VirtualCircuit, *http.Response, error)
/*
- CircuitsVirtualCircuitsUpdate Method for CircuitsVirtualCircuitsUpdate
+ CircuitsVirtualCircuitsUpdate Method for CircuitsVirtualCircuitsUpdate
- Put a virtual circuit object.
+ Put a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsUpdateRequest
*/
CircuitsVirtualCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsUpdateRequest
@@ -1467,8 +1466,8 @@ type CircuitsAPI interface {
type CircuitsAPIService service
type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest
}
@@ -1486,22 +1485,22 @@ CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssign
Delete a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest {
return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy")
@@ -1580,8 +1579,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r
}
type ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest
}
@@ -1599,24 +1598,25 @@ CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroup
Patch a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest {
return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitGroupAssignment
+//
+// @return []CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate")
@@ -1704,8 +1704,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExe
}
type ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest
}
@@ -1723,24 +1723,25 @@ CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignm
Put a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest {
return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitGroupAssignment
+//
+// @return []CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate")
@@ -1828,8 +1829,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r
}
type ApiCircuitsCircuitGroupAssignmentsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest
}
@@ -1847,24 +1848,25 @@ CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignments
Post a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest {
return ApiCircuitsCircuitGroupAssignmentsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CircuitGroupAssignment
+//
+// @return CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate")
@@ -1952,9 +1954,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiC
}
type ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) {
@@ -1966,24 +1968,24 @@ CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignment
Delete a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest {
return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy")
@@ -2058,58 +2060,60 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r Api
}
type ApiCircuitsCircuitGroupAssignmentsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- circuit *[]string
- circuitId *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- group *[]string
- groupN *[]string
- groupId *[]int32
- groupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- memberId *[]int32
- memberIdEmpty *bool
- memberIdGt *[]int32
- memberIdGte *[]int32
- memberIdLt *[]int32
- memberIdLte *[]int32
- memberIdN *[]int32
- memberType *string
- memberTypeN *string
+ ctx context.Context
+ ApiService CircuitsAPI
+ circuit *[]string
+ circuitId *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ group *[]string
+ groupN *[]string
+ groupId *[]int32
+ groupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ memberId *[]int32
+ memberIdEmpty *bool
+ memberIdGt *[]int32
+ memberIdGte *[]int32
+ memberIdLt *[]int32
+ memberIdLte *[]int32
+ memberIdN *[]int32
+ memberType *string
+ memberTypeN *string
modifiedByRequest *string
- offset *int32
- ordering *string
- priority *CircuitsCircuitGroupAssignmentsListPriorityParameter
- provider *[]string
- providerId *[]int32
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualCircuit *[]string
- virtualCircuitId *[]int32
+ offset *int32
+ ordering *string
+ priority *CircuitsCircuitGroupAssignmentsListPriorityParameter
+ provider *[]string
+ providerId *[]int32
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualCircuit *[]string
+ virtualCircuitId *[]int32
}
func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest {
@@ -2356,6 +2360,16 @@ func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCi
return r
}
+func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagId(tagId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagIdN(tagIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -2380,24 +2394,25 @@ CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsLi
Get a list of Circuit group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupAssignmentsListRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest {
return ApiCircuitsCircuitGroupAssignmentsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCircuitGroupAssignmentList
+//
+// @return PaginatedCircuitGroupAssignmentList
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCircuitGroupAssignmentList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCircuitGroupAssignmentList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList")
@@ -2840,6 +2855,28 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCir
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -2934,9 +2971,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCir
}
type ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest
}
@@ -2954,26 +2991,27 @@ CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssi
Patch a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest {
return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroupAssignment
+//
+// @return CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate")
@@ -3059,9 +3097,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute
}
type ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) {
@@ -3073,26 +3111,27 @@ CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmen
Get a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest {
return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroupAssignment
+//
+// @return CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve")
@@ -3176,9 +3215,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r Ap
}
type ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest
}
@@ -3196,26 +3235,27 @@ CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignments
Put a Circuit group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this Circuit group assignment.
- @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this Circuit group assignment.
+ @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest {
return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroupAssignment
+//
+// @return CircuitGroupAssignment
func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroupAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate")
@@ -3304,8 +3344,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiC
}
type ApiCircuitsCircuitGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupRequest *[]CircuitGroupRequest
}
@@ -3323,22 +3363,22 @@ CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy
Delete a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest {
return ApiCircuitsCircuitGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy")
@@ -3417,8 +3457,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircui
}
type ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupRequest *[]CircuitGroupRequest
}
@@ -3436,24 +3476,25 @@ CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkParti
Patch a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest {
return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitGroup
+//
+// @return []CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate")
@@ -3541,8 +3582,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r Api
}
type ApiCircuitsCircuitGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupRequest *[]CircuitGroupRequest
}
@@ -3560,24 +3601,25 @@ CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate
Put a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest {
return ApiCircuitsCircuitGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitGroup
+//
+// @return []CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate")
@@ -3665,8 +3707,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuit
}
type ApiCircuitsCircuitGroupsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitGroupRequest *CircuitGroupRequest
}
@@ -3684,24 +3726,25 @@ CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate
Post a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest {
return ApiCircuitsCircuitGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CircuitGroup
+//
+// @return CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate")
@@ -3789,9 +3832,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCir
}
type ApiCircuitsCircuitGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -3803,24 +3846,24 @@ CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy
Delete a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest {
return ApiCircuitsCircuitGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy")
@@ -3895,79 +3938,81 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCi
}
type ApiCircuitsCircuitGroupsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest {
@@ -4284,6 +4329,16 @@ func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCirc
return r
}
+func (r ApiCircuitsCircuitGroupsListRequest) TagId(tagId []int32) ApiCircuitsCircuitGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsCircuitGroupsListRequest) TagIdN(tagIdN []int32) ApiCircuitsCircuitGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest {
r.tenant = &tenant
@@ -4342,24 +4397,25 @@ CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList
Get a list of circuit group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitGroupsListRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest {
return ApiCircuitsCircuitGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCircuitGroupList
+//
+// @return PaginatedCircuitGroupList
func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCircuitGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCircuitGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList")
@@ -4975,6 +5031,28 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircu
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5135,9 +5213,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircu
}
type ApiCircuitsCircuitGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedCircuitGroupRequest *PatchedCircuitGroupRequest
}
@@ -5155,26 +5233,27 @@ CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate
Patch a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest {
return ApiCircuitsCircuitGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroup
+//
+// @return CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate")
@@ -5260,9 +5339,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCirc
}
type ApiCircuitsCircuitGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) {
@@ -5274,26 +5353,27 @@ CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve
Get a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest {
return ApiCircuitsCircuitGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroup
+//
+// @return CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve")
@@ -5377,9 +5457,9 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsC
}
type ApiCircuitsCircuitGroupsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
circuitGroupRequest *CircuitGroupRequest
}
@@ -5397,26 +5477,27 @@ CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate
Put a circuit group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit group.
- @return ApiCircuitsCircuitGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit group.
+ @return ApiCircuitsCircuitGroupsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest {
return ApiCircuitsCircuitGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitGroup
+//
+// @return CircuitGroup
func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate")
@@ -5505,8 +5586,8 @@ func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCir
}
type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTerminationRequest *[]CircuitTerminationRequest
}
@@ -5524,22 +5605,22 @@ CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBul
Delete a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest {
return ApiCircuitsCircuitTerminationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkDestroy")
@@ -5618,8 +5699,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroyExecute(r Api
}
type ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTerminationRequest *[]CircuitTerminationRequest
}
@@ -5637,24 +5718,25 @@ CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminati
Patch a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest {
return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitTermination
+//
+// @return []CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkPartialUpdate")
@@ -5742,8 +5824,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdateExecute
}
type ApiCircuitsCircuitTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTerminationRequest *[]CircuitTerminationRequest
}
@@ -5761,24 +5843,25 @@ CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulk
Put a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest {
return ApiCircuitsCircuitTerminationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitTermination
+//
+// @return []CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkUpdate")
@@ -5866,8 +5949,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiC
}
type ApiCircuitsCircuitTerminationsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTerminationRequest *CircuitTerminationRequest
}
@@ -5885,24 +5968,25 @@ CircuitsCircuitTerminationsCreate Method for CircuitsCircuitTerminationsCreate
Post a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest {
return ApiCircuitsCircuitTerminationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CircuitTermination
+//
+// @return CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitTermination
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsCreate")
@@ -5990,9 +6074,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircu
}
type ApiCircuitsCircuitTerminationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) {
@@ -6004,24 +6088,24 @@ CircuitsCircuitTerminationsDestroy Method for CircuitsCircuitTerminationsDestroy
Delete a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest {
return ApiCircuitsCircuitTerminationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsDestroy")
@@ -6096,125 +6180,127 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCirc
}
type ApiCircuitsCircuitTerminationsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- circuitId *[]int32
- circuitIdN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
- markConnected *bool
- modifiedByRequest *string
- occupied *bool
- offset *int32
- ordering *string
- portSpeed *[]int32
- portSpeedEmpty *bool
- portSpeedGt *[]int32
- portSpeedGte *[]int32
- portSpeedLt *[]int32
- portSpeedLte *[]int32
- portSpeedN *[]int32
- ppInfo *[]string
- ppInfoEmpty *bool
- ppInfoIc *[]string
- ppInfoIe *[]string
- ppInfoIew *[]string
- ppInfoIsw *[]string
- ppInfoN *[]string
- ppInfoNic *[]string
- ppInfoNie *[]string
- ppInfoNiew *[]string
- ppInfoNisw *[]string
- provider *[]string
- providerN *[]string
- providerId *[]int32
- providerIdN *[]int32
- providerNetworkId *[]int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ circuitId *[]int32
+ circuitIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
+ markConnected *bool
+ modifiedByRequest *string
+ occupied *bool
+ offset *int32
+ ordering *string
+ portSpeed *[]int32
+ portSpeedEmpty *bool
+ portSpeedGt *[]int32
+ portSpeedGte *[]int32
+ portSpeedLt *[]int32
+ portSpeedLte *[]int32
+ portSpeedN *[]int32
+ ppInfo *[]string
+ ppInfoEmpty *bool
+ ppInfoIc *[]string
+ ppInfoIe *[]string
+ ppInfoIew *[]string
+ ppInfoIsw *[]string
+ ppInfoN *[]string
+ ppInfoNic *[]string
+ ppInfoNie *[]string
+ ppInfoNiew *[]string
+ ppInfoNisw *[]string
+ provider *[]string
+ providerN *[]string
+ providerId *[]int32
+ providerIdN *[]int32
+ providerNetworkId *[]int32
providerNetworkIdN *[]int32
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- termSide *TerminationSide
- terminationId *[]int32
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ termSide *TerminationSide
+ terminationId *[]int32
terminationIdEmpty *bool
- terminationIdGt *[]int32
- terminationIdGte *[]int32
- terminationIdLt *[]int32
- terminationIdLte *[]int32
- terminationIdN *[]int32
- terminationType *string
- terminationTypeN *string
- updatedByRequest *string
- upstreamSpeed *[]int32
+ terminationIdGt *[]int32
+ terminationIdGte *[]int32
+ terminationIdLt *[]int32
+ terminationIdLte *[]int32
+ terminationIdN *[]int32
+ terminationType *string
+ terminationTypeN *string
+ updatedByRequest *string
+ upstreamSpeed *[]int32
upstreamSpeedEmpty *bool
- upstreamSpeedGt *[]int32
- upstreamSpeedGte *[]int32
- upstreamSpeedLt *[]int32
- upstreamSpeedLte *[]int32
- upstreamSpeedN *[]int32
- xconnectId *[]string
- xconnectIdEmpty *bool
- xconnectIdIc *[]string
- xconnectIdIe *[]string
- xconnectIdIew *[]string
- xconnectIdIsw *[]string
- xconnectIdN *[]string
- xconnectIdNic *[]string
- xconnectIdNie *[]string
- xconnectIdNiew *[]string
- xconnectIdNisw *[]string
+ upstreamSpeedGt *[]int32
+ upstreamSpeedGte *[]int32
+ upstreamSpeedLt *[]int32
+ upstreamSpeedLte *[]int32
+ upstreamSpeedN *[]int32
+ xconnectId *[]string
+ xconnectIdEmpty *bool
+ xconnectIdIc *[]string
+ xconnectIdIe *[]string
+ xconnectIdIew *[]string
+ xconnectIdIsw *[]string
+ xconnectIdN *[]string
+ xconnectIdNic *[]string
+ xconnectIdNie *[]string
+ xconnectIdNiew *[]string
+ xconnectIdNisw *[]string
}
// * `A` - A * `B` - B
@@ -6676,6 +6762,16 @@ func (r ApiCircuitsCircuitTerminationsListRequest) TagN(tagN []string) ApiCircui
return r
}
+func (r ApiCircuitsCircuitTerminationsListRequest) TagId(tagId []int32) ApiCircuitsCircuitTerminationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsCircuitTerminationsListRequest) TagIdN(tagIdN []int32) ApiCircuitsCircuitTerminationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// * `A` - A * `Z` - Z
func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide TerminationSide) ApiCircuitsCircuitTerminationsListRequest {
r.termSide = &termSide
@@ -6831,24 +6927,25 @@ CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList
Get a list of circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTerminationsListRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest {
return ApiCircuitsCircuitTerminationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCircuitTerminationList
+//
+// @return PaginatedCircuitTerminationList
func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCircuitTerminationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCircuitTerminationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsList")
@@ -7718,6 +7815,28 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.termSide != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "term_side", r.termSide, "form", "")
}
@@ -8050,9 +8169,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
}
type ApiCircuitsCircuitTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedCircuitTerminationRequest *PatchedCircuitTerminationRequest
}
@@ -8070,26 +8189,27 @@ CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsP
Patch a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest {
return ApiCircuitsCircuitTerminationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitTermination
+//
+// @return CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPartialUpdate")
@@ -8175,9 +8295,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r A
}
type ApiCircuitsCircuitTerminationsPathsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) {
@@ -8189,26 +8309,27 @@ CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsP
Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest {
return ApiCircuitsCircuitTerminationsPathsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitTermination
+//
+// @return CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPathsRetrieve")
@@ -8292,9 +8413,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r A
}
type ApiCircuitsCircuitTerminationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitTerminationsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) {
@@ -8306,26 +8427,27 @@ CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrie
Get a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest {
return ApiCircuitsCircuitTerminationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitTermination
+//
+// @return CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsRetrieve")
@@ -8409,9 +8531,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCir
}
type ApiCircuitsCircuitTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
circuitTerminationRequest *CircuitTerminationRequest
}
@@ -8429,26 +8551,27 @@ CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate
Put a circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit termination.
- @return ApiCircuitsCircuitTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit termination.
+ @return ApiCircuitsCircuitTerminationsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest {
return ApiCircuitsCircuitTerminationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitTermination
+//
+// @return CircuitTermination
func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsUpdate")
@@ -8537,8 +8660,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu
}
type ApiCircuitsCircuitTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTypeRequest *[]CircuitTypeRequest
}
@@ -8556,22 +8679,22 @@ CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy
Delete a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest {
return ApiCircuitsCircuitTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkDestroy")
@@ -8650,8 +8773,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuit
}
type ApiCircuitsCircuitTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTypeRequest *[]CircuitTypeRequest
}
@@ -8669,24 +8792,25 @@ CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartial
Patch a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest {
return ApiCircuitsCircuitTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitType
+//
+// @return []CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkPartialUpdate")
@@ -8774,8 +8898,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiC
}
type ApiCircuitsCircuitTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTypeRequest *[]CircuitTypeRequest
}
@@ -8793,24 +8917,25 @@ CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate
Put a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest {
return ApiCircuitsCircuitTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CircuitType
+//
+// @return []CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CircuitType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkUpdate")
@@ -8898,8 +9023,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuits
}
type ApiCircuitsCircuitTypesCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitTypeRequest *CircuitTypeRequest
}
@@ -8917,24 +9042,25 @@ CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate
Post a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesCreateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest {
return ApiCircuitsCircuitTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CircuitType
+//
+// @return CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesCreate")
@@ -9022,9 +9148,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCirc
}
type ApiCircuitsCircuitTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -9036,24 +9162,24 @@ CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy
Delete a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest {
return ApiCircuitsCircuitTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesDestroy")
@@ -9128,82 +9254,84 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCir
}
type ApiCircuitsCircuitTypesListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsCircuitTypesListRequest) Color(color []string) ApiCircuitsCircuitTypesListRequest {
@@ -9575,6 +9703,16 @@ func (r ApiCircuitsCircuitTypesListRequest) TagN(tagN []string) ApiCircuitsCircu
return r
}
+func (r ApiCircuitsCircuitTypesListRequest) TagId(tagId []int32) ApiCircuitsCircuitTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsCircuitTypesListRequest) TagIdN(tagIdN []int32) ApiCircuitsCircuitTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsCircuitTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTypesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -9589,24 +9727,25 @@ CircuitsCircuitTypesList Method for CircuitsCircuitTypesList
Get a list of circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitTypesListRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest {
return ApiCircuitsCircuitTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCircuitTypeList
+//
+// @return PaginatedCircuitTypeList
func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCircuitTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCircuitTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesList")
@@ -10335,6 +10474,28 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -10407,9 +10568,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui
}
type ApiCircuitsCircuitTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedCircuitTypeRequest *PatchedCircuitTypeRequest
}
@@ -10427,26 +10588,27 @@ CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate
Patch a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest {
return ApiCircuitsCircuitTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitType
+//
+// @return CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesPartialUpdate")
@@ -10532,9 +10694,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircu
}
type ApiCircuitsCircuitTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitTypesRetrieveRequest) Execute() (*CircuitType, *http.Response, error) {
@@ -10546,26 +10708,27 @@ CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve
Get a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest {
return ApiCircuitsCircuitTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitType
+//
+// @return CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesRetrieve")
@@ -10649,9 +10812,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCi
}
type ApiCircuitsCircuitTypesUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
circuitTypeRequest *CircuitTypeRequest
}
@@ -10669,26 +10832,27 @@ CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate
Put a circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit type.
- @return ApiCircuitsCircuitTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit type.
+ @return ApiCircuitsCircuitTypesUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest {
return ApiCircuitsCircuitTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CircuitType
+//
+// @return CircuitType
func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CircuitType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesUpdate")
@@ -10777,8 +10941,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCirc
}
type ApiCircuitsCircuitsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitRequest *[]CircuitRequest
}
@@ -10796,22 +10960,22 @@ CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy
Delete a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest {
return ApiCircuitsCircuitsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkDestroy")
@@ -10890,8 +11054,8 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCir
}
type ApiCircuitsCircuitsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitRequest *[]CircuitRequest
}
@@ -10909,24 +11073,25 @@ CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate
Patch a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest {
return ApiCircuitsCircuitsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Circuit
+//
+// @return []Circuit
func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Circuit
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkPartialUpdate")
@@ -11014,8 +11179,8 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircu
}
type ApiCircuitsCircuitsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
circuitRequest *[]CircuitRequest
}
@@ -11033,24 +11198,25 @@ CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate
Put a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest {
return ApiCircuitsCircuitsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Circuit
+//
+// @return []Circuit
func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Circuit
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkUpdate")
@@ -11138,8 +11304,8 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCirc
}
type ApiCircuitsCircuitsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
writableCircuitRequest *WritableCircuitRequest
}
@@ -11157,24 +11323,25 @@ CircuitsCircuitsCreate Method for CircuitsCircuitsCreate
Post a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest {
return ApiCircuitsCircuitsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Circuit
+//
+// @return Circuit
func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Circuit
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsCreate")
@@ -11262,9 +11429,9 @@ func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuits
}
type ApiCircuitsCircuitsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitsDestroyRequest) Execute() (*http.Response, error) {
@@ -11276,24 +11443,24 @@ CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy
Delete a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest {
return ApiCircuitsCircuitsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsDestroy")
@@ -11368,144 +11535,148 @@ func (a *CircuitsAPIService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuit
}
type ApiCircuitsCircuitsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- cid *[]string
- cidEmpty *bool
- cidIc *[]string
- cidIe *[]string
- cidIew *[]string
- cidIsw *[]string
- cidN *[]string
- cidNic *[]string
- cidNie *[]string
- cidNiew *[]string
- cidNisw *[]string
- commitRate *[]int32
- commitRateEmpty *bool
- commitRateGt *[]int32
- commitRateGte *[]int32
- commitRateLt *[]int32
- commitRateLte *[]int32
- commitRateN *[]int32
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- distance *[]float64
- distanceEmpty *bool
- distanceGt *[]float64
- distanceGte *[]float64
- distanceLt *[]float64
- distanceLte *[]float64
- distanceN *[]float64
- distanceUnit *CircuitsCircuitsListDistanceUnitParameter
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- installDate *[]string
- installDateEmpty *bool
- installDateGt *[]string
- installDateGte *[]string
- installDateLt *[]string
- installDateLte *[]string
- installDateN *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerAccount *[]string
- providerAccountN *[]string
- providerAccountId *[]int32
- providerAccountIdN *[]int32
- providerId *[]int32
- providerIdN *[]int32
- providerNetworkId *[]int32
- providerNetworkIdN *[]int32
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- terminationAId *[]*int32
- terminationAIdN *[]*int32
- terminationDate *[]string
+ ctx context.Context
+ ApiService CircuitsAPI
+ cid *[]string
+ cidEmpty *bool
+ cidIc *[]string
+ cidIe *[]string
+ cidIew *[]string
+ cidIsw *[]string
+ cidN *[]string
+ cidNic *[]string
+ cidNie *[]string
+ cidNiew *[]string
+ cidNisw *[]string
+ commitRate *[]int32
+ commitRateEmpty *bool
+ commitRateGt *[]int32
+ commitRateGte *[]int32
+ commitRateLt *[]int32
+ commitRateLte *[]int32
+ commitRateN *[]int32
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ distance *[]float64
+ distanceEmpty *bool
+ distanceGt *[]float64
+ distanceGte *[]float64
+ distanceLt *[]float64
+ distanceLte *[]float64
+ distanceN *[]float64
+ distanceUnit *CircuitsCircuitsListDistanceUnitParameter
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ installDate *[]string
+ installDateEmpty *bool
+ installDateGt *[]string
+ installDateGte *[]string
+ installDateLt *[]string
+ installDateLte *[]string
+ installDateN *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ locationId *[]int32
+ locationIdN *[]int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerAccount *[]string
+ providerAccountN *[]string
+ providerAccountId *[]int32
+ providerAccountIdN *[]int32
+ providerId *[]int32
+ providerIdN *[]int32
+ providerNetworkId *[]int32
+ providerNetworkIdN *[]int32
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ terminationAId *[]*int32
+ terminationAIdN *[]*int32
+ terminationDate *[]string
terminationDateEmpty *bool
- terminationDateGt *[]string
- terminationDateGte *[]string
- terminationDateLt *[]string
- terminationDateLte *[]string
- terminationDateN *[]string
- terminationZId *[]*int32
- terminationZIdN *[]*int32
- type_ *[]string
- typeN *[]string
- typeId *[]int32
- typeIdN *[]int32
- updatedByRequest *string
+ terminationDateGt *[]string
+ terminationDateGte *[]string
+ terminationDateLt *[]string
+ terminationDateLte *[]string
+ terminationDateN *[]string
+ terminationZId *[]*int32
+ terminationZIdN *[]*int32
+ type_ *[]string
+ typeN *[]string
+ typeId *[]int32
+ typeIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsCircuitsListRequest) Cid(cid []string) ApiCircuitsCircuitsListRequest {
@@ -11879,6 +12050,18 @@ func (r ApiCircuitsCircuitsListRequest) Limit(limit int32) ApiCircuitsCircuitsLi
return r
}
+// Location (ID)
+func (r ApiCircuitsCircuitsListRequest) LocationId(locationId []int32) ApiCircuitsCircuitsListRequest {
+ r.locationId = &locationId
+ return r
+}
+
+// Location (ID)
+func (r ApiCircuitsCircuitsListRequest) LocationIdN(locationIdN []int32) ApiCircuitsCircuitsListRequest {
+ r.locationIdN = &locationIdN
+ return r
+}
+
func (r ApiCircuitsCircuitsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitsListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -12091,6 +12274,16 @@ func (r ApiCircuitsCircuitsListRequest) TagN(tagN []string) ApiCircuitsCircuitsL
return r
}
+func (r ApiCircuitsCircuitsListRequest) TagId(tagId []int32) ApiCircuitsCircuitsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsCircuitsListRequest) TagIdN(tagIdN []int32) ApiCircuitsCircuitsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiCircuitsCircuitsListRequest) Tenant(tenant []string) ApiCircuitsCircuitsListRequest {
r.tenant = &tenant
@@ -12232,24 +12425,25 @@ CircuitsCircuitsList Method for CircuitsCircuitsList
Get a list of circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsCircuitsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsCircuitsListRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest {
return ApiCircuitsCircuitsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCircuitList
+//
+// @return PaginatedCircuitList
func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCircuitList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCircuitList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsList")
@@ -12994,6 +13188,28 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
}
+ if r.locationId != nil {
+ t := *r.locationId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi")
+ }
+ }
+ if r.locationIdN != nil {
+ t := *r.locationIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi")
+ }
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
}
@@ -13383,6 +13599,28 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -13700,9 +13938,9 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
}
type ApiCircuitsCircuitsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedWritableCircuitRequest *PatchedWritableCircuitRequest
}
@@ -13720,26 +13958,27 @@ CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate
Patch a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest {
return ApiCircuitsCircuitsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Circuit
+//
+// @return Circuit
func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Circuit
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsPartialUpdate")
@@ -13825,9 +14064,9 @@ func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsC
}
type ApiCircuitsCircuitsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsCircuitsRetrieveRequest) Execute() (*Circuit, *http.Response, error) {
@@ -13839,26 +14078,27 @@ CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve
Get a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest {
return ApiCircuitsCircuitsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Circuit
+//
+// @return Circuit
func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Circuit
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsRetrieve")
@@ -13942,9 +14182,9 @@ func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircui
}
type ApiCircuitsCircuitsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
writableCircuitRequest *WritableCircuitRequest
}
@@ -13962,26 +14202,27 @@ CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate
Put a circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this circuit.
- @return ApiCircuitsCircuitsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this circuit.
+ @return ApiCircuitsCircuitsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest {
return ApiCircuitsCircuitsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Circuit
+//
+// @return Circuit
func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Circuit
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Circuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsUpdate")
@@ -14070,8 +14311,8 @@ func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuits
}
type ApiCircuitsProviderAccountsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerAccountRequest *[]ProviderAccountRequest
}
@@ -14089,22 +14330,22 @@ CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestr
Delete a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest {
return ApiCircuitsProviderAccountsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkDestroy")
@@ -14183,8 +14424,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCir
}
type ApiCircuitsProviderAccountsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerAccountRequest *[]ProviderAccountRequest
}
@@ -14202,24 +14443,25 @@ CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBul
Patch a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest {
return ApiCircuitsProviderAccountsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ProviderAccount
+//
+// @return []ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ProviderAccount
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkPartialUpdate")
@@ -14307,8 +14549,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r
}
type ApiCircuitsProviderAccountsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerAccountRequest *[]ProviderAccountRequest
}
@@ -14326,24 +14568,25 @@ CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate
Put a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest {
return ApiCircuitsProviderAccountsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ProviderAccount
+//
+// @return []ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ProviderAccount
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkUpdate")
@@ -14431,8 +14674,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCirc
}
type ApiCircuitsProviderAccountsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerAccountRequest *ProviderAccountRequest
}
@@ -14450,24 +14693,25 @@ CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate
Post a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest {
return ApiCircuitsProviderAccountsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ProviderAccount
+//
+// @return ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderAccount
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsCreate")
@@ -14555,9 +14799,9 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuits
}
type ApiCircuitsProviderAccountsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProviderAccountsDestroyRequest) Execute() (*http.Response, error) {
@@ -14569,24 +14813,24 @@ CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy
Delete a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest {
return ApiCircuitsProviderAccountsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsDestroy")
@@ -14661,75 +14905,83 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsDestroyExecute(r ApiCircuit
}
type ApiCircuitsProviderAccountsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- account *[]string
- accountEmpty *bool
- accountIc *[]string
- accountIe *[]string
- accountIew *[]string
- accountIsw *[]string
- accountN *[]string
- accountNic *[]string
- accountNie *[]string
- accountNiew *[]string
- accountNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ account *[]string
+ accountEmpty *bool
+ accountIc *[]string
+ accountIe *[]string
+ accountIew *[]string
+ accountIsw *[]string
+ accountN *[]string
+ accountNic *[]string
+ accountNie *[]string
+ accountNiew *[]string
+ accountNisw *[]string
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerId *[]int32
- providerIdN *[]int32
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerId *[]int32
+ providerIdN *[]int32
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsProviderAccountsListRequest) Account(account []string) ApiCircuitsProviderAccountsListRequest {
@@ -14787,6 +15039,40 @@ func (r ApiCircuitsProviderAccountsListRequest) AccountNisw(accountNisw []string
return r
}
+// Contact
+func (r ApiCircuitsProviderAccountsListRequest) Contact(contact []int32) ApiCircuitsProviderAccountsListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiCircuitsProviderAccountsListRequest) ContactN(contactN []int32) ApiCircuitsProviderAccountsListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiCircuitsProviderAccountsListRequest) ContactGroup(contactGroup []string) ApiCircuitsProviderAccountsListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiCircuitsProviderAccountsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProviderAccountsListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiCircuitsProviderAccountsListRequest) ContactRole(contactRole []int32) ApiCircuitsProviderAccountsListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiCircuitsProviderAccountsListRequest) ContactRoleN(contactRoleN []int32) ApiCircuitsProviderAccountsListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
+}
+
func (r ApiCircuitsProviderAccountsListRequest) Created(created []time.Time) ApiCircuitsProviderAccountsListRequest {
r.created = &created
return r
@@ -15070,6 +15356,16 @@ func (r ApiCircuitsProviderAccountsListRequest) TagN(tagN []string) ApiCircuitsP
return r
}
+func (r ApiCircuitsProviderAccountsListRequest) TagId(tagId []int32) ApiCircuitsProviderAccountsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsProviderAccountsListRequest) TagIdN(tagIdN []int32) ApiCircuitsProviderAccountsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsProviderAccountsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderAccountsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -15084,24 +15380,25 @@ CircuitsProviderAccountsList Method for CircuitsProviderAccountsList
Get a list of provider account objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderAccountsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderAccountsListRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest {
return ApiCircuitsProviderAccountsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedProviderAccountList
+//
+// @return PaginatedProviderAccountList
func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedProviderAccountList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedProviderAccountList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsList")
@@ -15228,6 +15525,72 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr
parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", t, "form", "multi")
}
}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15761,6 +16124,28 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -15833,9 +16218,9 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr
}
type ApiCircuitsProviderAccountsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedProviderAccountRequest *PatchedProviderAccountRequest
}
@@ -15853,26 +16238,27 @@ CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartial
Patch a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest {
return ApiCircuitsProviderAccountsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderAccount
+//
+// @return ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderAccount
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsPartialUpdate")
@@ -15958,9 +16344,9 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC
}
type ApiCircuitsProviderAccountsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProviderAccountsRetrieveRequest) Execute() (*ProviderAccount, *http.Response, error) {
@@ -15972,26 +16358,27 @@ CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve
Get a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest {
return ApiCircuitsProviderAccountsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderAccount
+//
+// @return ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderAccount
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsRetrieve")
@@ -16075,9 +16462,9 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircui
}
type ApiCircuitsProviderAccountsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
providerAccountRequest *ProviderAccountRequest
}
@@ -16095,26 +16482,27 @@ CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate
Put a provider account object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider account.
- @return ApiCircuitsProviderAccountsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider account.
+ @return ApiCircuitsProviderAccountsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest {
return ApiCircuitsProviderAccountsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderAccount
+//
+// @return ProviderAccount
func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderAccount
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderAccount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsUpdate")
@@ -16203,8 +16591,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits
}
type ApiCircuitsProviderNetworksBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerNetworkRequest *[]ProviderNetworkRequest
}
@@ -16222,22 +16610,22 @@ CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestr
Delete a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest {
return ApiCircuitsProviderNetworksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkDestroy")
@@ -16316,8 +16704,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCir
}
type ApiCircuitsProviderNetworksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerNetworkRequest *[]ProviderNetworkRequest
}
@@ -16335,24 +16723,25 @@ CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBul
Patch a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest {
return ApiCircuitsProviderNetworksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ProviderNetwork
+//
+// @return []ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ProviderNetwork
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkPartialUpdate")
@@ -16440,8 +16829,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r
}
type ApiCircuitsProviderNetworksBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerNetworkRequest *[]ProviderNetworkRequest
}
@@ -16459,24 +16848,25 @@ CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate
Put a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest {
return ApiCircuitsProviderNetworksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ProviderNetwork
+//
+// @return []ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ProviderNetwork
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkUpdate")
@@ -16564,8 +16954,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCirc
}
type ApiCircuitsProviderNetworksCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerNetworkRequest *ProviderNetworkRequest
}
@@ -16583,24 +16973,25 @@ CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate
Post a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksCreateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest {
return ApiCircuitsProviderNetworksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ProviderNetwork
+//
+// @return ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderNetwork
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksCreate")
@@ -16688,9 +17079,9 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuits
}
type ApiCircuitsProviderNetworksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProviderNetworksDestroyRequest) Execute() (*http.Response, error) {
@@ -16702,24 +17093,24 @@ CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy
Delete a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest {
return ApiCircuitsProviderNetworksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProviderNetworksDestroyExecute(r ApiCircuitsProviderNetworksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksDestroy")
@@ -16794,75 +17185,77 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksDestroyExecute(r ApiCircuit
}
type ApiCircuitsProviderNetworksListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerId *[]int32
- providerIdN *[]int32
- q *string
- serviceId *[]string
- serviceIdEmpty *bool
- serviceIdIc *[]string
- serviceIdIe *[]string
- serviceIdIew *[]string
- serviceIdIsw *[]string
- serviceIdN *[]string
- serviceIdNic *[]string
- serviceIdNie *[]string
- serviceIdNiew *[]string
- serviceIdNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerId *[]int32
+ providerIdN *[]int32
+ q *string
+ serviceId *[]string
+ serviceIdEmpty *bool
+ serviceIdIc *[]string
+ serviceIdIe *[]string
+ serviceIdIew *[]string
+ serviceIdIsw *[]string
+ serviceIdN *[]string
+ serviceIdNic *[]string
+ serviceIdNie *[]string
+ serviceIdNiew *[]string
+ serviceIdNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsProviderNetworksListRequest) Created(created []time.Time) ApiCircuitsProviderNetworksListRequest {
@@ -17203,6 +17596,16 @@ func (r ApiCircuitsProviderNetworksListRequest) TagN(tagN []string) ApiCircuitsP
return r
}
+func (r ApiCircuitsProviderNetworksListRequest) TagId(tagId []int32) ApiCircuitsProviderNetworksListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsProviderNetworksListRequest) TagIdN(tagIdN []int32) ApiCircuitsProviderNetworksListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsProviderNetworksListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderNetworksListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -17217,24 +17620,25 @@ CircuitsProviderNetworksList Method for CircuitsProviderNetworksList
Get a list of provider network objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProviderNetworksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProviderNetworksListRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest {
return ApiCircuitsProviderNetworksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedProviderNetworkList
+//
+// @return PaginatedProviderNetworkList
func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedProviderNetworkList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedProviderNetworkList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksList")
@@ -17894,6 +18298,28 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -17966,9 +18392,9 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr
}
type ApiCircuitsProviderNetworksPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedProviderNetworkRequest *PatchedProviderNetworkRequest
}
@@ -17986,26 +18412,27 @@ CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartial
Patch a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest {
return ApiCircuitsProviderNetworksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderNetwork
+//
+// @return ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderNetwork
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksPartialUpdate")
@@ -18091,9 +18518,9 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiC
}
type ApiCircuitsProviderNetworksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProviderNetworksRetrieveRequest) Execute() (*ProviderNetwork, *http.Response, error) {
@@ -18105,26 +18532,27 @@ CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve
Get a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest {
return ApiCircuitsProviderNetworksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderNetwork
+//
+// @return ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderNetwork
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksRetrieve")
@@ -18208,9 +18636,9 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircui
}
type ApiCircuitsProviderNetworksUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
providerNetworkRequest *ProviderNetworkRequest
}
@@ -18228,26 +18656,27 @@ CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate
Put a provider network object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider network.
- @return ApiCircuitsProviderNetworksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider network.
+ @return ApiCircuitsProviderNetworksUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest {
return ApiCircuitsProviderNetworksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ProviderNetwork
+//
+// @return ProviderNetwork
func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ProviderNetwork
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ProviderNetwork
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksUpdate")
@@ -18336,8 +18765,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits
}
type ApiCircuitsProvidersBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerRequest *[]ProviderRequest
}
@@ -18355,22 +18784,22 @@ CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy
Delete a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest {
return ApiCircuitsProvidersBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkDestroy")
@@ -18449,8 +18878,8 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsPr
}
type ApiCircuitsProvidersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerRequest *[]ProviderRequest
}
@@ -18468,24 +18897,25 @@ CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate
Patch a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest {
return ApiCircuitsProvidersBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Provider
+//
+// @return []Provider
func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Provider
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkPartialUpdate")
@@ -18573,8 +19003,8 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCirc
}
type ApiCircuitsProvidersBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerRequest *[]ProviderRequest
}
@@ -18592,24 +19022,25 @@ CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate
Put a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest {
return ApiCircuitsProvidersBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Provider
+//
+// @return []Provider
func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Provider
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkUpdate")
@@ -18697,8 +19128,8 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsPro
}
type ApiCircuitsProvidersCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
providerRequest *ProviderRequest
}
@@ -18716,24 +19147,25 @@ CircuitsProvidersCreate Method for CircuitsProvidersCreate
Post a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersCreateRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest {
return ApiCircuitsProvidersCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Provider
+//
+// @return Provider
func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Provider
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersCreate")
@@ -18821,9 +19253,9 @@ func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide
}
type ApiCircuitsProvidersDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProvidersDestroyRequest) Execute() (*http.Response, error) {
@@ -18835,24 +19267,24 @@ CircuitsProvidersDestroy Method for CircuitsProvidersDestroy
Delete a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest {
return ApiCircuitsProvidersDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvidersDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersDestroy")
@@ -18927,93 +19359,95 @@ func (a *CircuitsAPIService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvid
}
type ApiCircuitsProvidersListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- asn *[]int64
- asnN *[]int64
- asnId *[]int32
- asnIdN *[]int32
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ asn *[]int64
+ asnN *[]int64
+ asnId *[]int32
+ asnIdN *[]int32
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// ASN
@@ -19452,6 +19886,16 @@ func (r ApiCircuitsProvidersListRequest) TagN(tagN []string) ApiCircuitsProvider
return r
}
+func (r ApiCircuitsProvidersListRequest) TagId(tagId []int32) ApiCircuitsProvidersListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsProvidersListRequest) TagIdN(tagIdN []int32) ApiCircuitsProvidersListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsProvidersListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProvidersListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -19466,24 +19910,25 @@ CircuitsProvidersList Method for CircuitsProvidersList
Get a list of provider objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsProvidersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsProvidersListRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest {
return ApiCircuitsProvidersListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedProviderList
+//
+// @return PaginatedProviderList
func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedProviderList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedProviderList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersList")
@@ -20341,6 +20786,28 @@ func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProviders
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -20413,9 +20880,9 @@ func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProviders
}
type ApiCircuitsProvidersPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedProviderRequest *PatchedProviderRequest
}
@@ -20433,26 +20900,27 @@ CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate
Patch a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest {
return ApiCircuitsProvidersPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Provider
+//
+// @return Provider
func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Provider
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersPartialUpdate")
@@ -20538,9 +21006,9 @@ func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuits
}
type ApiCircuitsProvidersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsProvidersRetrieveRequest) Execute() (*Provider, *http.Response, error) {
@@ -20552,26 +21020,27 @@ CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve
Get a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest {
return ApiCircuitsProvidersRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Provider
+//
+// @return Provider
func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Provider
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersRetrieve")
@@ -20655,9 +21124,9 @@ func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvi
}
type ApiCircuitsProvidersUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
providerRequest *ProviderRequest
}
@@ -20675,26 +21144,27 @@ CircuitsProvidersUpdate Method for CircuitsProvidersUpdate
Put a provider object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this provider.
- @return ApiCircuitsProvidersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this provider.
+ @return ApiCircuitsProvidersUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest {
return ApiCircuitsProvidersUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Provider
+//
+// @return Provider
func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Provider
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Provider
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersUpdate")
@@ -20783,8 +21253,8 @@ func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvide
}
type ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest
}
@@ -20802,22 +21272,22 @@ CircuitsVirtualCircuitTerminationsBulkDestroy Method for CircuitsVirtualCircuitT
Delete a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest {
return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsBulkDestroy")
@@ -20896,8 +21366,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkDestroyExecut
}
type ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest
}
@@ -20915,24 +21385,25 @@ CircuitsVirtualCircuitTerminationsBulkPartialUpdate Method for CircuitsVirtualCi
Patch a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest {
return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuitTermination
+//
+// @return []VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsBulkPartialUpdate")
@@ -21020,8 +21491,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkPartialUpdate
}
type ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest
}
@@ -21039,24 +21510,25 @@ CircuitsVirtualCircuitTerminationsBulkUpdate Method for CircuitsVirtualCircuitTe
Put a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest {
return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuitTermination
+//
+// @return []VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsBulkUpdate")
@@ -21144,8 +21616,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkUpdateExecute
}
type ApiCircuitsVirtualCircuitTerminationsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
writableVirtualCircuitTerminationRequest *WritableVirtualCircuitTerminationRequest
}
@@ -21163,24 +21635,25 @@ CircuitsVirtualCircuitTerminationsCreate Method for CircuitsVirtualCircuitTermin
Post a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsCreate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsCreateRequest {
return ApiCircuitsVirtualCircuitTerminationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualCircuitTermination
+//
+// @return VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsCreateExecute(r ApiCircuitsVirtualCircuitTerminationsCreateRequest) (*VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsCreate")
@@ -21268,9 +21741,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsCreateExecute(r A
}
type ApiCircuitsVirtualCircuitTerminationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) {
@@ -21282,24 +21755,24 @@ CircuitsVirtualCircuitTerminationsDestroy Method for CircuitsVirtualCircuitTermi
Delete a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsDestroyRequest {
return ApiCircuitsVirtualCircuitTerminationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsDestroy")
@@ -21374,74 +21847,76 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsDestroyExecute(r
}
type ApiCircuitsVirtualCircuitTerminationsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerAccount *[]string
- providerAccountN *[]string
- providerAccountId *[]int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerAccount *[]string
+ providerAccountN *[]string
+ providerAccountId *[]int32
providerAccountIdN *[]int32
- providerId *[]int32
- providerIdN *[]int32
- providerNetworkId *[]int32
+ providerId *[]int32
+ providerIdN *[]int32
+ providerNetworkId *[]int32
providerNetworkIdN *[]int32
- q *string
- role *[]string
- roleEmpty *bool
- roleIc *[]string
- roleIe *[]string
- roleIew *[]string
- roleIsw *[]string
- roleN *[]string
- roleNic *[]string
- roleNie *[]string
- roleNiew *[]string
- roleNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualCircuitId *[]int32
- virtualCircuitIdN *[]int32
+ q *string
+ role *[]string
+ roleEmpty *bool
+ roleIc *[]string
+ roleIe *[]string
+ roleIew *[]string
+ roleIsw *[]string
+ roleN *[]string
+ roleNic *[]string
+ roleNie *[]string
+ roleNiew *[]string
+ roleNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualCircuitId *[]int32
+ virtualCircuitIdN *[]int32
}
func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Created(created []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest {
@@ -21775,6 +22250,16 @@ func (r ApiCircuitsVirtualCircuitTerminationsListRequest) TagN(tagN []string) Ap
return r
}
+func (r ApiCircuitsVirtualCircuitTerminationsListRequest) TagId(tagId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsVirtualCircuitTerminationsListRequest) TagIdN(tagIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsVirtualCircuitTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsVirtualCircuitTerminationsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -21801,24 +22286,25 @@ CircuitsVirtualCircuitTerminationsList Method for CircuitsVirtualCircuitTerminat
Get a list of virtual circuit termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTerminationsListRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsList(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsListRequest {
return ApiCircuitsVirtualCircuitTerminationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualCircuitTerminationList
+//
+// @return PaginatedVirtualCircuitTerminationList
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsListExecute(r ApiCircuitsVirtualCircuitTerminationsListRequest) (*PaginatedVirtualCircuitTerminationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualCircuitTerminationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualCircuitTerminationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsList")
@@ -22453,6 +22939,28 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsListExecute(r Api
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -22547,9 +23055,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsListExecute(r Api
}
type ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedWritableVirtualCircuitTerminationRequest *PatchedWritableVirtualCircuitTerminationRequest
}
@@ -22567,26 +23075,27 @@ CircuitsVirtualCircuitTerminationsPartialUpdate Method for CircuitsVirtualCircui
Patch a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest {
return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitTermination
+//
+// @return VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsPartialUpdate")
@@ -22672,9 +23181,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPartialUpdateExec
}
type ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) {
@@ -22686,26 +23195,27 @@ CircuitsVirtualCircuitTerminationsPathsRetrieve Method for CircuitsVirtualCircui
Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest {
return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitTermination
+//
+// @return VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsPathsRetrieve")
@@ -22789,9 +23299,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPathsRetrieveExec
}
type ApiCircuitsVirtualCircuitTerminationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) {
@@ -22803,26 +23313,27 @@ CircuitsVirtualCircuitTerminationsRetrieve Method for CircuitsVirtualCircuitTerm
Get a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsRetrieveRequest {
return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitTermination
+//
+// @return VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsRetrieve")
@@ -22906,9 +23417,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsRetrieveExecute(r
}
type ApiCircuitsVirtualCircuitTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
writableVirtualCircuitTerminationRequest *WritableVirtualCircuitTerminationRequest
}
@@ -22926,26 +23437,27 @@ CircuitsVirtualCircuitTerminationsUpdate Method for CircuitsVirtualCircuitTermin
Put a virtual circuit termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit termination.
- @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit termination.
+ @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsUpdateRequest {
return ApiCircuitsVirtualCircuitTerminationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitTermination
+//
+// @return VirtualCircuitTermination
func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsUpdate")
@@ -23034,8 +23546,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsUpdateExecute(r A
}
type ApiCircuitsVirtualCircuitTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest
}
@@ -23053,22 +23565,22 @@ CircuitsVirtualCircuitTypesBulkDestroy Method for CircuitsVirtualCircuitTypesBul
Delete a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkDestroyRequest {
return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkDestroyExecute(r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesBulkDestroy")
@@ -23147,8 +23659,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkDestroyExecute(r Api
}
type ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest
}
@@ -23166,24 +23678,25 @@ CircuitsVirtualCircuitTypesBulkPartialUpdate Method for CircuitsVirtualCircuitTy
Patch a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest {
return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuitType
+//
+// @return []VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) ([]VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuitType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesBulkPartialUpdate")
@@ -23271,8 +23784,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkPartialUpdateExecute
}
type ApiCircuitsVirtualCircuitTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest
}
@@ -23290,24 +23803,25 @@ CircuitsVirtualCircuitTypesBulkUpdate Method for CircuitsVirtualCircuitTypesBulk
Put a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkUpdateRequest {
return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuitType
+//
+// @return []VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) ([]VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuitType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesBulkUpdate")
@@ -23395,8 +23909,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkUpdateExecute(r ApiC
}
type ApiCircuitsVirtualCircuitTypesCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitTypeRequest *VirtualCircuitTypeRequest
}
@@ -23414,24 +23928,25 @@ CircuitsVirtualCircuitTypesCreate Method for CircuitsVirtualCircuitTypesCreate
Post a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesCreateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesCreate(ctx context.Context) ApiCircuitsVirtualCircuitTypesCreateRequest {
return ApiCircuitsVirtualCircuitTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualCircuitType
+//
+// @return VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesCreateExecute(r ApiCircuitsVirtualCircuitTypesCreateRequest) (*VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesCreate")
@@ -23519,9 +24034,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesCreateExecute(r ApiCircu
}
type ApiCircuitsVirtualCircuitTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -23533,24 +24048,24 @@ CircuitsVirtualCircuitTypesDestroy Method for CircuitsVirtualCircuitTypesDestroy
Delete a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesDestroyRequest {
return ApiCircuitsVirtualCircuitTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesDestroyExecute(r ApiCircuitsVirtualCircuitTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesDestroy")
@@ -23625,82 +24140,84 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesDestroyExecute(r ApiCirc
}
type ApiCircuitsVirtualCircuitTypesListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsVirtualCircuitTypesListRequest) Color(color []string) ApiCircuitsVirtualCircuitTypesListRequest {
@@ -24072,6 +24589,16 @@ func (r ApiCircuitsVirtualCircuitTypesListRequest) TagN(tagN []string) ApiCircui
return r
}
+func (r ApiCircuitsVirtualCircuitTypesListRequest) TagId(tagId []int32) ApiCircuitsVirtualCircuitTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsVirtualCircuitTypesListRequest) TagIdN(tagIdN []int32) ApiCircuitsVirtualCircuitTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCircuitsVirtualCircuitTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsVirtualCircuitTypesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -24086,24 +24613,25 @@ CircuitsVirtualCircuitTypesList Method for CircuitsVirtualCircuitTypesList
Get a list of virtual circuit type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitTypesListRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesList(ctx context.Context) ApiCircuitsVirtualCircuitTypesListRequest {
return ApiCircuitsVirtualCircuitTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualCircuitTypeList
+//
+// @return PaginatedVirtualCircuitTypeList
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesListExecute(r ApiCircuitsVirtualCircuitTypesListRequest) (*PaginatedVirtualCircuitTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualCircuitTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualCircuitTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesList")
@@ -24832,6 +25360,28 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesListExecute(r ApiCircuit
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -24904,9 +25454,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesListExecute(r ApiCircuit
}
type ApiCircuitsVirtualCircuitTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedVirtualCircuitTypeRequest *PatchedVirtualCircuitTypeRequest
}
@@ -24924,26 +25474,27 @@ CircuitsVirtualCircuitTypesPartialUpdate Method for CircuitsVirtualCircuitTypesP
Patch a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesPartialUpdateRequest {
return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitType
+//
+// @return VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) (*VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesPartialUpdate")
@@ -25029,9 +25580,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesPartialUpdateExecute(r A
}
type ApiCircuitsVirtualCircuitTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitTypesRetrieveRequest) Execute() (*VirtualCircuitType, *http.Response, error) {
@@ -25043,26 +25594,27 @@ CircuitsVirtualCircuitTypesRetrieve Method for CircuitsVirtualCircuitTypesRetrie
Get a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesRetrieveRequest {
return ApiCircuitsVirtualCircuitTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitType
+//
+// @return VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesRetrieveExecute(r ApiCircuitsVirtualCircuitTypesRetrieveRequest) (*VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesRetrieve")
@@ -25146,9 +25698,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesRetrieveExecute(r ApiCir
}
type ApiCircuitsVirtualCircuitTypesUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
virtualCircuitTypeRequest *VirtualCircuitTypeRequest
}
@@ -25166,26 +25718,27 @@ CircuitsVirtualCircuitTypesUpdate Method for CircuitsVirtualCircuitTypesUpdate
Put a virtual circuit type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit type.
- @return ApiCircuitsVirtualCircuitTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit type.
+ @return ApiCircuitsVirtualCircuitTypesUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesUpdateRequest {
return ApiCircuitsVirtualCircuitTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuitType
+//
+// @return VirtualCircuitType
func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesUpdateExecute(r ApiCircuitsVirtualCircuitTypesUpdateRequest) (*VirtualCircuitType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuitType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuitType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesUpdate")
@@ -25274,8 +25827,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesUpdateExecute(r ApiCircu
}
type ApiCircuitsVirtualCircuitsBulkDestroyRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitRequest *[]VirtualCircuitRequest
}
@@ -25293,22 +25846,22 @@ CircuitsVirtualCircuitsBulkDestroy Method for CircuitsVirtualCircuitsBulkDestroy
Delete a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitsBulkDestroyRequest {
return ApiCircuitsVirtualCircuitsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkDestroyExecute(r ApiCircuitsVirtualCircuitsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsBulkDestroy")
@@ -25387,8 +25940,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkDestroyExecute(r ApiCirc
}
type ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitRequest *[]VirtualCircuitRequest
}
@@ -25406,24 +25959,25 @@ CircuitsVirtualCircuitsBulkPartialUpdate Method for CircuitsVirtualCircuitsBulkP
Patch a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest {
return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuit
+//
+// @return []VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) ([]VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuit
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsBulkPartialUpdate")
@@ -25511,8 +26065,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkPartialUpdateExecute(r A
}
type ApiCircuitsVirtualCircuitsBulkUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
virtualCircuitRequest *[]VirtualCircuitRequest
}
@@ -25530,24 +26084,25 @@ CircuitsVirtualCircuitsBulkUpdate Method for CircuitsVirtualCircuitsBulkUpdate
Put a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsBulkUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkUpdateRequest {
return ApiCircuitsVirtualCircuitsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualCircuit
+//
+// @return []VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkUpdateExecute(r ApiCircuitsVirtualCircuitsBulkUpdateRequest) ([]VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualCircuit
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsBulkUpdate")
@@ -25635,8 +26190,8 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkUpdateExecute(r ApiCircu
}
type ApiCircuitsVirtualCircuitsCreateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
+ ctx context.Context
+ ApiService CircuitsAPI
writableVirtualCircuitRequest *WritableVirtualCircuitRequest
}
@@ -25654,24 +26209,25 @@ CircuitsVirtualCircuitsCreate Method for CircuitsVirtualCircuitsCreate
Post a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsCreateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsCreate(ctx context.Context) ApiCircuitsVirtualCircuitsCreateRequest {
return ApiCircuitsVirtualCircuitsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualCircuit
+//
+// @return VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsCreateExecute(r ApiCircuitsVirtualCircuitsCreateRequest) (*VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuit
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsCreate")
@@ -25759,9 +26315,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsCreateExecute(r ApiCircuitsV
}
type ApiCircuitsVirtualCircuitsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitsDestroyRequest) Execute() (*http.Response, error) {
@@ -25773,24 +26329,24 @@ CircuitsVirtualCircuitsDestroy Method for CircuitsVirtualCircuitsDestroy
Delete a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsDestroyRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsDestroyRequest {
return ApiCircuitsVirtualCircuitsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CircuitsAPIService) CircuitsVirtualCircuitsDestroyExecute(r ApiCircuitsVirtualCircuitsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsDestroy")
@@ -25865,93 +26421,95 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsDestroyExecute(r ApiCircuits
}
type ApiCircuitsVirtualCircuitsListRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- cid *[]string
- cidEmpty *bool
- cidIc *[]string
- cidIe *[]string
- cidIew *[]string
- cidIsw *[]string
- cidN *[]string
- cidNic *[]string
- cidNie *[]string
- cidNiew *[]string
- cidNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerAccount *[]string
- providerAccountN *[]string
- providerAccountId *[]int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ cid *[]string
+ cidEmpty *bool
+ cidIc *[]string
+ cidIe *[]string
+ cidIew *[]string
+ cidIsw *[]string
+ cidN *[]string
+ cidNic *[]string
+ cidNie *[]string
+ cidNiew *[]string
+ cidNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerAccount *[]string
+ providerAccountN *[]string
+ providerAccountId *[]int32
providerAccountIdN *[]int32
- providerId *[]int32
- providerIdN *[]int32
- providerNetworkId *[]int32
+ providerId *[]int32
+ providerIdN *[]int32
+ providerNetworkId *[]int32
providerNetworkIdN *[]int32
- q *string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- type_ *[]string
- typeN *[]string
- typeId *[]int32
- typeIdN *[]int32
- updatedByRequest *string
+ q *string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ type_ *[]string
+ typeN *[]string
+ typeId *[]int32
+ typeIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCircuitsVirtualCircuitsListRequest) Cid(cid []string) ApiCircuitsVirtualCircuitsListRequest {
@@ -26328,6 +26886,16 @@ func (r ApiCircuitsVirtualCircuitsListRequest) TagN(tagN []string) ApiCircuitsVi
return r
}
+func (r ApiCircuitsVirtualCircuitsListRequest) TagId(tagId []int32) ApiCircuitsVirtualCircuitsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCircuitsVirtualCircuitsListRequest) TagIdN(tagIdN []int32) ApiCircuitsVirtualCircuitsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiCircuitsVirtualCircuitsListRequest) Tenant(tenant []string) ApiCircuitsVirtualCircuitsListRequest {
r.tenant = &tenant
@@ -26410,24 +26978,25 @@ CircuitsVirtualCircuitsList Method for CircuitsVirtualCircuitsList
Get a list of virtual circuit objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCircuitsVirtualCircuitsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCircuitsVirtualCircuitsListRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsList(ctx context.Context) ApiCircuitsVirtualCircuitsListRequest {
return ApiCircuitsVirtualCircuitsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualCircuitList
+//
+// @return PaginatedVirtualCircuitList
func (a *CircuitsAPIService) CircuitsVirtualCircuitsListExecute(r ApiCircuitsVirtualCircuitsListRequest) (*PaginatedVirtualCircuitList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualCircuitList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualCircuitList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsList")
@@ -27153,6 +27722,28 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsListExecute(r ApiCircuitsVir
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -27357,9 +27948,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsListExecute(r ApiCircuitsVir
}
type ApiCircuitsVirtualCircuitsPartialUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
patchedWritableVirtualCircuitRequest *PatchedWritableVirtualCircuitRequest
}
@@ -27377,26 +27968,27 @@ CircuitsVirtualCircuitsPartialUpdate Method for CircuitsVirtualCircuitsPartialUp
Patch a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsPartialUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsPartialUpdateRequest {
return ApiCircuitsVirtualCircuitsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuit
+//
+// @return VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsPartialUpdateExecute(r ApiCircuitsVirtualCircuitsPartialUpdateRequest) (*VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuit
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsPartialUpdate")
@@ -27482,9 +28074,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsPartialUpdateExecute(r ApiCi
}
type ApiCircuitsVirtualCircuitsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CircuitsAPI
- id int32
+ id int32
}
func (r ApiCircuitsVirtualCircuitsRetrieveRequest) Execute() (*VirtualCircuit, *http.Response, error) {
@@ -27496,26 +28088,27 @@ CircuitsVirtualCircuitsRetrieve Method for CircuitsVirtualCircuitsRetrieve
Get a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsRetrieveRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsRetrieveRequest {
return ApiCircuitsVirtualCircuitsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuit
+//
+// @return VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsRetrieveExecute(r ApiCircuitsVirtualCircuitsRetrieveRequest) (*VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuit
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsRetrieve")
@@ -27599,9 +28192,9 @@ func (a *CircuitsAPIService) CircuitsVirtualCircuitsRetrieveExecute(r ApiCircuit
}
type ApiCircuitsVirtualCircuitsUpdateRequest struct {
- ctx context.Context
- ApiService CircuitsAPI
- id int32
+ ctx context.Context
+ ApiService CircuitsAPI
+ id int32
writableVirtualCircuitRequest *WritableVirtualCircuitRequest
}
@@ -27619,26 +28212,27 @@ CircuitsVirtualCircuitsUpdate Method for CircuitsVirtualCircuitsUpdate
Put a virtual circuit object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual circuit.
- @return ApiCircuitsVirtualCircuitsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual circuit.
+ @return ApiCircuitsVirtualCircuitsUpdateRequest
*/
func (a *CircuitsAPIService) CircuitsVirtualCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsUpdateRequest {
return ApiCircuitsVirtualCircuitsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualCircuit
+//
+// @return VirtualCircuit
func (a *CircuitsAPIService) CircuitsVirtualCircuitsUpdateExecute(r ApiCircuitsVirtualCircuitsUpdateRequest) (*VirtualCircuit, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualCircuit
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualCircuit
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsUpdate")
diff --git a/api_core.go b/api_core.go
index c7032113e..d94ccbc9a 100644
--- a/api_core.go
+++ b/api_core.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,22 +16,21 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type CoreAPI interface {
/*
- CoreBackgroundQueuesRetrieve Method for CoreBackgroundQueuesRetrieve
+ CoreBackgroundQueuesRetrieve Method for CoreBackgroundQueuesRetrieve
- Retrieve a list of RQ Queues.
-Note: Queue names are not URL safe so not returning a detail view.
+ Retrieve a list of RQ Queues.
+ Note: Queue names are not URL safe so not returning a detail view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundQueuesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundQueuesRetrieveRequest
*/
CoreBackgroundQueuesRetrieve(ctx context.Context) ApiCoreBackgroundQueuesRetrieveRequest
@@ -40,14 +39,14 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundQueuesRetrieveExecute(r ApiCoreBackgroundQueuesRetrieveRequest) (map[string]interface{}, *http.Response, error)
/*
- CoreBackgroundQueuesRetrieve2 Method for CoreBackgroundQueuesRetrieve2
+ CoreBackgroundQueuesRetrieve2 Method for CoreBackgroundQueuesRetrieve2
- Retrieve a list of RQ Queues.
-Note: Queue names are not URL safe so not returning a detail view.
+ Retrieve a list of RQ Queues.
+ Note: Queue names are not URL safe so not returning a detail view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
- @return ApiCoreBackgroundQueuesRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param name
+ @return ApiCoreBackgroundQueuesRetrieve2Request
*/
CoreBackgroundQueuesRetrieve2(ctx context.Context, name string) ApiCoreBackgroundQueuesRetrieve2Request
@@ -56,13 +55,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundQueuesRetrieve2Execute(r ApiCoreBackgroundQueuesRetrieve2Request) (map[string]interface{}, *http.Response, error)
/*
- CoreBackgroundTasksDeleteCreate Method for CoreBackgroundTasksDeleteCreate
+ CoreBackgroundTasksDeleteCreate Method for CoreBackgroundTasksDeleteCreate
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksDeleteCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksDeleteCreateRequest
*/
CoreBackgroundTasksDeleteCreate(ctx context.Context, id string) ApiCoreBackgroundTasksDeleteCreateRequest
@@ -70,13 +69,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksDeleteCreateExecute(r ApiCoreBackgroundTasksDeleteCreateRequest) (*http.Response, error)
/*
- CoreBackgroundTasksEnqueueCreate Method for CoreBackgroundTasksEnqueueCreate
+ CoreBackgroundTasksEnqueueCreate Method for CoreBackgroundTasksEnqueueCreate
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksEnqueueCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksEnqueueCreateRequest
*/
CoreBackgroundTasksEnqueueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksEnqueueCreateRequest
@@ -84,13 +83,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksEnqueueCreateExecute(r ApiCoreBackgroundTasksEnqueueCreateRequest) (*http.Response, error)
/*
- CoreBackgroundTasksRequeueCreate Method for CoreBackgroundTasksRequeueCreate
+ CoreBackgroundTasksRequeueCreate Method for CoreBackgroundTasksRequeueCreate
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksRequeueCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksRequeueCreateRequest
*/
CoreBackgroundTasksRequeueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksRequeueCreateRequest
@@ -98,12 +97,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksRequeueCreateExecute(r ApiCoreBackgroundTasksRequeueCreateRequest) (*http.Response, error)
/*
- CoreBackgroundTasksRetrieve Method for CoreBackgroundTasksRetrieve
+ CoreBackgroundTasksRetrieve Method for CoreBackgroundTasksRetrieve
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundTasksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundTasksRetrieveRequest
*/
CoreBackgroundTasksRetrieve(ctx context.Context) ApiCoreBackgroundTasksRetrieveRequest
@@ -112,13 +111,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksRetrieveExecute(r ApiCoreBackgroundTasksRetrieveRequest) (map[string]interface{}, *http.Response, error)
/*
- CoreBackgroundTasksRetrieve2 Method for CoreBackgroundTasksRetrieve2
+ CoreBackgroundTasksRetrieve2 Method for CoreBackgroundTasksRetrieve2
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksRetrieve2Request
*/
CoreBackgroundTasksRetrieve2(ctx context.Context, id string) ApiCoreBackgroundTasksRetrieve2Request
@@ -127,13 +126,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksRetrieve2Execute(r ApiCoreBackgroundTasksRetrieve2Request) (map[string]interface{}, *http.Response, error)
/*
- CoreBackgroundTasksStopCreate Method for CoreBackgroundTasksStopCreate
+ CoreBackgroundTasksStopCreate Method for CoreBackgroundTasksStopCreate
- Retrieve a list of RQ Tasks.
+ Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksStopCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksStopCreateRequest
*/
CoreBackgroundTasksStopCreate(ctx context.Context, id string) ApiCoreBackgroundTasksStopCreateRequest
@@ -141,12 +140,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundTasksStopCreateExecute(r ApiCoreBackgroundTasksStopCreateRequest) (*http.Response, error)
/*
- CoreBackgroundWorkersRetrieve Method for CoreBackgroundWorkersRetrieve
+ CoreBackgroundWorkersRetrieve Method for CoreBackgroundWorkersRetrieve
- Retrieve a list of RQ Workers.
+ Retrieve a list of RQ Workers.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundWorkersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundWorkersRetrieveRequest
*/
CoreBackgroundWorkersRetrieve(ctx context.Context) ApiCoreBackgroundWorkersRetrieveRequest
@@ -155,13 +154,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundWorkersRetrieveExecute(r ApiCoreBackgroundWorkersRetrieveRequest) (map[string]interface{}, *http.Response, error)
/*
- CoreBackgroundWorkersRetrieve2 Method for CoreBackgroundWorkersRetrieve2
+ CoreBackgroundWorkersRetrieve2 Method for CoreBackgroundWorkersRetrieve2
- Retrieve a list of RQ Workers.
+ Retrieve a list of RQ Workers.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
- @return ApiCoreBackgroundWorkersRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param name
+ @return ApiCoreBackgroundWorkersRetrieve2Request
*/
CoreBackgroundWorkersRetrieve2(ctx context.Context, name string) ApiCoreBackgroundWorkersRetrieve2Request
@@ -169,12 +168,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreBackgroundWorkersRetrieve2Execute(r ApiCoreBackgroundWorkersRetrieve2Request) (*http.Response, error)
/*
- CoreDataFilesList Method for CoreDataFilesList
+ CoreDataFilesList Method for CoreDataFilesList
- Get a list of data file objects.
+ Get a list of data file objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataFilesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataFilesListRequest
*/
CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest
@@ -183,13 +182,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error)
/*
- CoreDataFilesRetrieve Method for CoreDataFilesRetrieve
+ CoreDataFilesRetrieve Method for CoreDataFilesRetrieve
- Get a data file object.
+ Get a data file object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data file.
- @return ApiCoreDataFilesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data file.
+ @return ApiCoreDataFilesRetrieveRequest
*/
CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest
@@ -198,12 +197,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error)
/*
- CoreDataSourcesBulkDestroy Method for CoreDataSourcesBulkDestroy
+ CoreDataSourcesBulkDestroy Method for CoreDataSourcesBulkDestroy
- Delete a list of data source objects.
+ Delete a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkDestroyRequest
*/
CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest
@@ -211,12 +210,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error)
/*
- CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate
+ CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate
- Patch a list of data source objects.
+ Patch a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkPartialUpdateRequest
*/
CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest
@@ -225,12 +224,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error)
/*
- CoreDataSourcesBulkUpdate Method for CoreDataSourcesBulkUpdate
+ CoreDataSourcesBulkUpdate Method for CoreDataSourcesBulkUpdate
- Put a list of data source objects.
+ Put a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkUpdateRequest
*/
CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest
@@ -239,12 +238,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error)
/*
- CoreDataSourcesCreate Method for CoreDataSourcesCreate
+ CoreDataSourcesCreate Method for CoreDataSourcesCreate
- Post a list of data source objects.
+ Post a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesCreateRequest
*/
CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest
@@ -253,13 +252,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error)
/*
- CoreDataSourcesDestroy Method for CoreDataSourcesDestroy
+ CoreDataSourcesDestroy Method for CoreDataSourcesDestroy
- Delete a data source object.
+ Delete a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesDestroyRequest
*/
CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest
@@ -267,12 +266,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error)
/*
- CoreDataSourcesList Method for CoreDataSourcesList
+ CoreDataSourcesList Method for CoreDataSourcesList
- Get a list of data source objects.
+ Get a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesListRequest
*/
CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest
@@ -281,13 +280,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error)
/*
- CoreDataSourcesPartialUpdate Method for CoreDataSourcesPartialUpdate
+ CoreDataSourcesPartialUpdate Method for CoreDataSourcesPartialUpdate
- Patch a data source object.
+ Patch a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesPartialUpdateRequest
*/
CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest
@@ -296,13 +295,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error)
/*
- CoreDataSourcesRetrieve Method for CoreDataSourcesRetrieve
+ CoreDataSourcesRetrieve Method for CoreDataSourcesRetrieve
- Get a data source object.
+ Get a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesRetrieveRequest
*/
CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest
@@ -311,13 +310,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error)
/*
- CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate
+ CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate
- Enqueue a job to synchronize the DataSource.
+ Enqueue a job to synchronize the DataSource.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesSyncCreateRequest
*/
CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest
@@ -326,13 +325,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error)
/*
- CoreDataSourcesUpdate Method for CoreDataSourcesUpdate
+ CoreDataSourcesUpdate Method for CoreDataSourcesUpdate
- Put a data source object.
+ Put a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesUpdateRequest
*/
CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest
@@ -341,12 +340,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error)
/*
- CoreJobsList Method for CoreJobsList
+ CoreJobsList Method for CoreJobsList
- Retrieve a list of job results
+ Retrieve a list of job results
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreJobsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreJobsListRequest
*/
CoreJobsList(ctx context.Context) ApiCoreJobsListRequest
@@ -355,13 +354,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error)
/*
- CoreJobsRetrieve Method for CoreJobsRetrieve
+ CoreJobsRetrieve Method for CoreJobsRetrieve
- Retrieve a list of job results
+ Retrieve a list of job results
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this job.
- @return ApiCoreJobsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this job.
+ @return ApiCoreJobsRetrieveRequest
*/
CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest
@@ -370,12 +369,12 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error)
/*
- CoreObjectChangesList Method for CoreObjectChangesList
+ CoreObjectChangesList Method for CoreObjectChangesList
- Retrieve a list of recent changes.
+ Retrieve a list of recent changes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreObjectChangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreObjectChangesListRequest
*/
CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest
@@ -384,13 +383,13 @@ Note: Queue names are not URL safe so not returning a detail view.
CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error)
/*
- CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve
+ CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve
- Retrieve a list of recent changes.
+ Retrieve a list of recent changes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this object change.
- @return ApiCoreObjectChangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this object change.
+ @return ApiCoreObjectChangesRetrieveRequest
*/
CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest
@@ -403,7 +402,7 @@ Note: Queue names are not URL safe so not returning a detail view.
type CoreAPIService service
type ApiCoreBackgroundQueuesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
}
@@ -417,24 +416,25 @@ CoreBackgroundQueuesRetrieve Method for CoreBackgroundQueuesRetrieve
Retrieve a list of RQ Queues.
Note: Queue names are not URL safe so not returning a detail view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundQueuesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundQueuesRetrieveRequest
*/
func (a *CoreAPIService) CoreBackgroundQueuesRetrieve(ctx context.Context) ApiCoreBackgroundQueuesRetrieveRequest {
return ApiCoreBackgroundQueuesRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *CoreAPIService) CoreBackgroundQueuesRetrieveExecute(r ApiCoreBackgroundQueuesRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundQueuesRetrieve")
@@ -517,9 +517,9 @@ func (a *CoreAPIService) CoreBackgroundQueuesRetrieveExecute(r ApiCoreBackground
}
type ApiCoreBackgroundQueuesRetrieve2Request struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- name string
+ name string
}
func (r ApiCoreBackgroundQueuesRetrieve2Request) Execute() (map[string]interface{}, *http.Response, error) {
@@ -532,26 +532,27 @@ CoreBackgroundQueuesRetrieve2 Method for CoreBackgroundQueuesRetrieve2
Retrieve a list of RQ Queues.
Note: Queue names are not URL safe so not returning a detail view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
- @return ApiCoreBackgroundQueuesRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param name
+ @return ApiCoreBackgroundQueuesRetrieve2Request
*/
func (a *CoreAPIService) CoreBackgroundQueuesRetrieve2(ctx context.Context, name string) ApiCoreBackgroundQueuesRetrieve2Request {
return ApiCoreBackgroundQueuesRetrieve2Request{
ApiService: a,
- ctx: ctx,
- name: name,
+ ctx: ctx,
+ name: name,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *CoreAPIService) CoreBackgroundQueuesRetrieve2Execute(r ApiCoreBackgroundQueuesRetrieve2Request) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundQueuesRetrieve2")
@@ -635,9 +636,9 @@ func (a *CoreAPIService) CoreBackgroundQueuesRetrieve2Execute(r ApiCoreBackgroun
}
type ApiCoreBackgroundTasksDeleteCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id string
+ id string
}
func (r ApiCoreBackgroundTasksDeleteCreateRequest) Execute() (*http.Response, error) {
@@ -649,24 +650,24 @@ CoreBackgroundTasksDeleteCreate Method for CoreBackgroundTasksDeleteCreate
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksDeleteCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksDeleteCreateRequest
*/
func (a *CoreAPIService) CoreBackgroundTasksDeleteCreate(ctx context.Context, id string) ApiCoreBackgroundTasksDeleteCreateRequest {
return ApiCoreBackgroundTasksDeleteCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreBackgroundTasksDeleteCreateExecute(r ApiCoreBackgroundTasksDeleteCreateRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksDeleteCreate")
@@ -741,9 +742,9 @@ func (a *CoreAPIService) CoreBackgroundTasksDeleteCreateExecute(r ApiCoreBackgro
}
type ApiCoreBackgroundTasksEnqueueCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id string
+ id string
}
func (r ApiCoreBackgroundTasksEnqueueCreateRequest) Execute() (*http.Response, error) {
@@ -755,24 +756,24 @@ CoreBackgroundTasksEnqueueCreate Method for CoreBackgroundTasksEnqueueCreate
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksEnqueueCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksEnqueueCreateRequest
*/
func (a *CoreAPIService) CoreBackgroundTasksEnqueueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksEnqueueCreateRequest {
return ApiCoreBackgroundTasksEnqueueCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreBackgroundTasksEnqueueCreateExecute(r ApiCoreBackgroundTasksEnqueueCreateRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksEnqueueCreate")
@@ -847,9 +848,9 @@ func (a *CoreAPIService) CoreBackgroundTasksEnqueueCreateExecute(r ApiCoreBackgr
}
type ApiCoreBackgroundTasksRequeueCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id string
+ id string
}
func (r ApiCoreBackgroundTasksRequeueCreateRequest) Execute() (*http.Response, error) {
@@ -861,24 +862,24 @@ CoreBackgroundTasksRequeueCreate Method for CoreBackgroundTasksRequeueCreate
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksRequeueCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksRequeueCreateRequest
*/
func (a *CoreAPIService) CoreBackgroundTasksRequeueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksRequeueCreateRequest {
return ApiCoreBackgroundTasksRequeueCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreBackgroundTasksRequeueCreateExecute(r ApiCoreBackgroundTasksRequeueCreateRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRequeueCreate")
@@ -953,7 +954,7 @@ func (a *CoreAPIService) CoreBackgroundTasksRequeueCreateExecute(r ApiCoreBackgr
}
type ApiCoreBackgroundTasksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
}
@@ -966,24 +967,25 @@ CoreBackgroundTasksRetrieve Method for CoreBackgroundTasksRetrieve
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundTasksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundTasksRetrieveRequest
*/
func (a *CoreAPIService) CoreBackgroundTasksRetrieve(ctx context.Context) ApiCoreBackgroundTasksRetrieveRequest {
return ApiCoreBackgroundTasksRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *CoreAPIService) CoreBackgroundTasksRetrieveExecute(r ApiCoreBackgroundTasksRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRetrieve")
@@ -1066,9 +1068,9 @@ func (a *CoreAPIService) CoreBackgroundTasksRetrieveExecute(r ApiCoreBackgroundT
}
type ApiCoreBackgroundTasksRetrieve2Request struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id string
+ id string
}
func (r ApiCoreBackgroundTasksRetrieve2Request) Execute() (map[string]interface{}, *http.Response, error) {
@@ -1080,26 +1082,27 @@ CoreBackgroundTasksRetrieve2 Method for CoreBackgroundTasksRetrieve2
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksRetrieve2Request
*/
func (a *CoreAPIService) CoreBackgroundTasksRetrieve2(ctx context.Context, id string) ApiCoreBackgroundTasksRetrieve2Request {
return ApiCoreBackgroundTasksRetrieve2Request{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *CoreAPIService) CoreBackgroundTasksRetrieve2Execute(r ApiCoreBackgroundTasksRetrieve2Request) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRetrieve2")
@@ -1183,9 +1186,9 @@ func (a *CoreAPIService) CoreBackgroundTasksRetrieve2Execute(r ApiCoreBackground
}
type ApiCoreBackgroundTasksStopCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id string
+ id string
}
func (r ApiCoreBackgroundTasksStopCreateRequest) Execute() (*http.Response, error) {
@@ -1197,24 +1200,24 @@ CoreBackgroundTasksStopCreate Method for CoreBackgroundTasksStopCreate
Retrieve a list of RQ Tasks.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiCoreBackgroundTasksStopCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiCoreBackgroundTasksStopCreateRequest
*/
func (a *CoreAPIService) CoreBackgroundTasksStopCreate(ctx context.Context, id string) ApiCoreBackgroundTasksStopCreateRequest {
return ApiCoreBackgroundTasksStopCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreBackgroundTasksStopCreateExecute(r ApiCoreBackgroundTasksStopCreateRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksStopCreate")
@@ -1289,7 +1292,7 @@ func (a *CoreAPIService) CoreBackgroundTasksStopCreateExecute(r ApiCoreBackgroun
}
type ApiCoreBackgroundWorkersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
}
@@ -1302,24 +1305,25 @@ CoreBackgroundWorkersRetrieve Method for CoreBackgroundWorkersRetrieve
Retrieve a list of RQ Workers.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreBackgroundWorkersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreBackgroundWorkersRetrieveRequest
*/
func (a *CoreAPIService) CoreBackgroundWorkersRetrieve(ctx context.Context) ApiCoreBackgroundWorkersRetrieveRequest {
return ApiCoreBackgroundWorkersRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *CoreAPIService) CoreBackgroundWorkersRetrieveExecute(r ApiCoreBackgroundWorkersRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundWorkersRetrieve")
@@ -1402,9 +1406,9 @@ func (a *CoreAPIService) CoreBackgroundWorkersRetrieveExecute(r ApiCoreBackgroun
}
type ApiCoreBackgroundWorkersRetrieve2Request struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- name string
+ name string
}
func (r ApiCoreBackgroundWorkersRetrieve2Request) Execute() (*http.Response, error) {
@@ -1416,24 +1420,24 @@ CoreBackgroundWorkersRetrieve2 Method for CoreBackgroundWorkersRetrieve2
Retrieve a list of RQ Workers.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
- @return ApiCoreBackgroundWorkersRetrieve2Request
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param name
+ @return ApiCoreBackgroundWorkersRetrieve2Request
*/
func (a *CoreAPIService) CoreBackgroundWorkersRetrieve2(ctx context.Context, name string) ApiCoreBackgroundWorkersRetrieve2Request {
return ApiCoreBackgroundWorkersRetrieve2Request{
ApiService: a,
- ctx: ctx,
- name: name,
+ ctx: ctx,
+ name: name,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreBackgroundWorkersRetrieve2Execute(r ApiCoreBackgroundWorkersRetrieve2Request) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundWorkersRetrieve2")
@@ -1508,69 +1512,69 @@ func (a *CoreAPIService) CoreBackgroundWorkersRetrieve2Execute(r ApiCoreBackgrou
}
type ApiCoreDataFilesListRequest struct {
- ctx context.Context
- ApiService CoreAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- hash *[]string
- hashEmpty *bool
- hashIc *[]string
- hashIe *[]string
- hashIew *[]string
- hashIsw *[]string
- hashN *[]string
- hashNic *[]string
- hashNie *[]string
- hashNiew *[]string
- hashNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CoreAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ hash *[]string
+ hashEmpty *bool
+ hashIc *[]string
+ hashIe *[]string
+ hashIew *[]string
+ hashIsw *[]string
+ hashN *[]string
+ hashNic *[]string
+ hashNie *[]string
+ hashNiew *[]string
+ hashNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- offset *int32
- ordering *string
- path *[]string
- pathEmpty *bool
- pathIc *[]string
- pathIe *[]string
- pathIew *[]string
- pathIsw *[]string
- pathN *[]string
- pathNic *[]string
- pathNie *[]string
- pathNiew *[]string
- pathNisw *[]string
- q *string
- size *[]int32
- sizeEmpty *bool
- sizeGt *[]int32
- sizeGte *[]int32
- sizeLt *[]int32
- sizeLte *[]int32
- sizeN *[]int32
- source *[]string
- sourceN *[]string
- sourceId *[]int32
- sourceIdN *[]int32
- updatedByRequest *string
+ offset *int32
+ ordering *string
+ path *[]string
+ pathEmpty *bool
+ pathIc *[]string
+ pathIe *[]string
+ pathIew *[]string
+ pathIsw *[]string
+ pathN *[]string
+ pathNic *[]string
+ pathNie *[]string
+ pathNiew *[]string
+ pathNisw *[]string
+ q *string
+ size *[]int32
+ sizeEmpty *bool
+ sizeGt *[]int32
+ sizeGte *[]int32
+ sizeLt *[]int32
+ sizeLte *[]int32
+ sizeN *[]int32
+ source *[]string
+ sourceN *[]string
+ sourceId *[]int32
+ sourceIdN *[]int32
+ updatedByRequest *string
}
func (r ApiCoreDataFilesListRequest) Created(created []time.Time) ApiCoreDataFilesListRequest {
@@ -1894,24 +1898,25 @@ CoreDataFilesList Method for CoreDataFilesList
Get a list of data file objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataFilesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataFilesListRequest
*/
func (a *CoreAPIService) CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest {
return ApiCoreDataFilesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDataFileList
+//
+// @return PaginatedDataFileList
func (a *CoreAPIService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDataFileList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDataFileList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesList")
@@ -2577,9 +2582,9 @@ func (a *CoreAPIService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest)
}
type ApiCoreDataFilesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id int32
+ id int32
}
func (r ApiCoreDataFilesRetrieveRequest) Execute() (*DataFile, *http.Response, error) {
@@ -2591,26 +2596,27 @@ CoreDataFilesRetrieve Method for CoreDataFilesRetrieve
Get a data file object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data file.
- @return ApiCoreDataFilesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data file.
+ @return ApiCoreDataFilesRetrieveRequest
*/
func (a *CoreAPIService) CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest {
return ApiCoreDataFilesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DataFile
+//
+// @return DataFile
func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataFile
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesRetrieve")
@@ -2694,8 +2700,8 @@ func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieve
}
type ApiCoreDataSourcesBulkDestroyRequest struct {
- ctx context.Context
- ApiService CoreAPI
+ ctx context.Context
+ ApiService CoreAPI
dataSourceRequest *[]DataSourceRequest
}
@@ -2713,22 +2719,22 @@ CoreDataSourcesBulkDestroy Method for CoreDataSourcesBulkDestroy
Delete a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkDestroyRequest
*/
func (a *CoreAPIService) CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest {
return ApiCoreDataSourcesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkDestroy")
@@ -2807,8 +2813,8 @@ func (a *CoreAPIService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesB
}
type ApiCoreDataSourcesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService CoreAPI
+ ctx context.Context
+ ApiService CoreAPI
dataSourceRequest *[]DataSourceRequest
}
@@ -2826,24 +2832,25 @@ CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate
Patch a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkPartialUpdateRequest
*/
func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest {
return ApiCoreDataSourcesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DataSource
+//
+// @return []DataSource
func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DataSource
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkPartialUpdate")
@@ -2931,8 +2938,8 @@ func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSo
}
type ApiCoreDataSourcesBulkUpdateRequest struct {
- ctx context.Context
- ApiService CoreAPI
+ ctx context.Context
+ ApiService CoreAPI
dataSourceRequest *[]DataSourceRequest
}
@@ -2950,24 +2957,25 @@ CoreDataSourcesBulkUpdate Method for CoreDataSourcesBulkUpdate
Put a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesBulkUpdateRequest
*/
func (a *CoreAPIService) CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest {
return ApiCoreDataSourcesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DataSource
+//
+// @return []DataSource
func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DataSource
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkUpdate")
@@ -3055,8 +3063,8 @@ func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBu
}
type ApiCoreDataSourcesCreateRequest struct {
- ctx context.Context
- ApiService CoreAPI
+ ctx context.Context
+ ApiService CoreAPI
writableDataSourceRequest *WritableDataSourceRequest
}
@@ -3074,24 +3082,25 @@ CoreDataSourcesCreate Method for CoreDataSourcesCreate
Post a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesCreateRequest
*/
func (a *CoreAPIService) CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest {
return ApiCoreDataSourcesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DataSource
+//
+// @return DataSource
func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataSource
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesCreate")
@@ -3179,9 +3188,9 @@ func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreate
}
type ApiCoreDataSourcesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id int32
+ id int32
}
func (r ApiCoreDataSourcesDestroyRequest) Execute() (*http.Response, error) {
@@ -3193,24 +3202,24 @@ CoreDataSourcesDestroy Method for CoreDataSourcesDestroy
Delete a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesDestroyRequest
*/
func (a *CoreAPIService) CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest {
return ApiCoreDataSourcesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesDestroy")
@@ -3285,101 +3294,113 @@ func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr
}
type ApiCoreDataSourcesListRequest struct {
- ctx context.Context
- ApiService CoreAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enabled *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastSynced *[]time.Time
- lastSyncedEmpty *bool
- lastSyncedGt *[]time.Time
- lastSyncedGte *[]time.Time
- lastSyncedLt *[]time.Time
- lastSyncedLte *[]time.Time
- lastSyncedN *[]time.Time
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService CoreAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastSynced *[]time.Time
+ lastSyncedEmpty *bool
+ lastSyncedGt *[]time.Time
+ lastSyncedGte *[]time.Time
+ lastSyncedLt *[]time.Time
+ lastSyncedLte *[]time.Time
+ lastSyncedN *[]time.Time
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- sourceUrl *[]string
- sourceUrlEmpty *bool
- sourceUrlIc *[]string
- sourceUrlIe *[]string
- sourceUrlIew *[]string
- sourceUrlIsw *[]string
- sourceUrlN *[]string
- sourceUrlNic *[]string
- sourceUrlNie *[]string
- sourceUrlNiew *[]string
- sourceUrlNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ sourceUrl *[]string
+ sourceUrlEmpty *bool
+ sourceUrlIc *[]string
+ sourceUrlIe *[]string
+ sourceUrlIew *[]string
+ sourceUrlIsw *[]string
+ sourceUrlN *[]string
+ sourceUrlNic *[]string
+ sourceUrlNie *[]string
+ sourceUrlNiew *[]string
+ sourceUrlNisw *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ syncInterval *[]*int32
+ syncIntervalIc *[]*int32
+ syncIntervalIe *[]*int32
+ syncIntervalIew *[]*int32
+ syncIntervalIsw *[]*int32
+ syncIntervalN *[]*int32
+ syncIntervalNic *[]*int32
+ syncIntervalNie *[]*int32
+ syncIntervalNiew *[]*int32
+ syncIntervalNisw *[]*int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
}
func (r ApiCoreDataSourcesListRequest) Created(created []time.Time) ApiCoreDataSourcesListRequest {
@@ -3781,6 +3802,56 @@ func (r ApiCoreDataSourcesListRequest) StatusNisw(statusNisw []string) ApiCoreDa
return r
}
+func (r ApiCoreDataSourcesListRequest) SyncInterval(syncInterval []*int32) ApiCoreDataSourcesListRequest {
+ r.syncInterval = &syncInterval
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalIc(syncIntervalIc []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalIc = &syncIntervalIc
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalIe(syncIntervalIe []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalIe = &syncIntervalIe
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalIew(syncIntervalIew []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalIew = &syncIntervalIew
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalIsw(syncIntervalIsw []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalIsw = &syncIntervalIsw
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalN(syncIntervalN []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalN = &syncIntervalN
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalNic(syncIntervalNic []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalNic = &syncIntervalNic
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalNie(syncIntervalNie []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalNie = &syncIntervalNie
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalNiew(syncIntervalNiew []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalNiew = &syncIntervalNiew
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) SyncIntervalNisw(syncIntervalNisw []*int32) ApiCoreDataSourcesListRequest {
+ r.syncIntervalNisw = &syncIntervalNisw
+ return r
+}
+
func (r ApiCoreDataSourcesListRequest) Tag(tag []string) ApiCoreDataSourcesListRequest {
r.tag = &tag
return r
@@ -3791,6 +3862,16 @@ func (r ApiCoreDataSourcesListRequest) TagN(tagN []string) ApiCoreDataSourcesLis
return r
}
+func (r ApiCoreDataSourcesListRequest) TagId(tagId []int32) ApiCoreDataSourcesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiCoreDataSourcesListRequest) TagIdN(tagIdN []int32) ApiCoreDataSourcesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiCoreDataSourcesListRequest) Type_(type_ []string) ApiCoreDataSourcesListRequest {
r.type_ = &type_
return r
@@ -3860,24 +3941,25 @@ CoreDataSourcesList Method for CoreDataSourcesList
Get a list of data source objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreDataSourcesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreDataSourcesListRequest
*/
func (a *CoreAPIService) CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest {
return ApiCoreDataSourcesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDataSourceList
+//
+// @return PaginatedDataSourceList
func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDataSourceList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDataSourceList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesList")
@@ -4656,6 +4738,116 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi")
}
}
+ if r.syncInterval != nil {
+ t := *r.syncInterval
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalIc != nil {
+ t := *r.syncIntervalIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__ic", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalIe != nil {
+ t := *r.syncIntervalIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__ie", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalIew != nil {
+ t := *r.syncIntervalIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__iew", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalIsw != nil {
+ t := *r.syncIntervalIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__isw", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalN != nil {
+ t := *r.syncIntervalN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__n", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalNic != nil {
+ t := *r.syncIntervalNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nic", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalNie != nil {
+ t := *r.syncIntervalNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nie", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalNiew != nil {
+ t := *r.syncIntervalNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__niew", t, "form", "multi")
+ }
+ }
+ if r.syncIntervalNisw != nil {
+ t := *r.syncIntervalNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "sync_interval__nisw", t, "form", "multi")
+ }
+ }
if r.tag != nil {
t := *r.tag
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4678,6 +4870,28 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4863,9 +5077,9 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
}
type ApiCoreDataSourcesPartialUpdateRequest struct {
- ctx context.Context
- ApiService CoreAPI
- id int32
+ ctx context.Context
+ ApiService CoreAPI
+ id int32
patchedWritableDataSourceRequest *PatchedWritableDataSourceRequest
}
@@ -4883,26 +5097,27 @@ CoreDataSourcesPartialUpdate Method for CoreDataSourcesPartialUpdate
Patch a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesPartialUpdateRequest
*/
func (a *CoreAPIService) CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest {
return ApiCoreDataSourcesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DataSource
+//
+// @return DataSource
func (a *CoreAPIService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataSource
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesPartialUpdate")
@@ -4988,9 +5203,9 @@ func (a *CoreAPIService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSource
}
type ApiCoreDataSourcesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id int32
+ id int32
}
func (r ApiCoreDataSourcesRetrieveRequest) Execute() (*DataSource, *http.Response, error) {
@@ -5002,26 +5217,27 @@ CoreDataSourcesRetrieve Method for CoreDataSourcesRetrieve
Get a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesRetrieveRequest
*/
func (a *CoreAPIService) CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest {
return ApiCoreDataSourcesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DataSource
+//
+// @return DataSource
func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataSource
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesRetrieve")
@@ -5105,9 +5321,9 @@ func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetr
}
type ApiCoreDataSourcesSyncCreateRequest struct {
- ctx context.Context
- ApiService CoreAPI
- id int32
+ ctx context.Context
+ ApiService CoreAPI
+ id int32
writableDataSourceRequest *WritableDataSourceRequest
}
@@ -5125,26 +5341,27 @@ CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate
Enqueue a job to synchronize the DataSource.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesSyncCreateRequest
*/
func (a *CoreAPIService) CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest {
return ApiCoreDataSourcesSyncCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DataSource
+//
+// @return DataSource
func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataSource
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesSyncCreate")
@@ -5233,9 +5450,9 @@ func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSy
}
type ApiCoreDataSourcesUpdateRequest struct {
- ctx context.Context
- ApiService CoreAPI
- id int32
+ ctx context.Context
+ ApiService CoreAPI
+ id int32
writableDataSourceRequest *WritableDataSourceRequest
}
@@ -5253,26 +5470,27 @@ CoreDataSourcesUpdate Method for CoreDataSourcesUpdate
Put a data source object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this data source.
- @return ApiCoreDataSourcesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this data source.
+ @return ApiCoreDataSourcesUpdateRequest
*/
func (a *CoreAPIService) CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest {
return ApiCoreDataSourcesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DataSource
+//
+// @return DataSource
func (a *CoreAPIService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DataSource
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DataSource
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesUpdate")
@@ -5361,72 +5579,72 @@ func (a *CoreAPIService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdate
}
type ApiCoreJobsListRequest struct {
- ctx context.Context
- ApiService CoreAPI
- completed *time.Time
- completedAfter *time.Time
+ ctx context.Context
+ ApiService CoreAPI
+ completed *time.Time
+ completedAfter *time.Time
completedBefore *time.Time
- created *time.Time
- createdAfter *time.Time
- createdBefore *time.Time
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interval *[]int32
- intervalEmpty *bool
- intervalGt *[]int32
- intervalGte *[]int32
- intervalLt *[]int32
- intervalLte *[]int32
- intervalN *[]int32
- jobId *string
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectId *[]int32
- objectIdEmpty *bool
- objectIdGt *[]int32
- objectIdGte *[]int32
- objectIdLt *[]int32
- objectIdLte *[]int32
- objectIdN *[]int32
- objectType *int32
- objectTypeN *int32
- offset *int32
- ordering *string
- q *string
- scheduled *time.Time
- scheduledAfter *time.Time
+ created *time.Time
+ createdAfter *time.Time
+ createdBefore *time.Time
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interval *[]int32
+ intervalEmpty *bool
+ intervalGt *[]int32
+ intervalGte *[]int32
+ intervalLt *[]int32
+ intervalLte *[]int32
+ intervalN *[]int32
+ jobId *string
+ limit *int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectId *[]int32
+ objectIdEmpty *bool
+ objectIdGt *[]int32
+ objectIdGte *[]int32
+ objectIdLt *[]int32
+ objectIdLte *[]int32
+ objectIdN *[]int32
+ objectType *int32
+ objectTypeN *int32
+ offset *int32
+ ordering *string
+ q *string
+ scheduled *time.Time
+ scheduledAfter *time.Time
scheduledBefore *time.Time
- started *time.Time
- startedAfter *time.Time
- startedBefore *time.Time
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- user *int32
- userN *int32
+ started *time.Time
+ startedAfter *time.Time
+ startedBefore *time.Time
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ user *int32
+ userN *int32
}
func (r ApiCoreJobsListRequest) Completed(completed time.Time) ApiCoreJobsListRequest {
@@ -5762,24 +5980,25 @@ CoreJobsList Method for CoreJobsList
Retrieve a list of job results
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreJobsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreJobsListRequest
*/
func (a *CoreAPIService) CoreJobsList(ctx context.Context) ApiCoreJobsListRequest {
return ApiCoreJobsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedJobList
+//
+// @return PaginatedJobList
func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedJobList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedJobList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsList")
@@ -6358,9 +6577,9 @@ func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat
}
type ApiCoreJobsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id int32
+ id int32
}
func (r ApiCoreJobsRetrieveRequest) Execute() (*Job, *http.Response, error) {
@@ -6372,26 +6591,27 @@ CoreJobsRetrieve Method for CoreJobsRetrieve
Retrieve a list of job results
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this job.
- @return ApiCoreJobsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this job.
+ @return ApiCoreJobsRetrieveRequest
*/
func (a *CoreAPIService) CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest {
return ApiCoreJobsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Job
+//
+// @return Job
func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Job
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Job
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsRetrieve")
@@ -6475,69 +6695,69 @@ func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (
}
type ApiCoreObjectChangesListRequest struct {
- ctx context.Context
- ApiService CoreAPI
- action *CoreObjectChangesListActionParameter
- changedObjectId *[]int32
+ ctx context.Context
+ ApiService CoreAPI
+ action *CoreObjectChangesListActionParameter
+ changedObjectId *[]int32
changedObjectIdEmpty *bool
- changedObjectIdGt *[]int32
- changedObjectIdGte *[]int32
- changedObjectIdLt *[]int32
- changedObjectIdLte *[]int32
- changedObjectIdN *[]int32
- changedObjectType *string
- changedObjectTypeN *string
- changedObjectTypeId *[]int32
+ changedObjectIdGt *[]int32
+ changedObjectIdGte *[]int32
+ changedObjectIdLt *[]int32
+ changedObjectIdLte *[]int32
+ changedObjectIdN *[]int32
+ changedObjectType *string
+ changedObjectTypeN *string
+ changedObjectTypeId *[]int32
changedObjectTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- objectRepr *[]string
- objectReprEmpty *bool
- objectReprIc *[]string
- objectReprIe *[]string
- objectReprIew *[]string
- objectReprIsw *[]string
- objectReprN *[]string
- objectReprNic *[]string
- objectReprNie *[]string
- objectReprNiew *[]string
- objectReprNisw *[]string
- offset *int32
- ordering *string
- q *string
- relatedObjectId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ limit *int32
+ objectRepr *[]string
+ objectReprEmpty *bool
+ objectReprIc *[]string
+ objectReprIe *[]string
+ objectReprIew *[]string
+ objectReprIsw *[]string
+ objectReprN *[]string
+ objectReprNic *[]string
+ objectReprNie *[]string
+ objectReprNiew *[]string
+ objectReprNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ relatedObjectId *[]int32
relatedObjectIdEmpty *bool
- relatedObjectIdGt *[]int32
- relatedObjectIdGte *[]int32
- relatedObjectIdLt *[]int32
- relatedObjectIdLte *[]int32
- relatedObjectIdN *[]int32
- relatedObjectType *int32
- relatedObjectTypeN *int32
- requestId *string
- timeAfter *time.Time
- timeBefore *time.Time
- user *[]string
- userN *[]string
- userId *[]*int32
- userIdN *[]*int32
- userName *[]string
- userNameEmpty *bool
- userNameIc *[]string
- userNameIe *[]string
- userNameIew *[]string
- userNameIsw *[]string
- userNameN *[]string
- userNameNic *[]string
- userNameNie *[]string
- userNameNiew *[]string
- userNameNisw *[]string
+ relatedObjectIdGt *[]int32
+ relatedObjectIdGte *[]int32
+ relatedObjectIdLt *[]int32
+ relatedObjectIdLte *[]int32
+ relatedObjectIdN *[]int32
+ relatedObjectType *int32
+ relatedObjectTypeN *int32
+ requestId *string
+ timeAfter *time.Time
+ timeBefore *time.Time
+ user *[]string
+ userN *[]string
+ userId *[]*int32
+ userIdN *[]*int32
+ userName *[]string
+ userNameEmpty *bool
+ userNameIc *[]string
+ userNameIe *[]string
+ userNameIew *[]string
+ userNameIsw *[]string
+ userNameN *[]string
+ userNameNic *[]string
+ userNameNie *[]string
+ userNameNiew *[]string
+ userNameNisw *[]string
}
// * `create` - Created * `update` - Updated * `delete` - Deleted
@@ -6863,24 +7083,25 @@ CoreObjectChangesList Method for CoreObjectChangesList
Retrieve a list of recent changes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiCoreObjectChangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiCoreObjectChangesListRequest
*/
func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest {
return ApiCoreObjectChangesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedObjectChangeList
+//
+// @return PaginatedObjectChangeList
func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedObjectChangeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedObjectChangeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList")
@@ -7498,9 +7719,9 @@ func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesList
}
type ApiCoreObjectChangesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService CoreAPI
- id int32
+ id int32
}
func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) {
@@ -7512,26 +7733,27 @@ CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve
Retrieve a list of recent changes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this object change.
- @return ApiCoreObjectChangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this object change.
+ @return ApiCoreObjectChangesRetrieveRequest
*/
func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest {
return ApiCoreObjectChangesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ObjectChange
+//
+// @return ObjectChange
func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectChange
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectChange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve")
diff --git a/api_dcim.go b/api_dcim.go
index 249ba8733..119d898e7 100644
--- a/api_dcim.go
+++ b/api_dcim.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type DcimAPI interface {
/*
- DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy
+ DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy
- Delete a list of cable termination objects.
+ Delete a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkDestroyRequest
*/
DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest
@@ -38,12 +37,12 @@ type DcimAPI interface {
DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error)
/*
- DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkPartialUpdate
+ DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkPartialUpdate
- Patch a list of cable termination objects.
+ Patch a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkPartialUpdateRequest
*/
DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type DcimAPI interface {
DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error)
/*
- DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate
+ DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate
- Put a list of cable termination objects.
+ Put a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkUpdateRequest
*/
DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest
@@ -66,12 +65,12 @@ type DcimAPI interface {
DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error)
/*
- DcimCableTerminationsCreate Method for DcimCableTerminationsCreate
+ DcimCableTerminationsCreate Method for DcimCableTerminationsCreate
- Post a list of cable termination objects.
+ Post a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsCreateRequest
*/
DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest
@@ -80,13 +79,13 @@ type DcimAPI interface {
DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error)
/*
- DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy
+ DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy
- Delete a cable termination object.
+ Delete a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsDestroyRequest
*/
DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest
@@ -94,12 +93,12 @@ type DcimAPI interface {
DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error)
/*
- DcimCableTerminationsList Method for DcimCableTerminationsList
+ DcimCableTerminationsList Method for DcimCableTerminationsList
- Get a list of cable termination objects.
+ Get a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsListRequest
*/
DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest
@@ -108,13 +107,13 @@ type DcimAPI interface {
DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error)
/*
- DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate
+ DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate
- Patch a cable termination object.
+ Patch a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsPartialUpdateRequest
*/
DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest
@@ -123,13 +122,13 @@ type DcimAPI interface {
DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error)
/*
- DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve
+ DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve
- Get a cable termination object.
+ Get a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsRetrieveRequest
*/
DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest
@@ -138,13 +137,13 @@ type DcimAPI interface {
DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error)
/*
- DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate
+ DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate
- Put a cable termination object.
+ Put a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsUpdateRequest
*/
DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest
@@ -153,12 +152,12 @@ type DcimAPI interface {
DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error)
/*
- DcimCablesBulkDestroy Method for DcimCablesBulkDestroy
+ DcimCablesBulkDestroy Method for DcimCablesBulkDestroy
- Delete a list of cable objects.
+ Delete a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkDestroyRequest
*/
DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest
@@ -166,12 +165,12 @@ type DcimAPI interface {
DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error)
/*
- DcimCablesBulkPartialUpdate Method for DcimCablesBulkPartialUpdate
+ DcimCablesBulkPartialUpdate Method for DcimCablesBulkPartialUpdate
- Patch a list of cable objects.
+ Patch a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkPartialUpdateRequest
*/
DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type DcimAPI interface {
DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error)
/*
- DcimCablesBulkUpdate Method for DcimCablesBulkUpdate
+ DcimCablesBulkUpdate Method for DcimCablesBulkUpdate
- Put a list of cable objects.
+ Put a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkUpdateRequest
*/
DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest
@@ -194,12 +193,12 @@ type DcimAPI interface {
DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error)
/*
- DcimCablesCreate Method for DcimCablesCreate
+ DcimCablesCreate Method for DcimCablesCreate
- Post a list of cable objects.
+ Post a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesCreateRequest
*/
DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest
@@ -208,13 +207,13 @@ type DcimAPI interface {
DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error)
/*
- DcimCablesDestroy Method for DcimCablesDestroy
+ DcimCablesDestroy Method for DcimCablesDestroy
- Delete a cable object.
+ Delete a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesDestroyRequest
*/
DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest
@@ -222,12 +221,12 @@ type DcimAPI interface {
DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error)
/*
- DcimCablesList Method for DcimCablesList
+ DcimCablesList Method for DcimCablesList
- Get a list of cable objects.
+ Get a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesListRequest
*/
DcimCablesList(ctx context.Context) ApiDcimCablesListRequest
@@ -236,13 +235,13 @@ type DcimAPI interface {
DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error)
/*
- DcimCablesPartialUpdate Method for DcimCablesPartialUpdate
+ DcimCablesPartialUpdate Method for DcimCablesPartialUpdate
- Patch a cable object.
+ Patch a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesPartialUpdateRequest
*/
DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest
@@ -251,13 +250,13 @@ type DcimAPI interface {
DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error)
/*
- DcimCablesRetrieve Method for DcimCablesRetrieve
+ DcimCablesRetrieve Method for DcimCablesRetrieve
- Get a cable object.
+ Get a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesRetrieveRequest
*/
DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest
@@ -266,13 +265,13 @@ type DcimAPI interface {
DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error)
/*
- DcimCablesUpdate Method for DcimCablesUpdate
+ DcimCablesUpdate Method for DcimCablesUpdate
- Put a cable object.
+ Put a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesUpdateRequest
*/
DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest
@@ -281,17 +280,17 @@ type DcimAPI interface {
DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error)
/*
- DcimConnectedDeviceList Method for DcimConnectedDeviceList
+ DcimConnectedDeviceList Method for DcimConnectedDeviceList
- This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer
-interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors
-via a protocol such as LLDP. Two query parameters must be included in the request:
+ This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer
+ interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors
+ via a protocol such as LLDP. Two query parameters must be included in the request:
-* `peer_device`: The name of the peer device
-* `peer_interface`: The name of the peer interface
+ * `peer_device`: The name of the peer device
+ * `peer_interface`: The name of the peer interface
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConnectedDeviceListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConnectedDeviceListRequest
*/
DcimConnectedDeviceList(ctx context.Context) ApiDcimConnectedDeviceListRequest
@@ -300,12 +299,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error)
/*
- DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestroy
+ DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestroy
- Delete a list of console port template objects.
+ Delete a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkDestroyRequest
*/
DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest
@@ -313,12 +312,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBulkPartialUpdate
+ DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBulkPartialUpdate
- Patch a list of console port template objects.
+ Patch a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest
*/
DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest
@@ -327,12 +326,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate
+ DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate
- Put a list of console port template objects.
+ Put a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkUpdateRequest
*/
DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest
@@ -341,12 +340,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate
+ DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate
- Post a list of console port template objects.
+ Post a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesCreateRequest
*/
DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest
@@ -355,13 +354,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy
+ DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy
- Delete a console port template object.
+ Delete a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesDestroyRequest
*/
DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest
@@ -369,12 +368,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList
+ DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList
- Get a list of console port template objects.
+ Get a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesListRequest
*/
DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest
@@ -383,13 +382,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error)
/*
- DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartialUpdate
+ DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartialUpdate
- Patch a console port template object.
+ Patch a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesPartialUpdateRequest
*/
DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest
@@ -398,13 +397,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve
+ DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve
- Get a console port template object.
+ Get a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesRetrieveRequest
*/
DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest
@@ -413,13 +412,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate
+ DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate
- Put a console port template object.
+ Put a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesUpdateRequest
*/
DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest
@@ -428,12 +427,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error)
/*
- DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy
+ DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy
- Delete a list of console port objects.
+ Delete a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkDestroyRequest
*/
DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest
@@ -441,12 +440,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*http.Response, error)
/*
- DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate
+ DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate
- Patch a list of console port objects.
+ Patch a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkPartialUpdateRequest
*/
DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest
@@ -455,12 +454,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error)
/*
- DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate
+ DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate
- Put a list of console port objects.
+ Put a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkUpdateRequest
*/
DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest
@@ -469,12 +468,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error)
/*
- DcimConsolePortsCreate Method for DcimConsolePortsCreate
+ DcimConsolePortsCreate Method for DcimConsolePortsCreate
- Post a list of console port objects.
+ Post a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsCreateRequest
*/
DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest
@@ -483,13 +482,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error)
/*
- DcimConsolePortsDestroy Method for DcimConsolePortsDestroy
+ DcimConsolePortsDestroy Method for DcimConsolePortsDestroy
- Delete a console port object.
+ Delete a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsDestroyRequest
*/
DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest
@@ -497,12 +496,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*http.Response, error)
/*
- DcimConsolePortsList Method for DcimConsolePortsList
+ DcimConsolePortsList Method for DcimConsolePortsList
- Get a list of console port objects.
+ Get a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsListRequest
*/
DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest
@@ -511,13 +510,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error)
/*
- DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate
+ DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate
- Patch a console port object.
+ Patch a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsPartialUpdateRequest
*/
DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest
@@ -526,13 +525,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error)
/*
- DcimConsolePortsRetrieve Method for DcimConsolePortsRetrieve
+ DcimConsolePortsRetrieve Method for DcimConsolePortsRetrieve
- Get a console port object.
+ Get a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsRetrieveRequest
*/
DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest
@@ -541,13 +540,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error)
/*
- DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve
+ DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsTraceRetrieveRequest
*/
DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest
@@ -556,13 +555,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error)
/*
- DcimConsolePortsUpdate Method for DcimConsolePortsUpdate
+ DcimConsolePortsUpdate Method for DcimConsolePortsUpdate
- Put a console port object.
+ Put a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsUpdateRequest
*/
DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest
@@ -571,12 +570,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTemplatesBulkDestroy
+ DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTemplatesBulkDestroy
- Delete a list of console server port template objects.
+ Delete a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest
*/
DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest
@@ -584,12 +583,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPortTemplatesBulkPartialUpdate
+ DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPortTemplatesBulkPartialUpdate
- Patch a list of console server port template objects.
+ Patch a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest
*/
DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest
@@ -598,12 +597,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplatesBulkUpdate
+ DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplatesBulkUpdate
- Put a list of console server port template objects.
+ Put a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest
*/
DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest
@@ -612,12 +611,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCreate
+ DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCreate
- Post a list of console server port template objects.
+ Post a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesCreateRequest
*/
DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest
@@ -626,13 +625,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesDestroy
+ DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesDestroy
- Delete a console server port template object.
+ Delete a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesDestroyRequest
*/
DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest
@@ -640,12 +639,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList
+ DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList
- Get a list of console server port template objects.
+ Get a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesListRequest
*/
DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest
@@ -654,13 +653,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemplatesPartialUpdate
+ DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemplatesPartialUpdate
- Patch a console server port template object.
+ Patch a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest
*/
DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest
@@ -669,13 +668,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplatesRetrieve
+ DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplatesRetrieve
- Get a console server port template object.
+ Get a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesRetrieveRequest
*/
DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest
@@ -684,13 +683,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUpdate
+ DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUpdate
- Put a console server port template object.
+ Put a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesUpdateRequest
*/
DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest
@@ -699,12 +698,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error)
/*
- DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy
+ DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy
- Delete a list of console server port objects.
+ Delete a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkDestroyRequest
*/
DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest
@@ -712,12 +711,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*http.Response, error)
/*
- DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPartialUpdate
+ DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPartialUpdate
- Patch a list of console server port objects.
+ Patch a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest
*/
DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest
@@ -726,12 +725,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate
+ DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate
- Put a list of console server port objects.
+ Put a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkUpdateRequest
*/
DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest
@@ -740,12 +739,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate
+ DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate
- Post a list of console server port objects.
+ Post a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsCreateRequest
*/
DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest
@@ -754,13 +753,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy
+ DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy
- Delete a console server port object.
+ Delete a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsDestroyRequest
*/
DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest
@@ -768,12 +767,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*http.Response, error)
/*
- DcimConsoleServerPortsList Method for DcimConsoleServerPortsList
+ DcimConsoleServerPortsList Method for DcimConsoleServerPortsList
- Get a list of console server port objects.
+ Get a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsListRequest
*/
DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest
@@ -782,13 +781,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error)
/*
- DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpdate
+ DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpdate
- Patch a console server port object.
+ Patch a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsPartialUpdateRequest
*/
DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest
@@ -797,13 +796,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve
+ DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve
- Get a console server port object.
+ Get a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsRetrieveRequest
*/
DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest
@@ -812,13 +811,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrieve
+ DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsTraceRetrieveRequest
*/
DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest
@@ -827,13 +826,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error)
/*
- DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate
+ DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate
- Put a console server port object.
+ Put a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsUpdateRequest
*/
DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest
@@ -842,12 +841,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error)
/*
- DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy
+ DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy
- Delete a list of device bay template objects.
+ Delete a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkDestroyRequest
*/
DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest
@@ -855,12 +854,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPartialUpdate
+ DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPartialUpdate
- Patch a list of device bay template objects.
+ Patch a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest
*/
DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest
@@ -869,12 +868,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate
+ DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate
- Put a list of device bay template objects.
+ Put a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkUpdateRequest
*/
DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest
@@ -883,12 +882,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate
+ DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate
- Post a list of device bay template objects.
+ Post a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesCreateRequest
*/
DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest
@@ -897,13 +896,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy
+ DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy
- Delete a device bay template object.
+ Delete a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesDestroyRequest
*/
DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest
@@ -911,12 +910,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList
+ DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList
- Get a list of device bay template objects.
+ Get a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesListRequest
*/
DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest
@@ -925,13 +924,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error)
/*
- DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpdate
+ DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpdate
- Patch a device bay template object.
+ Patch a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesPartialUpdateRequest
*/
DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest
@@ -940,13 +939,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve
+ DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve
- Get a device bay template object.
+ Get a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesRetrieveRequest
*/
DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest
@@ -955,13 +954,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate
+ DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate
- Put a device bay template object.
+ Put a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesUpdateRequest
*/
DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest
@@ -970,12 +969,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error)
/*
- DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy
+ DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy
- Delete a list of device bay objects.
+ Delete a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkDestroyRequest
*/
DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest
@@ -983,12 +982,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*http.Response, error)
/*
- DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate
+ DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate
- Patch a list of device bay objects.
+ Patch a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkPartialUpdateRequest
*/
DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest
@@ -997,12 +996,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error)
/*
- DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate
+ DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate
- Put a list of device bay objects.
+ Put a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkUpdateRequest
*/
DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest
@@ -1011,12 +1010,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error)
/*
- DcimDeviceBaysCreate Method for DcimDeviceBaysCreate
+ DcimDeviceBaysCreate Method for DcimDeviceBaysCreate
- Post a list of device bay objects.
+ Post a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysCreateRequest
*/
DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest
@@ -1025,13 +1024,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error)
/*
- DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy
+ DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy
- Delete a device bay object.
+ Delete a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysDestroyRequest
*/
DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest
@@ -1039,12 +1038,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*http.Response, error)
/*
- DcimDeviceBaysList Method for DcimDeviceBaysList
+ DcimDeviceBaysList Method for DcimDeviceBaysList
- Get a list of device bay objects.
+ Get a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysListRequest
*/
DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest
@@ -1053,13 +1052,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error)
/*
- DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate
+ DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate
- Patch a device bay object.
+ Patch a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysPartialUpdateRequest
*/
DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest
@@ -1068,13 +1067,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error)
/*
- DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve
+ DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve
- Get a device bay object.
+ Get a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysRetrieveRequest
*/
DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest
@@ -1083,13 +1082,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error)
/*
- DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate
+ DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate
- Put a device bay object.
+ Put a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysUpdateRequest
*/
DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest
@@ -1098,12 +1097,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error)
/*
- DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy
+ DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy
- Delete a list of device role objects.
+ Delete a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkDestroyRequest
*/
DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest
@@ -1111,12 +1110,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*http.Response, error)
/*
- DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate
+ DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate
- Patch a list of device role objects.
+ Patch a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkPartialUpdateRequest
*/
DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest
@@ -1125,12 +1124,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error)
/*
- DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate
+ DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate
- Put a list of device role objects.
+ Put a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkUpdateRequest
*/
DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest
@@ -1139,12 +1138,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error)
/*
- DcimDeviceRolesCreate Method for DcimDeviceRolesCreate
+ DcimDeviceRolesCreate Method for DcimDeviceRolesCreate
- Post a list of device role objects.
+ Post a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesCreateRequest
*/
DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest
@@ -1153,13 +1152,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error)
/*
- DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy
+ DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy
- Delete a device role object.
+ Delete a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesDestroyRequest
*/
DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest
@@ -1167,12 +1166,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error)
/*
- DcimDeviceRolesList Method for DcimDeviceRolesList
+ DcimDeviceRolesList Method for DcimDeviceRolesList
- Get a list of device role objects.
+ Get a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesListRequest
*/
DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest
@@ -1181,13 +1180,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error)
/*
- DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate
+ DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate
- Patch a device role object.
+ Patch a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesPartialUpdateRequest
*/
DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest
@@ -1196,13 +1195,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error)
/*
- DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve
+ DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve
- Get a device role object.
+ Get a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesRetrieveRequest
*/
DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest
@@ -1211,13 +1210,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error)
/*
- DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate
+ DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate
- Put a device role object.
+ Put a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesUpdateRequest
*/
DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest
@@ -1226,12 +1225,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error)
/*
- DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy
+ DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy
- Delete a list of device type objects.
+ Delete a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkDestroyRequest
*/
DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest
@@ -1239,12 +1238,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error)
/*
- DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate
+ DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate
- Patch a list of device type objects.
+ Patch a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkPartialUpdateRequest
*/
DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest
@@ -1253,12 +1252,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error)
/*
- DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate
+ DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate
- Put a list of device type objects.
+ Put a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkUpdateRequest
*/
DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest
@@ -1267,12 +1266,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error)
/*
- DcimDeviceTypesCreate Method for DcimDeviceTypesCreate
+ DcimDeviceTypesCreate Method for DcimDeviceTypesCreate
- Post a list of device type objects.
+ Post a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesCreateRequest
*/
DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest
@@ -1281,13 +1280,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error)
/*
- DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy
+ DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy
- Delete a device type object.
+ Delete a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesDestroyRequest
*/
DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest
@@ -1295,12 +1294,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error)
/*
- DcimDeviceTypesList Method for DcimDeviceTypesList
+ DcimDeviceTypesList Method for DcimDeviceTypesList
- Get a list of device type objects.
+ Get a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesListRequest
*/
DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest
@@ -1309,13 +1308,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error)
/*
- DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate
+ DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate
- Patch a device type object.
+ Patch a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesPartialUpdateRequest
*/
DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest
@@ -1324,13 +1323,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error)
/*
- DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve
+ DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve
- Get a device type object.
+ Get a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesRetrieveRequest
*/
DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest
@@ -1339,13 +1338,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error)
/*
- DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate
+ DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate
- Put a device type object.
+ Put a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesUpdateRequest
*/
DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest
@@ -1354,12 +1353,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error)
/*
- DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy
+ DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy
- Delete a list of device objects.
+ Delete a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkDestroyRequest
*/
DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest
@@ -1367,12 +1366,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error)
/*
- DcimDevicesBulkPartialUpdate Method for DcimDevicesBulkPartialUpdate
+ DcimDevicesBulkPartialUpdate Method for DcimDevicesBulkPartialUpdate
- Patch a list of device objects.
+ Patch a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkPartialUpdateRequest
*/
DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest
@@ -1381,12 +1380,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate
+ DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate
- Put a list of device objects.
+ Put a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkUpdateRequest
*/
DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest
@@ -1395,12 +1394,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesCreate Method for DcimDevicesCreate
+ DcimDevicesCreate Method for DcimDevicesCreate
- Post a list of device objects.
+ Post a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesCreateRequest
*/
DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest
@@ -1409,13 +1408,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesDestroy Method for DcimDevicesDestroy
+ DcimDevicesDestroy Method for DcimDevicesDestroy
- Delete a device object.
+ Delete a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesDestroyRequest
*/
DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest
@@ -1423,12 +1422,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error)
/*
- DcimDevicesList Method for DcimDevicesList
+ DcimDevicesList Method for DcimDevicesList
- Get a list of device objects.
+ Get a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesListRequest
*/
DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest
@@ -1437,13 +1436,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error)
/*
- DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate
+ DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate
- Patch a device object.
+ Patch a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesPartialUpdateRequest
*/
DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest
@@ -1452,13 +1451,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate
+ DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate
- Resolve and render the preferred ConfigTemplate for this Device.
+ Resolve and render the preferred ConfigTemplate for this Device.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesRenderConfigCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesRenderConfigCreateRequest
*/
DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest
@@ -1467,13 +1466,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesRetrieve Method for DcimDevicesRetrieve
+ DcimDevicesRetrieve Method for DcimDevicesRetrieve
- Get a device object.
+ Get a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesRetrieveRequest
*/
DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest
@@ -1482,13 +1481,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error)
/*
- DcimDevicesUpdate Method for DcimDevicesUpdate
+ DcimDevicesUpdate Method for DcimDevicesUpdate
- Put a device object.
+ Put a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesUpdateRequest
*/
DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest
@@ -1497,12 +1496,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error)
/*
- DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy
+ DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy
- Delete a list of front port template objects.
+ Delete a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkDestroyRequest
*/
DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest
@@ -1510,12 +1509,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPartialUpdate
+ DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPartialUpdate
- Patch a list of front port template objects.
+ Patch a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest
*/
DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest
@@ -1524,12 +1523,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate
+ DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate
- Put a list of front port template objects.
+ Put a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkUpdateRequest
*/
DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest
@@ -1538,12 +1537,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate
+ DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate
- Post a list of front port template objects.
+ Post a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesCreateRequest
*/
DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest
@@ -1552,13 +1551,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy
+ DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy
- Delete a front port template object.
+ Delete a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesDestroyRequest
*/
DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest
@@ -1566,12 +1565,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList
+ DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList
- Get a list of front port template objects.
+ Get a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesListRequest
*/
DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest
@@ -1580,13 +1579,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error)
/*
- DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpdate
+ DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpdate
- Patch a front port template object.
+ Patch a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesPartialUpdateRequest
*/
DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest
@@ -1595,13 +1594,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortTemplatesRetrieve Method for DcimFrontPortTemplatesRetrieve
+ DcimFrontPortTemplatesRetrieve Method for DcimFrontPortTemplatesRetrieve
- Get a front port template object.
+ Get a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesRetrieveRequest
*/
DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest
@@ -1610,13 +1609,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortTemplatesUpdate Method for DcimFrontPortTemplatesUpdate
+ DcimFrontPortTemplatesUpdate Method for DcimFrontPortTemplatesUpdate
- Put a front port template object.
+ Put a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesUpdateRequest
*/
DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest
@@ -1625,12 +1624,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error)
/*
- DcimFrontPortsBulkDestroy Method for DcimFrontPortsBulkDestroy
+ DcimFrontPortsBulkDestroy Method for DcimFrontPortsBulkDestroy
- Delete a list of front port objects.
+ Delete a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkDestroyRequest
*/
DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest
@@ -1638,12 +1637,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error)
/*
- DcimFrontPortsBulkPartialUpdate Method for DcimFrontPortsBulkPartialUpdate
+ DcimFrontPortsBulkPartialUpdate Method for DcimFrontPortsBulkPartialUpdate
- Patch a list of front port objects.
+ Patch a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkPartialUpdateRequest
*/
DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest
@@ -1652,12 +1651,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error)
/*
- DcimFrontPortsBulkUpdate Method for DcimFrontPortsBulkUpdate
+ DcimFrontPortsBulkUpdate Method for DcimFrontPortsBulkUpdate
- Put a list of front port objects.
+ Put a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkUpdateRequest
*/
DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest
@@ -1666,12 +1665,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error)
/*
- DcimFrontPortsCreate Method for DcimFrontPortsCreate
+ DcimFrontPortsCreate Method for DcimFrontPortsCreate
- Post a list of front port objects.
+ Post a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsCreateRequest
*/
DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest
@@ -1680,13 +1679,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error)
/*
- DcimFrontPortsDestroy Method for DcimFrontPortsDestroy
+ DcimFrontPortsDestroy Method for DcimFrontPortsDestroy
- Delete a front port object.
+ Delete a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsDestroyRequest
*/
DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest
@@ -1694,12 +1693,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error)
/*
- DcimFrontPortsList Method for DcimFrontPortsList
+ DcimFrontPortsList Method for DcimFrontPortsList
- Get a list of front port objects.
+ Get a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsListRequest
*/
DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest
@@ -1708,13 +1707,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error)
/*
- DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate
+ DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate
- Patch a front port object.
+ Patch a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsPartialUpdateRequest
*/
DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest
@@ -1723,13 +1722,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error)
/*
- DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve
+ DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve
- Return all CablePaths which traverse a given pass-through port.
+ Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsPathsRetrieveRequest
*/
DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest
@@ -1738,13 +1737,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error)
/*
- DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve
+ DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve
- Get a front port object.
+ Get a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsRetrieveRequest
*/
DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest
@@ -1753,13 +1752,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error)
/*
- DcimFrontPortsUpdate Method for DcimFrontPortsUpdate
+ DcimFrontPortsUpdate Method for DcimFrontPortsUpdate
- Put a front port object.
+ Put a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsUpdateRequest
*/
DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest
@@ -1768,12 +1767,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error)
/*
- DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy
+ DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy
- Delete a list of interface template objects.
+ Delete a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkDestroyRequest
*/
DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest
@@ -1781,12 +1780,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPartialUpdate
+ DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPartialUpdate
- Patch a list of interface template objects.
+ Patch a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest
*/
DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest
@@ -1795,12 +1794,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error)
/*
- DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate
+ DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate
- Put a list of interface template objects.
+ Put a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkUpdateRequest
*/
DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest
@@ -1809,12 +1808,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error)
/*
- DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate
+ DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate
- Post a list of interface template objects.
+ Post a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesCreateRequest
*/
DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest
@@ -1823,13 +1822,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error)
/*
- DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy
+ DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy
- Delete a interface template object.
+ Delete a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesDestroyRequest
*/
DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest
@@ -1837,12 +1836,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList
+ DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList
- Get a list of interface template objects.
+ Get a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesListRequest
*/
DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest
@@ -1851,13 +1850,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error)
/*
- DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpdate
+ DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpdate
- Patch a interface template object.
+ Patch a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesPartialUpdateRequest
*/
DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest
@@ -1866,13 +1865,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error)
/*
- DcimInterfaceTemplatesRetrieve Method for DcimInterfaceTemplatesRetrieve
+ DcimInterfaceTemplatesRetrieve Method for DcimInterfaceTemplatesRetrieve
- Get a interface template object.
+ Get a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesRetrieveRequest
*/
DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest
@@ -1881,13 +1880,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error)
/*
- DcimInterfaceTemplatesUpdate Method for DcimInterfaceTemplatesUpdate
+ DcimInterfaceTemplatesUpdate Method for DcimInterfaceTemplatesUpdate
- Put a interface template object.
+ Put a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesUpdateRequest
*/
DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest
@@ -1896,12 +1895,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error)
/*
- DcimInterfacesBulkDestroy Method for DcimInterfacesBulkDestroy
+ DcimInterfacesBulkDestroy Method for DcimInterfacesBulkDestroy
- Delete a list of interface objects.
+ Delete a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkDestroyRequest
*/
DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest
@@ -1909,12 +1908,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error)
/*
- DcimInterfacesBulkPartialUpdate Method for DcimInterfacesBulkPartialUpdate
+ DcimInterfacesBulkPartialUpdate Method for DcimInterfacesBulkPartialUpdate
- Patch a list of interface objects.
+ Patch a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkPartialUpdateRequest
*/
DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest
@@ -1923,12 +1922,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error)
/*
- DcimInterfacesBulkUpdate Method for DcimInterfacesBulkUpdate
+ DcimInterfacesBulkUpdate Method for DcimInterfacesBulkUpdate
- Put a list of interface objects.
+ Put a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkUpdateRequest
*/
DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest
@@ -1937,12 +1936,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error)
/*
- DcimInterfacesCreate Method for DcimInterfacesCreate
+ DcimInterfacesCreate Method for DcimInterfacesCreate
- Post a list of interface objects.
+ Post a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesCreateRequest
*/
DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest
@@ -1951,13 +1950,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error)
/*
- DcimInterfacesDestroy Method for DcimInterfacesDestroy
+ DcimInterfacesDestroy Method for DcimInterfacesDestroy
- Delete a interface object.
+ Delete a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesDestroyRequest
*/
DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest
@@ -1965,12 +1964,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error)
/*
- DcimInterfacesList Method for DcimInterfacesList
+ DcimInterfacesList Method for DcimInterfacesList
- Get a list of interface objects.
+ Get a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesListRequest
*/
DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest
@@ -1979,13 +1978,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error)
/*
- DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate
+ DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate
- Patch a interface object.
+ Patch a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesPartialUpdateRequest
*/
DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest
@@ -1994,13 +1993,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error)
/*
- DcimInterfacesRetrieve Method for DcimInterfacesRetrieve
+ DcimInterfacesRetrieve Method for DcimInterfacesRetrieve
- Get a interface object.
+ Get a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesRetrieveRequest
*/
DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest
@@ -2009,13 +2008,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error)
/*
- DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve
+ DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesTraceRetrieveRequest
*/
DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest
@@ -2024,13 +2023,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error)
/*
- DcimInterfacesUpdate Method for DcimInterfacesUpdate
+ DcimInterfacesUpdate Method for DcimInterfacesUpdate
- Put a interface object.
+ Put a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesUpdateRequest
*/
DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest
@@ -2039,12 +2038,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error)
/*
- DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy
+ DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy
- Delete a list of inventory item role objects.
+ Delete a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkDestroyRequest
*/
DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest
@@ -2052,12 +2051,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPartialUpdate
+ DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPartialUpdate
- Patch a list of inventory item role objects.
+ Patch a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest
*/
DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest
@@ -2066,12 +2065,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemRolesBulkUpdate Method for DcimInventoryItemRolesBulkUpdate
+ DcimInventoryItemRolesBulkUpdate Method for DcimInventoryItemRolesBulkUpdate
- Put a list of inventory item role objects.
+ Put a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkUpdateRequest
*/
DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest
@@ -2080,12 +2079,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemRolesCreate Method for DcimInventoryItemRolesCreate
+ DcimInventoryItemRolesCreate Method for DcimInventoryItemRolesCreate
- Post a list of inventory item role objects.
+ Post a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesCreateRequest
*/
DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest
@@ -2094,13 +2093,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemRolesDestroy Method for DcimInventoryItemRolesDestroy
+ DcimInventoryItemRolesDestroy Method for DcimInventoryItemRolesDestroy
- Delete a inventory item role object.
+ Delete a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesDestroyRequest
*/
DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest
@@ -2108,12 +2107,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemRolesList Method for DcimInventoryItemRolesList
+ DcimInventoryItemRolesList Method for DcimInventoryItemRolesList
- Get a list of inventory item role objects.
+ Get a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesListRequest
*/
DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest
@@ -2122,13 +2121,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error)
/*
- DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpdate
+ DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpdate
- Patch a inventory item role object.
+ Patch a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesPartialUpdateRequest
*/
DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest
@@ -2137,13 +2136,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve
+ DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve
- Get a inventory item role object.
+ Get a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesRetrieveRequest
*/
DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest
@@ -2152,13 +2151,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate
+ DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate
- Put a inventory item role object.
+ Put a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesUpdateRequest
*/
DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest
@@ -2167,12 +2166,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error)
/*
- DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkDestroy
+ DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkDestroy
- Delete a list of inventory item template objects.
+ Delete a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkDestroyRequest
*/
DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest
@@ -2180,12 +2179,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplatesBulkPartialUpdate
+ DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplatesBulkPartialUpdate
- Patch a list of inventory item template objects.
+ Patch a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest
*/
DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest
@@ -2194,12 +2193,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUpdate
+ DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUpdate
- Put a list of inventory item template objects.
+ Put a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkUpdateRequest
*/
DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest
@@ -2208,12 +2207,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate
+ DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate
- Post a list of inventory item template objects.
+ Post a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesCreateRequest
*/
DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest
@@ -2222,13 +2221,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemTemplatesDestroy Method for DcimInventoryItemTemplatesDestroy
+ DcimInventoryItemTemplatesDestroy Method for DcimInventoryItemTemplatesDestroy
- Delete a inventory item template object.
+ Delete a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesDestroyRequest
*/
DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest
@@ -2236,12 +2235,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList
+ DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList
- Get a list of inventory item template objects.
+ Get a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesListRequest
*/
DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest
@@ -2250,13 +2249,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error)
/*
- DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPartialUpdate
+ DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPartialUpdate
- Patch a inventory item template object.
+ Patch a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesPartialUpdateRequest
*/
DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest
@@ -2265,13 +2264,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemTemplatesRetrieve Method for DcimInventoryItemTemplatesRetrieve
+ DcimInventoryItemTemplatesRetrieve Method for DcimInventoryItemTemplatesRetrieve
- Get a inventory item template object.
+ Get a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesRetrieveRequest
*/
DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest
@@ -2280,13 +2279,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemTemplatesUpdate Method for DcimInventoryItemTemplatesUpdate
+ DcimInventoryItemTemplatesUpdate Method for DcimInventoryItemTemplatesUpdate
- Put a inventory item template object.
+ Put a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesUpdateRequest
*/
DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest
@@ -2295,12 +2294,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error)
/*
- DcimInventoryItemsBulkDestroy Method for DcimInventoryItemsBulkDestroy
+ DcimInventoryItemsBulkDestroy Method for DcimInventoryItemsBulkDestroy
- Delete a list of inventory item objects.
+ Delete a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkDestroyRequest
*/
DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest
@@ -2308,12 +2307,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpdate
+ DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpdate
- Patch a list of inventory item objects.
+ Patch a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkPartialUpdateRequest
*/
DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest
@@ -2322,12 +2321,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error)
/*
- DcimInventoryItemsBulkUpdate Method for DcimInventoryItemsBulkUpdate
+ DcimInventoryItemsBulkUpdate Method for DcimInventoryItemsBulkUpdate
- Put a list of inventory item objects.
+ Put a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkUpdateRequest
*/
DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest
@@ -2336,12 +2335,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error)
/*
- DcimInventoryItemsCreate Method for DcimInventoryItemsCreate
+ DcimInventoryItemsCreate Method for DcimInventoryItemsCreate
- Post a list of inventory item objects.
+ Post a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsCreateRequest
*/
DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest
@@ -2350,13 +2349,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error)
/*
- DcimInventoryItemsDestroy Method for DcimInventoryItemsDestroy
+ DcimInventoryItemsDestroy Method for DcimInventoryItemsDestroy
- Delete a inventory item object.
+ Delete a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsDestroyRequest
*/
DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest
@@ -2364,12 +2363,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error)
/*
- DcimInventoryItemsList Method for DcimInventoryItemsList
+ DcimInventoryItemsList Method for DcimInventoryItemsList
- Get a list of inventory item objects.
+ Get a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsListRequest
*/
DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest
@@ -2378,13 +2377,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error)
/*
- DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate
+ DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate
- Patch a inventory item object.
+ Patch a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsPartialUpdateRequest
*/
DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest
@@ -2393,13 +2392,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error)
/*
- DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve
+ DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve
- Get a inventory item object.
+ Get a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsRetrieveRequest
*/
DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest
@@ -2408,13 +2407,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error)
/*
- DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate
+ DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate
- Put a inventory item object.
+ Put a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsUpdateRequest
*/
DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest
@@ -2423,12 +2422,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error)
/*
- DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy
+ DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy
- Delete a list of location objects.
+ Delete a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkDestroyRequest
*/
DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest
@@ -2436,12 +2435,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*http.Response, error)
/*
- DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate
+ DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate
- Patch a list of location objects.
+ Patch a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkPartialUpdateRequest
*/
DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest
@@ -2450,12 +2449,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error)
/*
- DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate
+ DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate
- Put a list of location objects.
+ Put a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkUpdateRequest
*/
DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest
@@ -2464,12 +2463,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error)
/*
- DcimLocationsCreate Method for DcimLocationsCreate
+ DcimLocationsCreate Method for DcimLocationsCreate
- Post a list of location objects.
+ Post a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsCreateRequest
*/
DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest
@@ -2478,13 +2477,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error)
/*
- DcimLocationsDestroy Method for DcimLocationsDestroy
+ DcimLocationsDestroy Method for DcimLocationsDestroy
- Delete a location object.
+ Delete a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsDestroyRequest
*/
DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest
@@ -2492,12 +2491,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*http.Response, error)
/*
- DcimLocationsList Method for DcimLocationsList
+ DcimLocationsList Method for DcimLocationsList
- Get a list of location objects.
+ Get a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsListRequest
*/
DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest
@@ -2506,13 +2505,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error)
/*
- DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate
+ DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate
- Patch a location object.
+ Patch a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsPartialUpdateRequest
*/
DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest
@@ -2521,13 +2520,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error)
/*
- DcimLocationsRetrieve Method for DcimLocationsRetrieve
+ DcimLocationsRetrieve Method for DcimLocationsRetrieve
- Get a location object.
+ Get a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsRetrieveRequest
*/
DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest
@@ -2536,13 +2535,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error)
/*
- DcimLocationsUpdate Method for DcimLocationsUpdate
+ DcimLocationsUpdate Method for DcimLocationsUpdate
- Put a location object.
+ Put a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsUpdateRequest
*/
DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest
@@ -2551,12 +2550,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error)
/*
- DcimMacAddressesBulkDestroy Method for DcimMacAddressesBulkDestroy
+ DcimMacAddressesBulkDestroy Method for DcimMacAddressesBulkDestroy
- Delete a list of MAC address objects.
+ Delete a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkDestroyRequest
*/
DcimMacAddressesBulkDestroy(ctx context.Context) ApiDcimMacAddressesBulkDestroyRequest
@@ -2564,12 +2563,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesBulkDestroyExecute(r ApiDcimMacAddressesBulkDestroyRequest) (*http.Response, error)
/*
- DcimMacAddressesBulkPartialUpdate Method for DcimMacAddressesBulkPartialUpdate
+ DcimMacAddressesBulkPartialUpdate Method for DcimMacAddressesBulkPartialUpdate
- Patch a list of MAC address objects.
+ Patch a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkPartialUpdateRequest
*/
DcimMacAddressesBulkPartialUpdate(ctx context.Context) ApiDcimMacAddressesBulkPartialUpdateRequest
@@ -2578,12 +2577,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesBulkPartialUpdateExecute(r ApiDcimMacAddressesBulkPartialUpdateRequest) ([]MACAddress, *http.Response, error)
/*
- DcimMacAddressesBulkUpdate Method for DcimMacAddressesBulkUpdate
+ DcimMacAddressesBulkUpdate Method for DcimMacAddressesBulkUpdate
- Put a list of MAC address objects.
+ Put a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkUpdateRequest
*/
DcimMacAddressesBulkUpdate(ctx context.Context) ApiDcimMacAddressesBulkUpdateRequest
@@ -2592,12 +2591,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesBulkUpdateExecute(r ApiDcimMacAddressesBulkUpdateRequest) ([]MACAddress, *http.Response, error)
/*
- DcimMacAddressesCreate Method for DcimMacAddressesCreate
+ DcimMacAddressesCreate Method for DcimMacAddressesCreate
- Post a list of MAC address objects.
+ Post a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesCreateRequest
*/
DcimMacAddressesCreate(ctx context.Context) ApiDcimMacAddressesCreateRequest
@@ -2606,13 +2605,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesCreateExecute(r ApiDcimMacAddressesCreateRequest) (*MACAddress, *http.Response, error)
/*
- DcimMacAddressesDestroy Method for DcimMacAddressesDestroy
+ DcimMacAddressesDestroy Method for DcimMacAddressesDestroy
- Delete a MAC address object.
+ Delete a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesDestroyRequest
*/
DcimMacAddressesDestroy(ctx context.Context, id int32) ApiDcimMacAddressesDestroyRequest
@@ -2620,12 +2619,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesDestroyExecute(r ApiDcimMacAddressesDestroyRequest) (*http.Response, error)
/*
- DcimMacAddressesList Method for DcimMacAddressesList
+ DcimMacAddressesList Method for DcimMacAddressesList
- Get a list of MAC address objects.
+ Get a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesListRequest
*/
DcimMacAddressesList(ctx context.Context) ApiDcimMacAddressesListRequest
@@ -2634,13 +2633,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesListExecute(r ApiDcimMacAddressesListRequest) (*PaginatedMACAddressList, *http.Response, error)
/*
- DcimMacAddressesPartialUpdate Method for DcimMacAddressesPartialUpdate
+ DcimMacAddressesPartialUpdate Method for DcimMacAddressesPartialUpdate
- Patch a MAC address object.
+ Patch a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesPartialUpdateRequest
*/
DcimMacAddressesPartialUpdate(ctx context.Context, id int32) ApiDcimMacAddressesPartialUpdateRequest
@@ -2649,13 +2648,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesPartialUpdateExecute(r ApiDcimMacAddressesPartialUpdateRequest) (*MACAddress, *http.Response, error)
/*
- DcimMacAddressesRetrieve Method for DcimMacAddressesRetrieve
+ DcimMacAddressesRetrieve Method for DcimMacAddressesRetrieve
- Get a MAC address object.
+ Get a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesRetrieveRequest
*/
DcimMacAddressesRetrieve(ctx context.Context, id int32) ApiDcimMacAddressesRetrieveRequest
@@ -2664,13 +2663,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesRetrieveExecute(r ApiDcimMacAddressesRetrieveRequest) (*MACAddress, *http.Response, error)
/*
- DcimMacAddressesUpdate Method for DcimMacAddressesUpdate
+ DcimMacAddressesUpdate Method for DcimMacAddressesUpdate
- Put a MAC address object.
+ Put a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesUpdateRequest
*/
DcimMacAddressesUpdate(ctx context.Context, id int32) ApiDcimMacAddressesUpdateRequest
@@ -2679,12 +2678,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimMacAddressesUpdateExecute(r ApiDcimMacAddressesUpdateRequest) (*MACAddress, *http.Response, error)
/*
- DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy
+ DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy
- Delete a list of manufacturer objects.
+ Delete a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkDestroyRequest
*/
DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest
@@ -2692,12 +2691,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*http.Response, error)
/*
- DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate
+ DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate
- Patch a list of manufacturer objects.
+ Patch a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkPartialUpdateRequest
*/
DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest
@@ -2706,12 +2705,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error)
/*
- DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate
+ DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate
- Put a list of manufacturer objects.
+ Put a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkUpdateRequest
*/
DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest
@@ -2720,12 +2719,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error)
/*
- DcimManufacturersCreate Method for DcimManufacturersCreate
+ DcimManufacturersCreate Method for DcimManufacturersCreate
- Post a list of manufacturer objects.
+ Post a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersCreateRequest
*/
DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest
@@ -2734,13 +2733,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error)
/*
- DcimManufacturersDestroy Method for DcimManufacturersDestroy
+ DcimManufacturersDestroy Method for DcimManufacturersDestroy
- Delete a manufacturer object.
+ Delete a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersDestroyRequest
*/
DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest
@@ -2748,12 +2747,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*http.Response, error)
/*
- DcimManufacturersList Method for DcimManufacturersList
+ DcimManufacturersList Method for DcimManufacturersList
- Get a list of manufacturer objects.
+ Get a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersListRequest
*/
DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest
@@ -2762,13 +2761,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error)
/*
- DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate
+ DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate
- Patch a manufacturer object.
+ Patch a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersPartialUpdateRequest
*/
DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest
@@ -2777,13 +2776,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error)
/*
- DcimManufacturersRetrieve Method for DcimManufacturersRetrieve
+ DcimManufacturersRetrieve Method for DcimManufacturersRetrieve
- Get a manufacturer object.
+ Get a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersRetrieveRequest
*/
DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest
@@ -2792,13 +2791,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error)
/*
- DcimManufacturersUpdate Method for DcimManufacturersUpdate
+ DcimManufacturersUpdate Method for DcimManufacturersUpdate
- Put a manufacturer object.
+ Put a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersUpdateRequest
*/
DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest
@@ -2807,12 +2806,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error)
/*
- DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy
+ DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy
- Delete a list of module bay template objects.
+ Delete a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkDestroyRequest
*/
DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest
@@ -2820,12 +2819,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPartialUpdate
+ DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPartialUpdate
- Patch a list of module bay template objects.
+ Patch a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest
*/
DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest
@@ -2834,12 +2833,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate
+ DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate
- Put a list of module bay template objects.
+ Put a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkUpdateRequest
*/
DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest
@@ -2848,12 +2847,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate
+ DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate
- Post a list of module bay template objects.
+ Post a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesCreateRequest
*/
DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest
@@ -2862,13 +2861,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy
+ DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy
- Delete a module bay template object.
+ Delete a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesDestroyRequest
*/
DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest
@@ -2876,12 +2875,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList
+ DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList
- Get a list of module bay template objects.
+ Get a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesListRequest
*/
DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest
@@ -2890,13 +2889,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error)
/*
- DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpdate
+ DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpdate
- Patch a module bay template object.
+ Patch a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesPartialUpdateRequest
*/
DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest
@@ -2905,13 +2904,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve
+ DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve
- Get a module bay template object.
+ Get a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesRetrieveRequest
*/
DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest
@@ -2920,13 +2919,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate
+ DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate
- Put a module bay template object.
+ Put a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesUpdateRequest
*/
DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest
@@ -2935,12 +2934,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error)
/*
- DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy
+ DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy
- Delete a list of module bay objects.
+ Delete a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkDestroyRequest
*/
DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest
@@ -2948,12 +2947,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*http.Response, error)
/*
- DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate
+ DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate
- Patch a list of module bay objects.
+ Patch a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkPartialUpdateRequest
*/
DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest
@@ -2962,12 +2961,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error)
/*
- DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate
+ DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate
- Put a list of module bay objects.
+ Put a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkUpdateRequest
*/
DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest
@@ -2976,12 +2975,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error)
/*
- DcimModuleBaysCreate Method for DcimModuleBaysCreate
+ DcimModuleBaysCreate Method for DcimModuleBaysCreate
- Post a list of module bay objects.
+ Post a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysCreateRequest
*/
DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest
@@ -2990,13 +2989,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error)
/*
- DcimModuleBaysDestroy Method for DcimModuleBaysDestroy
+ DcimModuleBaysDestroy Method for DcimModuleBaysDestroy
- Delete a module bay object.
+ Delete a module bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay.
- @return ApiDcimModuleBaysDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysDestroyRequest
*/
DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest
@@ -3004,12 +3003,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*http.Response, error)
/*
- DcimModuleBaysList Method for DcimModuleBaysList
+ DcimModuleBaysList Method for DcimModuleBaysList
- Get a list of module bay objects.
+ Get a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysListRequest
*/
DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest
@@ -3018,13 +3017,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error)
/*
- DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate
+ DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate
- Patch a module bay object.
+ Patch a module bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay.
- @return ApiDcimModuleBaysPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysPartialUpdateRequest
*/
DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest
@@ -3033,13 +3032,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error)
/*
- DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve
+ DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve
- Get a module bay object.
+ Get a module bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay.
- @return ApiDcimModuleBaysRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysRetrieveRequest
*/
DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest
@@ -3048,13 +3047,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error)
/*
- DcimModuleBaysUpdate Method for DcimModuleBaysUpdate
+ DcimModuleBaysUpdate Method for DcimModuleBaysUpdate
- Put a module bay object.
+ Put a module bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay.
- @return ApiDcimModuleBaysUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysUpdateRequest
*/
DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest
@@ -3063,12 +3062,140 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error)
/*
- DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy
+ DcimModuleTypeProfilesBulkDestroy Method for DcimModuleTypeProfilesBulkDestroy
- Delete a list of module type objects.
+ Delete a list of module type profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkDestroyRequest
+ */
+ DcimModuleTypeProfilesBulkDestroy(ctx context.Context) ApiDcimModuleTypeProfilesBulkDestroyRequest
+
+ // DcimModuleTypeProfilesBulkDestroyExecute executes the request
+ DcimModuleTypeProfilesBulkDestroyExecute(r ApiDcimModuleTypeProfilesBulkDestroyRequest) (*http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesBulkPartialUpdate Method for DcimModuleTypeProfilesBulkPartialUpdate
+
+ Patch a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkPartialUpdateRequest
+ */
+ DcimModuleTypeProfilesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypeProfilesBulkPartialUpdateRequest
+
+ // DcimModuleTypeProfilesBulkPartialUpdateExecute executes the request
+ // @return []ModuleTypeProfile
+ DcimModuleTypeProfilesBulkPartialUpdateExecute(r ApiDcimModuleTypeProfilesBulkPartialUpdateRequest) ([]ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesBulkUpdate Method for DcimModuleTypeProfilesBulkUpdate
+
+ Put a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkUpdateRequest
+ */
+ DcimModuleTypeProfilesBulkUpdate(ctx context.Context) ApiDcimModuleTypeProfilesBulkUpdateRequest
+
+ // DcimModuleTypeProfilesBulkUpdateExecute executes the request
+ // @return []ModuleTypeProfile
+ DcimModuleTypeProfilesBulkUpdateExecute(r ApiDcimModuleTypeProfilesBulkUpdateRequest) ([]ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesCreate Method for DcimModuleTypeProfilesCreate
+
+ Post a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesCreateRequest
+ */
+ DcimModuleTypeProfilesCreate(ctx context.Context) ApiDcimModuleTypeProfilesCreateRequest
+
+ // DcimModuleTypeProfilesCreateExecute executes the request
+ // @return ModuleTypeProfile
+ DcimModuleTypeProfilesCreateExecute(r ApiDcimModuleTypeProfilesCreateRequest) (*ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesDestroy Method for DcimModuleTypeProfilesDestroy
+
+ Delete a module type 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 module type profile.
+ @return ApiDcimModuleTypeProfilesDestroyRequest
+ */
+ DcimModuleTypeProfilesDestroy(ctx context.Context, id int32) ApiDcimModuleTypeProfilesDestroyRequest
+
+ // DcimModuleTypeProfilesDestroyExecute executes the request
+ DcimModuleTypeProfilesDestroyExecute(r ApiDcimModuleTypeProfilesDestroyRequest) (*http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesList Method for DcimModuleTypeProfilesList
+
+ Get a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesListRequest
+ */
+ DcimModuleTypeProfilesList(ctx context.Context) ApiDcimModuleTypeProfilesListRequest
+
+ // DcimModuleTypeProfilesListExecute executes the request
+ // @return PaginatedModuleTypeProfileList
+ DcimModuleTypeProfilesListExecute(r ApiDcimModuleTypeProfilesListRequest) (*PaginatedModuleTypeProfileList, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesPartialUpdate Method for DcimModuleTypeProfilesPartialUpdate
+
+ Patch a module type 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 module type profile.
+ @return ApiDcimModuleTypeProfilesPartialUpdateRequest
+ */
+ DcimModuleTypeProfilesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypeProfilesPartialUpdateRequest
+
+ // DcimModuleTypeProfilesPartialUpdateExecute executes the request
+ // @return ModuleTypeProfile
+ DcimModuleTypeProfilesPartialUpdateExecute(r ApiDcimModuleTypeProfilesPartialUpdateRequest) (*ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesRetrieve Method for DcimModuleTypeProfilesRetrieve
+
+ Get a module type 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 module type profile.
+ @return ApiDcimModuleTypeProfilesRetrieveRequest
+ */
+ DcimModuleTypeProfilesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypeProfilesRetrieveRequest
+
+ // DcimModuleTypeProfilesRetrieveExecute executes the request
+ // @return ModuleTypeProfile
+ DcimModuleTypeProfilesRetrieveExecute(r ApiDcimModuleTypeProfilesRetrieveRequest) (*ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypeProfilesUpdate Method for DcimModuleTypeProfilesUpdate
+
+ Put a module type 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 module type profile.
+ @return ApiDcimModuleTypeProfilesUpdateRequest
+ */
+ DcimModuleTypeProfilesUpdate(ctx context.Context, id int32) ApiDcimModuleTypeProfilesUpdateRequest
+
+ // DcimModuleTypeProfilesUpdateExecute executes the request
+ // @return ModuleTypeProfile
+ DcimModuleTypeProfilesUpdateExecute(r ApiDcimModuleTypeProfilesUpdateRequest) (*ModuleTypeProfile, *http.Response, error)
+
+ /*
+ DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy
+
+ Delete a list of module type objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkDestroyRequest
*/
DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest
@@ -3076,12 +3203,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*http.Response, error)
/*
- DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate
+ DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate
- Patch a list of module type objects.
+ Patch a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkPartialUpdateRequest
*/
DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest
@@ -3090,12 +3217,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error)
/*
- DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate
+ DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate
- Put a list of module type objects.
+ Put a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkUpdateRequest
*/
DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest
@@ -3104,12 +3231,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error)
/*
- DcimModuleTypesCreate Method for DcimModuleTypesCreate
+ DcimModuleTypesCreate Method for DcimModuleTypesCreate
- Post a list of module type objects.
+ Post a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesCreateRequest
*/
DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest
@@ -3118,13 +3245,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error)
/*
- DcimModuleTypesDestroy Method for DcimModuleTypesDestroy
+ DcimModuleTypesDestroy Method for DcimModuleTypesDestroy
- Delete a module type object.
+ Delete a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesDestroyRequest
*/
DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest
@@ -3132,12 +3259,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*http.Response, error)
/*
- DcimModuleTypesList Method for DcimModuleTypesList
+ DcimModuleTypesList Method for DcimModuleTypesList
- Get a list of module type objects.
+ Get a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesListRequest
*/
DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest
@@ -3146,13 +3273,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error)
/*
- DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate
+ DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate
- Patch a module type object.
+ Patch a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesPartialUpdateRequest
*/
DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest
@@ -3161,13 +3288,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error)
/*
- DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve
+ DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve
- Get a module type object.
+ Get a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesRetrieveRequest
*/
DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest
@@ -3176,13 +3303,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error)
/*
- DcimModuleTypesUpdate Method for DcimModuleTypesUpdate
+ DcimModuleTypesUpdate Method for DcimModuleTypesUpdate
- Put a module type object.
+ Put a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesUpdateRequest
*/
DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest
@@ -3191,12 +3318,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error)
/*
- DcimModulesBulkDestroy Method for DcimModulesBulkDestroy
+ DcimModulesBulkDestroy Method for DcimModulesBulkDestroy
- Delete a list of module objects.
+ Delete a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkDestroyRequest
*/
DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest
@@ -3204,12 +3331,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*http.Response, error)
/*
- DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate
+ DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate
- Patch a list of module objects.
+ Patch a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkPartialUpdateRequest
*/
DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest
@@ -3218,12 +3345,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error)
/*
- DcimModulesBulkUpdate Method for DcimModulesBulkUpdate
+ DcimModulesBulkUpdate Method for DcimModulesBulkUpdate
- Put a list of module objects.
+ Put a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkUpdateRequest
*/
DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest
@@ -3232,12 +3359,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error)
/*
- DcimModulesCreate Method for DcimModulesCreate
+ DcimModulesCreate Method for DcimModulesCreate
- Post a list of module objects.
+ Post a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesCreateRequest
*/
DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest
@@ -3246,13 +3373,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error)
/*
- DcimModulesDestroy Method for DcimModulesDestroy
+ DcimModulesDestroy Method for DcimModulesDestroy
- Delete a module object.
+ Delete a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesDestroyRequest
*/
DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest
@@ -3260,12 +3387,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*http.Response, error)
/*
- DcimModulesList Method for DcimModulesList
+ DcimModulesList Method for DcimModulesList
- Get a list of module objects.
+ Get a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesListRequest
*/
DcimModulesList(ctx context.Context) ApiDcimModulesListRequest
@@ -3274,13 +3401,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error)
/*
- DcimModulesPartialUpdate Method for DcimModulesPartialUpdate
+ DcimModulesPartialUpdate Method for DcimModulesPartialUpdate
- Patch a module object.
+ Patch a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesPartialUpdateRequest
*/
DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest
@@ -3289,13 +3416,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error)
/*
- DcimModulesRetrieve Method for DcimModulesRetrieve
+ DcimModulesRetrieve Method for DcimModulesRetrieve
- Get a module object.
+ Get a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesRetrieveRequest
*/
DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest
@@ -3304,13 +3431,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error)
/*
- DcimModulesUpdate Method for DcimModulesUpdate
+ DcimModulesUpdate Method for DcimModulesUpdate
- Put a module object.
+ Put a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesUpdateRequest
*/
DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest
@@ -3319,12 +3446,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error)
/*
- DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy
+ DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy
- Delete a list of platform objects.
+ Delete a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkDestroyRequest
*/
DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest
@@ -3332,12 +3459,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*http.Response, error)
/*
- DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate
+ DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate
- Patch a list of platform objects.
+ Patch a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkPartialUpdateRequest
*/
DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest
@@ -3346,12 +3473,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error)
/*
- DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate
+ DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate
- Put a list of platform objects.
+ Put a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkUpdateRequest
*/
DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest
@@ -3360,12 +3487,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error)
/*
- DcimPlatformsCreate Method for DcimPlatformsCreate
+ DcimPlatformsCreate Method for DcimPlatformsCreate
- Post a list of platform objects.
+ Post a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsCreateRequest
*/
DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest
@@ -3374,13 +3501,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error)
/*
- DcimPlatformsDestroy Method for DcimPlatformsDestroy
+ DcimPlatformsDestroy Method for DcimPlatformsDestroy
- Delete a platform object.
+ Delete a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsDestroyRequest
*/
DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest
@@ -3388,12 +3515,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*http.Response, error)
/*
- DcimPlatformsList Method for DcimPlatformsList
+ DcimPlatformsList Method for DcimPlatformsList
- Get a list of platform objects.
+ Get a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsListRequest
*/
DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest
@@ -3402,13 +3529,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error)
/*
- DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate
+ DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate
- Patch a platform object.
+ Patch a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsPartialUpdateRequest
*/
DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest
@@ -3417,13 +3544,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error)
/*
- DcimPlatformsRetrieve Method for DcimPlatformsRetrieve
+ DcimPlatformsRetrieve Method for DcimPlatformsRetrieve
- Get a platform object.
+ Get a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsRetrieveRequest
*/
DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest
@@ -3432,13 +3559,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error)
/*
- DcimPlatformsUpdate Method for DcimPlatformsUpdate
+ DcimPlatformsUpdate Method for DcimPlatformsUpdate
- Put a platform object.
+ Put a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsUpdateRequest
*/
DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest
@@ -3447,12 +3574,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error)
/*
- DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy
+ DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy
- Delete a list of power feed objects.
+ Delete a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkDestroyRequest
*/
DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest
@@ -3460,12 +3587,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate
+ DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate
- Patch a list of power feed objects.
+ Patch a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkPartialUpdateRequest
*/
DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest
@@ -3474,12 +3601,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate
+ DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate
- Put a list of power feed objects.
+ Put a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkUpdateRequest
*/
DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest
@@ -3488,12 +3615,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsCreate Method for DcimPowerFeedsCreate
+ DcimPowerFeedsCreate Method for DcimPowerFeedsCreate
- Post a list of power feed objects.
+ Post a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsCreateRequest
*/
DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest
@@ -3502,13 +3629,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy
+ DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy
- Delete a power feed object.
+ Delete a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsDestroyRequest
*/
DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest
@@ -3516,12 +3643,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*http.Response, error)
/*
- DcimPowerFeedsList Method for DcimPowerFeedsList
+ DcimPowerFeedsList Method for DcimPowerFeedsList
- Get a list of power feed objects.
+ Get a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsListRequest
*/
DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest
@@ -3530,13 +3657,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error)
/*
- DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate
+ DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate
- Patch a power feed object.
+ Patch a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsPartialUpdateRequest
*/
DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest
@@ -3545,13 +3672,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsRetrieve Method for DcimPowerFeedsRetrieve
+ DcimPowerFeedsRetrieve Method for DcimPowerFeedsRetrieve
- Get a power feed object.
+ Get a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsRetrieveRequest
*/
DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest
@@ -3560,13 +3687,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsTraceRetrieve Method for DcimPowerFeedsTraceRetrieve
+ DcimPowerFeedsTraceRetrieve Method for DcimPowerFeedsTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsTraceRetrieveRequest
*/
DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest
@@ -3575,13 +3702,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error)
/*
- DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate
+ DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate
- Put a power feed object.
+ Put a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsUpdateRequest
*/
DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest
@@ -3590,12 +3717,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error)
/*
- DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestroy
+ DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestroy
- Delete a list of power outlet template objects.
+ Delete a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkDestroyRequest
*/
DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest
@@ -3603,12 +3730,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBulkPartialUpdate
+ DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBulkPartialUpdate
- Patch a list of power outlet template objects.
+ Patch a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest
*/
DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest
@@ -3617,12 +3744,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate
+ DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate
- Put a list of power outlet template objects.
+ Put a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkUpdateRequest
*/
DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest
@@ -3631,12 +3758,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate
+ DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate
- Post a list of power outlet template objects.
+ Post a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesCreateRequest
*/
DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest
@@ -3645,13 +3772,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy
+ DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy
- Delete a power outlet template object.
+ Delete a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesDestroyRequest
*/
DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest
@@ -3659,12 +3786,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList
+ DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList
- Get a list of power outlet template objects.
+ Get a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesListRequest
*/
DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest
@@ -3673,13 +3800,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error)
/*
- DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartialUpdate
+ DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartialUpdate
- Patch a power outlet template object.
+ Patch a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesPartialUpdateRequest
*/
DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest
@@ -3688,13 +3815,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve
+ DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve
- Get a power outlet template object.
+ Get a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesRetrieveRequest
*/
DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest
@@ -3703,13 +3830,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate
+ DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate
- Put a power outlet template object.
+ Put a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesUpdateRequest
*/
DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest
@@ -3718,12 +3845,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error)
/*
- DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy
+ DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy
- Delete a list of power outlet objects.
+ Delete a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkDestroyRequest
*/
DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest
@@ -3731,12 +3858,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate
+ DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate
- Patch a list of power outlet objects.
+ Patch a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkPartialUpdateRequest
*/
DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest
@@ -3745,12 +3872,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate
+ DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate
- Put a list of power outlet objects.
+ Put a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkUpdateRequest
*/
DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest
@@ -3759,12 +3886,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsCreate Method for DcimPowerOutletsCreate
+ DcimPowerOutletsCreate Method for DcimPowerOutletsCreate
- Post a list of power outlet objects.
+ Post a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsCreateRequest
*/
DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest
@@ -3773,13 +3900,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy
+ DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy
- Delete a power outlet object.
+ Delete a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsDestroyRequest
*/
DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest
@@ -3787,12 +3914,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*http.Response, error)
/*
- DcimPowerOutletsList Method for DcimPowerOutletsList
+ DcimPowerOutletsList Method for DcimPowerOutletsList
- Get a list of power outlet objects.
+ Get a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsListRequest
*/
DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest
@@ -3801,13 +3928,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error)
/*
- DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate
+ DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate
- Patch a power outlet object.
+ Patch a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsPartialUpdateRequest
*/
DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest
@@ -3816,13 +3943,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsRetrieve Method for DcimPowerOutletsRetrieve
+ DcimPowerOutletsRetrieve Method for DcimPowerOutletsRetrieve
- Get a power outlet object.
+ Get a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsRetrieveRequest
*/
DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest
@@ -3831,13 +3958,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsTraceRetrieve Method for DcimPowerOutletsTraceRetrieve
+ DcimPowerOutletsTraceRetrieve Method for DcimPowerOutletsTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsTraceRetrieveRequest
*/
DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest
@@ -3846,13 +3973,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error)
/*
- DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate
+ DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate
- Put a power outlet object.
+ Put a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsUpdateRequest
*/
DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest
@@ -3861,12 +3988,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error)
/*
- DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy
+ DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy
- Delete a list of power panel objects.
+ Delete a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkDestroyRequest
*/
DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest
@@ -3874,12 +4001,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate
+ DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate
- Patch a list of power panel objects.
+ Patch a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkPartialUpdateRequest
*/
DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest
@@ -3888,12 +4015,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error)
/*
- DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate
+ DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate
- Put a list of power panel objects.
+ Put a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkUpdateRequest
*/
DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest
@@ -3902,12 +4029,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error)
/*
- DcimPowerPanelsCreate Method for DcimPowerPanelsCreate
+ DcimPowerPanelsCreate Method for DcimPowerPanelsCreate
- Post a list of power panel objects.
+ Post a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsCreateRequest
*/
DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest
@@ -3916,13 +4043,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error)
/*
- DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy
+ DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy
- Delete a power panel object.
+ Delete a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsDestroyRequest
*/
DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest
@@ -3930,12 +4057,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*http.Response, error)
/*
- DcimPowerPanelsList Method for DcimPowerPanelsList
+ DcimPowerPanelsList Method for DcimPowerPanelsList
- Get a list of power panel objects.
+ Get a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsListRequest
*/
DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest
@@ -3944,13 +4071,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error)
/*
- DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate
+ DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate
- Patch a power panel object.
+ Patch a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsPartialUpdateRequest
*/
DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest
@@ -3959,13 +4086,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error)
/*
- DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve
+ DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve
- Get a power panel object.
+ Get a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsRetrieveRequest
*/
DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest
@@ -3974,13 +4101,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error)
/*
- DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate
+ DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate
- Put a power panel object.
+ Put a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsUpdateRequest
*/
DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest
@@ -3989,12 +4116,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error)
/*
- DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy
+ DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy
- Delete a list of power port template objects.
+ Delete a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkDestroyRequest
*/
DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest
@@ -4002,12 +4129,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPartialUpdate
+ DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPartialUpdate
- Patch a list of power port template objects.
+ Patch a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest
*/
DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest
@@ -4016,12 +4143,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate
+ DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate
- Put a list of power port template objects.
+ Put a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkUpdateRequest
*/
DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest
@@ -4030,12 +4157,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate
+ DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate
- Post a list of power port template objects.
+ Post a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesCreateRequest
*/
DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest
@@ -4044,13 +4171,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy
+ DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy
- Delete a power port template object.
+ Delete a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesDestroyRequest
*/
DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest
@@ -4058,12 +4185,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList
+ DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList
- Get a list of power port template objects.
+ Get a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesListRequest
*/
DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest
@@ -4072,13 +4199,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error)
/*
- DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpdate
+ DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpdate
- Patch a power port template object.
+ Patch a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesPartialUpdateRequest
*/
DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest
@@ -4087,13 +4214,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve
+ DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve
- Get a power port template object.
+ Get a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesRetrieveRequest
*/
DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest
@@ -4102,13 +4229,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate
+ DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate
- Put a power port template object.
+ Put a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesUpdateRequest
*/
DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest
@@ -4117,12 +4244,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error)
/*
- DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy
+ DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy
- Delete a list of power port objects.
+ Delete a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkDestroyRequest
*/
DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest
@@ -4130,12 +4257,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*http.Response, error)
/*
- DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate
+ DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate
- Patch a list of power port objects.
+ Patch a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkPartialUpdateRequest
*/
DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest
@@ -4144,12 +4271,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error)
/*
- DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate
+ DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate
- Put a list of power port objects.
+ Put a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkUpdateRequest
*/
DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest
@@ -4158,12 +4285,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error)
/*
- DcimPowerPortsCreate Method for DcimPowerPortsCreate
+ DcimPowerPortsCreate Method for DcimPowerPortsCreate
- Post a list of power port objects.
+ Post a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsCreateRequest
*/
DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest
@@ -4172,13 +4299,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error)
/*
- DcimPowerPortsDestroy Method for DcimPowerPortsDestroy
+ DcimPowerPortsDestroy Method for DcimPowerPortsDestroy
- Delete a power port object.
+ Delete a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsDestroyRequest
*/
DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest
@@ -4186,12 +4313,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*http.Response, error)
/*
- DcimPowerPortsList Method for DcimPowerPortsList
+ DcimPowerPortsList Method for DcimPowerPortsList
- Get a list of power port objects.
+ Get a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsListRequest
*/
DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest
@@ -4200,13 +4327,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error)
/*
- DcimPowerPortsPartialUpdate Method for DcimPowerPortsPartialUpdate
+ DcimPowerPortsPartialUpdate Method for DcimPowerPortsPartialUpdate
- Patch a power port object.
+ Patch a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsPartialUpdateRequest
*/
DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest
@@ -4215,13 +4342,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error)
/*
- DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve
+ DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve
- Get a power port object.
+ Get a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsRetrieveRequest
*/
DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest
@@ -4230,13 +4357,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error)
/*
- DcimPowerPortsTraceRetrieve Method for DcimPowerPortsTraceRetrieve
+ DcimPowerPortsTraceRetrieve Method for DcimPowerPortsTraceRetrieve
- Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
+ Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsTraceRetrieveRequest
*/
DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest
@@ -4245,13 +4372,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error)
/*
- DcimPowerPortsUpdate Method for DcimPowerPortsUpdate
+ DcimPowerPortsUpdate Method for DcimPowerPortsUpdate
- Put a power port object.
+ Put a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsUpdateRequest
*/
DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest
@@ -4260,12 +4387,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error)
/*
- DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy
+ DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy
- Delete a list of rack reservation objects.
+ Delete a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkDestroyRequest
*/
DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest
@@ -4273,12 +4400,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*http.Response, error)
/*
- DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartialUpdate
+ DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartialUpdate
- Patch a list of rack reservation objects.
+ Patch a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkPartialUpdateRequest
*/
DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest
@@ -4287,12 +4414,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error)
/*
- DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate
+ DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate
- Put a list of rack reservation objects.
+ Put a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkUpdateRequest
*/
DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest
@@ -4301,12 +4428,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error)
/*
- DcimRackReservationsCreate Method for DcimRackReservationsCreate
+ DcimRackReservationsCreate Method for DcimRackReservationsCreate
- Post a list of rack reservation objects.
+ Post a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsCreateRequest
*/
DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest
@@ -4315,13 +4442,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error)
/*
- DcimRackReservationsDestroy Method for DcimRackReservationsDestroy
+ DcimRackReservationsDestroy Method for DcimRackReservationsDestroy
- Delete a rack reservation object.
+ Delete a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsDestroyRequest
*/
DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest
@@ -4329,12 +4456,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*http.Response, error)
/*
- DcimRackReservationsList Method for DcimRackReservationsList
+ DcimRackReservationsList Method for DcimRackReservationsList
- Get a list of rack reservation objects.
+ Get a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsListRequest
*/
DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest
@@ -4343,13 +4470,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error)
/*
- DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate
+ DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate
- Patch a rack reservation object.
+ Patch a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsPartialUpdateRequest
*/
DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest
@@ -4358,13 +4485,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error)
/*
- DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve
+ DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve
- Get a rack reservation object.
+ Get a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsRetrieveRequest
*/
DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest
@@ -4373,13 +4500,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error)
/*
- DcimRackReservationsUpdate Method for DcimRackReservationsUpdate
+ DcimRackReservationsUpdate Method for DcimRackReservationsUpdate
- Put a rack reservation object.
+ Put a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsUpdateRequest
*/
DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest
@@ -4388,12 +4515,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error)
/*
- DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy
+ DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy
- Delete a list of rack role objects.
+ Delete a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkDestroyRequest
*/
DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest
@@ -4401,12 +4528,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error)
/*
- DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate
+ DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate
- Patch a list of rack role objects.
+ Patch a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkPartialUpdateRequest
*/
DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest
@@ -4415,12 +4542,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error)
/*
- DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate
+ DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate
- Put a list of rack role objects.
+ Put a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkUpdateRequest
*/
DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest
@@ -4429,12 +4556,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error)
/*
- DcimRackRolesCreate Method for DcimRackRolesCreate
+ DcimRackRolesCreate Method for DcimRackRolesCreate
- Post a list of rack role objects.
+ Post a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesCreateRequest
*/
DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest
@@ -4443,13 +4570,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error)
/*
- DcimRackRolesDestroy Method for DcimRackRolesDestroy
+ DcimRackRolesDestroy Method for DcimRackRolesDestroy
- Delete a rack role object.
+ Delete a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesDestroyRequest
*/
DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest
@@ -4457,12 +4584,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRequest) (*http.Response, error)
/*
- DcimRackRolesList Method for DcimRackRolesList
+ DcimRackRolesList Method for DcimRackRolesList
- Get a list of rack role objects.
+ Get a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesListRequest
*/
DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest
@@ -4471,13 +4598,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error)
/*
- DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate
+ DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate
- Patch a rack role object.
+ Patch a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesPartialUpdateRequest
*/
DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest
@@ -4486,13 +4613,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error)
/*
- DcimRackRolesRetrieve Method for DcimRackRolesRetrieve
+ DcimRackRolesRetrieve Method for DcimRackRolesRetrieve
- Get a rack role object.
+ Get a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesRetrieveRequest
*/
DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest
@@ -4501,13 +4628,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error)
/*
- DcimRackRolesUpdate Method for DcimRackRolesUpdate
+ DcimRackRolesUpdate Method for DcimRackRolesUpdate
- Put a rack role object.
+ Put a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesUpdateRequest
*/
DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest
@@ -4516,12 +4643,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error)
/*
- DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy
+ DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy
- Delete a list of rack type objects.
+ Delete a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkDestroyRequest
*/
DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest
@@ -4529,12 +4656,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error)
/*
- DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate
+ DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate
- Patch a list of rack type objects.
+ Patch a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkPartialUpdateRequest
*/
DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest
@@ -4543,12 +4670,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error)
/*
- DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate
+ DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate
- Put a list of rack type objects.
+ Put a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkUpdateRequest
*/
DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest
@@ -4557,12 +4684,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error)
/*
- DcimRackTypesCreate Method for DcimRackTypesCreate
+ DcimRackTypesCreate Method for DcimRackTypesCreate
- Post a list of rack type objects.
+ Post a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesCreateRequest
*/
DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest
@@ -4571,13 +4698,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error)
/*
- DcimRackTypesDestroy Method for DcimRackTypesDestroy
+ DcimRackTypesDestroy Method for DcimRackTypesDestroy
- Delete a rack type object.
+ Delete a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesDestroyRequest
*/
DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest
@@ -4585,12 +4712,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error)
/*
- DcimRackTypesList Method for DcimRackTypesList
+ DcimRackTypesList Method for DcimRackTypesList
- Get a list of rack type objects.
+ Get a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesListRequest
*/
DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest
@@ -4599,13 +4726,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error)
/*
- DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate
+ DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate
- Patch a rack type object.
+ Patch a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesPartialUpdateRequest
*/
DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest
@@ -4614,13 +4741,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error)
/*
- DcimRackTypesRetrieve Method for DcimRackTypesRetrieve
+ DcimRackTypesRetrieve Method for DcimRackTypesRetrieve
- Get a rack type object.
+ Get a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesRetrieveRequest
*/
DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest
@@ -4629,13 +4756,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error)
/*
- DcimRackTypesUpdate Method for DcimRackTypesUpdate
+ DcimRackTypesUpdate Method for DcimRackTypesUpdate
- Put a rack type object.
+ Put a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesUpdateRequest
*/
DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest
@@ -4644,12 +4771,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error)
/*
- DcimRacksBulkDestroy Method for DcimRacksBulkDestroy
+ DcimRacksBulkDestroy Method for DcimRacksBulkDestroy
- Delete a list of rack objects.
+ Delete a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkDestroyRequest
*/
DcimRacksBulkDestroy(ctx context.Context) ApiDcimRacksBulkDestroyRequest
@@ -4657,12 +4784,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRequest) (*http.Response, error)
/*
- DcimRacksBulkPartialUpdate Method for DcimRacksBulkPartialUpdate
+ DcimRacksBulkPartialUpdate Method for DcimRacksBulkPartialUpdate
- Patch a list of rack objects.
+ Patch a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkPartialUpdateRequest
*/
DcimRacksBulkPartialUpdate(ctx context.Context) ApiDcimRacksBulkPartialUpdateRequest
@@ -4671,12 +4798,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPartialUpdateRequest) ([]Rack, *http.Response, error)
/*
- DcimRacksBulkUpdate Method for DcimRacksBulkUpdate
+ DcimRacksBulkUpdate Method for DcimRacksBulkUpdate
- Put a list of rack objects.
+ Put a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkUpdateRequest
*/
DcimRacksBulkUpdate(ctx context.Context) ApiDcimRacksBulkUpdateRequest
@@ -4685,12 +4812,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequest) ([]Rack, *http.Response, error)
/*
- DcimRacksCreate Method for DcimRacksCreate
+ DcimRacksCreate Method for DcimRacksCreate
- Post a list of rack objects.
+ Post a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksCreateRequest
*/
DcimRacksCreate(ctx context.Context) ApiDcimRacksCreateRequest
@@ -4699,13 +4826,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*Rack, *http.Response, error)
/*
- DcimRacksDestroy Method for DcimRacksDestroy
+ DcimRacksDestroy Method for DcimRacksDestroy
- Delete a rack object.
+ Delete a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksDestroyRequest
*/
DcimRacksDestroy(ctx context.Context, id int32) ApiDcimRacksDestroyRequest
@@ -4713,13 +4840,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (*http.Response, error)
/*
- DcimRacksElevationRetrieve Method for DcimRacksElevationRetrieve
+ DcimRacksElevationRetrieve Method for DcimRacksElevationRetrieve
- Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG.
+ Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksElevationRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksElevationRetrieveRequest
*/
DcimRacksElevationRetrieve(ctx context.Context, id int32) ApiDcimRacksElevationRetrieveRequest
@@ -4728,12 +4855,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*PaginatedRackUnitList, *http.Response, error)
/*
- DcimRacksList Method for DcimRacksList
+ DcimRacksList Method for DcimRacksList
- Get a list of rack objects.
+ Get a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksListRequest
*/
DcimRacksList(ctx context.Context) ApiDcimRacksListRequest
@@ -4742,13 +4869,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksListExecute(r ApiDcimRacksListRequest) (*PaginatedRackList, *http.Response, error)
/*
- DcimRacksPartialUpdate Method for DcimRacksPartialUpdate
+ DcimRacksPartialUpdate Method for DcimRacksPartialUpdate
- Patch a rack object.
+ Patch a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksPartialUpdateRequest
*/
DcimRacksPartialUpdate(ctx context.Context, id int32) ApiDcimRacksPartialUpdateRequest
@@ -4757,13 +4884,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpdateRequest) (*Rack, *http.Response, error)
/*
- DcimRacksRetrieve Method for DcimRacksRetrieve
+ DcimRacksRetrieve Method for DcimRacksRetrieve
- Get a rack object.
+ Get a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksRetrieveRequest
*/
DcimRacksRetrieve(ctx context.Context, id int32) ApiDcimRacksRetrieveRequest
@@ -4772,13 +4899,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) (*Rack, *http.Response, error)
/*
- DcimRacksUpdate Method for DcimRacksUpdate
+ DcimRacksUpdate Method for DcimRacksUpdate
- Put a rack object.
+ Put a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksUpdateRequest
*/
DcimRacksUpdate(ctx context.Context, id int32) ApiDcimRacksUpdateRequest
@@ -4787,12 +4914,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*Rack, *http.Response, error)
/*
- DcimRearPortTemplatesBulkDestroy Method for DcimRearPortTemplatesBulkDestroy
+ DcimRearPortTemplatesBulkDestroy Method for DcimRearPortTemplatesBulkDestroy
- Delete a list of rear port template objects.
+ Delete a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkDestroyRequest
*/
DcimRearPortTemplatesBulkDestroy(ctx context.Context) ApiDcimRearPortTemplatesBulkDestroyRequest
@@ -4800,12 +4927,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPortTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- DcimRearPortTemplatesBulkPartialUpdate Method for DcimRearPortTemplatesBulkPartialUpdate
+ DcimRearPortTemplatesBulkPartialUpdate Method for DcimRearPortTemplatesBulkPartialUpdate
- Patch a list of rear port template objects.
+ Patch a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest
*/
DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkPartialUpdateRequest
@@ -4814,12 +4941,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcimRearPortTemplatesBulkPartialUpdateRequest) ([]RearPortTemplate, *http.Response, error)
/*
- DcimRearPortTemplatesBulkUpdate Method for DcimRearPortTemplatesBulkUpdate
+ DcimRearPortTemplatesBulkUpdate Method for DcimRearPortTemplatesBulkUpdate
- Put a list of rear port template objects.
+ Put a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkUpdateRequest
*/
DcimRearPortTemplatesBulkUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkUpdateRequest
@@ -4828,12 +4955,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPortTemplatesBulkUpdateRequest) ([]RearPortTemplate, *http.Response, error)
/*
- DcimRearPortTemplatesCreate Method for DcimRearPortTemplatesCreate
+ DcimRearPortTemplatesCreate Method for DcimRearPortTemplatesCreate
- Post a list of rear port template objects.
+ Post a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesCreateRequest
*/
DcimRearPortTemplatesCreate(ctx context.Context) ApiDcimRearPortTemplatesCreateRequest
@@ -4842,13 +4969,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTemplatesCreateRequest) (*RearPortTemplate, *http.Response, error)
/*
- DcimRearPortTemplatesDestroy Method for DcimRearPortTemplatesDestroy
+ DcimRearPortTemplatesDestroy Method for DcimRearPortTemplatesDestroy
- Delete a rear port template object.
+ Delete a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesDestroyRequest
*/
DcimRearPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimRearPortTemplatesDestroyRequest
@@ -4856,12 +4983,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTemplatesDestroyRequest) (*http.Response, error)
/*
- DcimRearPortTemplatesList Method for DcimRearPortTemplatesList
+ DcimRearPortTemplatesList Method for DcimRearPortTemplatesList
- Get a list of rear port template objects.
+ Get a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesListRequest
*/
DcimRearPortTemplatesList(ctx context.Context) ApiDcimRearPortTemplatesListRequest
@@ -4870,13 +4997,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesListExecute(r ApiDcimRearPortTemplatesListRequest) (*PaginatedRearPortTemplateList, *http.Response, error)
/*
- DcimRearPortTemplatesPartialUpdate Method for DcimRearPortTemplatesPartialUpdate
+ DcimRearPortTemplatesPartialUpdate Method for DcimRearPortTemplatesPartialUpdate
- Patch a rear port template object.
+ Patch a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesPartialUpdateRequest
*/
DcimRearPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesPartialUpdateRequest
@@ -4885,13 +5012,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRearPortTemplatesPartialUpdateRequest) (*RearPortTemplate, *http.Response, error)
/*
- DcimRearPortTemplatesRetrieve Method for DcimRearPortTemplatesRetrieve
+ DcimRearPortTemplatesRetrieve Method for DcimRearPortTemplatesRetrieve
- Get a rear port template object.
+ Get a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesRetrieveRequest
*/
DcimRearPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimRearPortTemplatesRetrieveRequest
@@ -4900,13 +5027,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortTemplatesRetrieveRequest) (*RearPortTemplate, *http.Response, error)
/*
- DcimRearPortTemplatesUpdate Method for DcimRearPortTemplatesUpdate
+ DcimRearPortTemplatesUpdate Method for DcimRearPortTemplatesUpdate
- Put a rear port template object.
+ Put a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesUpdateRequest
*/
DcimRearPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesUpdateRequest
@@ -4915,12 +5042,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTemplatesUpdateRequest) (*RearPortTemplate, *http.Response, error)
/*
- DcimRearPortsBulkDestroy Method for DcimRearPortsBulkDestroy
+ DcimRearPortsBulkDestroy Method for DcimRearPortsBulkDestroy
- Delete a list of rear port objects.
+ Delete a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkDestroyRequest
*/
DcimRearPortsBulkDestroy(ctx context.Context) ApiDcimRearPortsBulkDestroyRequest
@@ -4928,12 +5055,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkDestroyRequest) (*http.Response, error)
/*
- DcimRearPortsBulkPartialUpdate Method for DcimRearPortsBulkPartialUpdate
+ DcimRearPortsBulkPartialUpdate Method for DcimRearPortsBulkPartialUpdate
- Patch a list of rear port objects.
+ Patch a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkPartialUpdateRequest
*/
DcimRearPortsBulkPartialUpdate(ctx context.Context) ApiDcimRearPortsBulkPartialUpdateRequest
@@ -4942,12 +5069,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPortsBulkPartialUpdateRequest) ([]RearPort, *http.Response, error)
/*
- DcimRearPortsBulkUpdate Method for DcimRearPortsBulkUpdate
+ DcimRearPortsBulkUpdate Method for DcimRearPortsBulkUpdate
- Put a list of rear port objects.
+ Put a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkUpdateRequest
*/
DcimRearPortsBulkUpdate(ctx context.Context) ApiDcimRearPortsBulkUpdateRequest
@@ -4956,12 +5083,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUpdateRequest) ([]RearPort, *http.Response, error)
/*
- DcimRearPortsCreate Method for DcimRearPortsCreate
+ DcimRearPortsCreate Method for DcimRearPortsCreate
- Post a list of rear port objects.
+ Post a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsCreateRequest
*/
DcimRearPortsCreate(ctx context.Context) ApiDcimRearPortsCreateRequest
@@ -4970,13 +5097,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequest) (*RearPort, *http.Response, error)
/*
- DcimRearPortsDestroy Method for DcimRearPortsDestroy
+ DcimRearPortsDestroy Method for DcimRearPortsDestroy
- Delete a rear port object.
+ Delete a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsDestroyRequest
*/
DcimRearPortsDestroy(ctx context.Context, id int32) ApiDcimRearPortsDestroyRequest
@@ -4984,12 +5111,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRequest) (*http.Response, error)
/*
- DcimRearPortsList Method for DcimRearPortsList
+ DcimRearPortsList Method for DcimRearPortsList
- Get a list of rear port objects.
+ Get a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsListRequest
*/
DcimRearPortsList(ctx context.Context) ApiDcimRearPortsListRequest
@@ -4998,13 +5125,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) (*PaginatedRearPortList, *http.Response, error)
/*
- DcimRearPortsPartialUpdate Method for DcimRearPortsPartialUpdate
+ DcimRearPortsPartialUpdate Method for DcimRearPortsPartialUpdate
- Patch a rear port object.
+ Patch a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsPartialUpdateRequest
*/
DcimRearPortsPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortsPartialUpdateRequest
@@ -5013,13 +5140,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPartialUpdateRequest) (*RearPort, *http.Response, error)
/*
- DcimRearPortsPathsRetrieve Method for DcimRearPortsPathsRetrieve
+ DcimRearPortsPathsRetrieve Method for DcimRearPortsPathsRetrieve
- Return all CablePaths which traverse a given pass-through port.
+ Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsPathsRetrieveRequest
*/
DcimRearPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsPathsRetrieveRequest
@@ -5028,13 +5155,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPathsRetrieveRequest) (*RearPort, *http.Response, error)
/*
- DcimRearPortsRetrieve Method for DcimRearPortsRetrieve
+ DcimRearPortsRetrieve Method for DcimRearPortsRetrieve
- Get a rear port object.
+ Get a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsRetrieveRequest
*/
DcimRearPortsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsRetrieveRequest
@@ -5043,13 +5170,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieveRequest) (*RearPort, *http.Response, error)
/*
- DcimRearPortsUpdate Method for DcimRearPortsUpdate
+ DcimRearPortsUpdate Method for DcimRearPortsUpdate
- Put a rear port object.
+ Put a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsUpdateRequest
*/
DcimRearPortsUpdate(ctx context.Context, id int32) ApiDcimRearPortsUpdateRequest
@@ -5058,12 +5185,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequest) (*RearPort, *http.Response, error)
/*
- DcimRegionsBulkDestroy Method for DcimRegionsBulkDestroy
+ DcimRegionsBulkDestroy Method for DcimRegionsBulkDestroy
- Delete a list of region objects.
+ Delete a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkDestroyRequest
*/
DcimRegionsBulkDestroy(ctx context.Context) ApiDcimRegionsBulkDestroyRequest
@@ -5071,12 +5198,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestroyRequest) (*http.Response, error)
/*
- DcimRegionsBulkPartialUpdate Method for DcimRegionsBulkPartialUpdate
+ DcimRegionsBulkPartialUpdate Method for DcimRegionsBulkPartialUpdate
- Patch a list of region objects.
+ Patch a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkPartialUpdateRequest
*/
DcimRegionsBulkPartialUpdate(ctx context.Context) ApiDcimRegionsBulkPartialUpdateRequest
@@ -5085,12 +5212,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBulkPartialUpdateRequest) ([]Region, *http.Response, error)
/*
- DcimRegionsBulkUpdate Method for DcimRegionsBulkUpdate
+ DcimRegionsBulkUpdate Method for DcimRegionsBulkUpdate
- Put a list of region objects.
+ Put a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkUpdateRequest
*/
DcimRegionsBulkUpdate(ctx context.Context) ApiDcimRegionsBulkUpdateRequest
@@ -5099,12 +5226,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdateRequest) ([]Region, *http.Response, error)
/*
- DcimRegionsCreate Method for DcimRegionsCreate
+ DcimRegionsCreate Method for DcimRegionsCreate
- Post a list of region objects.
+ Post a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsCreateRequest
*/
DcimRegionsCreate(ctx context.Context) ApiDcimRegionsCreateRequest
@@ -5113,13 +5240,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) (*Region, *http.Response, error)
/*
- DcimRegionsDestroy Method for DcimRegionsDestroy
+ DcimRegionsDestroy Method for DcimRegionsDestroy
- Delete a region object.
+ Delete a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsDestroyRequest
*/
DcimRegionsDestroy(ctx context.Context, id int32) ApiDcimRegionsDestroyRequest
@@ -5127,12 +5254,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyRequest) (*http.Response, error)
/*
- DcimRegionsList Method for DcimRegionsList
+ DcimRegionsList Method for DcimRegionsList
- Get a list of region objects.
+ Get a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsListRequest
*/
DcimRegionsList(ctx context.Context) ApiDcimRegionsListRequest
@@ -5141,13 +5268,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*PaginatedRegionList, *http.Response, error)
/*
- DcimRegionsPartialUpdate Method for DcimRegionsPartialUpdate
+ DcimRegionsPartialUpdate Method for DcimRegionsPartialUpdate
- Patch a region object.
+ Patch a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsPartialUpdateRequest
*/
DcimRegionsPartialUpdate(ctx context.Context, id int32) ApiDcimRegionsPartialUpdateRequest
@@ -5156,13 +5283,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartialUpdateRequest) (*Region, *http.Response, error)
/*
- DcimRegionsRetrieve Method for DcimRegionsRetrieve
+ DcimRegionsRetrieve Method for DcimRegionsRetrieve
- Get a region object.
+ Get a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsRetrieveRequest
*/
DcimRegionsRetrieve(ctx context.Context, id int32) ApiDcimRegionsRetrieveRequest
@@ -5171,13 +5298,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequest) (*Region, *http.Response, error)
/*
- DcimRegionsUpdate Method for DcimRegionsUpdate
+ DcimRegionsUpdate Method for DcimRegionsUpdate
- Put a region object.
+ Put a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsUpdateRequest
*/
DcimRegionsUpdate(ctx context.Context, id int32) ApiDcimRegionsUpdateRequest
@@ -5186,12 +5313,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) (*Region, *http.Response, error)
/*
- DcimSiteGroupsBulkDestroy Method for DcimSiteGroupsBulkDestroy
+ DcimSiteGroupsBulkDestroy Method for DcimSiteGroupsBulkDestroy
- Delete a list of site group objects.
+ Delete a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkDestroyRequest
*/
DcimSiteGroupsBulkDestroy(ctx context.Context) ApiDcimSiteGroupsBulkDestroyRequest
@@ -5199,12 +5326,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBulkDestroyRequest) (*http.Response, error)
/*
- DcimSiteGroupsBulkPartialUpdate Method for DcimSiteGroupsBulkPartialUpdate
+ DcimSiteGroupsBulkPartialUpdate Method for DcimSiteGroupsBulkPartialUpdate
- Patch a list of site group objects.
+ Patch a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkPartialUpdateRequest
*/
DcimSiteGroupsBulkPartialUpdate(ctx context.Context) ApiDcimSiteGroupsBulkPartialUpdateRequest
@@ -5213,12 +5340,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGroupsBulkPartialUpdateRequest) ([]SiteGroup, *http.Response, error)
/*
- DcimSiteGroupsBulkUpdate Method for DcimSiteGroupsBulkUpdate
+ DcimSiteGroupsBulkUpdate Method for DcimSiteGroupsBulkUpdate
- Put a list of site group objects.
+ Put a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkUpdateRequest
*/
DcimSiteGroupsBulkUpdate(ctx context.Context) ApiDcimSiteGroupsBulkUpdateRequest
@@ -5227,12 +5354,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulkUpdateRequest) ([]SiteGroup, *http.Response, error)
/*
- DcimSiteGroupsCreate Method for DcimSiteGroupsCreate
+ DcimSiteGroupsCreate Method for DcimSiteGroupsCreate
- Post a list of site group objects.
+ Post a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsCreateRequest
*/
DcimSiteGroupsCreate(ctx context.Context) ApiDcimSiteGroupsCreateRequest
@@ -5241,13 +5368,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRequest) (*SiteGroup, *http.Response, error)
/*
- DcimSiteGroupsDestroy Method for DcimSiteGroupsDestroy
+ DcimSiteGroupsDestroy Method for DcimSiteGroupsDestroy
- Delete a site group object.
+ Delete a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsDestroyRequest
*/
DcimSiteGroupsDestroy(ctx context.Context, id int32) ApiDcimSiteGroupsDestroyRequest
@@ -5255,12 +5382,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroyRequest) (*http.Response, error)
/*
- DcimSiteGroupsList Method for DcimSiteGroupsList
+ DcimSiteGroupsList Method for DcimSiteGroupsList
- Get a list of site group objects.
+ Get a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsListRequest
*/
DcimSiteGroupsList(ctx context.Context) ApiDcimSiteGroupsListRequest
@@ -5269,13 +5396,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListRequest) (*PaginatedSiteGroupList, *http.Response, error)
/*
- DcimSiteGroupsPartialUpdate Method for DcimSiteGroupsPartialUpdate
+ DcimSiteGroupsPartialUpdate Method for DcimSiteGroupsPartialUpdate
- Patch a site group object.
+ Patch a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsPartialUpdateRequest
*/
DcimSiteGroupsPartialUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsPartialUpdateRequest
@@ -5284,13 +5411,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsPartialUpdateRequest) (*SiteGroup, *http.Response, error)
/*
- DcimSiteGroupsRetrieve Method for DcimSiteGroupsRetrieve
+ DcimSiteGroupsRetrieve Method for DcimSiteGroupsRetrieve
- Get a site group object.
+ Get a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsRetrieveRequest
*/
DcimSiteGroupsRetrieve(ctx context.Context, id int32) ApiDcimSiteGroupsRetrieveRequest
@@ -5299,13 +5426,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrieveRequest) (*SiteGroup, *http.Response, error)
/*
- DcimSiteGroupsUpdate Method for DcimSiteGroupsUpdate
+ DcimSiteGroupsUpdate Method for DcimSiteGroupsUpdate
- Put a site group object.
+ Put a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsUpdateRequest
*/
DcimSiteGroupsUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsUpdateRequest
@@ -5314,12 +5441,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRequest) (*SiteGroup, *http.Response, error)
/*
- DcimSitesBulkDestroy Method for DcimSitesBulkDestroy
+ DcimSitesBulkDestroy Method for DcimSitesBulkDestroy
- Delete a list of site objects.
+ Delete a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkDestroyRequest
*/
DcimSitesBulkDestroy(ctx context.Context) ApiDcimSitesBulkDestroyRequest
@@ -5327,12 +5454,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRequest) (*http.Response, error)
/*
- DcimSitesBulkPartialUpdate Method for DcimSitesBulkPartialUpdate
+ DcimSitesBulkPartialUpdate Method for DcimSitesBulkPartialUpdate
- Patch a list of site objects.
+ Patch a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkPartialUpdateRequest
*/
DcimSitesBulkPartialUpdate(ctx context.Context) ApiDcimSitesBulkPartialUpdateRequest
@@ -5341,12 +5468,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPartialUpdateRequest) ([]Site, *http.Response, error)
/*
- DcimSitesBulkUpdate Method for DcimSitesBulkUpdate
+ DcimSitesBulkUpdate Method for DcimSitesBulkUpdate
- Put a list of site objects.
+ Put a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkUpdateRequest
*/
DcimSitesBulkUpdate(ctx context.Context) ApiDcimSitesBulkUpdateRequest
@@ -5355,12 +5482,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequest) ([]Site, *http.Response, error)
/*
- DcimSitesCreate Method for DcimSitesCreate
+ DcimSitesCreate Method for DcimSitesCreate
- Post a list of site objects.
+ Post a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesCreateRequest
*/
DcimSitesCreate(ctx context.Context) ApiDcimSitesCreateRequest
@@ -5369,13 +5496,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*Site, *http.Response, error)
/*
- DcimSitesDestroy Method for DcimSitesDestroy
+ DcimSitesDestroy Method for DcimSitesDestroy
- Delete a site object.
+ Delete a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesDestroyRequest
*/
DcimSitesDestroy(ctx context.Context, id int32) ApiDcimSitesDestroyRequest
@@ -5383,12 +5510,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (*http.Response, error)
/*
- DcimSitesList Method for DcimSitesList
+ DcimSitesList Method for DcimSitesList
- Get a list of site objects.
+ Get a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesListRequest
*/
DcimSitesList(ctx context.Context) ApiDcimSitesListRequest
@@ -5397,13 +5524,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesListExecute(r ApiDcimSitesListRequest) (*PaginatedSiteList, *http.Response, error)
/*
- DcimSitesPartialUpdate Method for DcimSitesPartialUpdate
+ DcimSitesPartialUpdate Method for DcimSitesPartialUpdate
- Patch a site object.
+ Patch a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesPartialUpdateRequest
*/
DcimSitesPartialUpdate(ctx context.Context, id int32) ApiDcimSitesPartialUpdateRequest
@@ -5412,13 +5539,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpdateRequest) (*Site, *http.Response, error)
/*
- DcimSitesRetrieve Method for DcimSitesRetrieve
+ DcimSitesRetrieve Method for DcimSitesRetrieve
- Get a site object.
+ Get a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesRetrieveRequest
*/
DcimSitesRetrieve(ctx context.Context, id int32) ApiDcimSitesRetrieveRequest
@@ -5427,13 +5554,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) (*Site, *http.Response, error)
/*
- DcimSitesUpdate Method for DcimSitesUpdate
+ DcimSitesUpdate Method for DcimSitesUpdate
- Put a site object.
+ Put a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesUpdateRequest
*/
DcimSitesUpdate(ctx context.Context, id int32) ApiDcimSitesUpdateRequest
@@ -5442,12 +5569,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*Site, *http.Response, error)
/*
- DcimVirtualChassisBulkDestroy Method for DcimVirtualChassisBulkDestroy
+ DcimVirtualChassisBulkDestroy Method for DcimVirtualChassisBulkDestroy
- Delete a list of virtual chassis objects.
+ Delete a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkDestroyRequest
*/
DcimVirtualChassisBulkDestroy(ctx context.Context) ApiDcimVirtualChassisBulkDestroyRequest
@@ -5455,12 +5582,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualChassisBulkDestroyRequest) (*http.Response, error)
/*
- DcimVirtualChassisBulkPartialUpdate Method for DcimVirtualChassisBulkPartialUpdate
+ DcimVirtualChassisBulkPartialUpdate Method for DcimVirtualChassisBulkPartialUpdate
- Patch a list of virtual chassis objects.
+ Patch a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkPartialUpdateRequest
*/
DcimVirtualChassisBulkPartialUpdate(ctx context.Context) ApiDcimVirtualChassisBulkPartialUpdateRequest
@@ -5469,12 +5596,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVirtualChassisBulkPartialUpdateRequest) ([]VirtualChassis, *http.Response, error)
/*
- DcimVirtualChassisBulkUpdate Method for DcimVirtualChassisBulkUpdate
+ DcimVirtualChassisBulkUpdate Method for DcimVirtualChassisBulkUpdate
- Put a list of virtual chassis objects.
+ Put a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkUpdateRequest
*/
DcimVirtualChassisBulkUpdate(ctx context.Context) ApiDcimVirtualChassisBulkUpdateRequest
@@ -5483,12 +5610,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualChassisBulkUpdateRequest) ([]VirtualChassis, *http.Response, error)
/*
- DcimVirtualChassisCreate Method for DcimVirtualChassisCreate
+ DcimVirtualChassisCreate Method for DcimVirtualChassisCreate
- Post a list of virtual chassis objects.
+ Post a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisCreateRequest
*/
DcimVirtualChassisCreate(ctx context.Context) ApiDcimVirtualChassisCreateRequest
@@ -5497,13 +5624,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassisCreateRequest) (*VirtualChassis, *http.Response, error)
/*
- DcimVirtualChassisDestroy Method for DcimVirtualChassisDestroy
+ DcimVirtualChassisDestroy Method for DcimVirtualChassisDestroy
- Delete a virtual chassis object.
+ Delete a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisDestroyRequest
*/
DcimVirtualChassisDestroy(ctx context.Context, id int32) ApiDcimVirtualChassisDestroyRequest
@@ -5511,12 +5638,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassisDestroyRequest) (*http.Response, error)
/*
- DcimVirtualChassisList Method for DcimVirtualChassisList
+ DcimVirtualChassisList Method for DcimVirtualChassisList
- Get a list of virtual chassis objects.
+ Get a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisListRequest
*/
DcimVirtualChassisList(ctx context.Context) ApiDcimVirtualChassisListRequest
@@ -5525,13 +5652,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisListExecute(r ApiDcimVirtualChassisListRequest) (*PaginatedVirtualChassisList, *http.Response, error)
/*
- DcimVirtualChassisPartialUpdate Method for DcimVirtualChassisPartialUpdate
+ DcimVirtualChassisPartialUpdate Method for DcimVirtualChassisPartialUpdate
- Patch a virtual chassis object.
+ Patch a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisPartialUpdateRequest
*/
DcimVirtualChassisPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisPartialUpdateRequest
@@ -5540,13 +5667,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtualChassisPartialUpdateRequest) (*VirtualChassis, *http.Response, error)
/*
- DcimVirtualChassisRetrieve Method for DcimVirtualChassisRetrieve
+ DcimVirtualChassisRetrieve Method for DcimVirtualChassisRetrieve
- Get a virtual chassis object.
+ Get a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisRetrieveRequest
*/
DcimVirtualChassisRetrieve(ctx context.Context, id int32) ApiDcimVirtualChassisRetrieveRequest
@@ -5555,13 +5682,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChassisRetrieveRequest) (*VirtualChassis, *http.Response, error)
/*
- DcimVirtualChassisUpdate Method for DcimVirtualChassisUpdate
+ DcimVirtualChassisUpdate Method for DcimVirtualChassisUpdate
- Put a virtual chassis object.
+ Put a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisUpdateRequest
*/
DcimVirtualChassisUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisUpdateRequest
@@ -5570,12 +5697,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassisUpdateRequest) (*VirtualChassis, *http.Response, error)
/*
- DcimVirtualDeviceContextsBulkDestroy Method for DcimVirtualDeviceContextsBulkDestroy
+ DcimVirtualDeviceContextsBulkDestroy Method for DcimVirtualDeviceContextsBulkDestroy
- Delete a list of virtual device context objects.
+ Delete a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkDestroyRequest
*/
DcimVirtualDeviceContextsBulkDestroy(ctx context.Context) ApiDcimVirtualDeviceContextsBulkDestroyRequest
@@ -5583,12 +5710,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVirtualDeviceContextsBulkDestroyRequest) (*http.Response, error)
/*
- DcimVirtualDeviceContextsBulkPartialUpdate Method for DcimVirtualDeviceContextsBulkPartialUpdate
+ DcimVirtualDeviceContextsBulkPartialUpdate Method for DcimVirtualDeviceContextsBulkPartialUpdate
- Patch a list of virtual device context objects.
+ Patch a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest
*/
DcimVirtualDeviceContextsBulkPartialUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest
@@ -5597,12 +5724,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsBulkPartialUpdateExecute(r ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest) ([]VirtualDeviceContext, *http.Response, error)
/*
- DcimVirtualDeviceContextsBulkUpdate Method for DcimVirtualDeviceContextsBulkUpdate
+ DcimVirtualDeviceContextsBulkUpdate Method for DcimVirtualDeviceContextsBulkUpdate
- Put a list of virtual device context objects.
+ Put a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkUpdateRequest
*/
DcimVirtualDeviceContextsBulkUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkUpdateRequest
@@ -5611,12 +5738,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVirtualDeviceContextsBulkUpdateRequest) ([]VirtualDeviceContext, *http.Response, error)
/*
- DcimVirtualDeviceContextsCreate Method for DcimVirtualDeviceContextsCreate
+ DcimVirtualDeviceContextsCreate Method for DcimVirtualDeviceContextsCreate
- Post a list of virtual device context objects.
+ Post a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsCreateRequest
*/
DcimVirtualDeviceContextsCreate(ctx context.Context) ApiDcimVirtualDeviceContextsCreateRequest
@@ -5625,13 +5752,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtualDeviceContextsCreateRequest) (*VirtualDeviceContext, *http.Response, error)
/*
- DcimVirtualDeviceContextsDestroy Method for DcimVirtualDeviceContextsDestroy
+ DcimVirtualDeviceContextsDestroy Method for DcimVirtualDeviceContextsDestroy
- Delete a virtual device context object.
+ Delete a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsDestroyRequest
*/
DcimVirtualDeviceContextsDestroy(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsDestroyRequest
@@ -5639,12 +5766,12 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtualDeviceContextsDestroyRequest) (*http.Response, error)
/*
- DcimVirtualDeviceContextsList Method for DcimVirtualDeviceContextsList
+ DcimVirtualDeviceContextsList Method for DcimVirtualDeviceContextsList
- Get a list of virtual device context objects.
+ Get a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsListRequest
*/
DcimVirtualDeviceContextsList(ctx context.Context) ApiDcimVirtualDeviceContextsListRequest
@@ -5653,13 +5780,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDeviceContextsListRequest) (*PaginatedVirtualDeviceContextList, *http.Response, error)
/*
- DcimVirtualDeviceContextsPartialUpdate Method for DcimVirtualDeviceContextsPartialUpdate
+ DcimVirtualDeviceContextsPartialUpdate Method for DcimVirtualDeviceContextsPartialUpdate
- Patch a virtual device context object.
+ Patch a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsPartialUpdateRequest
*/
DcimVirtualDeviceContextsPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsPartialUpdateRequest
@@ -5668,13 +5795,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcimVirtualDeviceContextsPartialUpdateRequest) (*VirtualDeviceContext, *http.Response, error)
/*
- DcimVirtualDeviceContextsRetrieve Method for DcimVirtualDeviceContextsRetrieve
+ DcimVirtualDeviceContextsRetrieve Method for DcimVirtualDeviceContextsRetrieve
- Get a virtual device context object.
+ Get a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsRetrieveRequest
*/
DcimVirtualDeviceContextsRetrieve(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsRetrieveRequest
@@ -5683,13 +5810,13 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtualDeviceContextsRetrieveRequest) (*VirtualDeviceContext, *http.Response, error)
/*
- DcimVirtualDeviceContextsUpdate Method for DcimVirtualDeviceContextsUpdate
+ DcimVirtualDeviceContextsUpdate Method for DcimVirtualDeviceContextsUpdate
- Put a virtual device context object.
+ Put a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsUpdateRequest
*/
DcimVirtualDeviceContextsUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsUpdateRequest
@@ -5702,8 +5829,8 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
type DcimAPIService service
type ApiDcimCableTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableTerminationRequest *[]CableTerminationRequest
}
@@ -5721,22 +5848,22 @@ DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy
Delete a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest {
return ApiDcimCableTerminationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkDestroy")
@@ -5815,8 +5942,8 @@ func (a *DcimAPIService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableT
}
type ApiDcimCableTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableTerminationRequest *[]CableTerminationRequest
}
@@ -5834,24 +5961,25 @@ DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkParti
Patch a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest {
return ApiDcimCableTerminationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CableTermination
+//
+// @return []CableTermination
func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CableTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkPartialUpdate")
@@ -5939,8 +6067,8 @@ func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcim
}
type ApiDcimCableTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableTerminationRequest *[]CableTerminationRequest
}
@@ -5958,24 +6086,25 @@ DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate
Put a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest {
return ApiDcimCableTerminationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CableTermination
+//
+// @return []CableTermination
func (a *DcimAPIService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CableTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkUpdate")
@@ -6063,8 +6192,8 @@ func (a *DcimAPIService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTe
}
type ApiDcimCableTerminationsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableTerminationRequest *CableTerminationRequest
}
@@ -6082,24 +6211,25 @@ DcimCableTerminationsCreate Method for DcimCableTerminationsCreate
Post a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsCreateRequest
*/
func (a *DcimAPIService) DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest {
return ApiDcimCableTerminationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CableTermination
+//
+// @return CableTermination
func (a *DcimAPIService) DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CableTermination
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsCreate")
@@ -6187,9 +6317,9 @@ func (a *DcimAPIService) DcimCableTerminationsCreateExecute(r ApiDcimCableTermin
}
type ApiDcimCableTerminationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimCableTerminationsDestroyRequest) Execute() (*http.Response, error) {
@@ -6201,24 +6331,24 @@ DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy
Delete a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsDestroyRequest
*/
func (a *DcimAPIService) DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest {
return ApiDcimCableTerminationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsDestroy")
@@ -6293,47 +6423,47 @@ func (a *DcimAPIService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTermi
}
type ApiDcimCableTerminationsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cable *int32
- cableN *int32
- cableEnd *End
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- terminationId *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ cable *int32
+ cableN *int32
+ cableEnd *End
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ terminationId *[]int32
terminationIdEmpty *bool
- terminationIdGt *[]int32
- terminationIdGte *[]int32
- terminationIdLt *[]int32
- terminationIdLte *[]int32
- terminationIdN *[]int32
- terminationType *string
- terminationTypeN *string
- updatedByRequest *string
+ terminationIdGt *[]int32
+ terminationIdGte *[]int32
+ terminationIdLt *[]int32
+ terminationIdLte *[]int32
+ terminationIdN *[]int32
+ terminationType *string
+ terminationTypeN *string
+ updatedByRequest *string
}
func (r ApiDcimCableTerminationsListRequest) Cable(cable int32) ApiDcimCableTerminationsListRequest {
@@ -6544,24 +6674,25 @@ DcimCableTerminationsList Method for DcimCableTerminationsList
Get a list of cable termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCableTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCableTerminationsListRequest
*/
func (a *DcimAPIService) DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest {
return ApiDcimCableTerminationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCableTerminationList
+//
+// @return PaginatedCableTerminationList
func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCableTerminationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCableTerminationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsList")
@@ -6969,9 +7100,9 @@ func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat
}
type ApiDcimCableTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedCableTerminationRequest *PatchedCableTerminationRequest
}
@@ -6989,26 +7120,27 @@ DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate
Patch a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest {
return ApiDcimCableTerminationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CableTermination
+//
+// @return CableTermination
func (a *DcimAPIService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CableTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsPartialUpdate")
@@ -7094,9 +7226,9 @@ func (a *DcimAPIService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCabl
}
type ApiDcimCableTerminationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimCableTerminationsRetrieveRequest) Execute() (*CableTermination, *http.Response, error) {
@@ -7108,26 +7240,27 @@ DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve
Get a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsRetrieveRequest
*/
func (a *DcimAPIService) DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest {
return ApiDcimCableTerminationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CableTermination
+//
+// @return CableTermination
func (a *DcimAPIService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CableTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsRetrieve")
@@ -7211,9 +7344,9 @@ func (a *DcimAPIService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerm
}
type ApiDcimCableTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
cableTerminationRequest *CableTerminationRequest
}
@@ -7231,26 +7364,27 @@ DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate
Put a cable termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable termination.
- @return ApiDcimCableTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable termination.
+ @return ApiDcimCableTerminationsUpdateRequest
*/
func (a *DcimAPIService) DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest {
return ApiDcimCableTerminationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CableTermination
+//
+// @return CableTermination
func (a *DcimAPIService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CableTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CableTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsUpdate")
@@ -7339,8 +7473,8 @@ func (a *DcimAPIService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTermin
}
type ApiDcimCablesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableRequest *[]CableRequest
}
@@ -7358,22 +7492,22 @@ DcimCablesBulkDestroy Method for DcimCablesBulkDestroy
Delete a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest {
return ApiDcimCablesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkDestroy")
@@ -7452,8 +7586,8 @@ func (a *DcimAPIService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroy
}
type ApiDcimCablesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableRequest *[]CableRequest
}
@@ -7471,24 +7605,25 @@ DcimCablesBulkPartialUpdate Method for DcimCablesBulkPartialUpdate
Patch a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest {
return ApiDcimCablesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Cable
+//
+// @return []Cable
func (a *DcimAPIService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Cable
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkPartialUpdate")
@@ -7576,8 +7711,8 @@ func (a *DcimAPIService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkP
}
type ApiDcimCablesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
cableRequest *[]CableRequest
}
@@ -7595,24 +7730,25 @@ DcimCablesBulkUpdate Method for DcimCablesBulkUpdate
Put a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest {
return ApiDcimCablesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Cable
+//
+// @return []Cable
func (a *DcimAPIService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Cable
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkUpdate")
@@ -7700,8 +7836,8 @@ func (a *DcimAPIService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRe
}
type ApiDcimCablesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableCableRequest *WritableCableRequest
}
@@ -7719,24 +7855,25 @@ DcimCablesCreate Method for DcimCablesCreate
Post a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesCreateRequest
*/
func (a *DcimAPIService) DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest {
return ApiDcimCablesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Cable
+//
+// @return Cable
func (a *DcimAPIService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cable
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesCreate")
@@ -7821,9 +7958,9 @@ func (a *DcimAPIService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (
}
type ApiDcimCablesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimCablesDestroyRequest) Execute() (*http.Response, error) {
@@ -7835,24 +7972,24 @@ DcimCablesDestroy Method for DcimCablesDestroy
Delete a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesDestroyRequest
*/
func (a *DcimAPIService) DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest {
return ApiDcimCablesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesDestroy")
@@ -7927,133 +8064,135 @@ func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest)
}
type ApiDcimCablesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
circuitterminationId *[]int32
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- consoleportId *[]int32
- consoleserverportId *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]string
- deviceId *[]int32
- frontportId *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceId *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- length *[]float64
- lengthEmpty *bool
- lengthGt *[]float64
- lengthGte *[]float64
- lengthLt *[]float64
- lengthLte *[]float64
- lengthN *[]float64
- lengthUnit *DcimCablesListLengthUnitParameter
- limit *int32
- location *[]string
- locationId *[]int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- powerfeedId *[]int32
- poweroutletId *[]int32
- powerportId *[]int32
- q *string
- rack *[]string
- rackId *[]int32
- rearportId *[]int32
- site *[]string
- siteId *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- terminationAId *[]int32
- terminationAType *string
- terminationATypeN *string
- terminationBId *[]int32
- terminationBType *string
- terminationBTypeN *string
- type_ *[]*string
- typeEmpty *bool
- typeIc *[]*string
- typeIe *[]*string
- typeIew *[]*string
- typeIsw *[]*string
- typeN *[]*string
- typeNic *[]*string
- typeNie *[]*string
- typeNiew *[]*string
- typeNisw *[]*string
- unterminated *bool
- updatedByRequest *string
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ consoleportId *[]int32
+ consoleserverportId *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]string
+ deviceId *[]int32
+ frontportId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ length *[]float64
+ lengthEmpty *bool
+ lengthGt *[]float64
+ lengthGte *[]float64
+ lengthLt *[]float64
+ lengthLte *[]float64
+ lengthN *[]float64
+ lengthUnit *DcimCablesListLengthUnitParameter
+ limit *int32
+ location *[]string
+ locationId *[]int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ powerfeedId *[]int32
+ poweroutletId *[]int32
+ powerportId *[]int32
+ q *string
+ rack *[]string
+ rackId *[]int32
+ rearportId *[]int32
+ site *[]string
+ siteId *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ terminationAId *[]int32
+ terminationAType *string
+ terminationATypeN *string
+ terminationBId *[]int32
+ terminationBType *string
+ terminationBTypeN *string
+ type_ *[]*string
+ typeEmpty *bool
+ typeIc *[]*string
+ typeIe *[]*string
+ typeIew *[]*string
+ typeIsw *[]*string
+ typeN *[]*string
+ typeNic *[]*string
+ typeNie *[]*string
+ typeNiew *[]*string
+ typeNisw *[]*string
+ unterminated *bool
+ updatedByRequest *string
}
func (r ApiDcimCablesListRequest) CircuitterminationId(circuitterminationId []int32) ApiDcimCablesListRequest {
@@ -8551,6 +8690,16 @@ func (r ApiDcimCablesListRequest) TagN(tagN []string) ApiDcimCablesListRequest {
return r
}
+func (r ApiDcimCablesListRequest) TagId(tagId []int32) ApiDcimCablesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimCablesListRequest) TagIdN(tagIdN []int32) ApiDcimCablesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimCablesListRequest) Tenant(tenant []string) ApiDcimCablesListRequest {
r.tenant = &tenant
@@ -8700,24 +8849,25 @@ DcimCablesList Method for DcimCablesList
Get a list of cable objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimCablesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimCablesListRequest
*/
func (a *DcimAPIService) DcimCablesList(ctx context.Context) ApiDcimCablesListRequest {
return ApiDcimCablesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCableList
+//
+// @return PaginatedCableList
func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCableList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCableList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesList")
@@ -9705,6 +9855,28 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -10015,9 +10187,9 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag
}
type ApiDcimCablesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableCableRequest *PatchedWritableCableRequest
}
@@ -10035,26 +10207,27 @@ DcimCablesPartialUpdate Method for DcimCablesPartialUpdate
Patch a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest {
return ApiDcimCablesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cable
+//
+// @return Cable
func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cable
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesPartialUpdate")
@@ -10140,9 +10313,9 @@ func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUp
}
type ApiDcimCablesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimCablesRetrieveRequest) Execute() (*Cable, *http.Response, error) {
@@ -10154,26 +10327,27 @@ DcimCablesRetrieve Method for DcimCablesRetrieve
Get a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesRetrieveRequest
*/
func (a *DcimAPIService) DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest {
return ApiDcimCablesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cable
+//
+// @return Cable
func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cable
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesRetrieve")
@@ -10257,9 +10431,9 @@ func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveReques
}
type ApiDcimCablesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableCableRequest *WritableCableRequest
}
@@ -10277,26 +10451,27 @@ DcimCablesUpdate Method for DcimCablesUpdate
Put a cable object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cable.
- @return ApiDcimCablesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cable.
+ @return ApiDcimCablesUpdateRequest
*/
func (a *DcimAPIService) DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest {
return ApiDcimCablesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cable
+//
+// @return Cable
func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cable
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cable
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesUpdate")
@@ -10382,9 +10557,9 @@ func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (
}
type ApiDcimConnectedDeviceListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- peerDevice *string
+ ctx context.Context
+ ApiService DcimAPI
+ peerDevice *string
peerInterface *string
}
@@ -10414,24 +10589,25 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
* `peer_device`: The name of the peer device
* `peer_interface`: The name of the peer interface
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConnectedDeviceListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConnectedDeviceListRequest
*/
func (a *DcimAPIService) DcimConnectedDeviceList(ctx context.Context) ApiDcimConnectedDeviceListRequest {
return ApiDcimConnectedDeviceListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Device
+//
+// @return []Device
func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Device
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Device
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConnectedDeviceList")
@@ -10522,8 +10698,8 @@ func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDevice
}
type ApiDcimConsolePortTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortTemplateRequest *[]ConsolePortTemplateRequest
}
@@ -10541,22 +10717,22 @@ DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestr
Delete a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest {
return ApiDcimConsolePortTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkDestroy")
@@ -10635,8 +10811,8 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimCon
}
type ApiDcimConsolePortTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortTemplateRequest *[]ConsolePortTemplateRequest
}
@@ -10654,24 +10830,25 @@ DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBul
Patch a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest {
return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsolePortTemplate
+//
+// @return []ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsolePortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkPartialUpdate")
@@ -10759,8 +10936,8 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiD
}
type ApiDcimConsolePortTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortTemplateRequest *[]ConsolePortTemplateRequest
}
@@ -10778,24 +10955,25 @@ DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate
Put a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest {
return ApiDcimConsolePortTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsolePortTemplate
+//
+// @return []ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsolePortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkUpdate")
@@ -10883,8 +11061,8 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimCons
}
type ApiDcimConsolePortTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest
}
@@ -10902,24 +11080,25 @@ DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate
Post a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest {
return ApiDcimConsolePortTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConsolePortTemplate
+//
+// @return ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePortTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesCreate")
@@ -11007,9 +11186,9 @@ func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsoleP
}
type ApiDcimConsolePortTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsolePortTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -11021,24 +11200,24 @@ DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy
Delete a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest {
return ApiDcimConsolePortTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesDestroy")
@@ -11113,74 +11292,74 @@ func (a *DcimAPIService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsole
}
type ApiDcimConsolePortTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- type_ *DcimConsolePortTemplatesListTypeParameter
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ type_ *DcimConsolePortTemplatesListTypeParameter
+ updatedByRequest *string
}
func (r ApiDcimConsolePortTemplatesListRequest) Created(created []time.Time) ApiDcimConsolePortTemplatesListRequest {
@@ -11531,24 +11710,25 @@ DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList
Get a list of console port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortTemplatesListRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest {
return ApiDcimConsolePortTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConsolePortTemplateList
+//
+// @return PaginatedConsolePortTemplateList
func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConsolePortTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConsolePortTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesList")
@@ -12261,9 +12441,9 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor
}
type ApiDcimConsolePortTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableConsolePortTemplateRequest *PatchedWritableConsolePortTemplateRequest
}
@@ -12281,26 +12461,27 @@ DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartial
Patch a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest {
return ApiDcimConsolePortTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePortTemplate
+//
+// @return ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesPartialUpdate")
@@ -12386,9 +12567,9 @@ func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimC
}
type ApiDcimConsolePortTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsolePortTemplatesRetrieveRequest) Execute() (*ConsolePortTemplate, *http.Response, error) {
@@ -12400,26 +12581,27 @@ DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve
Get a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest {
return ApiDcimConsolePortTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePortTemplate
+//
+// @return ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePortTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesRetrieve")
@@ -12503,9 +12685,9 @@ func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsol
}
type ApiDcimConsolePortTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest
}
@@ -12523,26 +12705,27 @@ DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate
Put a console port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port template.
- @return ApiDcimConsolePortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port template.
+ @return ApiDcimConsolePortTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest {
return ApiDcimConsolePortTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePortTemplate
+//
+// @return ConsolePortTemplate
func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesUpdate")
@@ -12631,8 +12814,8 @@ func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsoleP
}
type ApiDcimConsolePortsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortRequest *[]ConsolePortRequest
}
@@ -12650,22 +12833,22 @@ DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy
Delete a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest {
return ApiDcimConsolePortsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkDestroy")
@@ -12744,8 +12927,8 @@ func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePort
}
type ApiDcimConsolePortsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortRequest *[]ConsolePortRequest
}
@@ -12763,24 +12946,25 @@ DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate
Patch a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest {
return ApiDcimConsolePortsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsolePort
+//
+// @return []ConsolePort
func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsolePort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkPartialUpdate")
@@ -12868,8 +13052,8 @@ func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConso
}
type ApiDcimConsolePortsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consolePortRequest *[]ConsolePortRequest
}
@@ -12887,24 +13071,25 @@ DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate
Put a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest {
return ApiDcimConsolePortsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsolePort
+//
+// @return []ConsolePort
func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsolePort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkUpdate")
@@ -12992,8 +13177,8 @@ func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePorts
}
type ApiDcimConsolePortsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableConsolePortRequest *WritableConsolePortRequest
}
@@ -13011,24 +13196,25 @@ DcimConsolePortsCreate Method for DcimConsolePortsCreate
Post a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsCreateRequest
*/
func (a *DcimAPIService) DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest {
return ApiDcimConsolePortsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConsolePort
+//
+// @return ConsolePort
func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePort
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsCreate")
@@ -13116,9 +13302,9 @@ func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCrea
}
type ApiDcimConsolePortsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsolePortsDestroyRequest) Execute() (*http.Response, error) {
@@ -13130,24 +13316,24 @@ DcimConsolePortsDestroy Method for DcimConsolePortsDestroy
Delete a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsDestroyRequest
*/
func (a *DcimAPIService) DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest {
return ApiDcimConsolePortsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsDestroy")
@@ -13222,138 +13408,140 @@ func (a *DcimAPIService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDes
}
type ApiDcimConsolePortsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- speed *DcimConsolePortsListSpeedParameter
- tag *[]string
- tagN *[]string
- type_ *[]*string
- typeEmpty *bool
- typeIc *[]*string
- typeIe *[]*string
- typeIew *[]*string
- typeIsw *[]*string
- typeN *[]*string
- typeNic *[]*string
- typeNie *[]*string
- typeNiew *[]*string
- typeNisw *[]*string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ speed *DcimConsolePortsListSpeedParameter
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]*string
+ typeEmpty *bool
+ typeIc *[]*string
+ typeIe *[]*string
+ typeIew *[]*string
+ typeIsw *[]*string
+ typeN *[]*string
+ typeNic *[]*string
+ typeNie *[]*string
+ typeNiew *[]*string
+ typeNisw *[]*string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
virtualChassisIdN *[]int32
}
@@ -13966,6 +14154,16 @@ func (r ApiDcimConsolePortsListRequest) TagN(tagN []string) ApiDcimConsolePortsL
return r
}
+func (r ApiDcimConsolePortsListRequest) TagId(tagId []int32) ApiDcimConsolePortsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimConsolePortsListRequest) TagIdN(tagIdN []int32) ApiDcimConsolePortsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Physical port type
func (r ApiDcimConsolePortsListRequest) Type_(type_ []*string) ApiDcimConsolePortsListRequest {
r.type_ = &type_
@@ -14069,24 +14267,25 @@ DcimConsolePortsList Method for DcimConsolePortsList
Get a list of console port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsolePortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsolePortsListRequest
*/
func (a *DcimAPIService) DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest {
return ApiDcimConsolePortsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConsolePortList
+//
+// @return PaginatedConsolePortList
func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConsolePortList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConsolePortList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsList")
@@ -15229,6 +15428,28 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15458,9 +15679,9 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
}
type ApiDcimConsolePortsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableConsolePortRequest *PatchedWritableConsolePortRequest
}
@@ -15478,26 +15699,27 @@ DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate
Patch a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest {
return ApiDcimConsolePortsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePort
+//
+// @return ConsolePort
func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsPartialUpdate")
@@ -15583,9 +15805,9 @@ func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePo
}
type ApiDcimConsolePortsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsolePortsRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) {
@@ -15597,26 +15819,27 @@ DcimConsolePortsRetrieve Method for DcimConsolePortsRetrieve
Get a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsRetrieveRequest
*/
func (a *DcimAPIService) DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest {
return ApiDcimConsolePortsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePort
+//
+// @return ConsolePort
func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsRetrieve")
@@ -15700,9 +15923,9 @@ func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRe
}
type ApiDcimConsolePortsTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsolePortsTraceRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) {
@@ -15714,26 +15937,27 @@ DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest {
return ApiDcimConsolePortsTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePort
+//
+// @return ConsolePort
func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsTraceRetrieve")
@@ -15817,9 +16041,9 @@ func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePo
}
type ApiDcimConsolePortsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableConsolePortRequest *WritableConsolePortRequest
}
@@ -15837,26 +16061,27 @@ DcimConsolePortsUpdate Method for DcimConsolePortsUpdate
Put a console port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console port.
- @return ApiDcimConsolePortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console port.
+ @return ApiDcimConsolePortsUpdateRequest
*/
func (a *DcimAPIService) DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest {
return ApiDcimConsolePortsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsolePort
+//
+// @return ConsolePort
func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsolePort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsolePort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsUpdate")
@@ -15945,8 +16170,8 @@ func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpda
}
type ApiDcimConsoleServerPortTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest
}
@@ -15964,22 +16189,22 @@ DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTempla
Delete a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest {
return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkDestroy")
@@ -16058,8 +16283,8 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiD
}
type ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest
}
@@ -16077,24 +16302,25 @@ DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPort
Patch a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest {
return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsoleServerPortTemplate
+//
+// @return []ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkPartialUpdate")
@@ -16182,8 +16408,8 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(
}
type ApiDcimConsoleServerPortTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest
}
@@ -16201,24 +16427,25 @@ DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplat
Put a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest {
return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsoleServerPortTemplate
+//
+// @return []ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkUpdate")
@@ -16306,8 +16533,8 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDc
}
type ApiDcimConsoleServerPortTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest
}
@@ -16325,24 +16552,25 @@ DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCr
Post a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest {
return ApiDcimConsoleServerPortTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConsoleServerPortTemplate
+//
+// @return ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesCreate")
@@ -16430,9 +16658,9 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimCo
}
type ApiDcimConsoleServerPortTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsoleServerPortTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -16444,24 +16672,24 @@ DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesD
Delete a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest {
return ApiDcimConsoleServerPortTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesDestroy")
@@ -16536,74 +16764,74 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimC
}
type ApiDcimConsoleServerPortTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- type_ *DcimConsolePortTemplatesListTypeParameter
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ type_ *DcimConsolePortTemplatesListTypeParameter
+ updatedByRequest *string
}
func (r ApiDcimConsoleServerPortTemplatesListRequest) Created(created []time.Time) ApiDcimConsoleServerPortTemplatesListRequest {
@@ -16954,24 +17182,25 @@ DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList
Get a list of console server port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortTemplatesListRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest {
return ApiDcimConsoleServerPortTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConsoleServerPortTemplateList
+//
+// @return PaginatedConsoleServerPortTemplateList
func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConsoleServerPortTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConsoleServerPortTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesList")
@@ -17684,9 +17913,9 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons
}
type ApiDcimConsoleServerPortTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableConsoleServerPortTemplateRequest *PatchedWritableConsoleServerPortTemplateRequest
}
@@ -17704,26 +17933,27 @@ DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemp
Patch a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest {
return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPortTemplate
+//
+// @return ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesPartialUpdate")
@@ -17809,9 +18039,9 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r Ap
}
type ApiDcimConsoleServerPortTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsoleServerPortTemplatesRetrieveRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) {
@@ -17823,26 +18053,27 @@ DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplates
Get a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest {
return ApiDcimConsoleServerPortTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPortTemplate
+//
+// @return ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesRetrieve")
@@ -17926,9 +18157,9 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcim
}
type ApiDcimConsoleServerPortTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest
}
@@ -17946,26 +18177,27 @@ DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUp
Put a console server port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port template.
- @return ApiDcimConsoleServerPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port template.
+ @return ApiDcimConsoleServerPortTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest {
return ApiDcimConsoleServerPortTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPortTemplate
+//
+// @return ConsoleServerPortTemplate
func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesUpdate")
@@ -18054,8 +18286,8 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimCo
}
type ApiDcimConsoleServerPortsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortRequest *[]ConsoleServerPortRequest
}
@@ -18073,22 +18305,22 @@ DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy
Delete a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest {
return ApiDcimConsoleServerPortsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkDestroy")
@@ -18167,8 +18399,8 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConso
}
type ApiDcimConsoleServerPortsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortRequest *[]ConsoleServerPortRequest
}
@@ -18186,24 +18418,25 @@ DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPar
Patch a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest {
return ApiDcimConsoleServerPortsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsoleServerPort
+//
+// @return []ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsoleServerPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkPartialUpdate")
@@ -18291,8 +18524,8 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimConsoleServerPortsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
consoleServerPortRequest *[]ConsoleServerPortRequest
}
@@ -18310,24 +18543,25 @@ DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate
Put a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest {
return ApiDcimConsoleServerPortsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConsoleServerPort
+//
+// @return []ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConsoleServerPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkUpdate")
@@ -18415,8 +18649,8 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsol
}
type ApiDcimConsoleServerPortsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableConsoleServerPortRequest *WritableConsoleServerPortRequest
}
@@ -18434,24 +18668,25 @@ DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate
Post a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsCreateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest {
return ApiDcimConsoleServerPortsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConsoleServerPort
+//
+// @return ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPort
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsCreate")
@@ -18539,9 +18774,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleSer
}
type ApiDcimConsoleServerPortsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsoleServerPortsDestroyRequest) Execute() (*http.Response, error) {
@@ -18553,24 +18788,24 @@ DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy
Delete a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsDestroyRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest {
return ApiDcimConsoleServerPortsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsDestroy")
@@ -18645,138 +18880,140 @@ func (a *DcimAPIService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleSe
}
type ApiDcimConsoleServerPortsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- speed *DcimConsolePortsListSpeedParameter
- tag *[]string
- tagN *[]string
- type_ *[]*string
- typeEmpty *bool
- typeIc *[]*string
- typeIe *[]*string
- typeIew *[]*string
- typeIsw *[]*string
- typeN *[]*string
- typeNic *[]*string
- typeNie *[]*string
- typeNiew *[]*string
- typeNisw *[]*string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ speed *DcimConsolePortsListSpeedParameter
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]*string
+ typeEmpty *bool
+ typeIc *[]*string
+ typeIe *[]*string
+ typeIew *[]*string
+ typeIsw *[]*string
+ typeN *[]*string
+ typeNic *[]*string
+ typeNie *[]*string
+ typeNiew *[]*string
+ typeNisw *[]*string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
virtualChassisIdN *[]int32
}
@@ -19389,6 +19626,16 @@ func (r ApiDcimConsoleServerPortsListRequest) TagN(tagN []string) ApiDcimConsole
return r
}
+func (r ApiDcimConsoleServerPortsListRequest) TagId(tagId []int32) ApiDcimConsoleServerPortsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimConsoleServerPortsListRequest) TagIdN(tagIdN []int32) ApiDcimConsoleServerPortsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Physical port type
func (r ApiDcimConsoleServerPortsListRequest) Type_(type_ []*string) ApiDcimConsoleServerPortsListRequest {
r.type_ = &type_
@@ -19492,24 +19739,25 @@ DcimConsoleServerPortsList Method for DcimConsoleServerPortsList
Get a list of console server port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimConsoleServerPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimConsoleServerPortsListRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest {
return ApiDcimConsoleServerPortsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConsoleServerPortList
+//
+// @return PaginatedConsoleServerPortList
func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConsoleServerPortList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConsoleServerPortList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsList")
@@ -20652,6 +20900,28 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -20881,9 +21151,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
}
type ApiDcimConsoleServerPortsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableConsoleServerPortRequest *PatchedWritableConsoleServerPortRequest
}
@@ -20901,26 +21171,27 @@ DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpda
Patch a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest {
return ApiDcimConsoleServerPortsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPort
+//
+// @return ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsPartialUpdate")
@@ -21006,9 +21277,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimCon
}
type ApiDcimConsoleServerPortsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsoleServerPortsRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) {
@@ -21020,26 +21291,27 @@ DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve
Get a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsRetrieveRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest {
return ApiDcimConsoleServerPortsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPort
+//
+// @return ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsRetrieve")
@@ -21123,9 +21395,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleS
}
type ApiDcimConsoleServerPortsTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimConsoleServerPortsTraceRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) {
@@ -21137,26 +21409,27 @@ DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrie
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest {
return ApiDcimConsoleServerPortsTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPort
+//
+// @return ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsTraceRetrieve")
@@ -21240,9 +21513,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimCon
}
type ApiDcimConsoleServerPortsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableConsoleServerPortRequest *WritableConsoleServerPortRequest
}
@@ -21260,26 +21533,27 @@ DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate
Put a console server port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this console server port.
- @return ApiDcimConsoleServerPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this console server port.
+ @return ApiDcimConsoleServerPortsUpdateRequest
*/
func (a *DcimAPIService) DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest {
return ApiDcimConsoleServerPortsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConsoleServerPort
+//
+// @return ConsoleServerPort
func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConsoleServerPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConsoleServerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsUpdate")
@@ -21368,8 +21642,8 @@ func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleSer
}
type ApiDcimDeviceBayTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayTemplateRequest *[]DeviceBayTemplateRequest
}
@@ -21387,22 +21661,22 @@ DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy
Delete a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest {
return ApiDcimDeviceBayTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkDestroy")
@@ -21481,8 +21755,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDevic
}
type ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayTemplateRequest *[]DeviceBayTemplateRequest
}
@@ -21500,24 +21774,25 @@ DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPar
Patch a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest {
return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceBayTemplate
+//
+// @return []DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceBayTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkPartialUpdate")
@@ -21605,8 +21880,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimDeviceBayTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayTemplateRequest *[]DeviceBayTemplateRequest
}
@@ -21624,24 +21899,25 @@ DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate
Put a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest {
return ApiDcimDeviceBayTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceBayTemplate
+//
+// @return []DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceBayTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkUpdate")
@@ -21729,8 +22005,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDevice
}
type ApiDcimDeviceBayTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayTemplateRequest *DeviceBayTemplateRequest
}
@@ -21748,24 +22024,25 @@ DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate
Post a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest {
return ApiDcimDeviceBayTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DeviceBayTemplate
+//
+// @return DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBayTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesCreate")
@@ -21853,9 +22130,9 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT
}
type ApiDcimDeviceBayTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceBayTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -21867,24 +22144,24 @@ DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy
Delete a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest {
return ApiDcimDeviceBayTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesDestroy")
@@ -21959,71 +22236,71 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBay
}
type ApiDcimDeviceBayTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ updatedByRequest *string
}
func (r ApiDcimDeviceBayTemplatesListRequest) Created(created []time.Time) ApiDcimDeviceBayTemplatesListRequest {
@@ -22356,24 +22633,25 @@ DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList
Get a list of device bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBayTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBayTemplatesListRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest {
return ApiDcimDeviceBayTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDeviceBayTemplateList
+//
+// @return PaginatedDeviceBayTemplateList
func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDeviceBayTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDeviceBayTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesList")
@@ -23061,9 +23339,9 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem
}
type ApiDcimDeviceBayTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedDeviceBayTemplateRequest *PatchedDeviceBayTemplateRequest
}
@@ -23081,26 +23359,27 @@ DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpda
Patch a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest {
return ApiDcimDeviceBayTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBayTemplate
+//
+// @return DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBayTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesPartialUpdate")
@@ -23186,9 +23465,9 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDev
}
type ApiDcimDeviceBayTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceBayTemplatesRetrieveRequest) Execute() (*DeviceBayTemplate, *http.Response, error) {
@@ -23200,26 +23479,27 @@ DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve
Get a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest {
return ApiDcimDeviceBayTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBayTemplate
+//
+// @return DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBayTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesRetrieve")
@@ -23303,9 +23583,9 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBa
}
type ApiDcimDeviceBayTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
deviceBayTemplateRequest *DeviceBayTemplateRequest
}
@@ -23323,26 +23603,27 @@ DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate
Put a device bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay template.
- @return ApiDcimDeviceBayTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay template.
+ @return ApiDcimDeviceBayTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest {
return ApiDcimDeviceBayTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBayTemplate
+//
+// @return DeviceBayTemplate
func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBayTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesUpdate")
@@ -23431,8 +23712,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT
}
type ApiDcimDeviceBaysBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayRequest *[]DeviceBayRequest
}
@@ -23450,22 +23731,22 @@ DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy
Delete a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest {
return ApiDcimDeviceBaysBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkDestroy")
@@ -23544,8 +23825,8 @@ func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBul
}
type ApiDcimDeviceBaysBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayRequest *[]DeviceBayRequest
}
@@ -23563,24 +23844,25 @@ DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate
Patch a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest {
return ApiDcimDeviceBaysBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceBay
+//
+// @return []DeviceBay
func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceBay
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkPartialUpdate")
@@ -23668,8 +23950,8 @@ func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceB
}
type ApiDcimDeviceBaysBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayRequest *[]DeviceBayRequest
}
@@ -23687,24 +23969,25 @@ DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate
Put a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysBulkUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest {
return ApiDcimDeviceBaysBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceBay
+//
+// @return []DeviceBay
func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceBay
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkUpdate")
@@ -23792,8 +24075,8 @@ func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulk
}
type ApiDcimDeviceBaysCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceBayRequest *DeviceBayRequest
}
@@ -23811,24 +24094,25 @@ DcimDeviceBaysCreate Method for DcimDeviceBaysCreate
Post a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysCreateRequest
*/
func (a *DcimAPIService) DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest {
return ApiDcimDeviceBaysCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DeviceBay
+//
+// @return DeviceBay
func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBay
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysCreate")
@@ -23916,9 +24200,9 @@ func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe
}
type ApiDcimDeviceBaysDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceBaysDestroyRequest) Execute() (*http.Response, error) {
@@ -23930,24 +24214,24 @@ DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy
Delete a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest {
return ApiDcimDeviceBaysDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysDestroy")
@@ -24022,122 +24306,124 @@ func (a *DcimAPIService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroy
}
type ApiDcimDeviceBaysListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
- deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- installedDevice *[]*string
- installedDeviceN *[]*string
- installedDeviceId *[]*int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
+ deviceStatusEmpty *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ installedDevice *[]*string
+ installedDeviceN *[]*string
+ installedDeviceId *[]*int32
installedDeviceIdN *[]*int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
}
func (r ApiDcimDeviceBaysListRequest) Created(created []time.Time) ApiDcimDeviceBaysListRequest {
@@ -24717,6 +25003,16 @@ func (r ApiDcimDeviceBaysListRequest) TagN(tagN []string) ApiDcimDeviceBaysListR
return r
}
+func (r ApiDcimDeviceBaysListRequest) TagId(tagId []int32) ApiDcimDeviceBaysListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimDeviceBaysListRequest) TagIdN(tagIdN []int32) ApiDcimDeviceBaysListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimDeviceBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceBaysListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -24755,24 +25051,25 @@ DcimDeviceBaysList Method for DcimDeviceBaysList
Get a list of device bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceBaysListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceBaysListRequest
*/
func (a *DcimAPIService) DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest {
return ApiDcimDeviceBaysListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDeviceBayList
+//
+// @return PaginatedDeviceBayList
func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDeviceBayList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDeviceBayList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysList")
@@ -25897,6 +26194,28 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -26013,9 +26332,9 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques
}
type ApiDcimDeviceBaysPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedDeviceBayRequest *PatchedDeviceBayRequest
}
@@ -26033,26 +26352,27 @@ DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate
Patch a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest {
return ApiDcimDeviceBaysPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBay
+//
+// @return DeviceBay
func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBay
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysPartialUpdate")
@@ -26138,9 +26458,9 @@ func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysP
}
type ApiDcimDeviceBaysRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceBaysRetrieveRequest) Execute() (*DeviceBay, *http.Response, error) {
@@ -26152,26 +26472,27 @@ DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve
Get a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysRetrieveRequest
*/
func (a *DcimAPIService) DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest {
return ApiDcimDeviceBaysRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBay
+//
+// @return DeviceBay
func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBay
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysRetrieve")
@@ -26255,9 +26576,9 @@ func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrie
}
type ApiDcimDeviceBaysUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
deviceBayRequest *DeviceBayRequest
}
@@ -26275,26 +26596,27 @@ DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate
Put a device bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device bay.
- @return ApiDcimDeviceBaysUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device bay.
+ @return ApiDcimDeviceBaysUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest {
return ApiDcimDeviceBaysUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceBay
+//
+// @return DeviceBay
func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceBay
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysUpdate")
@@ -26383,8 +26705,8 @@ func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe
}
type ApiDcimDeviceRolesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceRoleRequest *[]DeviceRoleRequest
}
@@ -26402,22 +26724,22 @@ DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy
Delete a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest {
return ApiDcimDeviceRolesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkDestroy")
@@ -26496,8 +26818,8 @@ func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB
}
type ApiDcimDeviceRolesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceRoleRequest *[]DeviceRoleRequest
}
@@ -26515,24 +26837,25 @@ DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate
Patch a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest {
return ApiDcimDeviceRolesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceRole
+//
+// @return []DeviceRole
func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkPartialUpdate")
@@ -26620,8 +26943,8 @@ func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDevice
}
type ApiDcimDeviceRolesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceRoleRequest *[]DeviceRoleRequest
}
@@ -26639,24 +26962,25 @@ DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate
Put a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest {
return ApiDcimDeviceRolesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceRole
+//
+// @return []DeviceRole
func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkUpdate")
@@ -26744,13 +27068,13 @@ func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu
}
type ApiDcimDeviceRolesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- deviceRoleRequest *DeviceRoleRequest
+ ctx context.Context
+ ApiService DcimAPI
+ writableDeviceRoleRequest *WritableDeviceRoleRequest
}
-func (r ApiDcimDeviceRolesCreateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesCreateRequest {
- r.deviceRoleRequest = &deviceRoleRequest
+func (r ApiDcimDeviceRolesCreateRequest) WritableDeviceRoleRequest(writableDeviceRoleRequest WritableDeviceRoleRequest) ApiDcimDeviceRolesCreateRequest {
+ r.writableDeviceRoleRequest = &writableDeviceRoleRequest
return r
}
@@ -26763,24 +27087,25 @@ DcimDeviceRolesCreate Method for DcimDeviceRolesCreate
Post a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesCreateRequest
*/
func (a *DcimAPIService) DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest {
return ApiDcimDeviceRolesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DeviceRole
+//
+// @return DeviceRole
func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceRole
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesCreate")
@@ -26793,8 +27118,8 @@ func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.deviceRoleRequest == nil {
- return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified")
+ if r.writableDeviceRoleRequest == nil {
+ return localVarReturnValue, nil, reportError("writableDeviceRoleRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -26815,7 +27140,7 @@ func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.deviceRoleRequest
+ localVarPostBody = r.writableDeviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -26868,9 +27193,9 @@ func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate
}
type ApiDcimDeviceRolesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceRolesDestroyRequest) Execute() (*http.Response, error) {
@@ -26882,24 +27207,24 @@ DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy
Delete a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest {
return ApiDcimDeviceRolesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesDestroy")
@@ -26974,85 +27299,115 @@ func (a *DcimAPIService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestr
}
type ApiDcimDeviceRolesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- configTemplateId *[]*int32
+ ctx context.Context
+ ApiService DcimAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ configTemplateId *[]*int32
configTemplateIdN *[]*int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- vmRole *bool
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ vmRole *bool
+}
+
+func (r ApiDcimDeviceRolesListRequest) Ancestor(ancestor []string) ApiDcimDeviceRolesListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+func (r ApiDcimDeviceRolesListRequest) AncestorN(ancestorN []string) ApiDcimDeviceRolesListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+func (r ApiDcimDeviceRolesListRequest) AncestorId(ancestorId []string) ApiDcimDeviceRolesListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+func (r ApiDcimDeviceRolesListRequest) AncestorIdN(ancestorIdN []string) ApiDcimDeviceRolesListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
}
func (r ApiDcimDeviceRolesListRequest) Color(color []string) ApiDcimDeviceRolesListRequest {
@@ -27365,6 +27720,30 @@ func (r ApiDcimDeviceRolesListRequest) Ordering(ordering string) ApiDcimDeviceRo
return r
}
+// Parent device role (slug)
+func (r ApiDcimDeviceRolesListRequest) Parent(parent []string) ApiDcimDeviceRolesListRequest {
+ r.parent = &parent
+ return r
+}
+
+// Parent device role (slug)
+func (r ApiDcimDeviceRolesListRequest) ParentN(parentN []string) ApiDcimDeviceRolesListRequest {
+ r.parentN = &parentN
+ return r
+}
+
+// Parent device role (ID)
+func (r ApiDcimDeviceRolesListRequest) ParentId(parentId []*int32) ApiDcimDeviceRolesListRequest {
+ r.parentId = &parentId
+ return r
+}
+
+// Parent device role (ID)
+func (r ApiDcimDeviceRolesListRequest) ParentIdN(parentIdN []*int32) ApiDcimDeviceRolesListRequest {
+ r.parentIdN = &parentIdN
+ return r
+}
+
// Search
func (r ApiDcimDeviceRolesListRequest) Q(q string) ApiDcimDeviceRolesListRequest {
r.q = &q
@@ -27436,6 +27815,16 @@ func (r ApiDcimDeviceRolesListRequest) TagN(tagN []string) ApiDcimDeviceRolesLis
return r
}
+func (r ApiDcimDeviceRolesListRequest) TagId(tagId []int32) ApiDcimDeviceRolesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimDeviceRolesListRequest) TagIdN(tagIdN []int32) ApiDcimDeviceRolesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimDeviceRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceRolesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -27455,24 +27844,25 @@ DcimDeviceRolesList Method for DcimDeviceRolesList
Get a list of device role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceRolesListRequest
*/
func (a *DcimAPIService) DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest {
return ApiDcimDeviceRolesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDeviceRoleList
+//
+// @return PaginatedDeviceRoleList
func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDeviceRoleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDeviceRoleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesList")
@@ -27486,6 +27876,50 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.ancestor != nil {
+ t := *r.ancestor
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi")
+ }
+ }
+ if r.ancestorN != nil {
+ t := *r.ancestorN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi")
+ }
+ }
+ if r.ancestorId != nil {
+ t := *r.ancestorId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi")
+ }
+ }
+ if r.ancestorIdN != nil {
+ t := *r.ancestorIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi")
+ }
+ }
if r.color != nil {
t := *r.color
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -28085,6 +28519,50 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
}
+ if r.parent != nil {
+ t := *r.parent
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi")
+ }
+ }
+ if r.parentN != nil {
+ t := *r.parentN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi")
+ }
+ }
+ if r.parentId != nil {
+ t := *r.parentId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi")
+ }
+ }
+ if r.parentIdN != nil {
+ t := *r.parentIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
}
@@ -28223,6 +28701,28 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -28298,14 +28798,14 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ
}
type ApiDcimDeviceRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
- patchedDeviceRoleRequest *PatchedDeviceRoleRequest
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ patchedWritableDeviceRoleRequest *PatchedWritableDeviceRoleRequest
}
-func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedDeviceRoleRequest(patchedDeviceRoleRequest PatchedDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest {
- r.patchedDeviceRoleRequest = &patchedDeviceRoleRequest
+func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest PatchedWritableDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest {
+ r.patchedWritableDeviceRoleRequest = &patchedWritableDeviceRoleRequest
return r
}
@@ -28318,26 +28818,27 @@ DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate
Patch a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest {
return ApiDcimDeviceRolesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceRole
+//
+// @return DeviceRole
func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesPartialUpdate")
@@ -28370,7 +28871,7 @@ func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedDeviceRoleRequest
+ localVarPostBody = r.patchedWritableDeviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -28423,9 +28924,9 @@ func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole
}
type ApiDcimDeviceRolesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceRolesRetrieveRequest) Execute() (*DeviceRole, *http.Response, error) {
@@ -28437,26 +28938,27 @@ DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve
Get a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesRetrieveRequest
*/
func (a *DcimAPIService) DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest {
return ApiDcimDeviceRolesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceRole
+//
+// @return DeviceRole
func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceRole
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesRetrieve")
@@ -28540,14 +29042,14 @@ func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetr
}
type ApiDcimDeviceRolesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
- deviceRoleRequest *DeviceRoleRequest
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ writableDeviceRoleRequest *WritableDeviceRoleRequest
}
-func (r ApiDcimDeviceRolesUpdateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest {
- r.deviceRoleRequest = &deviceRoleRequest
+func (r ApiDcimDeviceRolesUpdateRequest) WritableDeviceRoleRequest(writableDeviceRoleRequest WritableDeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest {
+ r.writableDeviceRoleRequest = &writableDeviceRoleRequest
return r
}
@@ -28560,26 +29062,27 @@ DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate
Put a device role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device role.
- @return ApiDcimDeviceRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device role.
+ @return ApiDcimDeviceRolesUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest {
return ApiDcimDeviceRolesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceRole
+//
+// @return DeviceRole
func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesUpdate")
@@ -28593,8 +29096,8 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.deviceRoleRequest == nil {
- return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified")
+ if r.writableDeviceRoleRequest == nil {
+ return localVarReturnValue, nil, reportError("writableDeviceRoleRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -28615,7 +29118,7 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.deviceRoleRequest
+ localVarPostBody = r.writableDeviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -28668,8 +29171,8 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate
}
type ApiDcimDeviceTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceTypeRequest *[]DeviceTypeRequest
}
@@ -28687,22 +29190,22 @@ DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy
Delete a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest {
return ApiDcimDeviceTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkDestroy")
@@ -28781,8 +29284,8 @@ func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB
}
type ApiDcimDeviceTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceTypeRequest *[]DeviceTypeRequest
}
@@ -28800,24 +29303,25 @@ DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate
Patch a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest {
return ApiDcimDeviceTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceType
+//
+// @return []DeviceType
func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkPartialUpdate")
@@ -28905,8 +29409,8 @@ func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDevice
}
type ApiDcimDeviceTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceTypeRequest *[]DeviceTypeRequest
}
@@ -28924,24 +29428,25 @@ DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate
Put a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest {
return ApiDcimDeviceTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceType
+//
+// @return []DeviceType
func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkUpdate")
@@ -29029,8 +29534,8 @@ func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBu
}
type ApiDcimDeviceTypesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableDeviceTypeRequest *WritableDeviceTypeRequest
}
@@ -29048,24 +29553,25 @@ DcimDeviceTypesCreate Method for DcimDeviceTypesCreate
Post a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesCreateRequest
*/
func (a *DcimAPIService) DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest {
return ApiDcimDeviceTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DeviceType
+//
+// @return DeviceType
func (a *DcimAPIService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesCreate")
@@ -29153,9 +29659,9 @@ func (a *DcimAPIService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreate
}
type ApiDcimDeviceTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -29167,24 +29673,24 @@ DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy
Delete a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesDestroyRequest
*/
func (a *DcimAPIService) DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest {
return ApiDcimDeviceTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesDestroy")
@@ -29259,190 +29765,192 @@ func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestr
}
type ApiDcimDeviceTypesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- airflow *DcimDeviceTypesListAirflowParameter
- consolePortTemplateCount *[]int32
- consolePortTemplateCountEmpty *bool
- consolePortTemplateCountGt *[]int32
- consolePortTemplateCountGte *[]int32
- consolePortTemplateCountLt *[]int32
- consolePortTemplateCountLte *[]int32
- consolePortTemplateCountN *[]int32
- consolePorts *bool
- consoleServerPortTemplateCount *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ airflow *DcimDeviceTypesListAirflowParameter
+ consolePortTemplateCount *[]int32
+ consolePortTemplateCountEmpty *bool
+ consolePortTemplateCountGt *[]int32
+ consolePortTemplateCountGte *[]int32
+ consolePortTemplateCountLt *[]int32
+ consolePortTemplateCountLte *[]int32
+ consolePortTemplateCountN *[]int32
+ consolePorts *bool
+ consoleServerPortTemplateCount *[]int32
consoleServerPortTemplateCountEmpty *bool
- consoleServerPortTemplateCountGt *[]int32
- consoleServerPortTemplateCountGte *[]int32
- consoleServerPortTemplateCountLt *[]int32
- consoleServerPortTemplateCountLte *[]int32
- consoleServerPortTemplateCountN *[]int32
- consoleServerPorts *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- defaultPlatform *[]string
- defaultPlatformN *[]string
- defaultPlatformId *[]*int32
- defaultPlatformIdN *[]*int32
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceBayTemplateCount *[]int32
- deviceBayTemplateCountEmpty *bool
- deviceBayTemplateCountGt *[]int32
- deviceBayTemplateCountGte *[]int32
- deviceBayTemplateCountLt *[]int32
- deviceBayTemplateCountLte *[]int32
- deviceBayTemplateCountN *[]int32
- deviceBays *bool
- excludeFromUtilization *bool
- frontPortTemplateCount *[]int32
- frontPortTemplateCountEmpty *bool
- frontPortTemplateCountGt *[]int32
- frontPortTemplateCountGte *[]int32
- frontPortTemplateCountLt *[]int32
- frontPortTemplateCountLte *[]int32
- frontPortTemplateCountN *[]int32
- hasFrontImage *bool
- hasRearImage *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceTemplateCount *[]int32
- interfaceTemplateCountEmpty *bool
- interfaceTemplateCountGt *[]int32
- interfaceTemplateCountGte *[]int32
- interfaceTemplateCountLt *[]int32
- interfaceTemplateCountLte *[]int32
- interfaceTemplateCountN *[]int32
- interfaces *bool
- inventoryItemTemplateCount *[]int32
- inventoryItemTemplateCountEmpty *bool
- inventoryItemTemplateCountGt *[]int32
- inventoryItemTemplateCountGte *[]int32
- inventoryItemTemplateCountLt *[]int32
- inventoryItemTemplateCountLte *[]int32
- inventoryItemTemplateCountN *[]int32
- inventoryItems *bool
- isFullDepth *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelEmpty *bool
- modelIc *[]string
- modelIe *[]string
- modelIew *[]string
- modelIsw *[]string
- modelN *[]string
- modelNic *[]string
- modelNie *[]string
- modelNiew *[]string
- modelNisw *[]string
- modifiedByRequest *string
- moduleBayTemplateCount *[]int32
- moduleBayTemplateCountEmpty *bool
- moduleBayTemplateCountGt *[]int32
- moduleBayTemplateCountGte *[]int32
- moduleBayTemplateCountLt *[]int32
- moduleBayTemplateCountLte *[]int32
- moduleBayTemplateCountN *[]int32
- moduleBays *bool
- offset *int32
- ordering *string
- partNumber *[]string
- partNumberEmpty *bool
- partNumberIc *[]string
- partNumberIe *[]string
- partNumberIew *[]string
- partNumberIsw *[]string
- partNumberN *[]string
- partNumberNic *[]string
- partNumberNie *[]string
- partNumberNiew *[]string
- partNumberNisw *[]string
- passThroughPorts *bool
- powerOutletTemplateCount *[]int32
- powerOutletTemplateCountEmpty *bool
- powerOutletTemplateCountGt *[]int32
- powerOutletTemplateCountGte *[]int32
- powerOutletTemplateCountLt *[]int32
- powerOutletTemplateCountLte *[]int32
- powerOutletTemplateCountN *[]int32
- powerOutlets *bool
- powerPortTemplateCount *[]int32
- powerPortTemplateCountEmpty *bool
- powerPortTemplateCountGt *[]int32
- powerPortTemplateCountGte *[]int32
- powerPortTemplateCountLt *[]int32
- powerPortTemplateCountLte *[]int32
- powerPortTemplateCountN *[]int32
- powerPorts *bool
- q *string
- rearPortTemplateCount *[]int32
- rearPortTemplateCountEmpty *bool
- rearPortTemplateCountGt *[]int32
- rearPortTemplateCountGte *[]int32
- rearPortTemplateCountLt *[]int32
- rearPortTemplateCountLte *[]int32
- rearPortTemplateCountN *[]int32
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- subdeviceRole *ParentChildStatus
- tag *[]string
- tagN *[]string
- uHeight *[]float64
- uHeightEmpty *bool
- uHeightGt *[]float64
- uHeightGte *[]float64
- uHeightLt *[]float64
- uHeightLte *[]float64
- uHeightN *[]float64
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *DcimDeviceTypesListWeightUnitParameter
+ consoleServerPortTemplateCountGt *[]int32
+ consoleServerPortTemplateCountGte *[]int32
+ consoleServerPortTemplateCountLt *[]int32
+ consoleServerPortTemplateCountLte *[]int32
+ consoleServerPortTemplateCountN *[]int32
+ consoleServerPorts *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ defaultPlatform *[]string
+ defaultPlatformN *[]string
+ defaultPlatformId *[]*int32
+ defaultPlatformIdN *[]*int32
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceBayTemplateCount *[]int32
+ deviceBayTemplateCountEmpty *bool
+ deviceBayTemplateCountGt *[]int32
+ deviceBayTemplateCountGte *[]int32
+ deviceBayTemplateCountLt *[]int32
+ deviceBayTemplateCountLte *[]int32
+ deviceBayTemplateCountN *[]int32
+ deviceBays *bool
+ excludeFromUtilization *bool
+ frontPortTemplateCount *[]int32
+ frontPortTemplateCountEmpty *bool
+ frontPortTemplateCountGt *[]int32
+ frontPortTemplateCountGte *[]int32
+ frontPortTemplateCountLt *[]int32
+ frontPortTemplateCountLte *[]int32
+ frontPortTemplateCountN *[]int32
+ hasFrontImage *bool
+ hasRearImage *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceTemplateCount *[]int32
+ interfaceTemplateCountEmpty *bool
+ interfaceTemplateCountGt *[]int32
+ interfaceTemplateCountGte *[]int32
+ interfaceTemplateCountLt *[]int32
+ interfaceTemplateCountLte *[]int32
+ interfaceTemplateCountN *[]int32
+ interfaces *bool
+ inventoryItemTemplateCount *[]int32
+ inventoryItemTemplateCountEmpty *bool
+ inventoryItemTemplateCountGt *[]int32
+ inventoryItemTemplateCountGte *[]int32
+ inventoryItemTemplateCountLt *[]int32
+ inventoryItemTemplateCountLte *[]int32
+ inventoryItemTemplateCountN *[]int32
+ inventoryItems *bool
+ isFullDepth *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ model *[]string
+ modelEmpty *bool
+ modelIc *[]string
+ modelIe *[]string
+ modelIew *[]string
+ modelIsw *[]string
+ modelN *[]string
+ modelNic *[]string
+ modelNie *[]string
+ modelNiew *[]string
+ modelNisw *[]string
+ modifiedByRequest *string
+ moduleBayTemplateCount *[]int32
+ moduleBayTemplateCountEmpty *bool
+ moduleBayTemplateCountGt *[]int32
+ moduleBayTemplateCountGte *[]int32
+ moduleBayTemplateCountLt *[]int32
+ moduleBayTemplateCountLte *[]int32
+ moduleBayTemplateCountN *[]int32
+ moduleBays *bool
+ offset *int32
+ ordering *string
+ partNumber *[]string
+ partNumberEmpty *bool
+ partNumberIc *[]string
+ partNumberIe *[]string
+ partNumberIew *[]string
+ partNumberIsw *[]string
+ partNumberN *[]string
+ partNumberNic *[]string
+ partNumberNie *[]string
+ partNumberNiew *[]string
+ partNumberNisw *[]string
+ passThroughPorts *bool
+ powerOutletTemplateCount *[]int32
+ powerOutletTemplateCountEmpty *bool
+ powerOutletTemplateCountGt *[]int32
+ powerOutletTemplateCountGte *[]int32
+ powerOutletTemplateCountLt *[]int32
+ powerOutletTemplateCountLte *[]int32
+ powerOutletTemplateCountN *[]int32
+ powerOutlets *bool
+ powerPortTemplateCount *[]int32
+ powerPortTemplateCountEmpty *bool
+ powerPortTemplateCountGt *[]int32
+ powerPortTemplateCountGte *[]int32
+ powerPortTemplateCountLt *[]int32
+ powerPortTemplateCountLte *[]int32
+ powerPortTemplateCountN *[]int32
+ powerPorts *bool
+ q *string
+ rearPortTemplateCount *[]int32
+ rearPortTemplateCountEmpty *bool
+ rearPortTemplateCountGt *[]int32
+ rearPortTemplateCountGte *[]int32
+ rearPortTemplateCountLt *[]int32
+ rearPortTemplateCountLte *[]int32
+ rearPortTemplateCountN *[]int32
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ subdeviceRole *ParentChildStatus
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ uHeight *[]float64
+ uHeightEmpty *bool
+ uHeightGt *[]float64
+ uHeightGte *[]float64
+ uHeightLt *[]float64
+ uHeightLte *[]float64
+ uHeightN *[]float64
+ updatedByRequest *string
+ weight *[]float64
+ weightEmpty *bool
+ weightGt *[]float64
+ weightGte *[]float64
+ weightLt *[]float64
+ weightLte *[]float64
+ weightN *[]float64
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
}
// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed
@@ -30300,6 +30808,16 @@ func (r ApiDcimDeviceTypesListRequest) TagN(tagN []string) ApiDcimDeviceTypesLis
return r
}
+func (r ApiDcimDeviceTypesListRequest) TagId(tagId []int32) ApiDcimDeviceTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) TagIdN(tagIdN []int32) ApiDcimDeviceTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimDeviceTypesListRequest) UHeight(uHeight []float64) ApiDcimDeviceTypesListRequest {
r.uHeight = &uHeight
return r
@@ -30390,24 +30908,25 @@ DcimDeviceTypesList Method for DcimDeviceTypesList
Get a list of device type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDeviceTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDeviceTypesListRequest
*/
func (a *DcimAPIService) DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest {
return ApiDcimDeviceTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDeviceTypeList
+//
+// @return PaginatedDeviceTypeList
func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDeviceTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDeviceTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesList")
@@ -31959,6 +32478,28 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.uHeight != nil {
t := *r.uHeight
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -32172,9 +32713,9 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
}
type ApiDcimDeviceTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableDeviceTypeRequest *PatchedWritableDeviceTypeRequest
}
@@ -32192,26 +32733,27 @@ DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate
Patch a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest {
return ApiDcimDeviceTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceType
+//
+// @return DeviceType
func (a *DcimAPIService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesPartialUpdate")
@@ -32297,9 +32839,9 @@ func (a *DcimAPIService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceType
}
type ApiDcimDeviceTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDeviceTypesRetrieveRequest) Execute() (*DeviceType, *http.Response, error) {
@@ -32311,26 +32853,27 @@ DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve
Get a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesRetrieveRequest
*/
func (a *DcimAPIService) DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest {
return ApiDcimDeviceTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceType
+//
+// @return DeviceType
func (a *DcimAPIService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesRetrieve")
@@ -32414,9 +32957,9 @@ func (a *DcimAPIService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetr
}
type ApiDcimDeviceTypesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableDeviceTypeRequest *WritableDeviceTypeRequest
}
@@ -32434,26 +32977,27 @@ DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate
Put a device type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device type.
- @return ApiDcimDeviceTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device type.
+ @return ApiDcimDeviceTypesUpdateRequest
*/
func (a *DcimAPIService) DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest {
return ApiDcimDeviceTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceType
+//
+// @return DeviceType
func (a *DcimAPIService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesUpdate")
@@ -32542,8 +33086,8 @@ func (a *DcimAPIService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdate
}
type ApiDcimDevicesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest
}
@@ -32561,22 +33105,22 @@ DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy
Delete a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest {
return ApiDcimDevicesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkDestroy")
@@ -32655,8 +33199,8 @@ func (a *DcimAPIService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestr
}
type ApiDcimDevicesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest
}
@@ -32674,24 +33218,25 @@ DcimDevicesBulkPartialUpdate Method for DcimDevicesBulkPartialUpdate
Patch a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest {
return ApiDcimDevicesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceWithConfigContext
+//
+// @return []DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkPartialUpdate")
@@ -32779,8 +33324,8 @@ func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBul
}
type ApiDcimDevicesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest
}
@@ -32798,24 +33343,25 @@ DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate
Put a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest {
return ApiDcimDevicesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []DeviceWithConfigContext
+//
+// @return []DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkUpdate")
@@ -32903,8 +33449,8 @@ func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdate
}
type ApiDcimDevicesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest
}
@@ -32922,24 +33468,25 @@ DcimDevicesCreate Method for DcimDevicesCreate
Post a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesCreateRequest
*/
func (a *DcimAPIService) DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest {
return ApiDcimDevicesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return DeviceWithConfigContext
+//
+// @return DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesCreate")
@@ -33027,9 +33574,9 @@ func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest)
}
type ApiDcimDevicesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDevicesDestroyRequest) Execute() (*http.Response, error) {
@@ -33041,24 +33588,24 @@ DcimDevicesDestroy Method for DcimDevicesDestroy
Delete a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesDestroyRequest
*/
func (a *DcimAPIService) DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest {
return ApiDcimDevicesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesDestroy")
@@ -33133,292 +33680,300 @@ func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques
}
type ApiDcimDevicesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- airflow *DcimDeviceTypesListAirflowParameter
- assetTag *[]string
- assetTagEmpty *bool
- assetTagIc *[]string
- assetTagIe *[]string
- assetTagIew *[]string
- assetTagIsw *[]string
- assetTagN *[]string
- assetTagNic *[]string
- assetTagNie *[]string
- assetTagNiew *[]string
- assetTagNisw *[]string
- clusterGroup *[]string
- clusterGroupN *[]string
- clusterGroupId *[]int32
- clusterGroupIdN *[]int32
- clusterId *[]*int32
- clusterIdN *[]*int32
- configTemplateId *[]*int32
- configTemplateIdN *[]*int32
- consolePortCount *[]int32
- consolePortCountEmpty *bool
- consolePortCountGt *[]int32
- consolePortCountGte *[]int32
- consolePortCountLt *[]int32
- consolePortCountLte *[]int32
- consolePortCountN *[]int32
- consolePorts *bool
- consoleServerPortCount *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ airflow *DcimDeviceTypesListAirflowParameter
+ assetTag *[]string
+ assetTagEmpty *bool
+ assetTagIc *[]string
+ assetTagIe *[]string
+ assetTagIew *[]string
+ assetTagIsw *[]string
+ assetTagN *[]string
+ assetTagNic *[]string
+ assetTagNie *[]string
+ assetTagNiew *[]string
+ assetTagNisw *[]string
+ clusterGroup *[]string
+ clusterGroupN *[]string
+ clusterGroupId *[]int32
+ clusterGroupIdN *[]int32
+ clusterId *[]*int32
+ clusterIdN *[]*int32
+ configTemplateId *[]*int32
+ configTemplateIdN *[]*int32
+ consolePortCount *[]int32
+ consolePortCountEmpty *bool
+ consolePortCountGt *[]int32
+ consolePortCountGte *[]int32
+ consolePortCountLt *[]int32
+ consolePortCountLte *[]int32
+ consolePortCountN *[]int32
+ consolePorts *bool
+ consoleServerPortCount *[]int32
consoleServerPortCountEmpty *bool
- consoleServerPortCountGt *[]int32
- consoleServerPortCountGte *[]int32
- consoleServerPortCountLt *[]int32
- consoleServerPortCountLte *[]int32
- consoleServerPortCountN *[]int32
- consoleServerPorts *bool
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceBayCount *[]int32
- deviceBayCountEmpty *bool
- deviceBayCountGt *[]int32
- deviceBayCountGte *[]int32
- deviceBayCountLt *[]int32
- deviceBayCountLte *[]int32
- deviceBayCountN *[]int32
- deviceBays *bool
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- face *RackFace
- frontPortCount *[]int32
- frontPortCountEmpty *bool
- frontPortCountGt *[]int32
- frontPortCountGte *[]int32
- frontPortCountLt *[]int32
- frontPortCountLte *[]int32
- frontPortCountN *[]int32
- hasOobIp *bool
- hasPrimaryIp *bool
- hasVirtualDeviceContext *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceCount *[]int32
- interfaceCountEmpty *bool
- interfaceCountGt *[]int32
- interfaceCountGte *[]int32
- interfaceCountLt *[]int32
- interfaceCountLte *[]int32
- interfaceCountN *[]int32
- interfaces *bool
- inventoryItemCount *[]int32
- inventoryItemCountEmpty *bool
- inventoryItemCountGt *[]int32
- inventoryItemCountGte *[]int32
- inventoryItemCountLt *[]int32
- inventoryItemCountLte *[]int32
- inventoryItemCountN *[]int32
- isFullDepth *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- latitude *[]float64
- latitudeEmpty *bool
- latitudeGt *[]float64
- latitudeGte *[]float64
- latitudeLt *[]float64
- latitudeLte *[]float64
- latitudeN *[]float64
- limit *int32
- localContextData *bool
- locationId *[]string
- locationIdN *[]string
- longitude *[]float64
- longitudeEmpty *bool
- longitudeGt *[]float64
- longitudeGte *[]float64
- longitudeLt *[]float64
- longitudeLte *[]float64
- longitudeN *[]float64
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelN *[]string
- modifiedByRequest *string
- moduleBayCount *[]int32
- moduleBayCountEmpty *bool
- moduleBayCountGt *[]int32
- moduleBayCountGte *[]int32
- moduleBayCountLt *[]int32
- moduleBayCountLte *[]int32
- moduleBayCountN *[]int32
- moduleBays *bool
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- oobIpId *[]int32
- oobIpIdN *[]int32
- ordering *string
- parentBayId *[]int32
- parentBayIdN *[]int32
- parentDeviceId *[]int32
- parentDeviceIdN *[]int32
- passThroughPorts *bool
- platform *[]string
- platformN *[]string
- platformId *[]*int32
- platformIdN *[]*int32
- position *[]float64
- positionEmpty *bool
- positionGt *[]float64
- positionGte *[]float64
- positionLt *[]float64
- positionLte *[]float64
- positionN *[]float64
- powerOutletCount *[]int32
- powerOutletCountEmpty *bool
- powerOutletCountGt *[]int32
- powerOutletCountGte *[]int32
- powerOutletCountLt *[]int32
- powerOutletCountLte *[]int32
- powerOutletCountN *[]int32
- powerOutlets *bool
- powerPortCount *[]int32
- powerPortCountEmpty *bool
- powerPortCountGt *[]int32
- powerPortCountGte *[]int32
- powerPortCountLt *[]int32
- powerPortCountLte *[]int32
- powerPortCountN *[]int32
- powerPorts *bool
- primaryIp4Id *[]int32
- primaryIp4IdN *[]int32
- primaryIp6Id *[]int32
- primaryIp6IdN *[]int32
- q *string
- rackId *[]int32
- rackIdN *[]int32
- rearPortCount *[]int32
- rearPortCountEmpty *bool
- rearPortCountGt *[]int32
- rearPortCountGte *[]int32
- rearPortCountLt *[]int32
- rearPortCountLte *[]int32
- rearPortCountN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vcPosition *[]int32
- vcPositionEmpty *bool
- vcPositionGt *[]int32
- vcPositionGte *[]int32
- vcPositionLt *[]int32
- vcPositionLte *[]int32
- vcPositionN *[]int32
- vcPriority *[]int32
- vcPriorityEmpty *bool
- vcPriorityGt *[]int32
- vcPriorityGte *[]int32
- vcPriorityLt *[]int32
- vcPriorityLte *[]int32
- vcPriorityN *[]int32
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
- virtualChassisMember *bool
+ consoleServerPortCountGt *[]int32
+ consoleServerPortCountGte *[]int32
+ consoleServerPortCountLt *[]int32
+ consoleServerPortCountLte *[]int32
+ consoleServerPortCountN *[]int32
+ consoleServerPorts *bool
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceBayCount *[]int32
+ deviceBayCountEmpty *bool
+ deviceBayCountGt *[]int32
+ deviceBayCountGte *[]int32
+ deviceBayCountLt *[]int32
+ deviceBayCountLte *[]int32
+ deviceBayCountN *[]int32
+ deviceBays *bool
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ face *RackFace
+ frontPortCount *[]int32
+ frontPortCountEmpty *bool
+ frontPortCountGt *[]int32
+ frontPortCountGte *[]int32
+ frontPortCountLt *[]int32
+ frontPortCountLte *[]int32
+ frontPortCountN *[]int32
+ hasOobIp *bool
+ hasPrimaryIp *bool
+ hasVirtualDeviceContext *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceCount *[]int32
+ interfaceCountEmpty *bool
+ interfaceCountGt *[]int32
+ interfaceCountGte *[]int32
+ interfaceCountLt *[]int32
+ interfaceCountLte *[]int32
+ interfaceCountN *[]int32
+ interfaces *bool
+ inventoryItemCount *[]int32
+ inventoryItemCountEmpty *bool
+ inventoryItemCountGt *[]int32
+ inventoryItemCountGte *[]int32
+ inventoryItemCountLt *[]int32
+ inventoryItemCountLte *[]int32
+ inventoryItemCountN *[]int32
+ isFullDepth *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ latitude *[]float64
+ latitudeEmpty *bool
+ latitudeGt *[]float64
+ latitudeGte *[]float64
+ latitudeLt *[]float64
+ latitudeLte *[]float64
+ latitudeN *[]float64
+ limit *int32
+ localContextData *bool
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
+ longitude *[]float64
+ longitudeEmpty *bool
+ longitudeGt *[]float64
+ longitudeGte *[]float64
+ longitudeLt *[]float64
+ longitudeLte *[]float64
+ longitudeN *[]float64
+ macAddress *[]string
+ macAddressIc *[]string
+ macAddressIe *[]string
+ macAddressIew *[]string
+ macAddressIsw *[]string
+ macAddressN *[]string
+ macAddressNic *[]string
+ macAddressNie *[]string
+ macAddressNiew *[]string
+ macAddressNisw *[]string
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ model *[]string
+ modelN *[]string
+ modifiedByRequest *string
+ moduleBayCount *[]int32
+ moduleBayCountEmpty *bool
+ moduleBayCountGt *[]int32
+ moduleBayCountGte *[]int32
+ moduleBayCountLt *[]int32
+ moduleBayCountLte *[]int32
+ moduleBayCountN *[]int32
+ moduleBays *bool
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ oobIpId *[]int32
+ oobIpIdN *[]int32
+ ordering *string
+ parentBayId *[]int32
+ parentBayIdN *[]int32
+ parentDeviceId *[]int32
+ parentDeviceIdN *[]int32
+ passThroughPorts *bool
+ platform *[]string
+ platformN *[]string
+ platformId *[]*int32
+ platformIdN *[]*int32
+ position *[]float64
+ positionEmpty *bool
+ positionGt *[]float64
+ positionGte *[]float64
+ positionLt *[]float64
+ positionLte *[]float64
+ positionN *[]float64
+ powerOutletCount *[]int32
+ powerOutletCountEmpty *bool
+ powerOutletCountGt *[]int32
+ powerOutletCountGte *[]int32
+ powerOutletCountLt *[]int32
+ powerOutletCountLte *[]int32
+ powerOutletCountN *[]int32
+ powerOutlets *bool
+ powerPortCount *[]int32
+ powerPortCountEmpty *bool
+ powerPortCountGt *[]int32
+ powerPortCountGte *[]int32
+ powerPortCountLt *[]int32
+ powerPortCountLte *[]int32
+ powerPortCountN *[]int32
+ powerPorts *bool
+ primaryIp4 *[]string
+ primaryIp4N *[]string
+ primaryIp4Id *[]int32
+ primaryIp4IdN *[]int32
+ primaryIp6 *[]string
+ primaryIp6N *[]string
+ primaryIp6Id *[]int32
+ primaryIp6IdN *[]int32
+ q *string
+ rackId *[]int32
+ rackIdN *[]int32
+ rearPortCount *[]int32
+ rearPortCountEmpty *bool
+ rearPortCountGt *[]int32
+ rearPortCountGte *[]int32
+ rearPortCountLt *[]int32
+ rearPortCountLte *[]int32
+ rearPortCountN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]string
+ roleIdN *[]string
+ serial *[]string
+ serialEmpty *bool
+ serialIc *[]string
+ serialIe *[]string
+ serialIew *[]string
+ serialIsw *[]string
+ serialN *[]string
+ serialNic *[]string
+ serialNie *[]string
+ serialNiew *[]string
+ serialNisw *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vcPosition *[]int32
+ vcPositionEmpty *bool
+ vcPositionGt *[]int32
+ vcPositionGte *[]int32
+ vcPositionLt *[]int32
+ vcPositionLte *[]int32
+ vcPositionN *[]int32
+ vcPriority *[]int32
+ vcPriorityEmpty *bool
+ vcPriorityGt *[]int32
+ vcPriorityGte *[]int32
+ vcPriorityLt *[]int32
+ vcPriorityLte *[]int32
+ vcPriorityN *[]int32
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
+ virtualChassisMember *bool
}
// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed
@@ -34064,6 +34619,16 @@ func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDc
return r
}
+func (r ApiDcimDevicesListRequest) Location(location []string) ApiDcimDevicesListRequest {
+ r.location = &location
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) LocationN(locationN []string) ApiDcimDevicesListRequest {
+ r.locationN = &locationN
+ return r
+}
+
func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest {
r.locationId = &locationId
return r
@@ -34491,6 +35056,18 @@ func (r ApiDcimDevicesListRequest) PowerPorts(powerPorts bool) ApiDcimDevicesLis
return r
}
+// Primary IPv4 (address)
+func (r ApiDcimDevicesListRequest) PrimaryIp4(primaryIp4 []string) ApiDcimDevicesListRequest {
+ r.primaryIp4 = &primaryIp4
+ return r
+}
+
+// Primary IPv4 (address)
+func (r ApiDcimDevicesListRequest) PrimaryIp4N(primaryIp4N []string) ApiDcimDevicesListRequest {
+ r.primaryIp4N = &primaryIp4N
+ return r
+}
+
// Primary IPv4 (ID)
func (r ApiDcimDevicesListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiDcimDevicesListRequest {
r.primaryIp4Id = &primaryIp4Id
@@ -34503,6 +35080,18 @@ func (r ApiDcimDevicesListRequest) PrimaryIp4IdN(primaryIp4IdN []int32) ApiDcimD
return r
}
+// Primary IPv6 (address)
+func (r ApiDcimDevicesListRequest) PrimaryIp6(primaryIp6 []string) ApiDcimDevicesListRequest {
+ r.primaryIp6 = &primaryIp6
+ return r
+}
+
+// Primary IPv6 (address)
+func (r ApiDcimDevicesListRequest) PrimaryIp6N(primaryIp6N []string) ApiDcimDevicesListRequest {
+ r.primaryIp6N = &primaryIp6N
+ return r
+}
+
// Primary IPv6 (ID)
func (r ApiDcimDevicesListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiDcimDevicesListRequest {
r.primaryIp6Id = &primaryIp6Id
@@ -34588,26 +35177,22 @@ func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesL
return r
}
-// Role (slug)
func (r ApiDcimDevicesListRequest) Role(role []string) ApiDcimDevicesListRequest {
r.role = &role
return r
}
-// Role (slug)
func (r ApiDcimDevicesListRequest) RoleN(roleN []string) ApiDcimDevicesListRequest {
r.roleN = &roleN
return r
}
-// Role (ID)
-func (r ApiDcimDevicesListRequest) RoleId(roleId []int32) ApiDcimDevicesListRequest {
+func (r ApiDcimDevicesListRequest) RoleId(roleId []string) ApiDcimDevicesListRequest {
r.roleId = &roleId
return r
}
-// Role (ID)
-func (r ApiDcimDevicesListRequest) RoleIdN(roleIdN []int32) ApiDcimDevicesListRequest {
+func (r ApiDcimDevicesListRequest) RoleIdN(roleIdN []string) ApiDcimDevicesListRequest {
r.roleIdN = &roleIdN
return r
}
@@ -34776,6 +35361,16 @@ func (r ApiDcimDevicesListRequest) TagN(tagN []string) ApiDcimDevicesListRequest
return r
}
+func (r ApiDcimDevicesListRequest) TagId(tagId []int32) ApiDcimDevicesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) TagIdN(tagIdN []int32) ApiDcimDevicesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimDevicesListRequest) Tenant(tenant []string) ApiDcimDevicesListRequest {
r.tenant = &tenant
@@ -34922,24 +35517,25 @@ DcimDevicesList Method for DcimDevicesList
Get a list of device objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimDevicesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimDevicesListRequest
*/
func (a *DcimAPIService) DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest {
return ApiDcimDevicesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedDeviceWithConfigContextList
+//
+// @return PaginatedDeviceWithConfigContextList
func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedDeviceWithConfigContextList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedDeviceWithConfigContextList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesList")
@@ -36122,6 +36718,28 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.localContextData != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "local_context_data", r.localContextData, "form", "")
}
+ if r.location != nil {
+ t := *r.location
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi")
+ }
+ }
+ if r.locationN != nil {
+ t := *r.locationN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi")
+ }
+ }
if r.locationId != nil {
t := *r.locationId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -36909,6 +37527,28 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.powerPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "form", "")
}
+ if r.primaryIp4 != nil {
+ t := *r.primaryIp4
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", t, "form", "multi")
+ }
+ }
+ if r.primaryIp4N != nil {
+ t := *r.primaryIp4N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", t, "form", "multi")
+ }
+ }
if r.primaryIp4Id != nil {
t := *r.primaryIp4Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -36931,6 +37571,28 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi")
}
}
+ if r.primaryIp6 != nil {
+ t := *r.primaryIp6
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", t, "form", "multi")
+ }
+ }
+ if r.primaryIp6N != nil {
+ t := *r.primaryIp6N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", t, "form", "multi")
+ }
+ }
if r.primaryIp6Id != nil {
t := *r.primaryIp6Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -37471,6 +38133,28 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -37794,9 +38478,9 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
}
type ApiDcimDevicesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableDeviceWithConfigContextRequest *PatchedWritableDeviceWithConfigContextRequest
}
@@ -37814,26 +38498,27 @@ DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate
Patch a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest {
return ApiDcimDevicesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceWithConfigContext
+//
+// @return DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesPartialUpdate")
@@ -37919,11 +38604,11 @@ func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartial
}
type ApiDcimDevicesRenderConfigCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest
- format *DcimDevicesRenderConfigCreateFormatParameter
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesRenderConfigCreateRequest {
@@ -37945,26 +38630,27 @@ DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate
Resolve and render the preferred ConfigTemplate for this Device.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesRenderConfigCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesRenderConfigCreateRequest
*/
func (a *DcimAPIService) DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest {
return ApiDcimDevicesRenderConfigCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceWithConfigContext
+//
+// @return DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRenderConfigCreate")
@@ -38056,9 +38742,9 @@ func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRe
}
type ApiDcimDevicesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimDevicesRetrieveRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) {
@@ -38070,26 +38756,27 @@ DcimDevicesRetrieve Method for DcimDevicesRetrieve
Get a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesRetrieveRequest
*/
func (a *DcimAPIService) DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest {
return ApiDcimDevicesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceWithConfigContext
+//
+// @return DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRetrieve")
@@ -38173,9 +38860,9 @@ func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequ
}
type ApiDcimDevicesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest
}
@@ -38193,26 +38880,27 @@ DcimDevicesUpdate Method for DcimDevicesUpdate
Put a device object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this device.
- @return ApiDcimDevicesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this device.
+ @return ApiDcimDevicesUpdateRequest
*/
func (a *DcimAPIService) DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest {
return ApiDcimDevicesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return DeviceWithConfigContext
+//
+// @return DeviceWithConfigContext
func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *DeviceWithConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *DeviceWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesUpdate")
@@ -38301,8 +38989,8 @@ func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest)
}
type ApiDcimFrontPortTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortTemplateRequest *[]FrontPortTemplateRequest
}
@@ -38320,22 +39008,22 @@ DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy
Delete a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest {
return ApiDcimFrontPortTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkDestroy")
@@ -38414,8 +39102,8 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFront
}
type ApiDcimFrontPortTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortTemplateRequest *[]FrontPortTemplateRequest
}
@@ -38433,24 +39121,25 @@ DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPar
Patch a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest {
return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FrontPortTemplate
+//
+// @return []FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FrontPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkPartialUpdate")
@@ -38538,8 +39227,8 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimFrontPortTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortTemplateRequest *[]FrontPortTemplateRequest
}
@@ -38557,24 +39246,25 @@ DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate
Put a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest {
return ApiDcimFrontPortTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FrontPortTemplate
+//
+// @return []FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FrontPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkUpdate")
@@ -38662,8 +39352,8 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontP
}
type ApiDcimFrontPortTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest
}
@@ -38681,24 +39371,25 @@ DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate
Post a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest {
return ApiDcimFrontPortTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return FrontPortTemplate
+//
+// @return FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPortTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesCreate")
@@ -38786,9 +39477,9 @@ func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortT
}
type ApiDcimFrontPortTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimFrontPortTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -38800,24 +39491,24 @@ DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy
Delete a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest {
return ApiDcimFrontPortTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesDestroy")
@@ -38892,104 +39583,104 @@ func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPort
}
type ApiDcimFrontPortTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rearPortId *[]int32
- rearPortIdN *[]int32
- rearPortPosition *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ rearPortId *[]int32
+ rearPortIdN *[]int32
+ rearPortPosition *[]int32
rearPortPositionEmpty *bool
- rearPortPositionGt *[]int32
- rearPortPositionGte *[]int32
- rearPortPositionLt *[]int32
- rearPortPositionLte *[]int32
- rearPortPositionN *[]int32
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
+ rearPortPositionGt *[]int32
+ rearPortPositionGte *[]int32
+ rearPortPositionLt *[]int32
+ rearPortPositionLte *[]int32
+ rearPortPositionN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
}
func (r ApiDcimFrontPortTemplatesListRequest) Color(color []string) ApiDcimFrontPortTemplatesListRequest {
@@ -39489,24 +40180,25 @@ DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList
Get a list of front port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortTemplatesListRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest {
return ApiDcimFrontPortTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedFrontPortTemplateList
+//
+// @return PaginatedFrontPortTemplateList
func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedFrontPortTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedFrontPortTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesList")
@@ -40533,9 +41225,9 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
}
type ApiDcimFrontPortTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableFrontPortTemplateRequest *PatchedWritableFrontPortTemplateRequest
}
@@ -40553,26 +41245,27 @@ DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpda
Patch a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest {
return ApiDcimFrontPortTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPortTemplate
+//
+// @return FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesPartialUpdate")
@@ -40658,9 +41351,9 @@ func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFro
}
type ApiDcimFrontPortTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimFrontPortTemplatesRetrieveRequest) Execute() (*FrontPortTemplate, *http.Response, error) {
@@ -40672,26 +41365,27 @@ DcimFrontPortTemplatesRetrieve Method for DcimFrontPortTemplatesRetrieve
Get a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest {
return ApiDcimFrontPortTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPortTemplate
+//
+// @return FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPortTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesRetrieve")
@@ -40775,9 +41469,9 @@ func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPor
}
type ApiDcimFrontPortTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest
}
@@ -40795,26 +41489,27 @@ DcimFrontPortTemplatesUpdate Method for DcimFrontPortTemplatesUpdate
Put a front port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port template.
- @return ApiDcimFrontPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port template.
+ @return ApiDcimFrontPortTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest {
return ApiDcimFrontPortTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPortTemplate
+//
+// @return FrontPortTemplate
func (a *DcimAPIService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesUpdate")
@@ -40903,8 +41598,8 @@ func (a *DcimAPIService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortT
}
type ApiDcimFrontPortsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortRequest *[]FrontPortRequest
}
@@ -40922,22 +41617,22 @@ DcimFrontPortsBulkDestroy Method for DcimFrontPortsBulkDestroy
Delete a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest {
return ApiDcimFrontPortsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkDestroy")
@@ -41016,8 +41711,8 @@ func (a *DcimAPIService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBul
}
type ApiDcimFrontPortsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortRequest *[]FrontPortRequest
}
@@ -41035,24 +41730,25 @@ DcimFrontPortsBulkPartialUpdate Method for DcimFrontPortsBulkPartialUpdate
Patch a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest {
return ApiDcimFrontPortsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FrontPort
+//
+// @return []FrontPort
func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FrontPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkPartialUpdate")
@@ -41140,8 +41836,8 @@ func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPo
}
type ApiDcimFrontPortsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
frontPortRequest *[]FrontPortRequest
}
@@ -41159,24 +41855,25 @@ DcimFrontPortsBulkUpdate Method for DcimFrontPortsBulkUpdate
Put a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest {
return ApiDcimFrontPortsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FrontPort
+//
+// @return []FrontPort
func (a *DcimAPIService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FrontPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkUpdate")
@@ -41264,8 +41961,8 @@ func (a *DcimAPIService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulk
}
type ApiDcimFrontPortsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableFrontPortRequest *WritableFrontPortRequest
}
@@ -41283,24 +41980,25 @@ DcimFrontPortsCreate Method for DcimFrontPortsCreate
Post a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsCreateRequest
*/
func (a *DcimAPIService) DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest {
return ApiDcimFrontPortsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return FrontPort
+//
+// @return FrontPort
func (a *DcimAPIService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPort
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsCreate")
@@ -41388,9 +42086,9 @@ func (a *DcimAPIService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRe
}
type ApiDcimFrontPortsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimFrontPortsDestroyRequest) Execute() (*http.Response, error) {
@@ -41402,24 +42100,24 @@ DcimFrontPortsDestroy Method for DcimFrontPortsDestroy
Delete a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsDestroyRequest
*/
func (a *DcimAPIService) DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest {
return ApiDcimFrontPortsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsDestroy")
@@ -41494,157 +42192,159 @@ func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroy
}
type ApiDcimFrontPortsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
- deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
- modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- rearPortId *[]int32
- rearPortIdN *[]int32
- rearPortPosition *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
+ deviceStatusEmpty *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
+ modifiedByRequest *string
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ rearPortId *[]int32
+ rearPortIdN *[]int32
+ rearPortPosition *[]int32
rearPortPositionEmpty *bool
- rearPortPositionGt *[]int32
- rearPortPositionGte *[]int32
- rearPortPositionLt *[]int32
- rearPortPositionLte *[]int32
- rearPortPositionN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ rearPortPositionGt *[]int32
+ rearPortPositionGte *[]int32
+ rearPortPositionLt *[]int32
+ rearPortPositionLte *[]int32
+ rearPortPositionN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
}
// * `A` - A * `B` - B
@@ -42345,6 +43045,16 @@ func (r ApiDcimFrontPortsListRequest) TagN(tagN []string) ApiDcimFrontPortsListR
return r
}
+func (r ApiDcimFrontPortsListRequest) TagId(tagId []int32) ApiDcimFrontPortsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimFrontPortsListRequest) TagIdN(tagIdN []int32) ApiDcimFrontPortsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimFrontPortsListRequest) Type_(type_ []string) ApiDcimFrontPortsListRequest {
r.type_ = &type_
return r
@@ -42438,24 +43148,25 @@ DcimFrontPortsList Method for DcimFrontPortsList
Get a list of front port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimFrontPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimFrontPortsListRequest
*/
func (a *DcimAPIService) DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest {
return ApiDcimFrontPortsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedFrontPortList
+//
+// @return PaginatedFrontPortList
func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedFrontPortList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedFrontPortList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsList")
@@ -43796,6 +44507,28 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -44025,9 +44758,9 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
}
type ApiDcimFrontPortsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableFrontPortRequest *PatchedWritableFrontPortRequest
}
@@ -44045,26 +44778,27 @@ DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate
Patch a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest {
return ApiDcimFrontPortsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPort
+//
+// @return FrontPort
func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPartialUpdate")
@@ -44150,9 +44884,9 @@ func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsP
}
type ApiDcimFrontPortsPathsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimFrontPortsPathsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) {
@@ -44164,26 +44898,27 @@ DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve
Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsPathsRetrieveRequest
*/
func (a *DcimAPIService) DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest {
return ApiDcimFrontPortsPathsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPort
+//
+// @return FrontPort
func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPathsRetrieve")
@@ -44267,9 +45002,9 @@ func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsP
}
type ApiDcimFrontPortsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimFrontPortsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) {
@@ -44281,26 +45016,27 @@ DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve
Get a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsRetrieveRequest
*/
func (a *DcimAPIService) DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest {
return ApiDcimFrontPortsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPort
+//
+// @return FrontPort
func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsRetrieve")
@@ -44384,9 +45120,9 @@ func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrie
}
type ApiDcimFrontPortsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableFrontPortRequest *WritableFrontPortRequest
}
@@ -44404,26 +45140,27 @@ DcimFrontPortsUpdate Method for DcimFrontPortsUpdate
Put a front port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this front port.
- @return ApiDcimFrontPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this front port.
+ @return ApiDcimFrontPortsUpdateRequest
*/
func (a *DcimAPIService) DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest {
return ApiDcimFrontPortsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FrontPort
+//
+// @return FrontPort
func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FrontPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FrontPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsUpdate")
@@ -44512,8 +45249,8 @@ func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRe
}
type ApiDcimInterfaceTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceTemplateRequest *[]InterfaceTemplateRequest
}
@@ -44531,22 +45268,22 @@ DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy
Delete a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest {
return ApiDcimInterfaceTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkDestroy")
@@ -44625,8 +45362,8 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInter
}
type ApiDcimInterfaceTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceTemplateRequest *[]InterfaceTemplateRequest
}
@@ -44644,24 +45381,25 @@ DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPar
Patch a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest {
return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InterfaceTemplate
+//
+// @return []InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InterfaceTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkPartialUpdate")
@@ -44749,8 +45487,8 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimInterfaceTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceTemplateRequest *[]InterfaceTemplateRequest
}
@@ -44768,24 +45506,25 @@ DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate
Put a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest {
return ApiDcimInterfaceTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InterfaceTemplate
+//
+// @return []InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InterfaceTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkUpdate")
@@ -44873,8 +45612,8 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterf
}
type ApiDcimInterfaceTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest
}
@@ -44892,24 +45631,25 @@ DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate
Post a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest {
return ApiDcimInterfaceTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return InterfaceTemplate
+//
+// @return InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InterfaceTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesCreate")
@@ -44997,9 +45737,9 @@ func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceT
}
type ApiDcimInterfaceTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInterfaceTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -45011,24 +45751,24 @@ DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy
Delete a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest {
return ApiDcimInterfaceTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesDestroy")
@@ -45103,121 +45843,121 @@ func (a *DcimAPIService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterface
}
type ApiDcimInterfaceTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- bridgeId *[]int32
- bridgeIdN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- enabled *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- mgmtOnly *bool
+ ctx context.Context
+ ApiService DcimAPI
+ bridgeId *[]int32
+ bridgeIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mgmtOnly *bool
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- poeMode *[]*string
- poeModeEmpty *bool
- poeModeIc *[]*string
- poeModeIe *[]*string
- poeModeIew *[]*string
- poeModeIsw *[]*string
- poeModeN *[]*string
- poeModeNic *[]*string
- poeModeNie *[]*string
- poeModeNiew *[]*string
- poeModeNisw *[]*string
- poeType *[]*string
- poeTypeEmpty *bool
- poeTypeIc *[]*string
- poeTypeIe *[]*string
- poeTypeIew *[]*string
- poeTypeIsw *[]*string
- poeTypeN *[]*string
- poeTypeNic *[]*string
- poeTypeNie *[]*string
- poeTypeNiew *[]*string
- poeTypeNisw *[]*string
- q *string
- rfRole *[]*string
- rfRoleEmpty *bool
- rfRoleIc *[]*string
- rfRoleIe *[]*string
- rfRoleIew *[]*string
- rfRoleIsw *[]*string
- rfRoleN *[]*string
- rfRoleNic *[]*string
- rfRoleNie *[]*string
- rfRoleNiew *[]*string
- rfRoleNisw *[]*string
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ poeMode *[]*string
+ poeModeEmpty *bool
+ poeModeIc *[]*string
+ poeModeIe *[]*string
+ poeModeIew *[]*string
+ poeModeIsw *[]*string
+ poeModeN *[]*string
+ poeModeNic *[]*string
+ poeModeNie *[]*string
+ poeModeNiew *[]*string
+ poeModeNisw *[]*string
+ poeType *[]*string
+ poeTypeEmpty *bool
+ poeTypeIc *[]*string
+ poeTypeIe *[]*string
+ poeTypeIew *[]*string
+ poeTypeIsw *[]*string
+ poeTypeN *[]*string
+ poeTypeNic *[]*string
+ poeTypeNie *[]*string
+ poeTypeNiew *[]*string
+ poeTypeNisw *[]*string
+ q *string
+ rfRole *[]*string
+ rfRoleEmpty *bool
+ rfRoleIc *[]*string
+ rfRoleIe *[]*string
+ rfRoleIew *[]*string
+ rfRoleIsw *[]*string
+ rfRoleN *[]*string
+ rfRoleNic *[]*string
+ rfRoleNie *[]*string
+ rfRoleNiew *[]*string
+ rfRoleNisw *[]*string
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
}
func (r ApiDcimInterfaceTemplatesListRequest) BridgeId(bridgeId []int32) ApiDcimInterfaceTemplatesListRequest {
@@ -45802,24 +46542,25 @@ DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList
Get a list of interface template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfaceTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfaceTemplatesListRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest {
return ApiDcimInterfaceTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedInterfaceTemplateList
+//
+// @return PaginatedInterfaceTemplateList
func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedInterfaceTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedInterfaceTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesList")
@@ -47009,9 +47750,9 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem
}
type ApiDcimInterfaceTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableInterfaceTemplateRequest *PatchedWritableInterfaceTemplateRequest
}
@@ -47029,26 +47770,27 @@ DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpda
Patch a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest {
return ApiDcimInterfaceTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InterfaceTemplate
+//
+// @return InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InterfaceTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesPartialUpdate")
@@ -47134,9 +47876,9 @@ func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInt
}
type ApiDcimInterfaceTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInterfaceTemplatesRetrieveRequest) Execute() (*InterfaceTemplate, *http.Response, error) {
@@ -47148,26 +47890,27 @@ DcimInterfaceTemplatesRetrieve Method for DcimInterfaceTemplatesRetrieve
Get a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest {
return ApiDcimInterfaceTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InterfaceTemplate
+//
+// @return InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InterfaceTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesRetrieve")
@@ -47251,9 +47994,9 @@ func (a *DcimAPIService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfac
}
type ApiDcimInterfaceTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest
}
@@ -47271,26 +48014,27 @@ DcimInterfaceTemplatesUpdate Method for DcimInterfaceTemplatesUpdate
Put a interface template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface template.
- @return ApiDcimInterfaceTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface template.
+ @return ApiDcimInterfaceTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest {
return ApiDcimInterfaceTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InterfaceTemplate
+//
+// @return InterfaceTemplate
func (a *DcimAPIService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InterfaceTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InterfaceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesUpdate")
@@ -47379,8 +48123,8 @@ func (a *DcimAPIService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceT
}
type ApiDcimInterfacesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceRequest *[]InterfaceRequest
}
@@ -47398,22 +48142,22 @@ DcimInterfacesBulkDestroy Method for DcimInterfacesBulkDestroy
Delete a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest {
return ApiDcimInterfacesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkDestroy")
@@ -47492,8 +48236,8 @@ func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBul
}
type ApiDcimInterfacesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceRequest *[]InterfaceRequest
}
@@ -47511,24 +48255,25 @@ DcimInterfacesBulkPartialUpdate Method for DcimInterfacesBulkPartialUpdate
Patch a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest {
return ApiDcimInterfacesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Interface
+//
+// @return []Interface
func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Interface
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkPartialUpdate")
@@ -47616,8 +48361,8 @@ func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfa
}
type ApiDcimInterfacesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
interfaceRequest *[]InterfaceRequest
}
@@ -47635,24 +48380,25 @@ DcimInterfacesBulkUpdate Method for DcimInterfacesBulkUpdate
Put a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest {
return ApiDcimInterfacesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Interface
+//
+// @return []Interface
func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Interface
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkUpdate")
@@ -47740,8 +48486,8 @@ func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulk
}
type ApiDcimInterfacesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableInterfaceRequest *WritableInterfaceRequest
}
@@ -47759,24 +48505,25 @@ DcimInterfacesCreate Method for DcimInterfacesCreate
Post a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesCreateRequest
*/
func (a *DcimAPIService) DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest {
return ApiDcimInterfacesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Interface
+//
+// @return Interface
func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Interface
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesCreate")
@@ -47864,9 +48611,9 @@ func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRe
}
type ApiDcimInterfacesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInterfacesDestroyRequest) Execute() (*http.Response, error) {
@@ -47878,24 +48625,24 @@ DcimInterfacesDestroy Method for DcimInterfacesDestroy
Delete a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesDestroyRequest
*/
func (a *DcimAPIService) DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest {
return ApiDcimInterfacesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesDestroy")
@@ -47970,292 +48717,304 @@ func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroy
}
type ApiDcimInterfacesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- bridgeId *[]int32
- bridgeIdN *[]int32
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
- deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- duplex *[]*string
- duplexEmpty *bool
- duplexIc *[]*string
- duplexIe *[]*string
- duplexIew *[]*string
- duplexIsw *[]*string
- duplexN *[]*string
- duplexNic *[]*string
- duplexNie *[]*string
- duplexNiew *[]*string
- duplexNisw *[]*string
- enabled *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- kind *string
- l2vpn *[]*int64
- l2vpnN *[]*int64
- l2vpnId *[]int32
- l2vpnIdN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lagId *[]int32
- lagIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- markConnected *bool
- mgmtOnly *bool
- mode *DcimInterfacesListModeParameter
- modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- mtu *[]int32
- mtuEmpty *bool
- mtuGt *[]int32
- mtuGte *[]int32
- mtuLt *[]int32
- mtuLte *[]int32
- mtuN *[]int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- parentId *[]int32
- parentIdN *[]int32
- poeMode *[]*string
- poeModeEmpty *bool
- poeModeIc *[]*string
- poeModeIe *[]*string
- poeModeIew *[]*string
- poeModeIsw *[]*string
- poeModeN *[]*string
- poeModeNic *[]*string
- poeModeNie *[]*string
- poeModeNiew *[]*string
- poeModeNisw *[]*string
- poeType *[]*string
- poeTypeEmpty *bool
- poeTypeIc *[]*string
- poeTypeIe *[]*string
- poeTypeIew *[]*string
- poeTypeIsw *[]*string
- poeTypeN *[]*string
- poeTypeNic *[]*string
- poeTypeNie *[]*string
- poeTypeNiew *[]*string
- poeTypeNisw *[]*string
- primaryMacAddress *[]string
- primaryMacAddressN *[]string
- primaryMacAddressId *[]int32
- primaryMacAddressIdN *[]int32
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- rfChannel *[]*string
- rfChannelEmpty *bool
- rfChannelIc *[]*string
- rfChannelIe *[]*string
- rfChannelIew *[]*string
- rfChannelIsw *[]*string
- rfChannelN *[]*string
- rfChannelNic *[]*string
- rfChannelNie *[]*string
- rfChannelNiew *[]*string
- rfChannelNisw *[]*string
- rfChannelFrequency *[]float64
- rfChannelFrequencyEmpty *bool
- rfChannelFrequencyGt *[]float64
- rfChannelFrequencyGte *[]float64
- rfChannelFrequencyLt *[]float64
- rfChannelFrequencyLte *[]float64
- rfChannelFrequencyN *[]float64
- rfChannelWidth *[]float64
- rfChannelWidthEmpty *bool
- rfChannelWidthGt *[]float64
- rfChannelWidthGte *[]float64
- rfChannelWidthLt *[]float64
- rfChannelWidthLte *[]float64
- rfChannelWidthN *[]float64
- rfRole *[]*string
- rfRoleEmpty *bool
- rfRoleIc *[]*string
- rfRoleIe *[]*string
- rfRoleIew *[]*string
- rfRoleIsw *[]*string
- rfRoleN *[]*string
- rfRoleNic *[]*string
- rfRoleNie *[]*string
- rfRoleNiew *[]*string
- rfRoleNisw *[]*string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- speed *[]int32
- speedEmpty *[]int32
- speedGt *[]int32
- speedGte *[]int32
- speedLt *[]int32
- speedLte *[]int32
- speedN *[]int32
- tag *[]string
- tagN *[]string
- txPower *[]int32
- txPowerEmpty *bool
- txPowerGt *[]int32
- txPowerGte *[]int32
- txPowerLt *[]int32
- txPowerLte *[]int32
- txPowerN *[]int32
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
- vdc *[]string
- vdcN *[]string
- vdcId *[]int32
- vdcIdN *[]int32
- vdcIdentifier *[]*int32
- vdcIdentifierN *[]*int32
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
- virtualChassisMember *[]string
- virtualChassisMemberId *[]int32
- virtualCircuitId *[]int32
- virtualCircuitIdN *[]int32
- virtualCircuitTerminationId *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ bridgeId *[]int32
+ bridgeIdN *[]int32
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
+ deviceStatusEmpty *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ duplex *[]*string
+ duplexEmpty *bool
+ duplexIc *[]*string
+ duplexIe *[]*string
+ duplexIew *[]*string
+ duplexIsw *[]*string
+ duplexN *[]*string
+ duplexNic *[]*string
+ duplexNie *[]*string
+ duplexNiew *[]*string
+ duplexNisw *[]*string
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ kind *string
+ l2vpn *[]*int64
+ l2vpnN *[]*int64
+ l2vpnId *[]int32
+ l2vpnIdN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lagId *[]int32
+ lagIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ macAddress *[]string
+ macAddressIc *[]string
+ macAddressIe *[]string
+ macAddressIew *[]string
+ macAddressIsw *[]string
+ macAddressN *[]string
+ macAddressNic *[]string
+ macAddressNie *[]string
+ macAddressNiew *[]string
+ macAddressNisw *[]string
+ markConnected *bool
+ mgmtOnly *bool
+ mode *[]*string
+ modeEmpty *bool
+ modeIc *[]*string
+ modeIe *[]*string
+ modeIew *[]*string
+ modeIsw *[]*string
+ modeN *[]*string
+ modeNic *[]*string
+ modeNie *[]*string
+ modeNiew *[]*string
+ modeNisw *[]*string
+ modifiedByRequest *string
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ mtu *[]int32
+ mtuEmpty *bool
+ mtuGt *[]int32
+ mtuGte *[]int32
+ mtuLt *[]int32
+ mtuLte *[]int32
+ mtuN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ parentId *[]int32
+ parentIdN *[]int32
+ poeMode *[]*string
+ poeModeEmpty *bool
+ poeModeIc *[]*string
+ poeModeIe *[]*string
+ poeModeIew *[]*string
+ poeModeIsw *[]*string
+ poeModeN *[]*string
+ poeModeNic *[]*string
+ poeModeNie *[]*string
+ poeModeNiew *[]*string
+ poeModeNisw *[]*string
+ poeType *[]*string
+ poeTypeEmpty *bool
+ poeTypeIc *[]*string
+ poeTypeIe *[]*string
+ poeTypeIew *[]*string
+ poeTypeIsw *[]*string
+ poeTypeN *[]*string
+ poeTypeNic *[]*string
+ poeTypeNie *[]*string
+ poeTypeNiew *[]*string
+ poeTypeNisw *[]*string
+ primaryMacAddress *[]string
+ primaryMacAddressN *[]string
+ primaryMacAddressId *[]int32
+ primaryMacAddressIdN *[]int32
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ rfChannel *[]*string
+ rfChannelEmpty *bool
+ rfChannelIc *[]*string
+ rfChannelIe *[]*string
+ rfChannelIew *[]*string
+ rfChannelIsw *[]*string
+ rfChannelN *[]*string
+ rfChannelNic *[]*string
+ rfChannelNie *[]*string
+ rfChannelNiew *[]*string
+ rfChannelNisw *[]*string
+ rfChannelFrequency *[]float64
+ rfChannelFrequencyEmpty *bool
+ rfChannelFrequencyGt *[]float64
+ rfChannelFrequencyGte *[]float64
+ rfChannelFrequencyLt *[]float64
+ rfChannelFrequencyLte *[]float64
+ rfChannelFrequencyN *[]float64
+ rfChannelWidth *[]float64
+ rfChannelWidthEmpty *bool
+ rfChannelWidthGt *[]float64
+ rfChannelWidthGte *[]float64
+ rfChannelWidthLt *[]float64
+ rfChannelWidthLte *[]float64
+ rfChannelWidthN *[]float64
+ rfRole *[]*string
+ rfRoleEmpty *bool
+ rfRoleIc *[]*string
+ rfRoleIe *[]*string
+ rfRoleIew *[]*string
+ rfRoleIsw *[]*string
+ rfRoleN *[]*string
+ rfRoleNic *[]*string
+ rfRoleNie *[]*string
+ rfRoleNiew *[]*string
+ rfRoleNisw *[]*string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ speed *[]int32
+ speedEmpty *[]int32
+ speedGt *[]int32
+ speedGte *[]int32
+ speedLt *[]int32
+ speedLte *[]int32
+ speedN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ txPower *[]int32
+ txPowerEmpty *bool
+ txPowerGt *[]int32
+ txPowerGte *[]int32
+ txPowerLt *[]int32
+ txPowerLte *[]int32
+ txPowerN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
+ vdc *[]string
+ vdcN *[]string
+ vdcId *[]int32
+ vdcIdN *[]int32
+ vdcIdentifier *[]*int32
+ vdcIdentifierN *[]*int32
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
+ virtualChassisMember *[]string
+ virtualChassisMemberId *[]int32
+ virtualCircuitId *[]int32
+ virtualCircuitIdN *[]int32
+ virtualCircuitTerminationId *[]int32
virtualCircuitTerminationIdN *[]int32
- vlan *string
- vlanId *string
- vlanTranslationPolicy *[]string
- vlanTranslationPolicyN *[]string
- vlanTranslationPolicyId *[]int32
- vlanTranslationPolicyIdN *[]int32
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]int32
- vrfIdN *[]int32
- wirelessLanId *[]int32
- wirelessLanIdN *[]int32
- wirelessLinkId *[]*int32
- wirelessLinkIdN *[]*int32
- wwn *[]string
- wwnIc *[]string
- wwnIe *[]string
- wwnIew *[]string
- wwnIsw *[]string
- wwnN *[]string
- wwnNic *[]string
- wwnNie *[]string
- wwnNiew *[]string
- wwnNisw *[]string
+ vlan *string
+ vlanId *string
+ vlanTranslationPolicy *[]string
+ vlanTranslationPolicyN *[]string
+ vlanTranslationPolicyId *[]int32
+ vlanTranslationPolicyIdN *[]int32
+ vrf *[]*string
+ vrfN *[]*string
+ vrfId *[]int32
+ vrfIdN *[]int32
+ wirelessLanId *[]int32
+ wirelessLanIdN *[]int32
+ wirelessLinkId *[]*int32
+ wirelessLinkIdN *[]*int32
+ wwn *[]string
+ wwnIc *[]string
+ wwnIe *[]string
+ wwnIew *[]string
+ wwnIsw *[]string
+ wwnN *[]string
+ wwnNic *[]string
+ wwnNie *[]string
+ wwnNiew *[]string
+ wwnNisw *[]string
}
// Bridged interface (ID)
@@ -48837,12 +49596,72 @@ func (r ApiDcimInterfacesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfacesL
return r
}
-// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad)
-func (r ApiDcimInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) ApiDcimInterfacesListRequest {
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) Mode(mode []*string) ApiDcimInterfacesListRequest {
r.mode = &mode
return r
}
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeEmpty(modeEmpty bool) ApiDcimInterfacesListRequest {
+ r.modeEmpty = &modeEmpty
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeIc(modeIc []*string) ApiDcimInterfacesListRequest {
+ r.modeIc = &modeIc
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeIe(modeIe []*string) ApiDcimInterfacesListRequest {
+ r.modeIe = &modeIe
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeIew(modeIew []*string) ApiDcimInterfacesListRequest {
+ r.modeIew = &modeIew
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeIsw(modeIsw []*string) ApiDcimInterfacesListRequest {
+ r.modeIsw = &modeIsw
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeN(modeN []*string) ApiDcimInterfacesListRequest {
+ r.modeN = &modeN
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeNic(modeNic []*string) ApiDcimInterfacesListRequest {
+ r.modeNic = &modeNic
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeNie(modeNie []*string) ApiDcimInterfacesListRequest {
+ r.modeNie = &modeNie
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeNiew(modeNiew []*string) ApiDcimInterfacesListRequest {
+ r.modeNiew = &modeNiew
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiDcimInterfacesListRequest) ModeNisw(modeNisw []*string) ApiDcimInterfacesListRequest {
+ r.modeNisw = &modeNisw
+ return r
+}
+
func (r ApiDcimInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfacesListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -49432,6 +50251,16 @@ func (r ApiDcimInterfacesListRequest) TagN(tagN []string) ApiDcimInterfacesListR
return r
}
+func (r ApiDcimInterfacesListRequest) TagId(tagId []int32) ApiDcimInterfacesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimInterfacesListRequest) TagIdN(tagIdN []int32) ApiDcimInterfacesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimInterfacesListRequest) TxPower(txPower []int32) ApiDcimInterfacesListRequest {
r.txPower = &txPower
return r
@@ -49764,24 +50593,25 @@ DcimInterfacesList Method for DcimInterfacesList
Get a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInterfacesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInterfacesListRequest
*/
func (a *DcimAPIService) DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest {
return ApiDcimInterfacesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedInterfaceList
+//
+// @return PaginatedInterfaceList
func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedInterfaceList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedInterfaceList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesList")
@@ -50894,7 +51724,117 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "form", "")
}
if r.mode != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "form", "")
+ 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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "form", "multi")
+ }
+ }
+ if r.modeEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "form", "")
+ }
+ if r.modeIc != nil {
+ t := *r.modeIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "form", "multi")
+ }
+ }
+ if r.modeIe != nil {
+ t := *r.modeIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "form", "multi")
+ }
+ }
+ if r.modeIew != nil {
+ t := *r.modeIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "form", "multi")
+ }
+ }
+ if r.modeIsw != nil {
+ t := *r.modeIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "form", "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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "form", "multi")
+ }
+ }
+ if r.modeNic != nil {
+ t := *r.modeNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "form", "multi")
+ }
+ }
+ if r.modeNie != nil {
+ t := *r.modeNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "form", "multi")
+ }
+ }
+ if r.modeNiew != nil {
+ t := *r.modeNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "form", "multi")
+ }
+ }
+ if r.modeNisw != nil {
+ t := *r.modeNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "form", "multi")
+ }
}
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
@@ -52046,6 +52986,28 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.txPower != nil {
t := *r.txPower
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -52724,9 +53686,9 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
}
type ApiDcimInterfacesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableInterfaceRequest *PatchedWritableInterfaceRequest
}
@@ -52744,26 +53706,27 @@ DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate
Patch a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest {
return ApiDcimInterfacesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Interface
+//
+// @return Interface
func (a *DcimAPIService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Interface
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesPartialUpdate")
@@ -52849,9 +53812,9 @@ func (a *DcimAPIService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesP
}
type ApiDcimInterfacesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInterfacesRetrieveRequest) Execute() (*Interface, *http.Response, error) {
@@ -52863,26 +53826,27 @@ DcimInterfacesRetrieve Method for DcimInterfacesRetrieve
Get a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesRetrieveRequest
*/
func (a *DcimAPIService) DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest {
return ApiDcimInterfacesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Interface
+//
+// @return Interface
func (a *DcimAPIService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Interface
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesRetrieve")
@@ -52966,9 +53930,9 @@ func (a *DcimAPIService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrie
}
type ApiDcimInterfacesTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInterfacesTraceRetrieveRequest) Execute() (*Interface, *http.Response, error) {
@@ -52980,26 +53944,27 @@ DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest {
return ApiDcimInterfacesTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Interface
+//
+// @return Interface
func (a *DcimAPIService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Interface
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesTraceRetrieve")
@@ -53083,9 +54048,9 @@ func (a *DcimAPIService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesT
}
type ApiDcimInterfacesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableInterfaceRequest *WritableInterfaceRequest
}
@@ -53103,26 +54068,27 @@ DcimInterfacesUpdate Method for DcimInterfacesUpdate
Put a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiDcimInterfacesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiDcimInterfacesUpdateRequest
*/
func (a *DcimAPIService) DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest {
return ApiDcimInterfacesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Interface
+//
+// @return Interface
func (a *DcimAPIService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Interface
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Interface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesUpdate")
@@ -53211,8 +54177,8 @@ func (a *DcimAPIService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRe
}
type ApiDcimInventoryItemRolesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRoleRequest *[]InventoryItemRoleRequest
}
@@ -53230,22 +54196,22 @@ DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy
Delete a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest {
return ApiDcimInventoryItemRolesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkDestroy")
@@ -53324,8 +54290,8 @@ func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInven
}
type ApiDcimInventoryItemRolesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRoleRequest *[]InventoryItemRoleRequest
}
@@ -53343,24 +54309,25 @@ DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPar
Patch a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest {
return ApiDcimInventoryItemRolesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItemRole
+//
+// @return []InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItemRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkPartialUpdate")
@@ -53448,8 +54415,8 @@ func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimInventoryItemRolesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRoleRequest *[]InventoryItemRoleRequest
}
@@ -53467,24 +54434,25 @@ DcimInventoryItemRolesBulkUpdate Method for DcimInventoryItemRolesBulkUpdate
Put a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest {
return ApiDcimInventoryItemRolesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItemRole
+//
+// @return []InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItemRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkUpdate")
@@ -53572,8 +54540,8 @@ func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInvent
}
type ApiDcimInventoryItemRolesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRoleRequest *InventoryItemRoleRequest
}
@@ -53591,24 +54559,25 @@ DcimInventoryItemRolesCreate Method for DcimInventoryItemRolesCreate
Post a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesCreateRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest {
return ApiDcimInventoryItemRolesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return InventoryItemRole
+//
+// @return InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemRole
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesCreate")
@@ -53696,9 +54665,9 @@ func (a *DcimAPIService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryI
}
type ApiDcimInventoryItemRolesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemRolesDestroyRequest) Execute() (*http.Response, error) {
@@ -53710,24 +54679,24 @@ DcimInventoryItemRolesDestroy Method for DcimInventoryItemRolesDestroy
Delete a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest {
return ApiDcimInventoryItemRolesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesDestroy")
@@ -53802,82 +54771,84 @@ func (a *DcimAPIService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventory
}
type ApiDcimInventoryItemRolesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimInventoryItemRolesListRequest) Color(color []string) ApiDcimInventoryItemRolesListRequest {
@@ -54249,6 +55220,16 @@ func (r ApiDcimInventoryItemRolesListRequest) TagN(tagN []string) ApiDcimInvento
return r
}
+func (r ApiDcimInventoryItemRolesListRequest) TagId(tagId []int32) ApiDcimInventoryItemRolesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimInventoryItemRolesListRequest) TagIdN(tagIdN []int32) ApiDcimInventoryItemRolesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimInventoryItemRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemRolesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -54263,24 +55244,25 @@ DcimInventoryItemRolesList Method for DcimInventoryItemRolesList
Get a list of inventory item role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemRolesListRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest {
return ApiDcimInventoryItemRolesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedInventoryItemRoleList
+//
+// @return PaginatedInventoryItemRoleList
func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedInventoryItemRoleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedInventoryItemRoleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesList")
@@ -55009,6 +55991,28 @@ func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -55081,9 +56085,9 @@ func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte
}
type ApiDcimInventoryItemRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedInventoryItemRoleRequest *PatchedInventoryItemRoleRequest
}
@@ -55101,26 +56105,27 @@ DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpda
Patch a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest {
return ApiDcimInventoryItemRolesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemRole
+//
+// @return InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesPartialUpdate")
@@ -55206,9 +56211,9 @@ func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInv
}
type ApiDcimInventoryItemRolesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemRolesRetrieveRequest) Execute() (*InventoryItemRole, *http.Response, error) {
@@ -55220,26 +56225,27 @@ DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve
Get a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesRetrieveRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest {
return ApiDcimInventoryItemRolesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemRole
+//
+// @return InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemRole
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesRetrieve")
@@ -55323,9 +56329,9 @@ func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventor
}
type ApiDcimInventoryItemRolesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
inventoryItemRoleRequest *InventoryItemRoleRequest
}
@@ -55343,26 +56349,27 @@ DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate
Put a inventory item role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item role.
- @return ApiDcimInventoryItemRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item role.
+ @return ApiDcimInventoryItemRolesUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest {
return ApiDcimInventoryItemRolesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemRole
+//
+// @return InventoryItemRole
func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesUpdate")
@@ -55451,8 +56458,8 @@ func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryI
}
type ApiDcimInventoryItemTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemTemplateRequest *[]InventoryItemTemplateRequest
}
@@ -55470,22 +56477,22 @@ DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkD
Delete a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest {
return ApiDcimInventoryItemTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkDestroy")
@@ -55564,8 +56571,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimI
}
type ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemTemplateRequest *[]InventoryItemTemplateRequest
}
@@ -55583,24 +56590,25 @@ DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplate
Patch a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest {
return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItemTemplate
+//
+// @return []InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItemTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkPartialUpdate")
@@ -55688,8 +56696,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r Ap
}
type ApiDcimInventoryItemTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemTemplateRequest *[]InventoryItemTemplateRequest
}
@@ -55707,24 +56715,25 @@ DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUp
Put a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest {
return ApiDcimInventoryItemTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItemTemplate
+//
+// @return []InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItemTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkUpdate")
@@ -55812,8 +56821,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimIn
}
type ApiDcimInventoryItemTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemTemplateRequest *InventoryItemTemplateRequest
}
@@ -55831,24 +56840,25 @@ DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate
Post a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest {
return ApiDcimInventoryItemTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return InventoryItemTemplate
+//
+// @return InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesCreate")
@@ -55936,9 +56946,9 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent
}
type ApiDcimInventoryItemTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -55950,24 +56960,24 @@ DcimInventoryItemTemplatesDestroy Method for DcimInventoryItemTemplatesDestroy
Delete a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest {
return ApiDcimInventoryItemTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesDestroy")
@@ -56042,101 +57052,101 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInven
}
type ApiDcimInventoryItemTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- componentId *[]int32
- componentIdEmpty *[]int32
- componentIdGt *[]int32
- componentIdGte *[]int32
- componentIdLt *[]int32
- componentIdLte *[]int32
- componentIdN *[]int32
- componentType *string
- componentTypeN *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]*int32
- manufacturerIdN *[]*int32
+ ctx context.Context
+ ApiService DcimAPI
+ componentId *[]int32
+ componentIdEmpty *[]int32
+ componentIdGt *[]int32
+ componentIdGte *[]int32
+ componentIdLt *[]int32
+ componentIdLte *[]int32
+ componentIdN *[]int32
+ componentType *string
+ componentTypeN *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]*int32
+ manufacturerIdN *[]*int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parentId *[]*int32
- parentIdN *[]*int32
- partId *[]string
- partIdEmpty *bool
- partIdIc *[]string
- partIdIe *[]string
- partIdIew *[]string
- partIdIsw *[]string
- partIdN *[]string
- partIdNic *[]string
- partIdNie *[]string
- partIdNiew *[]string
- partIdNisw *[]string
- q *string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ partId *[]string
+ partIdEmpty *bool
+ partIdIc *[]string
+ partIdIe *[]string
+ partIdIew *[]string
+ partIdIsw *[]string
+ partIdN *[]string
+ partIdNic *[]string
+ partIdNie *[]string
+ partIdNiew *[]string
+ partIdNisw *[]string
+ q *string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiDcimInventoryItemTemplatesListRequest) ComponentId(componentId []int32) ApiDcimInventoryItemTemplatesListRequest {
@@ -56629,24 +57639,25 @@ DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList
Get a list of inventory item template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemTemplatesListRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest {
return ApiDcimInventoryItemTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedInventoryItemTemplateList
+//
+// @return PaginatedInventoryItemTemplateList
func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedInventoryItemTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedInventoryItemTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesList")
@@ -57640,9 +58651,9 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor
}
type ApiDcimInventoryItemTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedInventoryItemTemplateRequest *PatchedInventoryItemTemplateRequest
}
@@ -57660,26 +58671,27 @@ DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPar
Patch a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest {
return ApiDcimInventoryItemTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemTemplate
+//
+// @return InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesPartialUpdate")
@@ -57765,9 +58777,9 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDci
}
type ApiDcimInventoryItemTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemTemplatesRetrieveRequest) Execute() (*InventoryItemTemplate, *http.Response, error) {
@@ -57779,26 +58791,27 @@ DcimInventoryItemTemplatesRetrieve Method for DcimInventoryItemTemplatesRetrieve
Get a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest {
return ApiDcimInventoryItemTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemTemplate
+//
+// @return InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesRetrieve")
@@ -57882,9 +58895,9 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInve
}
type ApiDcimInventoryItemTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
inventoryItemTemplateRequest *InventoryItemTemplateRequest
}
@@ -57902,26 +58915,27 @@ DcimInventoryItemTemplatesUpdate Method for DcimInventoryItemTemplatesUpdate
Put a inventory item template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item template.
- @return ApiDcimInventoryItemTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item template.
+ @return ApiDcimInventoryItemTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest {
return ApiDcimInventoryItemTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItemTemplate
+//
+// @return InventoryItemTemplate
func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItemTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItemTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesUpdate")
@@ -58010,8 +59024,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInvent
}
type ApiDcimInventoryItemsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRequest *[]InventoryItemRequest
}
@@ -58029,22 +59043,22 @@ DcimInventoryItemsBulkDestroy Method for DcimInventoryItemsBulkDestroy
Delete a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest {
return ApiDcimInventoryItemsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkDestroy")
@@ -58123,8 +59137,8 @@ func (a *DcimAPIService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventory
}
type ApiDcimInventoryItemsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRequest *[]InventoryItemRequest
}
@@ -58142,24 +59156,25 @@ DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpda
Patch a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest {
return ApiDcimInventoryItemsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItem
+//
+// @return []InventoryItem
func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItem
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkPartialUpdate")
@@ -58247,8 +59262,8 @@ func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInv
}
type ApiDcimInventoryItemsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
inventoryItemRequest *[]InventoryItemRequest
}
@@ -58266,24 +59281,25 @@ DcimInventoryItemsBulkUpdate Method for DcimInventoryItemsBulkUpdate
Put a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest {
return ApiDcimInventoryItemsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []InventoryItem
+//
+// @return []InventoryItem
func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []InventoryItem
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkUpdate")
@@ -58371,8 +59387,8 @@ func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryI
}
type ApiDcimInventoryItemsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableInventoryItemRequest *WritableInventoryItemRequest
}
@@ -58390,24 +59406,25 @@ DcimInventoryItemsCreate Method for DcimInventoryItemsCreate
Post a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsCreateRequest
*/
func (a *DcimAPIService) DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest {
return ApiDcimInventoryItemsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return InventoryItem
+//
+// @return InventoryItem
func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItem
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsCreate")
@@ -58495,9 +59512,9 @@ func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItems
}
type ApiDcimInventoryItemsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemsDestroyRequest) Execute() (*http.Response, error) {
@@ -58509,24 +59526,24 @@ DcimInventoryItemsDestroy Method for DcimInventoryItemsDestroy
Delete a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsDestroyRequest
*/
func (a *DcimAPIService) DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest {
return ApiDcimInventoryItemsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsDestroy")
@@ -58601,181 +59618,183 @@ func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItem
}
type ApiDcimInventoryItemsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- assetTag *[]string
- assetTagEmpty *bool
- assetTagIc *[]string
- assetTagIe *[]string
- assetTagIew *[]string
- assetTagIsw *[]string
- assetTagN *[]string
- assetTagNic *[]string
- assetTagNie *[]string
- assetTagNiew *[]string
- assetTagNisw *[]string
- componentId *[]int32
- componentIdEmpty *[]int32
- componentIdGt *[]int32
- componentIdGte *[]int32
- componentIdLt *[]int32
- componentIdLte *[]int32
- componentIdN *[]int32
- componentType *string
- componentTypeN *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ assetTag *[]string
+ assetTagEmpty *bool
+ assetTagIc *[]string
+ assetTagIe *[]string
+ assetTagIew *[]string
+ assetTagIsw *[]string
+ assetTagN *[]string
+ assetTagNic *[]string
+ assetTagNie *[]string
+ assetTagNiew *[]string
+ assetTagNisw *[]string
+ componentId *[]int32
+ componentIdEmpty *[]int32
+ componentIdGt *[]int32
+ componentIdGte *[]int32
+ componentIdLt *[]int32
+ componentIdLte *[]int32
+ componentIdN *[]int32
+ componentType *string
+ componentTypeN *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- discovered *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]*int32
- manufacturerIdN *[]*int32
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ discovered *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]*int32
+ manufacturerIdN *[]*int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parentId *[]*int32
- parentIdN *[]*int32
- partId *[]string
- partIdEmpty *bool
- partIdIc *[]string
- partIdIe *[]string
- partIdIew *[]string
- partIdIsw *[]string
- partIdN *[]string
- partIdNic *[]string
- partIdNie *[]string
- partIdNiew *[]string
- partIdNisw *[]string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ partId *[]string
+ partIdEmpty *bool
+ partIdIc *[]string
+ partIdIe *[]string
+ partIdIew *[]string
+ partIdIsw *[]string
+ partIdN *[]string
+ partIdNic *[]string
+ partIdNie *[]string
+ partIdNiew *[]string
+ partIdNisw *[]string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ serial *[]string
+ serialEmpty *bool
+ serialIc *[]string
+ serialIe *[]string
+ serialIew *[]string
+ serialIsw *[]string
+ serialN *[]string
+ serialNic *[]string
+ serialNie *[]string
+ serialNiew *[]string
+ serialNisw *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
virtualChassisIdN *[]int32
}
@@ -59662,6 +60681,16 @@ func (r ApiDcimInventoryItemsListRequest) TagN(tagN []string) ApiDcimInventoryIt
return r
}
+func (r ApiDcimInventoryItemsListRequest) TagId(tagId []int32) ApiDcimInventoryItemsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimInventoryItemsListRequest) TagIdN(tagIdN []int32) ApiDcimInventoryItemsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimInventoryItemsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -59700,24 +60729,25 @@ DcimInventoryItemsList Method for DcimInventoryItemsList
Get a list of inventory item objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimInventoryItemsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimInventoryItemsListRequest
*/
func (a *DcimAPIService) DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest {
return ApiDcimInventoryItemsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedInventoryItemList
+//
+// @return PaginatedInventoryItemList
func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedInventoryItemList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedInventoryItemList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsList")
@@ -61446,6 +62476,28 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -61562,9 +62614,9 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi
}
type ApiDcimInventoryItemsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableInventoryItemRequest *PatchedWritableInventoryItemRequest
}
@@ -61582,26 +62634,27 @@ DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate
Patch a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest {
return ApiDcimInventoryItemsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItem
+//
+// @return InventoryItem
func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItem
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsPartialUpdate")
@@ -61687,9 +62740,9 @@ func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInvento
}
type ApiDcimInventoryItemsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimInventoryItemsRetrieveRequest) Execute() (*InventoryItem, *http.Response, error) {
@@ -61701,26 +62754,27 @@ DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve
Get a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsRetrieveRequest
*/
func (a *DcimAPIService) DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest {
return ApiDcimInventoryItemsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItem
+//
+// @return InventoryItem
func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItem
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsRetrieve")
@@ -61804,9 +62858,9 @@ func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryIte
}
type ApiDcimInventoryItemsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableInventoryItemRequest *WritableInventoryItemRequest
}
@@ -61824,26 +62878,27 @@ DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate
Put a inventory item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this inventory item.
- @return ApiDcimInventoryItemsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this inventory item.
+ @return ApiDcimInventoryItemsUpdateRequest
*/
func (a *DcimAPIService) DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest {
return ApiDcimInventoryItemsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return InventoryItem
+//
+// @return InventoryItem
func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *InventoryItem
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *InventoryItem
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsUpdate")
@@ -61932,8 +62987,8 @@ func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems
}
type ApiDcimLocationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
locationRequest *[]LocationRequest
}
@@ -61951,22 +63006,22 @@ DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy
Delete a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest {
return ApiDcimLocationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkDestroy")
@@ -62045,8 +63100,8 @@ func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkD
}
type ApiDcimLocationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
locationRequest *[]LocationRequest
}
@@ -62064,24 +63119,25 @@ DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate
Patch a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest {
return ApiDcimLocationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Location
+//
+// @return []Location
func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Location
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkPartialUpdate")
@@ -62169,8 +63225,8 @@ func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocation
}
type ApiDcimLocationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
locationRequest *[]LocationRequest
}
@@ -62188,24 +63244,25 @@ DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate
Put a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest {
return ApiDcimLocationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Location
+//
+// @return []Location
func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Location
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkUpdate")
@@ -62293,8 +63350,8 @@ func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUp
}
type ApiDcimLocationsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableLocationRequest *WritableLocationRequest
}
@@ -62312,24 +63369,25 @@ DcimLocationsCreate Method for DcimLocationsCreate
Post a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsCreateRequest
*/
func (a *DcimAPIService) DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest {
return ApiDcimLocationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Location
+//
+// @return Location
func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Location
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsCreate")
@@ -62417,9 +63475,9 @@ func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequ
}
type ApiDcimLocationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimLocationsDestroyRequest) Execute() (*http.Response, error) {
@@ -62431,24 +63489,24 @@ DcimLocationsDestroy Method for DcimLocationsDestroy
Delete a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsDestroyRequest
*/
func (a *DcimAPIService) DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest {
return ApiDcimLocationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsDestroy")
@@ -62523,127 +63581,129 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe
}
type ApiDcimLocationsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- facility *[]string
- facilityEmpty *bool
- facilityIc *[]string
- facilityIe *[]string
- facilityIew *[]string
- facilityIsw *[]string
- facilityN *[]string
- facilityNic *[]string
- facilityNie *[]string
- facilityNiew *[]string
- facilityNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ facility *[]string
+ facilityEmpty *bool
+ facilityIc *[]string
+ facilityIe *[]string
+ facilityIew *[]string
+ facilityIsw *[]string
+ facilityN *[]string
+ facilityNic *[]string
+ facilityNie *[]string
+ facilityNiew *[]string
+ facilityNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest {
@@ -63212,6 +64272,16 @@ func (r ApiDcimLocationsListRequest) TagN(tagN []string) ApiDcimLocationsListReq
return r
}
+func (r ApiDcimLocationsListRequest) TagId(tagId []int32) ApiDcimLocationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimLocationsListRequest) TagIdN(tagIdN []int32) ApiDcimLocationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimLocationsListRequest) Tenant(tenant []string) ApiDcimLocationsListRequest {
r.tenant = &tenant
@@ -63270,24 +64340,25 @@ DcimLocationsList Method for DcimLocationsList
Get a list of location objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimLocationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimLocationsListRequest
*/
func (a *DcimAPIService) DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest {
return ApiDcimLocationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedLocationList
+//
+// @return PaginatedLocationList
func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedLocationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedLocationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsList")
@@ -64415,6 +65486,28 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -64575,9 +65668,9 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest)
}
type ApiDcimLocationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableLocationRequest *PatchedWritableLocationRequest
}
@@ -64595,26 +65688,27 @@ DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate
Patch a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest {
return ApiDcimLocationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Location
+//
+// @return Location
func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Location
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsPartialUpdate")
@@ -64700,9 +65794,9 @@ func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPar
}
type ApiDcimLocationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimLocationsRetrieveRequest) Execute() (*Location, *http.Response, error) {
@@ -64714,26 +65808,27 @@ DcimLocationsRetrieve Method for DcimLocationsRetrieve
Get a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsRetrieveRequest
*/
func (a *DcimAPIService) DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest {
return ApiDcimLocationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Location
+//
+// @return Location
func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Location
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsRetrieve")
@@ -64817,9 +65912,9 @@ func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieve
}
type ApiDcimLocationsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableLocationRequest *WritableLocationRequest
}
@@ -64837,26 +65932,27 @@ DcimLocationsUpdate Method for DcimLocationsUpdate
Put a location object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this location.
- @return ApiDcimLocationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this location.
+ @return ApiDcimLocationsUpdateRequest
*/
func (a *DcimAPIService) DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest {
return ApiDcimLocationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Location
+//
+// @return Location
func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Location
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Location
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsUpdate")
@@ -64945,8 +66041,8 @@ func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequ
}
type ApiDcimMacAddressesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
mACAddressRequest *[]MACAddressRequest
}
@@ -64964,22 +66060,22 @@ DcimMacAddressesBulkDestroy Method for DcimMacAddressesBulkDestroy
Delete a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimMacAddressesBulkDestroy(ctx context.Context) ApiDcimMacAddressesBulkDestroyRequest {
return ApiDcimMacAddressesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimMacAddressesBulkDestroyExecute(r ApiDcimMacAddressesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkDestroy")
@@ -65058,8 +66154,8 @@ func (a *DcimAPIService) DcimMacAddressesBulkDestroyExecute(r ApiDcimMacAddresse
}
type ApiDcimMacAddressesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
mACAddressRequest *[]MACAddressRequest
}
@@ -65077,24 +66173,25 @@ DcimMacAddressesBulkPartialUpdate Method for DcimMacAddressesBulkPartialUpdate
Patch a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimMacAddressesBulkPartialUpdate(ctx context.Context) ApiDcimMacAddressesBulkPartialUpdateRequest {
return ApiDcimMacAddressesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []MACAddress
+//
+// @return []MACAddress
func (a *DcimAPIService) DcimMacAddressesBulkPartialUpdateExecute(r ApiDcimMacAddressesBulkPartialUpdateRequest) ([]MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []MACAddress
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkPartialUpdate")
@@ -65182,8 +66279,8 @@ func (a *DcimAPIService) DcimMacAddressesBulkPartialUpdateExecute(r ApiDcimMacAd
}
type ApiDcimMacAddressesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
mACAddressRequest *[]MACAddressRequest
}
@@ -65201,24 +66298,25 @@ DcimMacAddressesBulkUpdate Method for DcimMacAddressesBulkUpdate
Put a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimMacAddressesBulkUpdate(ctx context.Context) ApiDcimMacAddressesBulkUpdateRequest {
return ApiDcimMacAddressesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []MACAddress
+//
+// @return []MACAddress
func (a *DcimAPIService) DcimMacAddressesBulkUpdateExecute(r ApiDcimMacAddressesBulkUpdateRequest) ([]MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []MACAddress
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkUpdate")
@@ -65306,8 +66404,8 @@ func (a *DcimAPIService) DcimMacAddressesBulkUpdateExecute(r ApiDcimMacAddresses
}
type ApiDcimMacAddressesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
mACAddressRequest *MACAddressRequest
}
@@ -65325,24 +66423,25 @@ DcimMacAddressesCreate Method for DcimMacAddressesCreate
Post a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesCreateRequest
*/
func (a *DcimAPIService) DcimMacAddressesCreate(ctx context.Context) ApiDcimMacAddressesCreateRequest {
return ApiDcimMacAddressesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return MACAddress
+//
+// @return MACAddress
func (a *DcimAPIService) DcimMacAddressesCreateExecute(r ApiDcimMacAddressesCreateRequest) (*MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *MACAddress
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesCreate")
@@ -65430,9 +66529,9 @@ func (a *DcimAPIService) DcimMacAddressesCreateExecute(r ApiDcimMacAddressesCrea
}
type ApiDcimMacAddressesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimMacAddressesDestroyRequest) Execute() (*http.Response, error) {
@@ -65444,24 +66543,24 @@ DcimMacAddressesDestroy Method for DcimMacAddressesDestroy
Delete a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesDestroyRequest
*/
func (a *DcimAPIService) DcimMacAddressesDestroy(ctx context.Context, id int32) ApiDcimMacAddressesDestroyRequest {
return ApiDcimMacAddressesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimMacAddressesDestroyExecute(r ApiDcimMacAddressesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesDestroy")
@@ -65536,80 +66635,82 @@ func (a *DcimAPIService) DcimMacAddressesDestroyExecute(r ApiDcimMacAddressesDes
}
type ApiDcimMacAddressesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- assignedObjectId *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ assignedObjectId *[]int32
assignedObjectIdEmpty *bool
- assignedObjectIdGt *[]int32
- assignedObjectIdGte *[]int32
- assignedObjectIdLt *[]int32
- assignedObjectIdLte *[]int32
- assignedObjectIdN *[]int32
- assignedObjectType *int32
- assignedObjectTypeN *int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]string
- deviceId *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interface_ *[]string
- interfaceN *[]string
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineId *[]int32
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
+ assignedObjectIdGt *[]int32
+ assignedObjectIdGte *[]int32
+ assignedObjectIdLt *[]int32
+ assignedObjectIdLte *[]int32
+ assignedObjectIdN *[]int32
+ assignedObjectType *int32
+ assignedObjectTypeN *int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]string
+ deviceId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interface_ *[]string
+ interfaceN *[]string
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ macAddress *[]string
+ macAddressIc *[]string
+ macAddressIe *[]string
+ macAddressIew *[]string
+ macAddressIsw *[]string
+ macAddressN *[]string
+ macAddressNic *[]string
+ macAddressNie *[]string
+ macAddressNiew *[]string
+ macAddressNisw *[]string
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineId *[]int32
+ vminterface *[]string
+ vminterfaceN *[]string
+ vminterfaceId *[]int32
+ vminterfaceIdN *[]int32
}
func (r ApiDcimMacAddressesListRequest) AssignedObjectId(assignedObjectId []int32) ApiDcimMacAddressesListRequest {
@@ -65945,6 +67046,16 @@ func (r ApiDcimMacAddressesListRequest) TagN(tagN []string) ApiDcimMacAddressesL
return r
}
+func (r ApiDcimMacAddressesListRequest) TagId(tagId []int32) ApiDcimMacAddressesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimMacAddressesListRequest) TagIdN(tagIdN []int32) ApiDcimMacAddressesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimMacAddressesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimMacAddressesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -65993,24 +67104,25 @@ DcimMacAddressesList Method for DcimMacAddressesList
Get a list of MAC address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimMacAddressesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimMacAddressesListRequest
*/
func (a *DcimAPIService) DcimMacAddressesList(ctx context.Context) ApiDcimMacAddressesListRequest {
return ApiDcimMacAddressesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedMACAddressList
+//
+// @return PaginatedMACAddressList
func (a *DcimAPIService) DcimMacAddressesListExecute(r ApiDcimMacAddressesListRequest) (*PaginatedMACAddressList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedMACAddressList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedMACAddressList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesList")
@@ -66651,6 +67763,28 @@ func (a *DcimAPIService) DcimMacAddressesListExecute(r ApiDcimMacAddressesListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -66789,9 +67923,9 @@ func (a *DcimAPIService) DcimMacAddressesListExecute(r ApiDcimMacAddressesListRe
}
type ApiDcimMacAddressesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedMACAddressRequest *PatchedMACAddressRequest
}
@@ -66809,26 +67943,27 @@ DcimMacAddressesPartialUpdate Method for DcimMacAddressesPartialUpdate
Patch a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimMacAddressesPartialUpdate(ctx context.Context, id int32) ApiDcimMacAddressesPartialUpdateRequest {
return ApiDcimMacAddressesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return MACAddress
+//
+// @return MACAddress
func (a *DcimAPIService) DcimMacAddressesPartialUpdateExecute(r ApiDcimMacAddressesPartialUpdateRequest) (*MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *MACAddress
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesPartialUpdate")
@@ -66914,9 +68049,9 @@ func (a *DcimAPIService) DcimMacAddressesPartialUpdateExecute(r ApiDcimMacAddres
}
type ApiDcimMacAddressesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimMacAddressesRetrieveRequest) Execute() (*MACAddress, *http.Response, error) {
@@ -66928,26 +68063,27 @@ DcimMacAddressesRetrieve Method for DcimMacAddressesRetrieve
Get a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesRetrieveRequest
*/
func (a *DcimAPIService) DcimMacAddressesRetrieve(ctx context.Context, id int32) ApiDcimMacAddressesRetrieveRequest {
return ApiDcimMacAddressesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return MACAddress
+//
+// @return MACAddress
func (a *DcimAPIService) DcimMacAddressesRetrieveExecute(r ApiDcimMacAddressesRetrieveRequest) (*MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *MACAddress
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesRetrieve")
@@ -67031,9 +68167,9 @@ func (a *DcimAPIService) DcimMacAddressesRetrieveExecute(r ApiDcimMacAddressesRe
}
type ApiDcimMacAddressesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
mACAddressRequest *MACAddressRequest
}
@@ -67051,26 +68187,27 @@ DcimMacAddressesUpdate Method for DcimMacAddressesUpdate
Put a MAC address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this MAC address.
- @return ApiDcimMacAddressesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this MAC address.
+ @return ApiDcimMacAddressesUpdateRequest
*/
func (a *DcimAPIService) DcimMacAddressesUpdate(ctx context.Context, id int32) ApiDcimMacAddressesUpdateRequest {
return ApiDcimMacAddressesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return MACAddress
+//
+// @return MACAddress
func (a *DcimAPIService) DcimMacAddressesUpdateExecute(r ApiDcimMacAddressesUpdateRequest) (*MACAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *MACAddress
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *MACAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesUpdate")
@@ -67159,8 +68296,8 @@ func (a *DcimAPIService) DcimMacAddressesUpdateExecute(r ApiDcimMacAddressesUpda
}
type ApiDcimManufacturersBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
manufacturerRequest *[]ManufacturerRequest
}
@@ -67178,22 +68315,22 @@ DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy
Delete a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkDestroyRequest
*/
func (a *DcimAPIService) DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest {
return ApiDcimManufacturersBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkDestroy")
@@ -67272,8 +68409,8 @@ func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufactur
}
type ApiDcimManufacturersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
manufacturerRequest *[]ManufacturerRequest
}
@@ -67291,24 +68428,25 @@ DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate
Patch a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest {
return ApiDcimManufacturersBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Manufacturer
+//
+// @return []Manufacturer
func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Manufacturer
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkPartialUpdate")
@@ -67396,8 +68534,8 @@ func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManu
}
type ApiDcimManufacturersBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
manufacturerRequest *[]ManufacturerRequest
}
@@ -67415,24 +68553,25 @@ DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate
Put a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersBulkUpdateRequest
*/
func (a *DcimAPIService) DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest {
return ApiDcimManufacturersBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Manufacturer
+//
+// @return []Manufacturer
func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Manufacturer
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkUpdate")
@@ -67520,8 +68659,8 @@ func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacture
}
type ApiDcimManufacturersCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
manufacturerRequest *ManufacturerRequest
}
@@ -67539,24 +68678,25 @@ DcimManufacturersCreate Method for DcimManufacturersCreate
Post a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersCreateRequest
*/
func (a *DcimAPIService) DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest {
return ApiDcimManufacturersCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Manufacturer
+//
+// @return Manufacturer
func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Manufacturer
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersCreate")
@@ -67644,9 +68784,9 @@ func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCr
}
type ApiDcimManufacturersDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimManufacturersDestroyRequest) Execute() (*http.Response, error) {
@@ -67658,24 +68798,24 @@ DcimManufacturersDestroy Method for DcimManufacturersDestroy
Delete a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersDestroyRequest
*/
func (a *DcimAPIService) DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest {
return ApiDcimManufacturersDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersDestroy")
@@ -67750,77 +68890,79 @@ func (a *DcimAPIService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersD
}
type ApiDcimManufacturersListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// Contact
@@ -68171,6 +69313,16 @@ func (r ApiDcimManufacturersListRequest) TagN(tagN []string) ApiDcimManufacturer
return r
}
+func (r ApiDcimManufacturersListRequest) TagId(tagId []int32) ApiDcimManufacturersListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimManufacturersListRequest) TagIdN(tagIdN []int32) ApiDcimManufacturersListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimManufacturersListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimManufacturersListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -68185,24 +69337,25 @@ DcimManufacturersList Method for DcimManufacturersList
Get a list of manufacturer objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimManufacturersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimManufacturersListRequest
*/
func (a *DcimAPIService) DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest {
return ApiDcimManufacturersListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedManufacturerList
+//
+// @return PaginatedManufacturerList
func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedManufacturerList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedManufacturerList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersList")
@@ -68884,6 +70037,28 @@ func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersList
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -68956,9 +70131,9 @@ func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersList
}
type ApiDcimManufacturersPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedManufacturerRequest *PatchedManufacturerRequest
}
@@ -68976,26 +70151,27 @@ DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate
Patch a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersPartialUpdateRequest
*/
func (a *DcimAPIService) DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest {
return ApiDcimManufacturersPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Manufacturer
+//
+// @return Manufacturer
func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Manufacturer
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersPartialUpdate")
@@ -69081,9 +70257,9 @@ func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufact
}
type ApiDcimManufacturersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimManufacturersRetrieveRequest) Execute() (*Manufacturer, *http.Response, error) {
@@ -69095,26 +70271,27 @@ DcimManufacturersRetrieve Method for DcimManufacturersRetrieve
Get a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersRetrieveRequest
*/
func (a *DcimAPIService) DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest {
return ApiDcimManufacturersRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Manufacturer
+//
+// @return Manufacturer
func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Manufacturer
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersRetrieve")
@@ -69198,9 +70375,9 @@ func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturers
}
type ApiDcimManufacturersUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
manufacturerRequest *ManufacturerRequest
}
@@ -69218,26 +70395,27 @@ DcimManufacturersUpdate Method for DcimManufacturersUpdate
Put a manufacturer object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this manufacturer.
- @return ApiDcimManufacturersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this manufacturer.
+ @return ApiDcimManufacturersUpdateRequest
*/
func (a *DcimAPIService) DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest {
return ApiDcimManufacturersUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Manufacturer
+//
+// @return Manufacturer
func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Manufacturer
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Manufacturer
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersUpdate")
@@ -69326,8 +70504,8 @@ func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUp
}
type ApiDcimModuleBayTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayTemplateRequest *[]ModuleBayTemplateRequest
}
@@ -69345,22 +70523,22 @@ DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy
Delete a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest {
return ApiDcimModuleBayTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkDestroy")
@@ -69439,8 +70617,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModul
}
type ApiDcimModuleBayTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayTemplateRequest *[]ModuleBayTemplateRequest
}
@@ -69458,24 +70636,25 @@ DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPar
Patch a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest {
return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleBayTemplate
+//
+// @return []ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleBayTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkPartialUpdate")
@@ -69563,8 +70742,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimModuleBayTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayTemplateRequest *[]ModuleBayTemplateRequest
}
@@ -69582,24 +70761,25 @@ DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate
Put a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest {
return ApiDcimModuleBayTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleBayTemplate
+//
+// @return []ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleBayTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkUpdate")
@@ -69687,8 +70867,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModule
}
type ApiDcimModuleBayTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayTemplateRequest *ModuleBayTemplateRequest
}
@@ -69706,24 +70886,25 @@ DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate
Post a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest {
return ApiDcimModuleBayTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ModuleBayTemplate
+//
+// @return ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBayTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesCreate")
@@ -69811,9 +70992,9 @@ func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT
}
type ApiDcimModuleBayTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModuleBayTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -69825,24 +71006,24 @@ DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy
Delete a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest {
return ApiDcimModuleBayTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesDestroy")
@@ -69917,84 +71098,84 @@ func (a *DcimAPIService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBay
}
type ApiDcimModuleBayTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- position *[]string
- positionEmpty *bool
- positionIc *[]string
- positionIe *[]string
- positionIew *[]string
- positionIsw *[]string
- positionN *[]string
- positionNic *[]string
- positionNie *[]string
- positionNiew *[]string
- positionNisw *[]string
- q *string
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ position *[]string
+ positionEmpty *bool
+ positionIc *[]string
+ positionIe *[]string
+ positionIew *[]string
+ positionIsw *[]string
+ positionN *[]string
+ positionNic *[]string
+ positionNie *[]string
+ positionNiew *[]string
+ positionNisw *[]string
+ q *string
+ updatedByRequest *string
}
func (r ApiDcimModuleBayTemplatesListRequest) Created(created []time.Time) ApiDcimModuleBayTemplatesListRequest {
@@ -70394,24 +71575,25 @@ DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList
Get a list of module bay template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBayTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBayTemplatesListRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest {
return ApiDcimModuleBayTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedModuleBayTemplateList
+//
+// @return PaginatedModuleBayTemplateList
func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedModuleBayTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedModuleBayTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesList")
@@ -71234,9 +72416,9 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
}
type ApiDcimModuleBayTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedModuleBayTemplateRequest *PatchedModuleBayTemplateRequest
}
@@ -71254,26 +72436,27 @@ DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpda
Patch a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest {
return ApiDcimModuleBayTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBayTemplate
+//
+// @return ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBayTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesPartialUpdate")
@@ -71359,9 +72542,9 @@ func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimMod
}
type ApiDcimModuleBayTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModuleBayTemplatesRetrieveRequest) Execute() (*ModuleBayTemplate, *http.Response, error) {
@@ -71373,26 +72556,27 @@ DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve
Get a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest {
return ApiDcimModuleBayTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBayTemplate
+//
+// @return ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBayTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesRetrieve")
@@ -71476,9 +72660,9 @@ func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBa
}
type ApiDcimModuleBayTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
moduleBayTemplateRequest *ModuleBayTemplateRequest
}
@@ -71496,26 +72680,27 @@ DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate
Put a module bay template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay template.
- @return ApiDcimModuleBayTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay template.
+ @return ApiDcimModuleBayTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest {
return ApiDcimModuleBayTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBayTemplate
+//
+// @return ModuleBayTemplate
func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBayTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBayTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesUpdate")
@@ -71604,8 +72789,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT
}
type ApiDcimModuleBaysBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayRequest *[]ModuleBayRequest
}
@@ -71623,22 +72808,22 @@ DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy
Delete a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkDestroyRequest
*/
func (a *DcimAPIService) DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest {
return ApiDcimModuleBaysBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkDestroy")
@@ -71717,8 +72902,8 @@ func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBul
}
type ApiDcimModuleBaysBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayRequest *[]ModuleBayRequest
}
@@ -71736,24 +72921,25 @@ DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate
Patch a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest {
return ApiDcimModuleBaysBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleBay
+//
+// @return []ModuleBay
func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleBay
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkPartialUpdate")
@@ -71841,8 +73027,8 @@ func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleB
}
type ApiDcimModuleBaysBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayRequest *[]ModuleBayRequest
}
@@ -71860,24 +73046,25 @@ DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate
Put a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysBulkUpdateRequest
*/
func (a *DcimAPIService) DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest {
return ApiDcimModuleBaysBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleBay
+//
+// @return []ModuleBay
func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleBay
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkUpdate")
@@ -71965,8 +73152,8 @@ func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulk
}
type ApiDcimModuleBaysCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleBayRequest *ModuleBayRequest
}
@@ -71984,24 +73171,25 @@ DcimModuleBaysCreate Method for DcimModuleBaysCreate
Post a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysCreateRequest
*/
func (a *DcimAPIService) DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest {
return ApiDcimModuleBaysCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ModuleBay
+//
+// @return ModuleBay
func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBay
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBay
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysCreate")
@@ -72089,9 +73277,9 @@ func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe
}
type ApiDcimModuleBaysDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModuleBaysDestroyRequest) Execute() (*http.Response, error) {
@@ -72103,24 +73291,24 @@ DcimModuleBaysDestroy Method for DcimModuleBaysDestroy
Delete a module bay object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module bay.
- @return ApiDcimModuleBaysDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysDestroyRequest
*/
func (a *DcimAPIService) DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest {
return ApiDcimModuleBaysDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysDestroy")
@@ -72195,135 +73383,137 @@ func (a *DcimAPIService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroy
}
type ApiDcimModuleBaysListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
- deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- installedModuleId *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
+ deviceStatusEmpty *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ installedModuleId *[]int32
installedModuleIdN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parentId *[]*int32
- parentIdN *[]*int32
- position *[]string
- positionEmpty *bool
- positionIc *[]string
- positionIe *[]string
- positionIew *[]string
- positionIsw *[]string
- positionN *[]string
- positionNic *[]string
- positionNie *[]string
- positionNiew *[]string
- positionNisw *[]string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ modifiedByRequest *string
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ position *[]string
+ positionEmpty *bool
+ positionIc *[]string
+ positionIe *[]string
+ positionIew *[]string
+ positionIsw *[]string
+ positionN *[]string
+ positionNic *[]string
+ positionNie *[]string
+ positionNiew *[]string
+ positionNisw *[]string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
}
func (r ApiDcimModuleBaysListRequest) Created(created []time.Time) ApiDcimModuleBaysListRequest {
@@ -72970,6 +74160,16 @@ func (r ApiDcimModuleBaysListRequest) TagN(tagN []string) ApiDcimModuleBaysListR
return r
}
+func (r ApiDcimModuleBaysListRequest) TagId(tagId []int32) ApiDcimModuleBaysListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) TagIdN(tagIdN []int32) ApiDcimModuleBaysListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimModuleBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleBaysListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -73008,24 +74208,25 @@ DcimModuleBaysList Method for DcimModuleBaysList
Get a list of module bay objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleBaysListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleBaysListRequest
*/
func (a *DcimAPIService) DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest {
return ApiDcimModuleBaysListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedModuleBayList
+//
+// @return PaginatedModuleBayList
func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedModuleBayList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedModuleBayList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysList")
@@ -73949,320 +75150,2287 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
}
- if r.parentId != nil {
- t := *r.parentId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi")
- }
- }
- if r.parentIdN != nil {
- t := *r.parentIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi")
- }
- }
- if r.position != nil {
- t := *r.position
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "form", "multi")
- }
- }
- if r.positionEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "form", "")
- }
- if r.positionIc != nil {
- t := *r.positionIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "form", "multi")
- }
- }
- if r.positionIe != nil {
- t := *r.positionIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "form", "multi")
- }
- }
- if r.positionIew != nil {
- t := *r.positionIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "form", "multi")
- }
- }
- if r.positionIsw != nil {
- t := *r.positionIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "form", "multi")
- }
- }
- if r.positionN != nil {
- t := *r.positionN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "form", "multi")
- }
- }
- if r.positionNic != nil {
- t := *r.positionNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "form", "multi")
- }
- }
- if r.positionNie != nil {
- t := *r.positionNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "form", "multi")
- }
- }
- if r.positionNiew != nil {
- t := *r.positionNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "form", "multi")
- }
- }
- if r.positionNisw != nil {
- t := *r.positionNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "form", "multi")
- }
- }
+ if r.parentId != nil {
+ t := *r.parentId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi")
+ }
+ }
+ if r.parentIdN != nil {
+ t := *r.parentIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi")
+ }
+ }
+ if r.position != nil {
+ t := *r.position
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "form", "multi")
+ }
+ }
+ if r.positionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "form", "")
+ }
+ if r.positionIc != nil {
+ t := *r.positionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "form", "multi")
+ }
+ }
+ if r.positionIe != nil {
+ t := *r.positionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "form", "multi")
+ }
+ }
+ if r.positionIew != nil {
+ t := *r.positionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "form", "multi")
+ }
+ }
+ if r.positionIsw != nil {
+ t := *r.positionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "form", "multi")
+ }
+ }
+ if r.positionN != nil {
+ t := *r.positionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "form", "multi")
+ }
+ }
+ if r.positionNic != nil {
+ t := *r.positionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "form", "multi")
+ }
+ }
+ if r.positionNie != nil {
+ t := *r.positionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "form", "multi")
+ }
+ }
+ if r.positionNiew != nil {
+ t := *r.positionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "form", "multi")
+ }
+ }
+ if r.positionNisw != nil {
+ t := *r.positionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "form", "multi")
+ }
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
+ }
+ if r.rack != nil {
+ t := *r.rack
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi")
+ }
+ }
+ if r.rackN != nil {
+ t := *r.rackN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi")
+ }
+ }
+ if r.rackId != nil {
+ t := *r.rackId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi")
+ }
+ }
+ if r.rackIdN != nil {
+ t := *r.rackIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi")
+ }
+ }
+ if r.region != nil {
+ t := *r.region
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi")
+ }
+ }
+ if r.regionN != nil {
+ t := *r.regionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi")
+ }
+ }
+ if r.regionId != nil {
+ t := *r.regionId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi")
+ }
+ }
+ if r.regionIdN != nil {
+ t := *r.regionIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi")
+ }
+ }
+ if r.site != nil {
+ t := *r.site
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi")
+ }
+ }
+ if r.siteN != nil {
+ t := *r.siteN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi")
+ }
+ }
+ if r.siteGroup != nil {
+ t := *r.siteGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi")
+ }
+ }
+ if r.siteGroupN != nil {
+ t := *r.siteGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi")
+ }
+ }
+ if r.siteGroupId != nil {
+ t := *r.siteGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi")
+ }
+ }
+ if r.siteGroupIdN != nil {
+ t := *r.siteGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi")
+ }
+ }
+ if r.siteId != nil {
+ t := *r.siteId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi")
+ }
+ }
+ if r.siteIdN != nil {
+ t := *r.siteIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi")
+ }
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
+ }
+ }
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
+ }
+ if r.virtualChassis != nil {
+ t := *r.virtualChassis
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi")
+ }
+ }
+ if r.virtualChassisN != nil {
+ t := *r.virtualChassisN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi")
+ }
+ }
+ if r.virtualChassisId != nil {
+ t := *r.virtualChassisId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi")
+ }
+ }
+ if r.virtualChassisIdN != nil {
+ t := *r.virtualChassisIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi")
+ }
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ 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 ApiDcimModuleBaysPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ patchedModuleBayRequest *PatchedModuleBayRequest
+}
+
+func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedModuleBayRequest(patchedModuleBayRequest PatchedModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest {
+ r.patchedModuleBayRequest = &patchedModuleBayRequest
+ return r
+}
+
+func (r ApiDcimModuleBaysPartialUpdateRequest) Execute() (*ModuleBay, *http.Response, error) {
+ return r.ApiService.DcimModuleBaysPartialUpdateExecute(r)
+}
+
+/*
+DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate
+
+Patch a module bay object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysPartialUpdateRequest
+*/
+func (a *DcimAPIService) DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest {
+ return ApiDcimModuleBaysPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return ModuleBay
+func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBay
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine 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.patchedModuleBayRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiDcimModuleBaysRetrieveRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+}
+
+func (r ApiDcimModuleBaysRetrieveRequest) Execute() (*ModuleBay, *http.Response, error) {
+ return r.ApiService.DcimModuleBaysRetrieveExecute(r)
+}
+
+/*
+DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve
+
+Get a module bay object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysRetrieveRequest
+*/
+func (a *DcimAPIService) DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest {
+ return ApiDcimModuleBaysRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return ModuleBay
+func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBay
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 ApiDcimModuleBaysUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ moduleBayRequest *ModuleBayRequest
+}
+
+func (r ApiDcimModuleBaysUpdateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysUpdateRequest {
+ r.moduleBayRequest = &moduleBayRequest
+ return r
+}
+
+func (r ApiDcimModuleBaysUpdateRequest) Execute() (*ModuleBay, *http.Response, error) {
+ return r.ApiService.DcimModuleBaysUpdateExecute(r)
+}
+
+/*
+DcimModuleBaysUpdate Method for DcimModuleBaysUpdate
+
+Put a module bay object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module bay.
+ @return ApiDcimModuleBaysUpdateRequest
+*/
+func (a *DcimAPIService) DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest {
+ return ApiDcimModuleBaysUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return ModuleBay
+func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleBay
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moduleBayRequest == nil {
+ return localVarReturnValue, nil, reportError("moduleBayRequest 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.moduleBayRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiDcimModuleTypeProfilesBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ moduleTypeProfileRequest *[]ModuleTypeProfileRequest
+}
+
+func (r ApiDcimModuleTypeProfilesBulkDestroyRequest) ModuleTypeProfileRequest(moduleTypeProfileRequest []ModuleTypeProfileRequest) ApiDcimModuleTypeProfilesBulkDestroyRequest {
+ r.moduleTypeProfileRequest = &moduleTypeProfileRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesBulkDestroyExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesBulkDestroy Method for DcimModuleTypeProfilesBulkDestroy
+
+Delete a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkDestroyRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkDestroy(ctx context.Context) ApiDcimModuleTypeProfilesBulkDestroyRequest {
+ return ApiDcimModuleTypeProfilesBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkDestroyExecute(r ApiDcimModuleTypeProfilesBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moduleTypeProfileRequest == nil {
+ return nil, reportError("moduleTypeProfileRequest 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.moduleTypeProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiDcimModuleTypeProfilesBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ moduleTypeProfileRequest *[]ModuleTypeProfileRequest
+}
+
+func (r ApiDcimModuleTypeProfilesBulkPartialUpdateRequest) ModuleTypeProfileRequest(moduleTypeProfileRequest []ModuleTypeProfileRequest) ApiDcimModuleTypeProfilesBulkPartialUpdateRequest {
+ r.moduleTypeProfileRequest = &moduleTypeProfileRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesBulkPartialUpdateRequest) Execute() ([]ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesBulkPartialUpdateExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesBulkPartialUpdate Method for DcimModuleTypeProfilesBulkPartialUpdate
+
+Patch a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkPartialUpdateRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypeProfilesBulkPartialUpdateRequest {
+ return ApiDcimModuleTypeProfilesBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkPartialUpdateExecute(r ApiDcimModuleTypeProfilesBulkPartialUpdateRequest) ([]ModuleTypeProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleTypeProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moduleTypeProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("moduleTypeProfileRequest 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.moduleTypeProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiDcimModuleTypeProfilesBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ moduleTypeProfileRequest *[]ModuleTypeProfileRequest
+}
+
+func (r ApiDcimModuleTypeProfilesBulkUpdateRequest) ModuleTypeProfileRequest(moduleTypeProfileRequest []ModuleTypeProfileRequest) ApiDcimModuleTypeProfilesBulkUpdateRequest {
+ r.moduleTypeProfileRequest = &moduleTypeProfileRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesBulkUpdateRequest) Execute() ([]ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesBulkUpdateExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesBulkUpdate Method for DcimModuleTypeProfilesBulkUpdate
+
+Put a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesBulkUpdateRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkUpdate(ctx context.Context) ApiDcimModuleTypeProfilesBulkUpdateRequest {
+ return ApiDcimModuleTypeProfilesBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesBulkUpdateExecute(r ApiDcimModuleTypeProfilesBulkUpdateRequest) ([]ModuleTypeProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleTypeProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moduleTypeProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("moduleTypeProfileRequest 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.moduleTypeProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiDcimModuleTypeProfilesCreateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ moduleTypeProfileRequest *ModuleTypeProfileRequest
+}
+
+func (r ApiDcimModuleTypeProfilesCreateRequest) ModuleTypeProfileRequest(moduleTypeProfileRequest ModuleTypeProfileRequest) ApiDcimModuleTypeProfilesCreateRequest {
+ r.moduleTypeProfileRequest = &moduleTypeProfileRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesCreateRequest) Execute() (*ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesCreateExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesCreate Method for DcimModuleTypeProfilesCreate
+
+Post a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesCreateRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesCreate(ctx context.Context) ApiDcimModuleTypeProfilesCreateRequest {
+ return ApiDcimModuleTypeProfilesCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesCreateExecute(r ApiDcimModuleTypeProfilesCreateRequest) (*ModuleTypeProfile, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleTypeProfile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.moduleTypeProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("moduleTypeProfileRequest 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.moduleTypeProfileRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiDcimModuleTypeProfilesDestroyRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+}
+
+func (r ApiDcimModuleTypeProfilesDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesDestroyExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesDestroy Method for DcimModuleTypeProfilesDestroy
+
+Delete a module type 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 module type profile.
+ @return ApiDcimModuleTypeProfilesDestroyRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesDestroy(ctx context.Context, id int32) ApiDcimModuleTypeProfilesDestroyRequest {
+ return ApiDcimModuleTypeProfilesDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *DcimAPIService) DcimModuleTypeProfilesDestroyExecute(r ApiDcimModuleTypeProfilesDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-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 ApiDcimModuleTypeProfilesListRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Created(created []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedN(createdN []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleTypeProfilesListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Description(description []string) ApiDcimModuleTypeProfilesListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleTypeProfilesListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Id(id []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleTypeProfilesListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdGt(idGt []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdGte(idGte []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdLt(idLt []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdLte(idLte []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) IdN(idN []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleTypeProfilesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiDcimModuleTypeProfilesListRequest) Limit(limit int32) ApiDcimModuleTypeProfilesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleTypeProfilesListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Name(name []string) ApiDcimModuleTypeProfilesListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameEmpty(nameEmpty bool) ApiDcimModuleTypeProfilesListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameIc(nameIc []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameIe(nameIe []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameIew(nameIew []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameIsw(nameIsw []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameN(nameN []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameNic(nameNic []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameNie(nameNie []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameNiew(nameNiew []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) NameNisw(nameNisw []string) ApiDcimModuleTypeProfilesListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiDcimModuleTypeProfilesListRequest) Offset(offset int32) ApiDcimModuleTypeProfilesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiDcimModuleTypeProfilesListRequest) Ordering(ordering string) ApiDcimModuleTypeProfilesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiDcimModuleTypeProfilesListRequest) Q(q string) ApiDcimModuleTypeProfilesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Tag(tag []string) ApiDcimModuleTypeProfilesListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) TagN(tagN []string) ApiDcimModuleTypeProfilesListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) TagId(tagId []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) TagIdN(tagIdN []int32) ApiDcimModuleTypeProfilesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleTypeProfilesListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiDcimModuleTypeProfilesListRequest) Execute() (*PaginatedModuleTypeProfileList, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesListExecute(r)
+}
+
+/*
+DcimModuleTypeProfilesList Method for DcimModuleTypeProfilesList
+
+Get a list of module type profile objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypeProfilesListRequest
+*/
+func (a *DcimAPIService) DcimModuleTypeProfilesList(ctx context.Context) ApiDcimModuleTypeProfilesListRequest {
+ return ApiDcimModuleTypeProfilesListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedModuleTypeProfileList
+func (a *DcimAPIService) DcimModuleTypeProfilesListExecute(r ApiDcimModuleTypeProfilesListRequest) (*PaginatedModuleTypeProfileList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedModuleTypeProfileList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/dcim/module-type-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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi")
+ }
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
}
- if r.rack != nil {
- t := *r.rack
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi")
- }
- }
- if r.rackN != nil {
- t := *r.rackN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi")
- }
- }
- if r.rackId != nil {
- t := *r.rackId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi")
- }
- }
- if r.rackIdN != nil {
- t := *r.rackIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi")
- }
- }
- if r.region != nil {
- t := *r.region
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi")
- }
- }
- if r.regionN != nil {
- t := *r.regionN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi")
- }
- }
- if r.regionId != nil {
- t := *r.regionId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi")
- }
- }
- if r.regionIdN != nil {
- t := *r.regionIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi")
- }
- }
- if r.site != nil {
- t := *r.site
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi")
- }
- }
- if r.siteN != nil {
- t := *r.siteN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi")
- }
- }
- if r.siteGroup != nil {
- t := *r.siteGroup
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi")
- }
- }
- if r.siteGroupN != nil {
- t := *r.siteGroupN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi")
- }
- }
- if r.siteGroupId != nil {
- t := *r.siteGroupId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi")
- }
- }
- if r.siteGroupIdN != nil {
- t := *r.siteGroupIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi")
- }
- }
- if r.siteId != nil {
- t := *r.siteId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi")
- }
- }
- if r.siteIdN != nil {
- t := *r.siteIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi")
- }
- }
if r.tag != nil {
t := *r.tag
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -74285,52 +77453,30 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
- if r.updatedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
- }
- if r.virtualChassis != nil {
- t := *r.virtualChassis
+ if r.tagId != nil {
+ t := *r.tagId
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
}
}
- if r.virtualChassisN != nil {
- t := *r.virtualChassisN
+ if r.tagIdN != nil {
+ t := *r.tagIdN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
}
}
- if r.virtualChassisId != nil {
- t := *r.virtualChassisId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi")
- }
- }
- if r.virtualChassisIdN != nil {
- t := *r.virtualChassisIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "form", "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi")
- }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -74400,55 +77546,56 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiDcimModuleBaysPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
- patchedModuleBayRequest *PatchedModuleBayRequest
+type ApiDcimModuleTypeProfilesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ patchedModuleTypeProfileRequest *PatchedModuleTypeProfileRequest
}
-func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedModuleBayRequest(patchedModuleBayRequest PatchedModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest {
- r.patchedModuleBayRequest = &patchedModuleBayRequest
+func (r ApiDcimModuleTypeProfilesPartialUpdateRequest) PatchedModuleTypeProfileRequest(patchedModuleTypeProfileRequest PatchedModuleTypeProfileRequest) ApiDcimModuleTypeProfilesPartialUpdateRequest {
+ r.patchedModuleTypeProfileRequest = &patchedModuleTypeProfileRequest
return r
}
-func (r ApiDcimModuleBaysPartialUpdateRequest) Execute() (*ModuleBay, *http.Response, error) {
- return r.ApiService.DcimModuleBaysPartialUpdateExecute(r)
+func (r ApiDcimModuleTypeProfilesPartialUpdateRequest) Execute() (*ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesPartialUpdateExecute(r)
}
/*
-DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate
+DcimModuleTypeProfilesPartialUpdate Method for DcimModuleTypeProfilesPartialUpdate
-Patch a module bay object.
+Patch a module type 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 module bay.
- @return ApiDcimModuleBaysPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type profile.
+ @return ApiDcimModuleTypeProfilesPartialUpdateRequest
*/
-func (a *DcimAPIService) DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest {
- return ApiDcimModuleBaysPartialUpdateRequest{
+func (a *DcimAPIService) DcimModuleTypeProfilesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypeProfilesPartialUpdateRequest {
+ return ApiDcimModuleTypeProfilesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBay
-func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) {
+//
+// @return ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesPartialUpdateExecute(r ApiDcimModuleTypeProfilesPartialUpdateRequest) (*ModuleTypeProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBay
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleTypeProfile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysPartialUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesPartialUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
@@ -74473,7 +77620,7 @@ func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedModuleBayRequest
+ localVarPostBody = r.patchedModuleTypeProfileRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -74525,49 +77672,50 @@ func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiDcimModuleBaysRetrieveRequest struct {
- ctx context.Context
+type ApiDcimModuleTypeProfilesRetrieveRequest struct {
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
-func (r ApiDcimModuleBaysRetrieveRequest) Execute() (*ModuleBay, *http.Response, error) {
- return r.ApiService.DcimModuleBaysRetrieveExecute(r)
+func (r ApiDcimModuleTypeProfilesRetrieveRequest) Execute() (*ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesRetrieveExecute(r)
}
/*
-DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve
+DcimModuleTypeProfilesRetrieve Method for DcimModuleTypeProfilesRetrieve
-Get a module bay object.
+Get a module type 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 module bay.
- @return ApiDcimModuleBaysRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type profile.
+ @return ApiDcimModuleTypeProfilesRetrieveRequest
*/
-func (a *DcimAPIService) DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest {
- return ApiDcimModuleBaysRetrieveRequest{
+func (a *DcimAPIService) DcimModuleTypeProfilesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypeProfilesRetrieveRequest {
+ return ApiDcimModuleTypeProfilesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBay
-func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) {
+//
+// @return ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesRetrieveExecute(r ApiDcimModuleTypeProfilesRetrieveRequest) (*ModuleTypeProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBay
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleTypeProfile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysRetrieve")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesRetrieve")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath := localBasePath + "/api/dcim/module-type-profiles/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
@@ -74642,62 +77790,63 @@ func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrie
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiDcimModuleBaysUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
- moduleBayRequest *ModuleBayRequest
+type ApiDcimModuleTypeProfilesUpdateRequest struct {
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ moduleTypeProfileRequest *ModuleTypeProfileRequest
}
-func (r ApiDcimModuleBaysUpdateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysUpdateRequest {
- r.moduleBayRequest = &moduleBayRequest
+func (r ApiDcimModuleTypeProfilesUpdateRequest) ModuleTypeProfileRequest(moduleTypeProfileRequest ModuleTypeProfileRequest) ApiDcimModuleTypeProfilesUpdateRequest {
+ r.moduleTypeProfileRequest = &moduleTypeProfileRequest
return r
}
-func (r ApiDcimModuleBaysUpdateRequest) Execute() (*ModuleBay, *http.Response, error) {
- return r.ApiService.DcimModuleBaysUpdateExecute(r)
+func (r ApiDcimModuleTypeProfilesUpdateRequest) Execute() (*ModuleTypeProfile, *http.Response, error) {
+ return r.ApiService.DcimModuleTypeProfilesUpdateExecute(r)
}
/*
-DcimModuleBaysUpdate Method for DcimModuleBaysUpdate
+DcimModuleTypeProfilesUpdate Method for DcimModuleTypeProfilesUpdate
-Put a module bay object.
+Put a module type 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 module bay.
- @return ApiDcimModuleBaysUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type profile.
+ @return ApiDcimModuleTypeProfilesUpdateRequest
*/
-func (a *DcimAPIService) DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest {
- return ApiDcimModuleBaysUpdateRequest{
+func (a *DcimAPIService) DcimModuleTypeProfilesUpdate(ctx context.Context, id int32) ApiDcimModuleTypeProfilesUpdateRequest {
+ return ApiDcimModuleTypeProfilesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleBay
-func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) {
+//
+// @return ModuleTypeProfile
+func (a *DcimAPIService) DcimModuleTypeProfilesUpdateExecute(r ApiDcimModuleTypeProfilesUpdateRequest) (*ModuleTypeProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleBay
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleTypeProfile
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypeProfilesUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/dcim/module-bays/{id}/"
+ localVarPath := localBasePath + "/api/dcim/module-type-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.moduleBayRequest == nil {
- return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified")
+ if r.moduleTypeProfileRequest == nil {
+ return localVarReturnValue, nil, reportError("moduleTypeProfileRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -74718,7 +77867,7 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.moduleBayRequest
+ localVarPostBody = r.moduleTypeProfileRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -74771,8 +77920,8 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe
}
type ApiDcimModuleTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleTypeRequest *[]ModuleTypeRequest
}
@@ -74790,22 +77939,22 @@ DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy
Delete a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest {
return ApiDcimModuleTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkDestroy")
@@ -74884,8 +78033,8 @@ func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesB
}
type ApiDcimModuleTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleTypeRequest *[]ModuleTypeRequest
}
@@ -74903,24 +78052,25 @@ DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate
Patch a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest {
return ApiDcimModuleTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleType
+//
+// @return []ModuleType
func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkPartialUpdate")
@@ -75008,8 +78158,8 @@ func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModule
}
type ApiDcimModuleTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleTypeRequest *[]ModuleTypeRequest
}
@@ -75027,24 +78177,25 @@ DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate
Put a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest {
return ApiDcimModuleTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ModuleType
+//
+// @return []ModuleType
func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ModuleType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkUpdate")
@@ -75132,8 +78283,8 @@ func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBu
}
type ApiDcimModuleTypesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableModuleTypeRequest *WritableModuleTypeRequest
}
@@ -75151,24 +78302,25 @@ DcimModuleTypesCreate Method for DcimModuleTypesCreate
Post a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesCreateRequest
*/
func (a *DcimAPIService) DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest {
return ApiDcimModuleTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ModuleType
+//
+// @return ModuleType
func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesCreate")
@@ -75256,9 +78408,9 @@ func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreate
}
type ApiDcimModuleTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModuleTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -75270,24 +78422,24 @@ DcimModuleTypesDestroy Method for DcimModuleTypesDestroy
Delete a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesDestroyRequest
*/
func (a *DcimAPIService) DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest {
return ApiDcimModuleTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesDestroy")
@@ -75362,90 +78514,96 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr
}
type ApiDcimModuleTypesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- airflow *DcimModuleTypesListAirflowParameter
- consolePorts *bool
+ ctx context.Context
+ ApiService DcimAPI
+ airflow *DcimModuleTypesListAirflowParameter
+ consolePorts *bool
consoleServerPorts *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaces *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelEmpty *bool
- modelIc *[]string
- modelIe *[]string
- modelIew *[]string
- modelIsw *[]string
- modelN *[]string
- modelNic *[]string
- modelNie *[]string
- modelNiew *[]string
- modelNisw *[]string
- modifiedByRequest *string
- offset *int32
- ordering *string
- partNumber *[]string
- partNumberEmpty *bool
- partNumberIc *[]string
- partNumberIe *[]string
- partNumberIew *[]string
- partNumberIsw *[]string
- partNumberN *[]string
- partNumberNic *[]string
- partNumberNie *[]string
- partNumberNiew *[]string
- partNumberNisw *[]string
- passThroughPorts *bool
- powerOutlets *bool
- powerPorts *bool
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *DcimDeviceTypesListWeightUnitParameter
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaces *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ model *[]string
+ modelEmpty *bool
+ modelIc *[]string
+ modelIe *[]string
+ modelIew *[]string
+ modelIsw *[]string
+ modelN *[]string
+ modelNic *[]string
+ modelNie *[]string
+ modelNiew *[]string
+ modelNisw *[]string
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ partNumber *[]string
+ partNumberEmpty *bool
+ partNumberIc *[]string
+ partNumberIe *[]string
+ partNumberIew *[]string
+ partNumberIsw *[]string
+ partNumberN *[]string
+ partNumberNic *[]string
+ partNumberNie *[]string
+ partNumberNiew *[]string
+ partNumberNisw *[]string
+ passThroughPorts *bool
+ powerOutlets *bool
+ powerPorts *bool
+ profile *[]string
+ profileN *[]string
+ profileId *[]*int32
+ profileIdN *[]*int32
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ weight *[]float64
+ weightEmpty *bool
+ weightGt *[]float64
+ weightGte *[]float64
+ weightLt *[]float64
+ weightLte *[]float64
+ weightN *[]float64
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
}
// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive
@@ -75812,6 +78970,30 @@ func (r ApiDcimModuleTypesListRequest) PowerPorts(powerPorts bool) ApiDcimModule
return r
}
+// Profile (name)
+func (r ApiDcimModuleTypesListRequest) Profile(profile []string) ApiDcimModuleTypesListRequest {
+ r.profile = &profile
+ return r
+}
+
+// Profile (name)
+func (r ApiDcimModuleTypesListRequest) ProfileN(profileN []string) ApiDcimModuleTypesListRequest {
+ r.profileN = &profileN
+ return r
+}
+
+// Profile (ID)
+func (r ApiDcimModuleTypesListRequest) ProfileId(profileId []*int32) ApiDcimModuleTypesListRequest {
+ r.profileId = &profileId
+ return r
+}
+
+// Profile (ID)
+func (r ApiDcimModuleTypesListRequest) ProfileIdN(profileIdN []*int32) ApiDcimModuleTypesListRequest {
+ r.profileIdN = &profileIdN
+ return r
+}
+
// Search
func (r ApiDcimModuleTypesListRequest) Q(q string) ApiDcimModuleTypesListRequest {
r.q = &q
@@ -75828,6 +79010,16 @@ func (r ApiDcimModuleTypesListRequest) TagN(tagN []string) ApiDcimModuleTypesLis
return r
}
+func (r ApiDcimModuleTypesListRequest) TagId(tagId []int32) ApiDcimModuleTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimModuleTypesListRequest) TagIdN(tagIdN []int32) ApiDcimModuleTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimModuleTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleTypesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -75883,24 +79075,25 @@ DcimModuleTypesList Method for DcimModuleTypesList
Get a list of module type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModuleTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModuleTypesListRequest
*/
func (a *DcimAPIService) DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest {
return ApiDcimModuleTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedModuleTypeList
+//
+// @return PaginatedModuleTypeList
func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedModuleTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedModuleTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesList")
@@ -76556,6 +79749,50 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ
if r.powerPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "form", "")
}
+ if r.profile != nil {
+ t := *r.profile
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile", t, "form", "multi")
+ }
+ }
+ if r.profileN != nil {
+ t := *r.profileN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile__n", t, "form", "multi")
+ }
+ }
+ if r.profileId != nil {
+ t := *r.profileId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile_id", t, "form", "multi")
+ }
+ }
+ if r.profileIdN != nil {
+ t := *r.profileIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "profile_id__n", t, "form", "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
}
@@ -76581,6 +79818,28 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -76725,9 +79984,9 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ
}
type ApiDcimModuleTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableModuleTypeRequest *PatchedWritableModuleTypeRequest
}
@@ -76745,26 +80004,27 @@ DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate
Patch a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest {
return ApiDcimModuleTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleType
+//
+// @return ModuleType
func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesPartialUpdate")
@@ -76850,9 +80110,9 @@ func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleType
}
type ApiDcimModuleTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModuleTypesRetrieveRequest) Execute() (*ModuleType, *http.Response, error) {
@@ -76864,26 +80124,27 @@ DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve
Get a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesRetrieveRequest
*/
func (a *DcimAPIService) DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest {
return ApiDcimModuleTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleType
+//
+// @return ModuleType
func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesRetrieve")
@@ -76967,9 +80228,9 @@ func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetr
}
type ApiDcimModuleTypesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableModuleTypeRequest *WritableModuleTypeRequest
}
@@ -76987,26 +80248,27 @@ DcimModuleTypesUpdate Method for DcimModuleTypesUpdate
Put a module type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module type.
- @return ApiDcimModuleTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module type.
+ @return ApiDcimModuleTypesUpdateRequest
*/
func (a *DcimAPIService) DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest {
return ApiDcimModuleTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ModuleType
+//
+// @return ModuleType
func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ModuleType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ModuleType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesUpdate")
@@ -77095,8 +80357,8 @@ func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdate
}
type ApiDcimModulesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleRequest *[]ModuleRequest
}
@@ -77114,22 +80376,22 @@ DcimModulesBulkDestroy Method for DcimModulesBulkDestroy
Delete a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest {
return ApiDcimModulesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkDestroy")
@@ -77208,8 +80470,8 @@ func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestr
}
type ApiDcimModulesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleRequest *[]ModuleRequest
}
@@ -77227,24 +80489,25 @@ DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate
Patch a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest {
return ApiDcimModulesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Module
+//
+// @return []Module
func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Module
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkPartialUpdate")
@@ -77332,8 +80595,8 @@ func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBul
}
type ApiDcimModulesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
moduleRequest *[]ModuleRequest
}
@@ -77351,24 +80614,25 @@ DcimModulesBulkUpdate Method for DcimModulesBulkUpdate
Put a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest {
return ApiDcimModulesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Module
+//
+// @return []Module
func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Module
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkUpdate")
@@ -77456,8 +80720,8 @@ func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdate
}
type ApiDcimModulesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableModuleRequest *WritableModuleRequest
}
@@ -77475,24 +80739,25 @@ DcimModulesCreate Method for DcimModulesCreate
Post a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesCreateRequest
*/
func (a *DcimAPIService) DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest {
return ApiDcimModulesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Module
+//
+// @return Module
func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Module
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesCreate")
@@ -77580,9 +80845,9 @@ func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest)
}
type ApiDcimModulesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModulesDestroyRequest) Execute() (*http.Response, error) {
@@ -77594,24 +80859,24 @@ DcimModulesDestroy Method for DcimModulesDestroy
Delete a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesDestroyRequest
*/
func (a *DcimAPIService) DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest {
return ApiDcimModulesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesDestroy")
@@ -77686,94 +80951,118 @@ func (a *DcimAPIService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyReques
}
type ApiDcimModulesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- assetTag *[]string
- assetTagEmpty *bool
- assetTagIc *[]string
- assetTagIe *[]string
- assetTagIew *[]string
- assetTagIsw *[]string
- assetTagN *[]string
- assetTagNic *[]string
- assetTagNie *[]string
- assetTagNiew *[]string
- assetTagNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceId *[]int32
- deviceIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ assetTag *[]string
+ assetTagEmpty *bool
+ assetTagIc *[]string
+ assetTagIe *[]string
+ assetTagIew *[]string
+ assetTagIsw *[]string
+ assetTagN *[]string
+ assetTagNic *[]string
+ assetTagNie *[]string
+ assetTagNiew *[]string
+ assetTagNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
modifiedByRequest *string
- moduleBayId *[]string
- moduleBayIdN *[]string
- moduleType *[]string
- moduleTypeN *[]string
- moduleTypeId *[]int32
- moduleTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ moduleBayId *[]string
+ moduleBayIdN *[]string
+ moduleType *[]string
+ moduleTypeN *[]string
+ moduleTypeId *[]int32
+ moduleTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ serial *[]string
+ serialEmpty *bool
+ serialIc *[]string
+ serialIe *[]string
+ serialIew *[]string
+ serialIsw *[]string
+ serialN *[]string
+ serialNic *[]string
+ serialNie *[]string
+ serialNiew *[]string
+ serialNisw *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimModulesListRequest) AssetTag(assetTag []string) ApiDcimModulesListRequest {
@@ -77926,6 +81215,18 @@ func (r ApiDcimModulesListRequest) DescriptionNisw(descriptionNisw []string) Api
return r
}
+// Device (name)
+func (r ApiDcimModulesListRequest) Device(device []*string) ApiDcimModulesListRequest {
+ r.device = &device
+ return r
+}
+
+// Device (name)
+func (r ApiDcimModulesListRequest) DeviceN(deviceN []*string) ApiDcimModulesListRequest {
+ r.deviceN = &deviceN
+ return r
+}
+
// Device (ID)
func (r ApiDcimModulesListRequest) DeviceId(deviceId []int32) ApiDcimModulesListRequest {
r.deviceId = &deviceId
@@ -78014,6 +81315,30 @@ func (r ApiDcimModulesListRequest) Limit(limit int32) ApiDcimModulesListRequest
return r
}
+// Location (slug)
+func (r ApiDcimModulesListRequest) Location(location []string) ApiDcimModulesListRequest {
+ r.location = &location
+ return r
+}
+
+// Location (slug)
+func (r ApiDcimModulesListRequest) LocationN(locationN []string) ApiDcimModulesListRequest {
+ r.locationN = &locationN
+ return r
+}
+
+// Location (ID)
+func (r ApiDcimModulesListRequest) LocationId(locationId []int32) ApiDcimModulesListRequest {
+ r.locationId = &locationId
+ return r
+}
+
+// Location (ID)
+func (r ApiDcimModulesListRequest) LocationIdN(locationIdN []int32) ApiDcimModulesListRequest {
+ r.locationIdN = &locationIdN
+ return r
+}
+
// Manufacturer (slug)
func (r ApiDcimModulesListRequest) Manufacturer(manufacturer []string) ApiDcimModulesListRequest {
r.manufacturer = &manufacturer
@@ -78095,6 +81420,50 @@ func (r ApiDcimModulesListRequest) Q(q string) ApiDcimModulesListRequest {
return r
}
+// Rack (name)
+func (r ApiDcimModulesListRequest) Rack(rack []string) ApiDcimModulesListRequest {
+ r.rack = &rack
+ return r
+}
+
+// Rack (name)
+func (r ApiDcimModulesListRequest) RackN(rackN []string) ApiDcimModulesListRequest {
+ r.rackN = &rackN
+ return r
+}
+
+// Rack (ID)
+func (r ApiDcimModulesListRequest) RackId(rackId []int32) ApiDcimModulesListRequest {
+ r.rackId = &rackId
+ return r
+}
+
+// Rack (ID)
+func (r ApiDcimModulesListRequest) RackIdN(rackIdN []int32) ApiDcimModulesListRequest {
+ r.rackIdN = &rackIdN
+ return r
+}
+
+func (r ApiDcimModulesListRequest) Region(region []string) ApiDcimModulesListRequest {
+ r.region = ®ion
+ return r
+}
+
+func (r ApiDcimModulesListRequest) RegionN(regionN []string) ApiDcimModulesListRequest {
+ r.regionN = ®ionN
+ return r
+}
+
+func (r ApiDcimModulesListRequest) RegionId(regionId []string) ApiDcimModulesListRequest {
+ r.regionId = ®ionId
+ return r
+}
+
+func (r ApiDcimModulesListRequest) RegionIdN(regionIdN []string) ApiDcimModulesListRequest {
+ r.regionIdN = ®ionIdN
+ return r
+}
+
func (r ApiDcimModulesListRequest) Serial(serial []string) ApiDcimModulesListRequest {
r.serial = &serial
return r
@@ -78150,6 +81519,50 @@ func (r ApiDcimModulesListRequest) SerialNisw(serialNisw []string) ApiDcimModule
return r
}
+// Site name (slug)
+func (r ApiDcimModulesListRequest) Site(site []string) ApiDcimModulesListRequest {
+ r.site = &site
+ return r
+}
+
+// Site name (slug)
+func (r ApiDcimModulesListRequest) SiteN(siteN []string) ApiDcimModulesListRequest {
+ r.siteN = &siteN
+ return r
+}
+
+func (r ApiDcimModulesListRequest) SiteGroup(siteGroup []string) ApiDcimModulesListRequest {
+ r.siteGroup = &siteGroup
+ return r
+}
+
+func (r ApiDcimModulesListRequest) SiteGroupN(siteGroupN []string) ApiDcimModulesListRequest {
+ r.siteGroupN = &siteGroupN
+ return r
+}
+
+func (r ApiDcimModulesListRequest) SiteGroupId(siteGroupId []string) ApiDcimModulesListRequest {
+ r.siteGroupId = &siteGroupId
+ return r
+}
+
+func (r ApiDcimModulesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModulesListRequest {
+ r.siteGroupIdN = &siteGroupIdN
+ return r
+}
+
+// Site (ID)
+func (r ApiDcimModulesListRequest) SiteId(siteId []int32) ApiDcimModulesListRequest {
+ r.siteId = &siteId
+ return r
+}
+
+// Site (ID)
+func (r ApiDcimModulesListRequest) SiteIdN(siteIdN []int32) ApiDcimModulesListRequest {
+ r.siteIdN = &siteIdN
+ return r
+}
+
func (r ApiDcimModulesListRequest) Status(status []string) ApiDcimModulesListRequest {
r.status = &status
return r
@@ -78215,6 +81628,16 @@ func (r ApiDcimModulesListRequest) TagN(tagN []string) ApiDcimModulesListRequest
return r
}
+func (r ApiDcimModulesListRequest) TagId(tagId []int32) ApiDcimModulesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimModulesListRequest) TagIdN(tagIdN []int32) ApiDcimModulesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimModulesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModulesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -78229,24 +81652,25 @@ DcimModulesList Method for DcimModulesList
Get a list of module objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimModulesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimModulesListRequest
*/
func (a *DcimAPIService) DcimModulesList(ctx context.Context) ApiDcimModulesListRequest {
return ApiDcimModulesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedModuleList
+//
+// @return PaginatedModuleList
func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedModuleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedModuleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesList")
@@ -78566,6 +81990,28 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi")
}
}
+ if r.device != nil {
+ t := *r.device
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi")
+ }
+ }
+ if r.deviceN != nil {
+ t := *r.deviceN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi")
+ }
+ }
if r.deviceId != nil {
t := *r.deviceId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -78737,6 +82183,50 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
}
+ if r.location != nil {
+ t := *r.location
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi")
+ }
+ }
+ if r.locationN != nil {
+ t := *r.locationN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi")
+ }
+ }
+ if r.locationId != nil {
+ t := *r.locationId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi")
+ }
+ }
+ if r.locationIdN != nil {
+ t := *r.locationIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi")
+ }
+ }
if r.manufacturer != nil {
t := *r.manufacturer
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -78859,6 +82349,94 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
}
+ if r.rack != nil {
+ t := *r.rack
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi")
+ }
+ }
+ if r.rackN != nil {
+ t := *r.rackN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi")
+ }
+ }
+ if r.rackId != nil {
+ t := *r.rackId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi")
+ }
+ }
+ if r.rackIdN != nil {
+ t := *r.rackIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi")
+ }
+ }
+ if r.region != nil {
+ t := *r.region
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi")
+ }
+ }
+ if r.regionN != nil {
+ t := *r.regionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi")
+ }
+ }
+ if r.regionId != nil {
+ t := *r.regionId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi")
+ }
+ }
+ if r.regionIdN != nil {
+ t := *r.regionIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi")
+ }
+ }
if r.serial != nil {
t := *r.serial
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -78972,6 +82550,94 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi")
}
}
+ if r.site != nil {
+ t := *r.site
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi")
+ }
+ }
+ if r.siteN != nil {
+ t := *r.siteN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi")
+ }
+ }
+ if r.siteGroup != nil {
+ t := *r.siteGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi")
+ }
+ }
+ if r.siteGroupN != nil {
+ t := *r.siteGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi")
+ }
+ }
+ if r.siteGroupId != nil {
+ t := *r.siteGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi")
+ }
+ }
+ if r.siteGroupIdN != nil {
+ t := *r.siteGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi")
+ }
+ }
+ if r.siteId != nil {
+ t := *r.siteId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi")
+ }
+ }
+ if r.siteIdN != nil {
+ t := *r.siteIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi")
+ }
+ }
if r.status != nil {
t := *r.status
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -79107,6 +82773,28 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -79179,9 +82867,9 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P
}
type ApiDcimModulesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableModuleRequest *PatchedWritableModuleRequest
}
@@ -79199,26 +82887,27 @@ DcimModulesPartialUpdate Method for DcimModulesPartialUpdate
Patch a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest {
return ApiDcimModulesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Module
+//
+// @return Module
func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Module
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesPartialUpdate")
@@ -79304,9 +82993,9 @@ func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartial
}
type ApiDcimModulesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimModulesRetrieveRequest) Execute() (*Module, *http.Response, error) {
@@ -79318,26 +83007,27 @@ DcimModulesRetrieve Method for DcimModulesRetrieve
Get a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesRetrieveRequest
*/
func (a *DcimAPIService) DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest {
return ApiDcimModulesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Module
+//
+// @return Module
func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Module
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesRetrieve")
@@ -79421,9 +83111,9 @@ func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequ
}
type ApiDcimModulesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableModuleRequest *WritableModuleRequest
}
@@ -79441,26 +83131,27 @@ DcimModulesUpdate Method for DcimModulesUpdate
Put a module object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this module.
- @return ApiDcimModulesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this module.
+ @return ApiDcimModulesUpdateRequest
*/
func (a *DcimAPIService) DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest {
return ApiDcimModulesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Module
+//
+// @return Module
func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Module
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Module
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesUpdate")
@@ -79549,8 +83240,8 @@ func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest)
}
type ApiDcimPlatformsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
platformRequest *[]PlatformRequest
}
@@ -79568,22 +83259,22 @@ DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy
Delete a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest {
return ApiDcimPlatformsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkDestroy")
@@ -79662,8 +83353,8 @@ func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkD
}
type ApiDcimPlatformsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
platformRequest *[]PlatformRequest
}
@@ -79681,24 +83372,25 @@ DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate
Patch a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest {
return ApiDcimPlatformsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Platform
+//
+// @return []Platform
func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Platform
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkPartialUpdate")
@@ -79786,8 +83478,8 @@ func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatform
}
type ApiDcimPlatformsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
platformRequest *[]PlatformRequest
}
@@ -79805,24 +83497,25 @@ DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate
Put a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest {
return ApiDcimPlatformsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Platform
+//
+// @return []Platform
func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Platform
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkUpdate")
@@ -79910,8 +83603,8 @@ func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUp
}
type ApiDcimPlatformsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
platformRequest *PlatformRequest
}
@@ -79929,24 +83622,25 @@ DcimPlatformsCreate Method for DcimPlatformsCreate
Post a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsCreateRequest
*/
func (a *DcimAPIService) DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest {
return ApiDcimPlatformsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Platform
+//
+// @return Platform
func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Platform
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsCreate")
@@ -80034,9 +83728,9 @@ func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ
}
type ApiDcimPlatformsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPlatformsDestroyRequest) Execute() (*http.Response, error) {
@@ -80048,24 +83742,24 @@ DcimPlatformsDestroy Method for DcimPlatformsDestroy
Delete a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsDestroyRequest
*/
func (a *DcimAPIService) DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest {
return ApiDcimPlatformsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsDestroy")
@@ -80140,78 +83834,80 @@ func (a *DcimAPIService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRe
}
type ApiDcimPlatformsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
availableForDeviceType *string
- configTemplateId *[]*int32
- configTemplateIdN *[]*int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- modifiedByRequest *string
- name *[]string
- 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
+ configTemplateId *[]*int32
+ configTemplateIdN *[]*int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimPlatformsListRequest) AvailableForDeviceType(availableForDeviceType string) ApiDcimPlatformsListRequest {
@@ -80569,6 +84265,16 @@ func (r ApiDcimPlatformsListRequest) TagN(tagN []string) ApiDcimPlatformsListReq
return r
}
+func (r ApiDcimPlatformsListRequest) TagId(tagId []int32) ApiDcimPlatformsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimPlatformsListRequest) TagIdN(tagIdN []int32) ApiDcimPlatformsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimPlatformsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPlatformsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -80583,24 +84289,25 @@ DcimPlatformsList Method for DcimPlatformsList
Get a list of platform objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPlatformsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPlatformsListRequest
*/
func (a *DcimAPIService) DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest {
return ApiDcimPlatformsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPlatformList
+//
+// @return PaginatedPlatformList
func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPlatformList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPlatformList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsList")
@@ -81285,6 +84992,28 @@ func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -81357,9 +85086,9 @@ func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest)
}
type ApiDcimPlatformsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedPlatformRequest *PatchedPlatformRequest
}
@@ -81377,26 +85106,27 @@ DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate
Patch a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest {
return ApiDcimPlatformsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Platform
+//
+// @return Platform
func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Platform
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsPartialUpdate")
@@ -81482,9 +85212,9 @@ func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPar
}
type ApiDcimPlatformsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPlatformsRetrieveRequest) Execute() (*Platform, *http.Response, error) {
@@ -81496,26 +85226,27 @@ DcimPlatformsRetrieve Method for DcimPlatformsRetrieve
Get a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsRetrieveRequest
*/
func (a *DcimAPIService) DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest {
return ApiDcimPlatformsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Platform
+//
+// @return Platform
func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Platform
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsRetrieve")
@@ -81599,9 +85330,9 @@ func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieve
}
type ApiDcimPlatformsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
platformRequest *PlatformRequest
}
@@ -81619,26 +85350,27 @@ DcimPlatformsUpdate Method for DcimPlatformsUpdate
Put a platform object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this platform.
- @return ApiDcimPlatformsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this platform.
+ @return ApiDcimPlatformsUpdateRequest
*/
func (a *DcimAPIService) DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest {
return ApiDcimPlatformsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Platform
+//
+// @return Platform
func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Platform
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Platform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsUpdate")
@@ -81727,8 +85459,8 @@ func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ
}
type ApiDcimPowerFeedsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerFeedRequest *[]PowerFeedRequest
}
@@ -81746,22 +85478,22 @@ DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy
Delete a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest {
return ApiDcimPowerFeedsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkDestroy")
@@ -81840,8 +85572,8 @@ func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBul
}
type ApiDcimPowerFeedsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerFeedRequest *[]PowerFeedRequest
}
@@ -81859,24 +85591,25 @@ DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate
Patch a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest {
return ApiDcimPowerFeedsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerFeed
+//
+// @return []PowerFeed
func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerFeed
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkPartialUpdate")
@@ -81964,8 +85697,8 @@ func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFe
}
type ApiDcimPowerFeedsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerFeedRequest *[]PowerFeedRequest
}
@@ -81983,24 +85716,25 @@ DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate
Put a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest {
return ApiDcimPowerFeedsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerFeed
+//
+// @return []PowerFeed
func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerFeed
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkUpdate")
@@ -82088,8 +85822,8 @@ func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulk
}
type ApiDcimPowerFeedsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writablePowerFeedRequest *WritablePowerFeedRequest
}
@@ -82107,24 +85841,25 @@ DcimPowerFeedsCreate Method for DcimPowerFeedsCreate
Post a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsCreateRequest
*/
func (a *DcimAPIService) DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest {
return ApiDcimPowerFeedsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerFeed
+//
+// @return PowerFeed
func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerFeed
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsCreate")
@@ -82212,9 +85947,9 @@ func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRe
}
type ApiDcimPowerFeedsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerFeedsDestroyRequest) Execute() (*http.Response, error) {
@@ -82226,24 +85961,24 @@ DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy
Delete a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsDestroyRequest
*/
func (a *DcimAPIService) DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest {
return ApiDcimPowerFeedsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsDestroy")
@@ -82318,133 +86053,135 @@ func (a *DcimAPIService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroy
}
type ApiDcimPowerFeedsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- amperage *[]int32
- amperageEmpty *bool
- amperageGt *[]int32
- amperageGte *[]int32
- amperageLt *[]int32
- amperageLte *[]int32
- amperageN *[]int32
- availablePower *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ amperage *[]int32
+ amperageEmpty *bool
+ amperageGt *[]int32
+ amperageGte *[]int32
+ amperageLt *[]int32
+ amperageLte *[]int32
+ amperageN *[]int32
+ availablePower *[]int32
availablePowerEmpty *bool
- availablePowerGt *[]int32
- availablePowerGte *[]int32
- availablePowerLt *[]int32
- availablePowerLte *[]int32
- availablePowerN *[]int32
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- markConnected *bool
- maxUtilization *[]int32
+ availablePowerGt *[]int32
+ availablePowerGte *[]int32
+ availablePowerLt *[]int32
+ availablePowerLte *[]int32
+ availablePowerN *[]int32
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ markConnected *bool
+ maxUtilization *[]int32
maxUtilizationEmpty *bool
- maxUtilizationGt *[]int32
- maxUtilizationGte *[]int32
- maxUtilizationLt *[]int32
- maxUtilizationLte *[]int32
- maxUtilizationN *[]int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- phase *DcimPowerFeedsListPhaseParameter
- powerPanelId *[]int32
- powerPanelIdN *[]int32
- q *string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- supply *DcimPowerFeedsListSupplyParameter
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- type_ *DcimPowerFeedsListTypeParameter
- updatedByRequest *string
- voltage *[]int32
- voltageEmpty *bool
- voltageGt *[]int32
- voltageGte *[]int32
- voltageLt *[]int32
- voltageLte *[]int32
- voltageN *[]int32
+ maxUtilizationGt *[]int32
+ maxUtilizationGte *[]int32
+ maxUtilizationLt *[]int32
+ maxUtilizationLte *[]int32
+ maxUtilizationN *[]int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ phase *DcimPowerFeedsListPhaseParameter
+ powerPanelId *[]int32
+ powerPanelIdN *[]int32
+ q *string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ supply *DcimPowerFeedsListSupplyParameter
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ type_ *DcimPowerFeedsListTypeParameter
+ updatedByRequest *string
+ voltage *[]int32
+ voltageEmpty *bool
+ voltageGt *[]int32
+ voltageGte *[]int32
+ voltageLt *[]int32
+ voltageLte *[]int32
+ voltageN *[]int32
}
func (r ApiDcimPowerFeedsListRequest) Amperage(amperage []int32) ApiDcimPowerFeedsListRequest {
@@ -83004,6 +86741,16 @@ func (r ApiDcimPowerFeedsListRequest) TagN(tagN []string) ApiDcimPowerFeedsListR
return r
}
+func (r ApiDcimPowerFeedsListRequest) TagId(tagId []int32) ApiDcimPowerFeedsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimPowerFeedsListRequest) TagIdN(tagIdN []int32) ApiDcimPowerFeedsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimPowerFeedsListRequest) Tenant(tenant []string) ApiDcimPowerFeedsListRequest {
r.tenant = &tenant
@@ -83103,24 +86850,25 @@ DcimPowerFeedsList Method for DcimPowerFeedsList
Get a list of power feed objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerFeedsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerFeedsListRequest
*/
func (a *DcimAPIService) DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest {
return ApiDcimPowerFeedsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerFeedList
+//
+// @return PaginatedPowerFeedList
func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerFeedList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerFeedList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsList")
@@ -84162,6 +87910,28 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -84394,9 +88164,9 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques
}
type ApiDcimPowerFeedsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritablePowerFeedRequest *PatchedWritablePowerFeedRequest
}
@@ -84414,26 +88184,27 @@ DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate
Patch a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest {
return ApiDcimPowerFeedsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerFeed
+//
+// @return PowerFeed
func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerFeed
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsPartialUpdate")
@@ -84519,9 +88290,9 @@ func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsP
}
type ApiDcimPowerFeedsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerFeedsRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) {
@@ -84533,26 +88304,27 @@ DcimPowerFeedsRetrieve Method for DcimPowerFeedsRetrieve
Get a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest {
return ApiDcimPowerFeedsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerFeed
+//
+// @return PowerFeed
func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerFeed
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsRetrieve")
@@ -84636,9 +88408,9 @@ func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrie
}
type ApiDcimPowerFeedsTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerFeedsTraceRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) {
@@ -84650,26 +88422,27 @@ DcimPowerFeedsTraceRetrieve Method for DcimPowerFeedsTraceRetrieve
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest {
return ApiDcimPowerFeedsTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerFeed
+//
+// @return PowerFeed
func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerFeed
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsTraceRetrieve")
@@ -84753,9 +88526,9 @@ func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsT
}
type ApiDcimPowerFeedsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writablePowerFeedRequest *WritablePowerFeedRequest
}
@@ -84773,26 +88546,27 @@ DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate
Put a power feed object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power feed.
- @return ApiDcimPowerFeedsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power feed.
+ @return ApiDcimPowerFeedsUpdateRequest
*/
func (a *DcimAPIService) DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest {
return ApiDcimPowerFeedsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerFeed
+//
+// @return PowerFeed
func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerFeed
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerFeed
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsUpdate")
@@ -84881,8 +88655,8 @@ func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRe
}
type ApiDcimPowerOutletTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletTemplateRequest *[]PowerOutletTemplateRequest
}
@@ -84900,22 +88674,22 @@ DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestr
Delete a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest {
return ApiDcimPowerOutletTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkDestroy")
@@ -84994,8 +88768,8 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPow
}
type ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletTemplateRequest *[]PowerOutletTemplateRequest
}
@@ -85013,24 +88787,25 @@ DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBul
Patch a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest {
return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerOutletTemplate
+//
+// @return []PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerOutletTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkPartialUpdate")
@@ -85118,8 +88893,8 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiD
}
type ApiDcimPowerOutletTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletTemplateRequest *[]PowerOutletTemplateRequest
}
@@ -85137,24 +88912,25 @@ DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate
Put a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest {
return ApiDcimPowerOutletTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerOutletTemplate
+//
+// @return []PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerOutletTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkUpdate")
@@ -85242,8 +89018,8 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowe
}
type ApiDcimPowerOutletTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest
}
@@ -85261,24 +89037,25 @@ DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate
Post a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest {
return ApiDcimPowerOutletTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerOutletTemplate
+//
+// @return PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutletTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesCreate")
@@ -85366,9 +89143,9 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOut
}
type ApiDcimPowerOutletTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerOutletTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -85380,24 +89157,24 @@ DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy
Delete a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest {
return ApiDcimPowerOutletTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesDestroy")
@@ -85472,87 +89249,87 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOu
}
type ApiDcimPowerOutletTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- feedLeg *[]*string
- feedLegEmpty *bool
- feedLegIc *[]*string
- feedLegIe *[]*string
- feedLegIew *[]*string
- feedLegIsw *[]*string
- feedLegN *[]*string
- feedLegNic *[]*string
- feedLegNie *[]*string
- feedLegNiew *[]*string
- feedLegNisw *[]*string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ feedLeg *[]*string
+ feedLegEmpty *bool
+ feedLegIc *[]*string
+ feedLegIe *[]*string
+ feedLegIew *[]*string
+ feedLegIsw *[]*string
+ feedLegN *[]*string
+ feedLegNic *[]*string
+ feedLegNie *[]*string
+ feedLegNiew *[]*string
+ feedLegNisw *[]*string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- powerPortId *[]*int32
- powerPortIdN *[]*int32
- q *string
- type_ *DcimPowerOutletTemplatesListTypeParameter
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ powerPortId *[]*int32
+ powerPortIdN *[]*int32
+ q *string
+ type_ *DcimPowerOutletTemplatesListTypeParameter
+ updatedByRequest *string
}
func (r ApiDcimPowerOutletTemplatesListRequest) Created(created []time.Time) ApiDcimPowerOutletTemplatesListRequest {
@@ -85980,24 +89757,25 @@ DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList
Get a list of power outlet template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletTemplatesListRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest {
return ApiDcimPowerOutletTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerOutletTemplateList
+//
+// @return PaginatedPowerOutletTemplateList
func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerOutletTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerOutletTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesList")
@@ -86845,9 +90623,9 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
}
type ApiDcimPowerOutletTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritablePowerOutletTemplateRequest *PatchedWritablePowerOutletTemplateRequest
}
@@ -86865,26 +90643,27 @@ DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartial
Patch a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest {
return ApiDcimPowerOutletTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutletTemplate
+//
+// @return PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutletTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesPartialUpdate")
@@ -86970,9 +90749,9 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimP
}
type ApiDcimPowerOutletTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerOutletTemplatesRetrieveRequest) Execute() (*PowerOutletTemplate, *http.Response, error) {
@@ -86984,26 +90763,27 @@ DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve
Get a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest {
return ApiDcimPowerOutletTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutletTemplate
+//
+// @return PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutletTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesRetrieve")
@@ -87087,9 +90867,9 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerO
}
type ApiDcimPowerOutletTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest
}
@@ -87107,26 +90887,27 @@ DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate
Put a power outlet template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet template.
- @return ApiDcimPowerOutletTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet template.
+ @return ApiDcimPowerOutletTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest {
return ApiDcimPowerOutletTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutletTemplate
+//
+// @return PowerOutletTemplate
func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutletTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutletTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesUpdate")
@@ -87215,8 +90996,8 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOut
}
type ApiDcimPowerOutletsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletRequest *[]PowerOutletRequest
}
@@ -87234,22 +91015,22 @@ DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy
Delete a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest {
return ApiDcimPowerOutletsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkDestroy")
@@ -87328,8 +91109,8 @@ func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutlet
}
type ApiDcimPowerOutletsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletRequest *[]PowerOutletRequest
}
@@ -87347,24 +91128,25 @@ DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate
Patch a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest {
return ApiDcimPowerOutletsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerOutlet
+//
+// @return []PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerOutlet
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkPartialUpdate")
@@ -87452,8 +91234,8 @@ func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPower
}
type ApiDcimPowerOutletsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerOutletRequest *[]PowerOutletRequest
}
@@ -87471,24 +91253,25 @@ DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate
Put a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest {
return ApiDcimPowerOutletsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerOutlet
+//
+// @return []PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerOutlet
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkUpdate")
@@ -87576,8 +91359,8 @@ func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutlets
}
type ApiDcimPowerOutletsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writablePowerOutletRequest *WritablePowerOutletRequest
}
@@ -87595,24 +91378,25 @@ DcimPowerOutletsCreate Method for DcimPowerOutletsCreate
Post a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsCreateRequest
*/
func (a *DcimAPIService) DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest {
return ApiDcimPowerOutletsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerOutlet
+//
+// @return PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutlet
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsCreate")
@@ -87700,9 +91484,9 @@ func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCrea
}
type ApiDcimPowerOutletsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerOutletsDestroyRequest) Execute() (*http.Response, error) {
@@ -87714,24 +91498,24 @@ DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy
Delete a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsDestroyRequest
*/
func (a *DcimAPIService) DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest {
return ApiDcimPowerOutletsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsDestroy")
@@ -87806,161 +91590,174 @@ func (a *DcimAPIService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDes
}
type ApiDcimPowerOutletsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- feedLeg *[]*string
- feedLegEmpty *bool
- feedLegIc *[]*string
- feedLegIe *[]*string
- feedLegIew *[]*string
- feedLegIsw *[]*string
- feedLegN *[]*string
- feedLegNic *[]*string
- feedLegNie *[]*string
- feedLegNiew *[]*string
- feedLegNisw *[]*string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ feedLeg *[]*string
+ feedLegEmpty *bool
+ feedLegIc *[]*string
+ feedLegIe *[]*string
+ feedLegIew *[]*string
+ feedLegIsw *[]*string
+ feedLegN *[]*string
+ feedLegNic *[]*string
+ feedLegNie *[]*string
+ feedLegNiew *[]*string
+ feedLegNisw *[]*string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- powerPortId *[]*int32
- powerPortIdN *[]*int32
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- type_ *[]*string
- typeEmpty *bool
- typeIc *[]*string
- typeIe *[]*string
- typeIew *[]*string
- typeIsw *[]*string
- typeN *[]*string
- typeNic *[]*string
- typeNie *[]*string
- typeNiew *[]*string
- typeNisw *[]*string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ powerPortId *[]*int32
+ powerPortIdN *[]*int32
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]*string
+ typeEmpty *bool
+ typeIc *[]*string
+ typeIe *[]*string
+ typeIew *[]*string
+ typeIsw *[]*string
+ typeN *[]*string
+ typeNic *[]*string
+ typeNie *[]*string
+ typeNiew *[]*string
+ typeNisw *[]*string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
virtualChassisIdN *[]int32
}
@@ -88689,6 +92486,61 @@ func (r ApiDcimPowerOutletsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerOut
return r
}
+func (r ApiDcimPowerOutletsListRequest) Status(status []string) ApiDcimPowerOutletsListRequest {
+ r.status = &status
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusEmpty(statusEmpty bool) ApiDcimPowerOutletsListRequest {
+ r.statusEmpty = &statusEmpty
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusIc(statusIc []string) ApiDcimPowerOutletsListRequest {
+ r.statusIc = &statusIc
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusIe(statusIe []string) ApiDcimPowerOutletsListRequest {
+ r.statusIe = &statusIe
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusIew(statusIew []string) ApiDcimPowerOutletsListRequest {
+ r.statusIew = &statusIew
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusIsw(statusIsw []string) ApiDcimPowerOutletsListRequest {
+ r.statusIsw = &statusIsw
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusN(statusN []string) ApiDcimPowerOutletsListRequest {
+ r.statusN = &statusN
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusNic(statusNic []string) ApiDcimPowerOutletsListRequest {
+ r.statusNic = &statusNic
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusNie(statusNie []string) ApiDcimPowerOutletsListRequest {
+ r.statusNie = &statusNie
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusNiew(statusNiew []string) ApiDcimPowerOutletsListRequest {
+ r.statusNiew = &statusNiew
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) StatusNisw(statusNisw []string) ApiDcimPowerOutletsListRequest {
+ r.statusNisw = &statusNisw
+ return r
+}
+
func (r ApiDcimPowerOutletsListRequest) Tag(tag []string) ApiDcimPowerOutletsListRequest {
r.tag = &tag
return r
@@ -88699,6 +92551,16 @@ func (r ApiDcimPowerOutletsListRequest) TagN(tagN []string) ApiDcimPowerOutletsL
return r
}
+func (r ApiDcimPowerOutletsListRequest) TagId(tagId []int32) ApiDcimPowerOutletsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimPowerOutletsListRequest) TagIdN(tagIdN []int32) ApiDcimPowerOutletsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Physical port type
func (r ApiDcimPowerOutletsListRequest) Type_(type_ []*string) ApiDcimPowerOutletsListRequest {
r.type_ = &type_
@@ -88802,24 +92664,25 @@ DcimPowerOutletsList Method for DcimPowerOutletsList
Get a list of power outlet objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerOutletsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerOutletsListRequest
*/
func (a *DcimAPIService) DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest {
return ApiDcimPowerOutletsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerOutletList
+//
+// @return PaginatedPowerOutletList
func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerOutletList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerOutletList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsList")
@@ -90185,6 +94048,119 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi")
}
}
+ if r.status != nil {
+ t := *r.status
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi")
+ }
+ }
+ if r.statusEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "")
+ }
+ if r.statusIc != nil {
+ t := *r.statusIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi")
+ }
+ }
+ if r.statusIe != nil {
+ t := *r.statusIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi")
+ }
+ }
+ if r.statusIew != nil {
+ t := *r.statusIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi")
+ }
+ }
+ if r.statusIsw != nil {
+ t := *r.statusIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi")
+ }
+ }
+ if r.statusN != nil {
+ t := *r.statusN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi")
+ }
+ }
+ if r.statusNic != nil {
+ t := *r.statusNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi")
+ }
+ }
+ if r.statusNie != nil {
+ t := *r.statusNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi")
+ }
+ }
+ if r.statusNiew != nil {
+ t := *r.statusNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi")
+ }
+ }
+ if r.statusNisw != nil {
+ t := *r.statusNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi")
+ }
+ }
if r.tag != nil {
t := *r.tag
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -90207,6 +94183,28 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -90436,9 +94434,9 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
}
type ApiDcimPowerOutletsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritablePowerOutletRequest *PatchedWritablePowerOutletRequest
}
@@ -90456,26 +94454,27 @@ DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate
Patch a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest {
return ApiDcimPowerOutletsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutlet
+//
+// @return PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutlet
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsPartialUpdate")
@@ -90561,9 +94560,9 @@ func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutl
}
type ApiDcimPowerOutletsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerOutletsRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) {
@@ -90575,26 +94574,27 @@ DcimPowerOutletsRetrieve Method for DcimPowerOutletsRetrieve
Get a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest {
return ApiDcimPowerOutletsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutlet
+//
+// @return PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutlet
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsRetrieve")
@@ -90678,9 +94678,9 @@ func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRe
}
type ApiDcimPowerOutletsTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerOutletsTraceRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) {
@@ -90692,26 +94692,27 @@ DcimPowerOutletsTraceRetrieve Method for DcimPowerOutletsTraceRetrieve
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest {
return ApiDcimPowerOutletsTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutlet
+//
+// @return PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutlet
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsTraceRetrieve")
@@ -90795,9 +94796,9 @@ func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutl
}
type ApiDcimPowerOutletsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writablePowerOutletRequest *WritablePowerOutletRequest
}
@@ -90815,26 +94816,27 @@ DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate
Put a power outlet object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power outlet.
- @return ApiDcimPowerOutletsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power outlet.
+ @return ApiDcimPowerOutletsUpdateRequest
*/
func (a *DcimAPIService) DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest {
return ApiDcimPowerOutletsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerOutlet
+//
+// @return PowerOutlet
func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerOutlet
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerOutlet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsUpdate")
@@ -90923,8 +94925,8 @@ func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpda
}
type ApiDcimPowerPanelsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPanelRequest *[]PowerPanelRequest
}
@@ -90942,22 +94944,22 @@ DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy
Delete a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest {
return ApiDcimPowerPanelsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkDestroy")
@@ -91036,8 +95038,8 @@ func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsB
}
type ApiDcimPowerPanelsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPanelRequest *[]PowerPanelRequest
}
@@ -91055,24 +95057,25 @@ DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate
Patch a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest {
return ApiDcimPowerPanelsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPanel
+//
+// @return []PowerPanel
func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPanel
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkPartialUpdate")
@@ -91160,8 +95163,8 @@ func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerP
}
type ApiDcimPowerPanelsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPanelRequest *[]PowerPanelRequest
}
@@ -91179,24 +95182,25 @@ DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate
Put a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest {
return ApiDcimPowerPanelsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPanel
+//
+// @return []PowerPanel
func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPanel
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkUpdate")
@@ -91284,8 +95288,8 @@ func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBu
}
type ApiDcimPowerPanelsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPanelRequest *PowerPanelRequest
}
@@ -91303,24 +95307,25 @@ DcimPowerPanelsCreate Method for DcimPowerPanelsCreate
Post a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsCreateRequest
*/
func (a *DcimAPIService) DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest {
return ApiDcimPowerPanelsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerPanel
+//
+// @return PowerPanel
func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPanel
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsCreate")
@@ -91408,9 +95413,9 @@ func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate
}
type ApiDcimPowerPanelsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPanelsDestroyRequest) Execute() (*http.Response, error) {
@@ -91422,24 +95427,24 @@ DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy
Delete a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest {
return ApiDcimPowerPanelsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsDestroy")
@@ -91514,80 +95519,82 @@ func (a *DcimAPIService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestr
}
type ApiDcimPowerPanelsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- locationId *[]string
- locationIdN *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ locationId *[]string
+ locationIdN *[]string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// Contact
@@ -91957,6 +95964,16 @@ func (r ApiDcimPowerPanelsListRequest) TagN(tagN []string) ApiDcimPowerPanelsLis
return r
}
+func (r ApiDcimPowerPanelsListRequest) TagId(tagId []int32) ApiDcimPowerPanelsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimPowerPanelsListRequest) TagIdN(tagIdN []int32) ApiDcimPowerPanelsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimPowerPanelsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPanelsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -91971,24 +95988,25 @@ DcimPowerPanelsList Method for DcimPowerPanelsList
Get a list of power panel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPanelsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPanelsListRequest
*/
func (a *DcimAPIService) DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest {
return ApiDcimPowerPanelsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerPanelList
+//
+// @return PaginatedPowerPanelList
func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerPanelList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerPanelList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsList")
@@ -92711,6 +96729,28 @@ func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -92783,9 +96823,9 @@ func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ
}
type ApiDcimPowerPanelsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedPowerPanelRequest *PatchedPowerPanelRequest
}
@@ -92803,26 +96843,27 @@ DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate
Patch a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest {
return ApiDcimPowerPanelsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPanel
+//
+// @return PowerPanel
func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPanel
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsPartialUpdate")
@@ -92908,9 +96949,9 @@ func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanel
}
type ApiDcimPowerPanelsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPanelsRetrieveRequest) Execute() (*PowerPanel, *http.Response, error) {
@@ -92922,26 +96963,27 @@ DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve
Get a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest {
return ApiDcimPowerPanelsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPanel
+//
+// @return PowerPanel
func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPanel
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsRetrieve")
@@ -93025,9 +97067,9 @@ func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetr
}
type ApiDcimPowerPanelsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
powerPanelRequest *PowerPanelRequest
}
@@ -93045,26 +97087,27 @@ DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate
Put a power panel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power panel.
- @return ApiDcimPowerPanelsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power panel.
+ @return ApiDcimPowerPanelsUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest {
return ApiDcimPowerPanelsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPanel
+//
+// @return PowerPanel
func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPanel
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPanel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsUpdate")
@@ -93153,8 +97196,8 @@ func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate
}
type ApiDcimPowerPortTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortTemplateRequest *[]PowerPortTemplateRequest
}
@@ -93172,22 +97215,22 @@ DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy
Delete a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest {
return ApiDcimPowerPortTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkDestroy")
@@ -93266,8 +97309,8 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPower
}
type ApiDcimPowerPortTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortTemplateRequest *[]PowerPortTemplateRequest
}
@@ -93285,24 +97328,25 @@ DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPar
Patch a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest {
return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPortTemplate
+//
+// @return []PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkPartialUpdate")
@@ -93390,8 +97434,8 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDci
}
type ApiDcimPowerPortTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortTemplateRequest *[]PowerPortTemplateRequest
}
@@ -93409,24 +97453,25 @@ DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate
Put a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest {
return ApiDcimPowerPortTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPortTemplate
+//
+// @return []PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkUpdate")
@@ -93514,8 +97559,8 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerP
}
type ApiDcimPowerPortTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest
}
@@ -93533,24 +97578,25 @@ DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate
Post a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest {
return ApiDcimPowerPortTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerPortTemplate
+//
+// @return PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPortTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesCreate")
@@ -93638,9 +97684,9 @@ func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortT
}
type ApiDcimPowerPortTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPortTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -93652,24 +97698,24 @@ DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy
Delete a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest {
return ApiDcimPowerPortTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesDestroy")
@@ -93744,88 +97790,88 @@ func (a *DcimAPIService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPort
}
type ApiDcimPowerPortTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- allocatedDraw *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ allocatedDraw *[]int32
allocatedDrawEmpty *bool
- allocatedDrawGt *[]int32
- allocatedDrawGte *[]int32
- allocatedDrawLt *[]int32
- allocatedDrawLte *[]int32
- allocatedDrawN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- maximumDraw *[]int32
- maximumDrawEmpty *bool
- maximumDrawGt *[]int32
- maximumDrawGte *[]int32
- maximumDrawLt *[]int32
- maximumDrawLte *[]int32
- maximumDrawN *[]int32
- modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- type_ *DcimPowerPortTemplatesListTypeParameter
- updatedByRequest *string
+ allocatedDrawGt *[]int32
+ allocatedDrawGte *[]int32
+ allocatedDrawLt *[]int32
+ allocatedDrawLte *[]int32
+ allocatedDrawN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ maximumDraw *[]int32
+ maximumDrawEmpty *bool
+ maximumDrawGt *[]int32
+ maximumDrawGte *[]int32
+ maximumDrawLt *[]int32
+ maximumDrawLte *[]int32
+ maximumDrawN *[]int32
+ modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ type_ *DcimPowerPortTemplatesListTypeParameter
+ updatedByRequest *string
}
func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortTemplatesListRequest {
@@ -94246,24 +98292,25 @@ DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList
Get a list of power port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortTemplatesListRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest {
return ApiDcimPowerPortTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerPortTemplateList
+//
+// @return PaginatedPowerPortTemplateList
func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerPortTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerPortTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesList")
@@ -95114,9 +99161,9 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem
}
type ApiDcimPowerPortTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritablePowerPortTemplateRequest *PatchedWritablePowerPortTemplateRequest
}
@@ -95134,26 +99181,27 @@ DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpda
Patch a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest {
return ApiDcimPowerPortTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPortTemplate
+//
+// @return PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesPartialUpdate")
@@ -95239,9 +99287,9 @@ func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPow
}
type ApiDcimPowerPortTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPortTemplatesRetrieveRequest) Execute() (*PowerPortTemplate, *http.Response, error) {
@@ -95253,26 +99301,27 @@ DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve
Get a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest {
return ApiDcimPowerPortTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPortTemplate
+//
+// @return PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPortTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesRetrieve")
@@ -95356,9 +99405,9 @@ func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPor
}
type ApiDcimPowerPortTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest
}
@@ -95376,26 +99425,27 @@ DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate
Put a power port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port template.
- @return ApiDcimPowerPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port template.
+ @return ApiDcimPowerPortTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest {
return ApiDcimPowerPortTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPortTemplate
+//
+// @return PowerPortTemplate
func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesUpdate")
@@ -95484,8 +99534,8 @@ func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortT
}
type ApiDcimPowerPortsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortRequest *[]PowerPortRequest
}
@@ -95503,22 +99553,22 @@ DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy
Delete a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest {
return ApiDcimPowerPortsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkDestroy")
@@ -95597,8 +99647,8 @@ func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBul
}
type ApiDcimPowerPortsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortRequest *[]PowerPortRequest
}
@@ -95616,24 +99666,25 @@ DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate
Patch a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest {
return ApiDcimPowerPortsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPort
+//
+// @return []PowerPort
func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkPartialUpdate")
@@ -95721,8 +99772,8 @@ func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPo
}
type ApiDcimPowerPortsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
powerPortRequest *[]PowerPortRequest
}
@@ -95740,24 +99791,25 @@ DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate
Put a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest {
return ApiDcimPowerPortsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []PowerPort
+//
+// @return []PowerPort
func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []PowerPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkUpdate")
@@ -95845,8 +99897,8 @@ func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulk
}
type ApiDcimPowerPortsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writablePowerPortRequest *WritablePowerPortRequest
}
@@ -95864,24 +99916,25 @@ DcimPowerPortsCreate Method for DcimPowerPortsCreate
Post a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsCreateRequest
*/
func (a *DcimAPIService) DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest {
return ApiDcimPowerPortsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PowerPort
+//
+// @return PowerPort
func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPort
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsCreate")
@@ -95969,9 +100022,9 @@ func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRe
}
type ApiDcimPowerPortsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPortsDestroyRequest) Execute() (*http.Response, error) {
@@ -95983,24 +100036,24 @@ DcimPowerPortsDestroy Method for DcimPowerPortsDestroy
Delete a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsDestroyRequest
*/
func (a *DcimAPIService) DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest {
return ApiDcimPowerPortsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsDestroy")
@@ -96075,152 +100128,154 @@ func (a *DcimAPIService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroy
}
type ApiDcimPowerPortsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- allocatedDraw *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ allocatedDraw *[]int32
allocatedDrawEmpty *bool
- allocatedDrawGt *[]int32
- allocatedDrawGte *[]int32
- allocatedDrawLt *[]int32
- allocatedDrawLte *[]int32
- allocatedDrawN *[]int32
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- connected *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
- deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
- maximumDraw *[]int32
- maximumDrawEmpty *bool
- maximumDrawGt *[]int32
- maximumDrawGte *[]int32
- maximumDrawLt *[]int32
- maximumDrawLte *[]int32
- maximumDrawN *[]int32
- modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- type_ *[]*string
- typeEmpty *bool
- typeIc *[]*string
- typeIe *[]*string
- typeIew *[]*string
- typeIsw *[]*string
- typeN *[]*string
- typeNic *[]*string
- typeNie *[]*string
- typeNiew *[]*string
- typeNisw *[]*string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ allocatedDrawGt *[]int32
+ allocatedDrawGte *[]int32
+ allocatedDrawLt *[]int32
+ allocatedDrawLte *[]int32
+ allocatedDrawN *[]int32
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ connected *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
+ deviceStatusEmpty *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
+ maximumDraw *[]int32
+ maximumDrawEmpty *bool
+ maximumDrawGt *[]int32
+ maximumDrawGte *[]int32
+ maximumDrawLt *[]int32
+ maximumDrawLte *[]int32
+ maximumDrawN *[]int32
+ modifiedByRequest *string
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]*string
+ typeEmpty *bool
+ typeIc *[]*string
+ typeIe *[]*string
+ typeIew *[]*string
+ typeIsw *[]*string
+ typeN *[]*string
+ typeNic *[]*string
+ typeNie *[]*string
+ typeNiew *[]*string
+ typeNisw *[]*string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
+ virtualChassisIdN *[]int32
}
func (r ApiDcimPowerPortsListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortsListRequest {
@@ -96896,6 +100951,16 @@ func (r ApiDcimPowerPortsListRequest) TagN(tagN []string) ApiDcimPowerPortsListR
return r
}
+func (r ApiDcimPowerPortsListRequest) TagId(tagId []int32) ApiDcimPowerPortsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimPowerPortsListRequest) TagIdN(tagIdN []int32) ApiDcimPowerPortsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Physical port type
func (r ApiDcimPowerPortsListRequest) Type_(type_ []*string) ApiDcimPowerPortsListRequest {
r.type_ = &type_
@@ -96999,24 +101064,25 @@ DcimPowerPortsList Method for DcimPowerPortsList
Get a list of power port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimPowerPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimPowerPortsListRequest
*/
func (a *DcimAPIService) DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest {
return ApiDcimPowerPortsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPowerPortList
+//
+// @return PaginatedPowerPortList
func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPowerPortList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPowerPortList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsList")
@@ -98294,6 +102360,28 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -98523,9 +102611,9 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques
}
type ApiDcimPowerPortsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritablePowerPortRequest *PatchedWritablePowerPortRequest
}
@@ -98543,26 +102631,27 @@ DcimPowerPortsPartialUpdate Method for DcimPowerPortsPartialUpdate
Patch a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest {
return ApiDcimPowerPortsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPort
+//
+// @return PowerPort
func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsPartialUpdate")
@@ -98648,9 +102737,9 @@ func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsP
}
type ApiDcimPowerPortsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPortsRetrieveRequest) Execute() (*PowerPort, *http.Response, error) {
@@ -98662,26 +102751,27 @@ DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve
Get a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest {
return ApiDcimPowerPortsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPort
+//
+// @return PowerPort
func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsRetrieve")
@@ -98765,9 +102855,9 @@ func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrie
}
type ApiDcimPowerPortsTraceRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimPowerPortsTraceRetrieveRequest) Execute() (*PowerPort, *http.Response, error) {
@@ -98779,26 +102869,27 @@ DcimPowerPortsTraceRetrieve Method for DcimPowerPortsTraceRetrieve
Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsTraceRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsTraceRetrieveRequest
*/
func (a *DcimAPIService) DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest {
return ApiDcimPowerPortsTraceRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPort
+//
+// @return PowerPort
func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsTraceRetrieve")
@@ -98882,9 +102973,9 @@ func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsT
}
type ApiDcimPowerPortsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writablePowerPortRequest *WritablePowerPortRequest
}
@@ -98902,26 +102993,27 @@ DcimPowerPortsUpdate Method for DcimPowerPortsUpdate
Put a power port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this power port.
- @return ApiDcimPowerPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this power port.
+ @return ApiDcimPowerPortsUpdateRequest
*/
func (a *DcimAPIService) DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest {
return ApiDcimPowerPortsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PowerPort
+//
+// @return PowerPort
func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PowerPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PowerPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsUpdate")
@@ -99010,8 +103102,8 @@ func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRe
}
type ApiDcimRackReservationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackReservationRequest *[]RackReservationRequest
}
@@ -99029,22 +103121,22 @@ DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy
Delete a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest {
return ApiDcimRackReservationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkDestroy")
@@ -99123,8 +103215,8 @@ func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackRes
}
type ApiDcimRackReservationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackReservationRequest *[]RackReservationRequest
}
@@ -99142,24 +103234,25 @@ DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartial
Patch a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest {
return ApiDcimRackReservationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackReservation
+//
+// @return []RackReservation
func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackReservation
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkPartialUpdate")
@@ -99247,8 +103340,8 @@ func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimR
}
type ApiDcimRackReservationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackReservationRequest *[]RackReservationRequest
}
@@ -99266,24 +103359,25 @@ DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate
Put a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest {
return ApiDcimRackReservationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackReservation
+//
+// @return []RackReservation
func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackReservation
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkUpdate")
@@ -99371,8 +103465,8 @@ func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackRese
}
type ApiDcimRackReservationsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackReservationRequest *RackReservationRequest
}
@@ -99390,24 +103484,25 @@ DcimRackReservationsCreate Method for DcimRackReservationsCreate
Post a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsCreateRequest
*/
func (a *DcimAPIService) DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest {
return ApiDcimRackReservationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RackReservation
+//
+// @return RackReservation
func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackReservation
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsCreate")
@@ -99495,9 +103590,9 @@ func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat
}
type ApiDcimRackReservationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackReservationsDestroyRequest) Execute() (*http.Response, error) {
@@ -99509,24 +103604,24 @@ DcimRackReservationsDestroy Method for DcimRackReservationsDestroy
Delete a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsDestroyRequest
*/
func (a *DcimAPIService) DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest {
return ApiDcimRackReservationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsDestroy")
@@ -99601,80 +103696,82 @@ func (a *DcimAPIService) DcimRackReservationsDestroyExecute(r ApiDcimRackReserva
}
type ApiDcimRackReservationsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- unit *float32
- updatedByRequest *string
- user *[]string
- userN *[]string
- userId *[]int32
- userIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ unit *float32
+ updatedByRequest *string
+ user *[]string
+ userN *[]string
+ userId *[]int32
+ userIdN *[]int32
}
func (r ApiDcimRackReservationsListRequest) Created(created []time.Time) ApiDcimRackReservationsListRequest {
@@ -99977,6 +104074,16 @@ func (r ApiDcimRackReservationsListRequest) TagN(tagN []string) ApiDcimRackReser
return r
}
+func (r ApiDcimRackReservationsListRequest) TagId(tagId []int32) ApiDcimRackReservationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRackReservationsListRequest) TagIdN(tagIdN []int32) ApiDcimRackReservationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimRackReservationsListRequest) Tenant(tenant []string) ApiDcimRackReservationsListRequest {
r.tenant = &tenant
@@ -100064,24 +104171,25 @@ DcimRackReservationsList Method for DcimRackReservationsList
Get a list of rack reservation objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackReservationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackReservationsListRequest
*/
func (a *DcimAPIService) DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest {
return ApiDcimRackReservationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRackReservationList
+//
+// @return PaginatedRackReservationList
func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRackReservationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRackReservationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsList")
@@ -100669,6 +104777,28 @@ func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservatio
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -100876,9 +105006,9 @@ func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservatio
}
type ApiDcimRackReservationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedRackReservationRequest *PatchedRackReservationRequest
}
@@ -100896,26 +105026,27 @@ DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate
Patch a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest {
return ApiDcimRackReservationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackReservation
+//
+// @return RackReservation
func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackReservation
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsPartialUpdate")
@@ -101001,9 +105132,9 @@ func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackR
}
type ApiDcimRackReservationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackReservationsRetrieveRequest) Execute() (*RackReservation, *http.Response, error) {
@@ -101015,26 +105146,27 @@ DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve
Get a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsRetrieveRequest
*/
func (a *DcimAPIService) DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest {
return ApiDcimRackReservationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackReservation
+//
+// @return RackReservation
func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackReservation
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsRetrieve")
@@ -101118,9 +105250,9 @@ func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReserv
}
type ApiDcimRackReservationsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
rackReservationRequest *RackReservationRequest
}
@@ -101138,26 +105270,27 @@ DcimRackReservationsUpdate Method for DcimRackReservationsUpdate
Put a rack reservation object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack reservation.
- @return ApiDcimRackReservationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack reservation.
+ @return ApiDcimRackReservationsUpdateRequest
*/
func (a *DcimAPIService) DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest {
return ApiDcimRackReservationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackReservation
+//
+// @return RackReservation
func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackReservation
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackReservation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsUpdate")
@@ -101246,8 +105379,8 @@ func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat
}
type ApiDcimRackRolesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRoleRequest *[]RackRoleRequest
}
@@ -101265,22 +105398,22 @@ DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy
Delete a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest {
return ApiDcimRackRolesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkDestroy")
@@ -101359,8 +105492,8 @@ func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkD
}
type ApiDcimRackRolesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRoleRequest *[]RackRoleRequest
}
@@ -101378,24 +105511,25 @@ DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate
Patch a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest {
return ApiDcimRackRolesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackRole
+//
+// @return []RackRole
func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkPartialUpdate")
@@ -101483,8 +105617,8 @@ func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRole
}
type ApiDcimRackRolesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRoleRequest *[]RackRoleRequest
}
@@ -101502,24 +105636,25 @@ DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate
Put a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest {
return ApiDcimRackRolesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackRole
+//
+// @return []RackRole
func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkUpdate")
@@ -101607,8 +105742,8 @@ func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUp
}
type ApiDcimRackRolesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRoleRequest *RackRoleRequest
}
@@ -101626,24 +105761,25 @@ DcimRackRolesCreate Method for DcimRackRolesCreate
Post a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesCreateRequest
*/
func (a *DcimAPIService) DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest {
return ApiDcimRackRolesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RackRole
+//
+// @return RackRole
func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackRole
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesCreate")
@@ -101731,9 +105867,9 @@ func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequ
}
type ApiDcimRackRolesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackRolesDestroyRequest) Execute() (*http.Response, error) {
@@ -101745,24 +105881,24 @@ DcimRackRolesDestroy Method for DcimRackRolesDestroy
Delete a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesDestroyRequest
*/
func (a *DcimAPIService) DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest {
return ApiDcimRackRolesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesDestroy")
@@ -101837,82 +105973,84 @@ func (a *DcimAPIService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRe
}
type ApiDcimRackRolesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimRackRolesListRequest) Color(color []string) ApiDcimRackRolesListRequest {
@@ -102284,6 +106422,16 @@ func (r ApiDcimRackRolesListRequest) TagN(tagN []string) ApiDcimRackRolesListReq
return r
}
+func (r ApiDcimRackRolesListRequest) TagId(tagId []int32) ApiDcimRackRolesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRackRolesListRequest) TagIdN(tagIdN []int32) ApiDcimRackRolesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimRackRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackRolesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -102298,24 +106446,25 @@ DcimRackRolesList Method for DcimRackRolesList
Get a list of rack role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackRolesListRequest
*/
func (a *DcimAPIService) DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest {
return ApiDcimRackRolesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRackRoleList
+//
+// @return PaginatedRackRoleList
func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRackRoleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRackRoleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesList")
@@ -103044,6 +107193,28 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -103116,9 +107287,9 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest)
}
type ApiDcimRackRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedRackRoleRequest *PatchedRackRoleRequest
}
@@ -103136,26 +107307,27 @@ DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate
Patch a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest {
return ApiDcimRackRolesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackRole
+//
+// @return RackRole
func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate")
@@ -103241,9 +107413,9 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar
}
type ApiDcimRackRolesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) {
@@ -103255,26 +107427,27 @@ DcimRackRolesRetrieve Method for DcimRackRolesRetrieve
Get a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesRetrieveRequest
*/
func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest {
return ApiDcimRackRolesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackRole
+//
+// @return RackRole
func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackRole
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve")
@@ -103358,9 +107531,9 @@ func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve
}
type ApiDcimRackRolesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
rackRoleRequest *RackRoleRequest
}
@@ -103378,26 +107551,27 @@ DcimRackRolesUpdate Method for DcimRackRolesUpdate
Put a rack role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack role.
- @return ApiDcimRackRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack role.
+ @return ApiDcimRackRolesUpdateRequest
*/
func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest {
return ApiDcimRackRolesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackRole
+//
+// @return RackRole
func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate")
@@ -103486,8 +107660,8 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ
}
type ApiDcimRackTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackTypeRequest *[]RackTypeRequest
}
@@ -103505,22 +107679,22 @@ DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy
Delete a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest {
return ApiDcimRackTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkDestroy")
@@ -103599,8 +107773,8 @@ func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkD
}
type ApiDcimRackTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackTypeRequest *[]RackTypeRequest
}
@@ -103618,24 +107792,25 @@ DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate
Patch a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest {
return ApiDcimRackTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackType
+//
+// @return []RackType
func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate")
@@ -103723,8 +107898,8 @@ func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackType
}
type ApiDcimRackTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackTypeRequest *[]RackTypeRequest
}
@@ -103742,24 +107917,25 @@ DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate
Put a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest {
return ApiDcimRackTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RackType
+//
+// @return []RackType
func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RackType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate")
@@ -103847,8 +108023,8 @@ func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUp
}
type ApiDcimRackTypesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableRackTypeRequest *WritableRackTypeRequest
}
@@ -103866,24 +108042,25 @@ DcimRackTypesCreate Method for DcimRackTypesCreate
Post a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesCreateRequest
*/
func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest {
return ApiDcimRackTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RackType
+//
+// @return RackType
func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate")
@@ -103971,9 +108148,9 @@ func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequ
}
type ApiDcimRackTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -103985,24 +108162,24 @@ DcimRackTypesDestroy Method for DcimRackTypesDestroy
Delete a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesDestroyRequest
*/
func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest {
return ApiDcimRackTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesDestroy")
@@ -104077,148 +108254,157 @@ func (a *DcimAPIService) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRe
}
type ApiDcimRackTypesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- descUnits *bool
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- formFactor *[]string
- formFactorEmpty *bool
- formFactorIc *[]string
- formFactorIe *[]string
- formFactorIew *[]string
- formFactorIsw *[]string
- formFactorN *[]string
- formFactorNic *[]string
- formFactorNie *[]string
- formFactorNiew *[]string
- formFactorNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- maxWeight *[]int32
- maxWeightEmpty *bool
- maxWeightGt *[]int32
- maxWeightGte *[]int32
- maxWeightLt *[]int32
- maxWeightLte *[]int32
- maxWeightN *[]int32
- model *[]string
- modelEmpty *bool
- modelIc *[]string
- modelIe *[]string
- modelIew *[]string
- modelIsw *[]string
- modelN *[]string
- modelNic *[]string
- modelNie *[]string
- modelNiew *[]string
- modelNisw *[]string
- modifiedByRequest *string
- mountingDepth *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ descUnits *bool
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ formFactor *[]string
+ formFactorEmpty *bool
+ formFactorIc *[]string
+ formFactorIe *[]string
+ formFactorIew *[]string
+ formFactorIsw *[]string
+ formFactorN *[]string
+ formFactorNic *[]string
+ formFactorNie *[]string
+ formFactorNiew *[]string
+ formFactorNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ maxWeight *[]int32
+ maxWeightEmpty *bool
+ maxWeightGt *[]int32
+ maxWeightGte *[]int32
+ maxWeightLt *[]int32
+ maxWeightLte *[]int32
+ maxWeightN *[]int32
+ model *[]string
+ modelEmpty *bool
+ modelIc *[]string
+ modelIe *[]string
+ modelIew *[]string
+ modelIsw *[]string
+ modelN *[]string
+ modelNic *[]string
+ modelNie *[]string
+ modelNiew *[]string
+ modelNisw *[]string
+ modifiedByRequest *string
+ mountingDepth *[]int32
mountingDepthEmpty *bool
- mountingDepthGt *[]int32
- mountingDepthGte *[]int32
- mountingDepthLt *[]int32
- mountingDepthLte *[]int32
- mountingDepthN *[]int32
- offset *int32
- ordering *string
- outerDepth *[]int32
- outerDepthEmpty *bool
- outerDepthGt *[]int32
- outerDepthGte *[]int32
- outerDepthLt *[]int32
- outerDepthLte *[]int32
- outerDepthN *[]int32
- outerUnit *DcimRackTypesListOuterUnitParameter
- outerWidth *[]int32
- outerWidthEmpty *bool
- outerWidthGt *[]int32
- outerWidthGte *[]int32
- outerWidthLt *[]int32
- outerWidthLte *[]int32
- outerWidthN *[]int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- startingUnit *[]int32
- startingUnitEmpty *bool
- startingUnitGt *[]int32
- startingUnitGte *[]int32
- startingUnitLt *[]int32
- startingUnitLte *[]int32
- startingUnitN *[]int32
- tag *[]string
- tagN *[]string
- uHeight *[]int32
- uHeightEmpty *bool
- uHeightGt *[]int32
- uHeightGte *[]int32
- uHeightLt *[]int32
- uHeightLte *[]int32
- uHeightN *[]int32
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *DcimDeviceTypesListWeightUnitParameter
- width *[]int32
- widthIc *[]int32
- widthIe *[]int32
- widthIew *[]int32
- widthIsw *[]int32
- widthN *[]int32
- widthNic *[]int32
- widthNie *[]int32
- widthNiew *[]int32
- widthNisw *[]int32
+ mountingDepthGt *[]int32
+ mountingDepthGte *[]int32
+ mountingDepthLt *[]int32
+ mountingDepthLte *[]int32
+ mountingDepthN *[]int32
+ offset *int32
+ ordering *string
+ outerDepth *[]int32
+ outerDepthEmpty *bool
+ outerDepthGt *[]int32
+ outerDepthGte *[]int32
+ outerDepthLt *[]int32
+ outerDepthLte *[]int32
+ outerDepthN *[]int32
+ outerHeight *[]int32
+ outerHeightEmpty *bool
+ outerHeightGt *[]int32
+ outerHeightGte *[]int32
+ outerHeightLt *[]int32
+ outerHeightLte *[]int32
+ outerHeightN *[]int32
+ outerUnit *DcimRackTypesListOuterUnitParameter
+ outerWidth *[]int32
+ outerWidthEmpty *bool
+ outerWidthGt *[]int32
+ outerWidthGte *[]int32
+ outerWidthLt *[]int32
+ outerWidthLte *[]int32
+ outerWidthN *[]int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ startingUnit *[]int32
+ startingUnitEmpty *bool
+ startingUnitGt *[]int32
+ startingUnitGte *[]int32
+ startingUnitLt *[]int32
+ startingUnitLte *[]int32
+ startingUnitN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ uHeight *[]int32
+ uHeightEmpty *bool
+ uHeightGt *[]int32
+ uHeightGte *[]int32
+ uHeightLt *[]int32
+ uHeightLte *[]int32
+ uHeightN *[]int32
+ updatedByRequest *string
+ weight *[]float64
+ weightEmpty *bool
+ weightGt *[]float64
+ weightGte *[]float64
+ weightLt *[]float64
+ weightLte *[]float64
+ weightN *[]float64
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
+ width *[]int32
+ widthIc *[]int32
+ widthIe *[]int32
+ widthIew *[]int32
+ widthIsw *[]int32
+ widthN *[]int32
+ widthNic *[]int32
+ widthNie *[]int32
+ widthNiew *[]int32
+ widthNisw *[]int32
}
func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest {
@@ -104653,6 +108839,41 @@ func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRac
return r
}
+func (r ApiDcimRackTypesListRequest) OuterHeight(outerHeight []int32) ApiDcimRackTypesListRequest {
+ r.outerHeight = &outerHeight
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightEmpty(outerHeightEmpty bool) ApiDcimRackTypesListRequest {
+ r.outerHeightEmpty = &outerHeightEmpty
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightGt(outerHeightGt []int32) ApiDcimRackTypesListRequest {
+ r.outerHeightGt = &outerHeightGt
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightGte(outerHeightGte []int32) ApiDcimRackTypesListRequest {
+ r.outerHeightGte = &outerHeightGte
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightLt(outerHeightLt []int32) ApiDcimRackTypesListRequest {
+ r.outerHeightLt = &outerHeightLt
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightLte(outerHeightLte []int32) ApiDcimRackTypesListRequest {
+ r.outerHeightLte = &outerHeightLte
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) OuterHeightN(outerHeightN []int32) ApiDcimRackTypesListRequest {
+ r.outerHeightN = &outerHeightN
+ return r
+}
+
// * `mm` - Millimeters * `in` - Inches
func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest {
r.outerUnit = &outerUnit
@@ -104800,6 +109021,16 @@ func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListReq
return r
}
+func (r ApiDcimRackTypesListRequest) TagId(tagId []int32) ApiDcimRackTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRackTypesListRequest) TagIdN(tagIdN []int32) ApiDcimRackTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest {
r.uHeight = &uHeight
return r
@@ -104950,24 +109181,25 @@ DcimRackTypesList Method for DcimRackTypesList
Get a list of rack type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRackTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRackTypesListRequest
*/
func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest {
return ApiDcimRackTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRackTypeList
+//
+// @return PaginatedRackTypeList
func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRackTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRackTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList")
@@ -105812,6 +110044,75 @@ func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "form", "multi")
}
}
+ if r.outerHeight != nil {
+ t := *r.outerHeight
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height", t, "form", "multi")
+ }
+ }
+ if r.outerHeightEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__empty", r.outerHeightEmpty, "form", "")
+ }
+ if r.outerHeightGt != nil {
+ t := *r.outerHeightGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gt", t, "form", "multi")
+ }
+ }
+ if r.outerHeightGte != nil {
+ t := *r.outerHeightGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gte", t, "form", "multi")
+ }
+ }
+ if r.outerHeightLt != nil {
+ t := *r.outerHeightLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lt", t, "form", "multi")
+ }
+ }
+ if r.outerHeightLte != nil {
+ t := *r.outerHeightLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lte", t, "form", "multi")
+ }
+ }
+ if r.outerHeightN != nil {
+ t := *r.outerHeightN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__n", t, "form", "multi")
+ }
+ }
if r.outerUnit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "form", "")
}
@@ -106091,6 +110392,28 @@ func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.uHeight != nil {
t := *r.uHeight
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -106414,9 +110737,9 @@ func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest)
}
type ApiDcimRackTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest
}
@@ -106434,26 +110757,27 @@ DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate
Patch a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest {
return ApiDcimRackTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackType
+//
+// @return RackType
func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate")
@@ -106539,9 +110863,9 @@ func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPar
}
type ApiDcimRackTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) {
@@ -106553,26 +110877,27 @@ DcimRackTypesRetrieve Method for DcimRackTypesRetrieve
Get a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesRetrieveRequest
*/
func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest {
return ApiDcimRackTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackType
+//
+// @return RackType
func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve")
@@ -106656,9 +110981,9 @@ func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieve
}
type ApiDcimRackTypesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableRackTypeRequest *WritableRackTypeRequest
}
@@ -106676,26 +111001,27 @@ DcimRackTypesUpdate Method for DcimRackTypesUpdate
Put a rack type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack type.
- @return ApiDcimRackTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack type.
+ @return ApiDcimRackTypesUpdateRequest
*/
func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest {
return ApiDcimRackTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RackType
+//
+// @return RackType
func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RackType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RackType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate")
@@ -106784,8 +111110,8 @@ func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequ
}
type ApiDcimRacksBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRequest *[]RackRequest
}
@@ -106803,22 +111129,22 @@ DcimRacksBulkDestroy Method for DcimRacksBulkDestroy
Delete a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRacksBulkDestroy(ctx context.Context) ApiDcimRacksBulkDestroyRequest {
return ApiDcimRacksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkDestroy")
@@ -106897,8 +111223,8 @@ func (a *DcimAPIService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRe
}
type ApiDcimRacksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRequest *[]RackRequest
}
@@ -106916,24 +111242,25 @@ DcimRacksBulkPartialUpdate Method for DcimRacksBulkPartialUpdate
Patch a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRacksBulkPartialUpdate(ctx context.Context) ApiDcimRacksBulkPartialUpdateRequest {
return ApiDcimRacksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Rack
+//
+// @return []Rack
func (a *DcimAPIService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPartialUpdateRequest) ([]Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Rack
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkPartialUpdate")
@@ -107021,8 +111348,8 @@ func (a *DcimAPIService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPar
}
type ApiDcimRacksBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rackRequest *[]RackRequest
}
@@ -107040,24 +111367,25 @@ DcimRacksBulkUpdate Method for DcimRacksBulkUpdate
Put a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRacksBulkUpdate(ctx context.Context) ApiDcimRacksBulkUpdateRequest {
return ApiDcimRacksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Rack
+//
+// @return []Rack
func (a *DcimAPIService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequest) ([]Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Rack
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkUpdate")
@@ -107145,8 +111473,8 @@ func (a *DcimAPIService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequ
}
type ApiDcimRacksCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableRackRequest *WritableRackRequest
}
@@ -107164,24 +111492,25 @@ DcimRacksCreate Method for DcimRacksCreate
Post a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksCreateRequest
*/
func (a *DcimAPIService) DcimRacksCreate(ctx context.Context) ApiDcimRacksCreateRequest {
return ApiDcimRacksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Rack
+//
+// @return Rack
func (a *DcimAPIService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Rack
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksCreate")
@@ -107269,9 +111598,9 @@ func (a *DcimAPIService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*R
}
type ApiDcimRacksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRacksDestroyRequest) Execute() (*http.Response, error) {
@@ -107283,24 +111612,24 @@ DcimRacksDestroy Method for DcimRacksDestroy
Delete a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksDestroyRequest
*/
func (a *DcimAPIService) DcimRacksDestroy(ctx context.Context, id int32) ApiDcimRacksDestroyRequest {
return ApiDcimRacksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksDestroy")
@@ -107375,21 +111704,21 @@ func (a *DcimAPIService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (
}
type ApiDcimRacksElevationRetrieveRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
- exclude *int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
+ exclude *int32
expandDevices *bool
- face *DcimRacksElevationRetrieveFaceParameter
+ face *DcimRacksElevationRetrieveFaceParameter
includeImages *bool
- legendWidth *int32
- limit *int32
- marginWidth *int32
- offset *int32
- q *string
- render *DcimRacksElevationRetrieveRenderParameter
- unitHeight *int32
- unitWidth *int32
+ legendWidth *int32
+ limit *int32
+ marginWidth *int32
+ offset *int32
+ q *string
+ render *DcimRacksElevationRetrieveRenderParameter
+ unitHeight *int32
+ unitWidth *int32
}
func (r ApiDcimRacksElevationRetrieveRequest) Exclude(exclude int32) ApiDcimRacksElevationRetrieveRequest {
@@ -107465,26 +111794,27 @@ DcimRacksElevationRetrieve Method for DcimRacksElevationRetrieve
Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksElevationRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksElevationRetrieveRequest
*/
func (a *DcimAPIService) DcimRacksElevationRetrieve(ctx context.Context, id int32) ApiDcimRacksElevationRetrieveRequest {
return ApiDcimRacksElevationRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return PaginatedRackUnitList
+//
+// @return PaginatedRackUnitList
func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*PaginatedRackUnitList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRackUnitList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRackUnitList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksElevationRetrieve")
@@ -107622,220 +111952,229 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati
}
type ApiDcimRacksListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- airflow *DcimRacksListAirflowParameter
- assetTag *[]string
- assetTagEmpty *bool
- assetTagIc *[]string
- assetTagIe *[]string
- assetTagIew *[]string
- assetTagIsw *[]string
- assetTagN *[]string
- assetTagNic *[]string
- assetTagNie *[]string
- assetTagNiew *[]string
- assetTagNisw *[]string
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- descUnits *bool
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- facilityId *[]string
- facilityIdEmpty *bool
- facilityIdIc *[]string
- facilityIdIe *[]string
- facilityIdIew *[]string
- facilityIdIsw *[]string
- facilityIdN *[]string
- facilityIdNic *[]string
- facilityIdNie *[]string
- facilityIdNiew *[]string
- facilityIdNisw *[]string
- formFactor *[]*string
- formFactorEmpty *bool
- formFactorIc *[]*string
- formFactorIe *[]*string
- formFactorIew *[]*string
- formFactorIsw *[]*string
- formFactorN *[]*string
- formFactorNic *[]*string
- formFactorNie *[]*string
- formFactorNiew *[]*string
- formFactorNisw *[]*string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- maxWeight *[]int32
- maxWeightEmpty *bool
- maxWeightGt *[]int32
- maxWeightGte *[]int32
- maxWeightLt *[]int32
- maxWeightLte *[]int32
- maxWeightN *[]int32
- modifiedByRequest *string
- mountingDepth *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ airflow *DcimRacksListAirflowParameter
+ assetTag *[]string
+ assetTagEmpty *bool
+ assetTagIc *[]string
+ assetTagIe *[]string
+ assetTagIew *[]string
+ assetTagIsw *[]string
+ assetTagN *[]string
+ assetTagNic *[]string
+ assetTagNie *[]string
+ assetTagNiew *[]string
+ assetTagNisw *[]string
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ descUnits *bool
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ facilityId *[]string
+ facilityIdEmpty *bool
+ facilityIdIc *[]string
+ facilityIdIe *[]string
+ facilityIdIew *[]string
+ facilityIdIsw *[]string
+ facilityIdN *[]string
+ facilityIdNic *[]string
+ facilityIdNie *[]string
+ facilityIdNiew *[]string
+ facilityIdNisw *[]string
+ formFactor *[]*string
+ formFactorEmpty *bool
+ formFactorIc *[]*string
+ formFactorIe *[]*string
+ formFactorIew *[]*string
+ formFactorIsw *[]*string
+ formFactorN *[]*string
+ formFactorNic *[]*string
+ formFactorNie *[]*string
+ formFactorNiew *[]*string
+ formFactorNisw *[]*string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
+ manufacturer *[]string
+ manufacturerN *[]string
+ manufacturerId *[]int32
+ manufacturerIdN *[]int32
+ maxWeight *[]int32
+ maxWeightEmpty *bool
+ maxWeightGt *[]int32
+ maxWeightGte *[]int32
+ maxWeightLt *[]int32
+ maxWeightLte *[]int32
+ maxWeightN *[]int32
+ modifiedByRequest *string
+ mountingDepth *[]int32
mountingDepthEmpty *bool
- mountingDepthGt *[]int32
- mountingDepthGte *[]int32
- mountingDepthLt *[]int32
- mountingDepthLte *[]int32
- mountingDepthN *[]int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- outerDepth *[]int32
- outerDepthEmpty *bool
- outerDepthGt *[]int32
- outerDepthGte *[]int32
- outerDepthLt *[]int32
- outerDepthLte *[]int32
- outerDepthN *[]int32
- outerUnit *DcimRackTypesListOuterUnitParameter
- outerWidth *[]int32
- outerWidthEmpty *bool
- outerWidthGt *[]int32
- outerWidthGte *[]int32
- outerWidthLt *[]int32
- outerWidthLte *[]int32
- outerWidthN *[]int32
- q *string
- rackType *[]string
- rackTypeN *[]string
- rackTypeId *[]*int32
- rackTypeIdN *[]*int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- startingUnit *[]int32
- startingUnitEmpty *bool
- startingUnitGt *[]int32
- startingUnitGte *[]int32
- startingUnitLt *[]int32
- startingUnitLte *[]int32
- startingUnitN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- uHeight *[]int32
- uHeightEmpty *bool
- uHeightGt *[]int32
- uHeightGte *[]int32
- uHeightLt *[]int32
- uHeightLte *[]int32
- uHeightN *[]int32
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *DcimDeviceTypesListWeightUnitParameter
- width *[]int32
- widthIc *[]int32
- widthIe *[]int32
- widthIew *[]int32
- widthIsw *[]int32
- widthN *[]int32
- widthNic *[]int32
- widthNie *[]int32
- widthNiew *[]int32
- widthNisw *[]int32
+ mountingDepthGt *[]int32
+ mountingDepthGte *[]int32
+ mountingDepthLt *[]int32
+ mountingDepthLte *[]int32
+ mountingDepthN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ outerDepth *[]int32
+ outerDepthEmpty *bool
+ outerDepthGt *[]int32
+ outerDepthGte *[]int32
+ outerDepthLt *[]int32
+ outerDepthLte *[]int32
+ outerDepthN *[]int32
+ outerHeight *[]int32
+ outerHeightEmpty *bool
+ outerHeightGt *[]int32
+ outerHeightGte *[]int32
+ outerHeightLt *[]int32
+ outerHeightLte *[]int32
+ outerHeightN *[]int32
+ outerUnit *DcimRackTypesListOuterUnitParameter
+ outerWidth *[]int32
+ outerWidthEmpty *bool
+ outerWidthGt *[]int32
+ outerWidthGte *[]int32
+ outerWidthLt *[]int32
+ outerWidthLte *[]int32
+ outerWidthN *[]int32
+ q *string
+ rackType *[]string
+ rackTypeN *[]string
+ rackTypeId *[]*int32
+ rackTypeIdN *[]*int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ serial *[]string
+ serialEmpty *bool
+ serialIc *[]string
+ serialIe *[]string
+ serialIew *[]string
+ serialIsw *[]string
+ serialN *[]string
+ serialNic *[]string
+ serialNie *[]string
+ serialNiew *[]string
+ serialNisw *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ startingUnit *[]int32
+ startingUnitEmpty *bool
+ startingUnitGt *[]int32
+ startingUnitGte *[]int32
+ startingUnitLt *[]int32
+ startingUnitLte *[]int32
+ startingUnitN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ uHeight *[]int32
+ uHeightEmpty *bool
+ uHeightGt *[]int32
+ uHeightGte *[]int32
+ uHeightLt *[]int32
+ uHeightLte *[]int32
+ uHeightN *[]int32
+ updatedByRequest *string
+ weight *[]float64
+ weightEmpty *bool
+ weightGt *[]float64
+ weightGte *[]float64
+ weightLt *[]float64
+ weightLte *[]float64
+ weightN *[]float64
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
+ width *[]int32
+ widthIc *[]int32
+ widthIe *[]int32
+ widthIew *[]int32
+ widthIsw *[]int32
+ widthN *[]int32
+ widthNic *[]int32
+ widthNie *[]int32
+ widthNiew *[]int32
+ widthNisw *[]int32
}
// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front
@@ -108440,6 +112779,41 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi
return r
}
+func (r ApiDcimRacksListRequest) OuterHeight(outerHeight []int32) ApiDcimRacksListRequest {
+ r.outerHeight = &outerHeight
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightEmpty(outerHeightEmpty bool) ApiDcimRacksListRequest {
+ r.outerHeightEmpty = &outerHeightEmpty
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightGt(outerHeightGt []int32) ApiDcimRacksListRequest {
+ r.outerHeightGt = &outerHeightGt
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightGte(outerHeightGte []int32) ApiDcimRacksListRequest {
+ r.outerHeightGte = &outerHeightGte
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightLt(outerHeightLt []int32) ApiDcimRacksListRequest {
+ r.outerHeightLt = &outerHeightLt
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightLte(outerHeightLte []int32) ApiDcimRacksListRequest {
+ r.outerHeightLte = &outerHeightLte
+ return r
+}
+
+func (r ApiDcimRacksListRequest) OuterHeightN(outerHeightN []int32) ApiDcimRacksListRequest {
+ r.outerHeightN = &outerHeightN
+ return r
+}
+
// * `mm` - Millimeters * `in` - Inches
func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest {
r.outerUnit = &outerUnit
@@ -108754,6 +113128,16 @@ func (r ApiDcimRacksListRequest) TagN(tagN []string) ApiDcimRacksListRequest {
return r
}
+func (r ApiDcimRacksListRequest) TagId(tagId []int32) ApiDcimRacksListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRacksListRequest) TagIdN(tagIdN []int32) ApiDcimRacksListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimRacksListRequest) Tenant(tenant []string) ApiDcimRacksListRequest {
r.tenant = &tenant
@@ -108948,24 +113332,25 @@ DcimRacksList Method for DcimRacksList
Get a list of rack objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRacksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRacksListRequest
*/
func (a *DcimAPIService) DcimRacksList(ctx context.Context) ApiDcimRacksListRequest {
return ApiDcimRacksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRackList
+//
+// @return PaginatedRackList
func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*PaginatedRackList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRackList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRackList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksList")
@@ -110149,6 +114534,75 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "form", "multi")
}
}
+ if r.outerHeight != nil {
+ t := *r.outerHeight
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height", t, "form", "multi")
+ }
+ }
+ if r.outerHeightEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__empty", r.outerHeightEmpty, "form", "")
+ }
+ if r.outerHeightGt != nil {
+ t := *r.outerHeightGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gt", t, "form", "multi")
+ }
+ }
+ if r.outerHeightGte != nil {
+ t := *r.outerHeightGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__gte", t, "form", "multi")
+ }
+ }
+ if r.outerHeightLt != nil {
+ t := *r.outerHeightLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lt", t, "form", "multi")
+ }
+ }
+ if r.outerHeightLte != nil {
+ t := *r.outerHeightLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__lte", t, "form", "multi")
+ }
+ }
+ if r.outerHeightN != nil {
+ t := *r.outerHeightN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "outer_height__n", t, "form", "multi")
+ }
+ }
if r.outerUnit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "form", "")
}
@@ -110761,6 +115215,28 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -111172,9 +115648,9 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin
}
type ApiDcimRacksPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableRackRequest *PatchedWritableRackRequest
}
@@ -111192,26 +115668,27 @@ DcimRacksPartialUpdate Method for DcimRacksPartialUpdate
Patch a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRacksPartialUpdate(ctx context.Context, id int32) ApiDcimRacksPartialUpdateRequest {
return ApiDcimRacksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Rack
+//
+// @return Rack
func (a *DcimAPIService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpdateRequest) (*Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Rack
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksPartialUpdate")
@@ -111297,9 +115774,9 @@ func (a *DcimAPIService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpda
}
type ApiDcimRacksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRacksRetrieveRequest) Execute() (*Rack, *http.Response, error) {
@@ -111311,26 +115788,27 @@ DcimRacksRetrieve Method for DcimRacksRetrieve
Get a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksRetrieveRequest
*/
func (a *DcimAPIService) DcimRacksRetrieve(ctx context.Context, id int32) ApiDcimRacksRetrieveRequest {
return ApiDcimRacksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Rack
+//
+// @return Rack
func (a *DcimAPIService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) (*Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Rack
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksRetrieve")
@@ -111414,9 +115892,9 @@ func (a *DcimAPIService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest)
}
type ApiDcimRacksUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableRackRequest *WritableRackRequest
}
@@ -111434,26 +115912,27 @@ DcimRacksUpdate Method for DcimRacksUpdate
Put a rack object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rack.
- @return ApiDcimRacksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rack.
+ @return ApiDcimRacksUpdateRequest
*/
func (a *DcimAPIService) DcimRacksUpdate(ctx context.Context, id int32) ApiDcimRacksUpdateRequest {
return ApiDcimRacksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Rack
+//
+// @return Rack
func (a *DcimAPIService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*Rack, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Rack
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Rack
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksUpdate")
@@ -111542,8 +116021,8 @@ func (a *DcimAPIService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*R
}
type ApiDcimRearPortTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortTemplateRequest *[]RearPortTemplateRequest
}
@@ -111561,22 +116040,22 @@ DcimRearPortTemplatesBulkDestroy Method for DcimRearPortTemplatesBulkDestroy
Delete a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroy(ctx context.Context) ApiDcimRearPortTemplatesBulkDestroyRequest {
return ApiDcimRearPortTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPortTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkDestroy")
@@ -111655,8 +116134,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPo
}
type ApiDcimRearPortTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortTemplateRequest *[]RearPortTemplateRequest
}
@@ -111674,24 +116153,25 @@ DcimRearPortTemplatesBulkPartialUpdate Method for DcimRearPortTemplatesBulkParti
Patch a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkPartialUpdateRequest {
return ApiDcimRearPortTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RearPortTemplate
+//
+// @return []RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcimRearPortTemplatesBulkPartialUpdateRequest) ([]RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RearPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkPartialUpdate")
@@ -111779,8 +116259,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcim
}
type ApiDcimRearPortTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortTemplateRequest *[]RearPortTemplateRequest
}
@@ -111798,24 +116278,25 @@ DcimRearPortTemplatesBulkUpdate Method for DcimRearPortTemplatesBulkUpdate
Put a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkUpdateRequest {
return ApiDcimRearPortTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RearPortTemplate
+//
+// @return []RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPortTemplatesBulkUpdateRequest) ([]RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RearPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkUpdate")
@@ -111903,8 +116384,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPor
}
type ApiDcimRearPortTemplatesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableRearPortTemplateRequest *WritableRearPortTemplateRequest
}
@@ -111922,24 +116403,25 @@ DcimRearPortTemplatesCreate Method for DcimRearPortTemplatesCreate
Post a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesCreateRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesCreate(ctx context.Context) ApiDcimRearPortTemplatesCreateRequest {
return ApiDcimRearPortTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RearPortTemplate
+//
+// @return RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTemplatesCreateRequest) (*RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPortTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesCreate")
@@ -112027,9 +116509,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTem
}
type ApiDcimRearPortTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRearPortTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -112041,24 +116523,24 @@ DcimRearPortTemplatesDestroy Method for DcimRearPortTemplatesDestroy
Delete a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesDestroyRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimRearPortTemplatesDestroyRequest {
return ApiDcimRearPortTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesDestroy")
@@ -112133,102 +116615,102 @@ func (a *DcimAPIService) DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTe
}
type ApiDcimRearPortTemplatesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceTypeId *[]*int32
- deviceTypeIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- moduleTypeId *[]*int32
- moduleTypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- positions *[]int32
- positionsEmpty *bool
- positionsGt *[]int32
- positionsGte *[]int32
- positionsLt *[]int32
- positionsLte *[]int32
- positionsN *[]int32
- q *string
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ positions *[]int32
+ positionsEmpty *bool
+ positionsGt *[]int32
+ positionsGte *[]int32
+ positionsLt *[]int32
+ positionsLte *[]int32
+ positionsN *[]int32
+ q *string
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
}
func (r ApiDcimRearPortTemplatesListRequest) Color(color []string) ApiDcimRearPortTemplatesListRequest {
@@ -112718,24 +117200,25 @@ DcimRearPortTemplatesList Method for DcimRearPortTemplatesList
Get a list of rear port template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortTemplatesListRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesList(ctx context.Context) ApiDcimRearPortTemplatesListRequest {
return ApiDcimRearPortTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRearPortTemplateList
+//
+// @return PaginatedRearPortTemplateList
func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTemplatesListRequest) (*PaginatedRearPortTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRearPortTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRearPortTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesList")
@@ -113740,9 +118223,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl
}
type ApiDcimRearPortTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableRearPortTemplateRequest *PatchedWritableRearPortTemplateRequest
}
@@ -113760,26 +118243,27 @@ DcimRearPortTemplatesPartialUpdate Method for DcimRearPortTemplatesPartialUpdate
Patch a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesPartialUpdateRequest {
return ApiDcimRearPortTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPortTemplate
+//
+// @return RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRearPortTemplatesPartialUpdateRequest) (*RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPortTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesPartialUpdate")
@@ -113865,9 +118349,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRear
}
type ApiDcimRearPortTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRearPortTemplatesRetrieveRequest) Execute() (*RearPortTemplate, *http.Response, error) {
@@ -113879,26 +118363,27 @@ DcimRearPortTemplatesRetrieve Method for DcimRearPortTemplatesRetrieve
Get a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesRetrieveRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimRearPortTemplatesRetrieveRequest {
return ApiDcimRearPortTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPortTemplate
+//
+// @return RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortTemplatesRetrieveRequest) (*RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPortTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesRetrieve")
@@ -113982,9 +118467,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortT
}
type ApiDcimRearPortTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableRearPortTemplateRequest *WritableRearPortTemplateRequest
}
@@ -114002,26 +118487,27 @@ DcimRearPortTemplatesUpdate Method for DcimRearPortTemplatesUpdate
Put a rear port template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port template.
- @return ApiDcimRearPortTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port template.
+ @return ApiDcimRearPortTemplatesUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesUpdateRequest {
return ApiDcimRearPortTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPortTemplate
+//
+// @return RearPortTemplate
func (a *DcimAPIService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTemplatesUpdateRequest) (*RearPortTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPortTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPortTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesUpdate")
@@ -114110,8 +118596,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTem
}
type ApiDcimRearPortsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortRequest *[]RearPortRequest
}
@@ -114129,22 +118615,22 @@ DcimRearPortsBulkDestroy Method for DcimRearPortsBulkDestroy
Delete a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRearPortsBulkDestroy(ctx context.Context) ApiDcimRearPortsBulkDestroyRequest {
return ApiDcimRearPortsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkDestroy")
@@ -114223,8 +118709,8 @@ func (a *DcimAPIService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkD
}
type ApiDcimRearPortsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortRequest *[]RearPortRequest
}
@@ -114242,24 +118728,25 @@ DcimRearPortsBulkPartialUpdate Method for DcimRearPortsBulkPartialUpdate
Patch a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortsBulkPartialUpdate(ctx context.Context) ApiDcimRearPortsBulkPartialUpdateRequest {
return ApiDcimRearPortsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RearPort
+//
+// @return []RearPort
func (a *DcimAPIService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPortsBulkPartialUpdateRequest) ([]RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RearPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkPartialUpdate")
@@ -114347,8 +118834,8 @@ func (a *DcimAPIService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPort
}
type ApiDcimRearPortsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
rearPortRequest *[]RearPortRequest
}
@@ -114366,24 +118853,25 @@ DcimRearPortsBulkUpdate Method for DcimRearPortsBulkUpdate
Put a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortsBulkUpdate(ctx context.Context) ApiDcimRearPortsBulkUpdateRequest {
return ApiDcimRearPortsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RearPort
+//
+// @return []RearPort
func (a *DcimAPIService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUpdateRequest) ([]RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RearPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkUpdate")
@@ -114471,8 +118959,8 @@ func (a *DcimAPIService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUp
}
type ApiDcimRearPortsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableRearPortRequest *WritableRearPortRequest
}
@@ -114490,24 +118978,25 @@ DcimRearPortsCreate Method for DcimRearPortsCreate
Post a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsCreateRequest
*/
func (a *DcimAPIService) DcimRearPortsCreate(ctx context.Context) ApiDcimRearPortsCreateRequest {
return ApiDcimRearPortsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RearPort
+//
+// @return RearPort
func (a *DcimAPIService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequest) (*RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPort
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsCreate")
@@ -114595,9 +119084,9 @@ func (a *DcimAPIService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequ
}
type ApiDcimRearPortsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRearPortsDestroyRequest) Execute() (*http.Response, error) {
@@ -114609,24 +119098,24 @@ DcimRearPortsDestroy Method for DcimRearPortsDestroy
Delete a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsDestroyRequest
*/
func (a *DcimAPIService) DcimRearPortsDestroy(ctx context.Context, id int32) ApiDcimRearPortsDestroyRequest {
return ApiDcimRearPortsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsDestroy")
@@ -114701,154 +119190,156 @@ func (a *DcimAPIService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRe
}
type ApiDcimRearPortsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- cableEnd *CircuitsCircuitTerminationsListCableEndParameter
- cableId *[]*int32
- cableIdN *[]*int32
- cabled *bool
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceStatus *[]string
+ ctx context.Context
+ ApiService DcimAPI
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
+ cabled *bool
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceStatus *[]string
deviceStatusEmpty *bool
- deviceStatusIc *[]string
- deviceStatusIe *[]string
- deviceStatusIew *[]string
- deviceStatusIsw *[]string
- deviceStatusN *[]string
- deviceStatusNic *[]string
- deviceStatusNie *[]string
- deviceStatusNiew *[]string
- deviceStatusNisw *[]string
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- markConnected *bool
+ deviceStatusIc *[]string
+ deviceStatusIe *[]string
+ deviceStatusIew *[]string
+ deviceStatusIsw *[]string
+ deviceStatusN *[]string
+ deviceStatusNic *[]string
+ deviceStatusNie *[]string
+ deviceStatusNiew *[]string
+ deviceStatusNisw *[]string
+ deviceType *[]string
+ deviceTypeN *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- positions *[]int32
- positionsEmpty *bool
- positionsGt *[]int32
- positionsGte *[]int32
- positionsLt *[]int32
- positionsLte *[]int32
- positionsN *[]int32
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
+ moduleId *[]*int32
+ moduleIdN *[]*int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ occupied *bool
+ offset *int32
+ ordering *string
+ positions *[]int32
+ positionsEmpty *bool
+ positionsGt *[]int32
+ positionsGte *[]int32
+ positionsLt *[]int32
+ positionsLte *[]int32
+ positionsN *[]int32
+ q *string
+ rack *[]string
+ rackN *[]string
+ rackId *[]int32
+ rackIdN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
+ virtualChassis *[]string
+ virtualChassisN *[]string
+ virtualChassisId *[]int32
virtualChassisIdN *[]int32
}
@@ -115540,6 +120031,16 @@ func (r ApiDcimRearPortsListRequest) TagN(tagN []string) ApiDcimRearPortsListReq
return r
}
+func (r ApiDcimRearPortsListRequest) TagId(tagId []int32) ApiDcimRearPortsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRearPortsListRequest) TagIdN(tagIdN []int32) ApiDcimRearPortsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimRearPortsListRequest) Type_(type_ []string) ApiDcimRearPortsListRequest {
r.type_ = &type_
return r
@@ -115633,24 +120134,25 @@ DcimRearPortsList Method for DcimRearPortsList
Get a list of rear port objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRearPortsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRearPortsListRequest
*/
func (a *DcimAPIService) DcimRearPortsList(ctx context.Context) ApiDcimRearPortsListRequest {
return ApiDcimRearPortsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRearPortList
+//
+// @return PaginatedRearPortList
func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) (*PaginatedRearPortList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRearPortList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRearPortList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsList")
@@ -116969,6 +121471,28 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -117198,9 +121722,9 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest)
}
type ApiDcimRearPortsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableRearPortRequest *PatchedWritableRearPortRequest
}
@@ -117218,26 +121742,27 @@ DcimRearPortsPartialUpdate Method for DcimRearPortsPartialUpdate
Patch a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortsPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortsPartialUpdateRequest {
return ApiDcimRearPortsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPort
+//
+// @return RearPort
func (a *DcimAPIService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPartialUpdateRequest) (*RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPort
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsPartialUpdate")
@@ -117323,9 +121848,9 @@ func (a *DcimAPIService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPar
}
type ApiDcimRearPortsPathsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRearPortsPathsRetrieveRequest) Execute() (*RearPort, *http.Response, error) {
@@ -117337,26 +121862,27 @@ DcimRearPortsPathsRetrieve Method for DcimRearPortsPathsRetrieve
Return all CablePaths which traverse a given pass-through port.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsPathsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsPathsRetrieveRequest
*/
func (a *DcimAPIService) DcimRearPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsPathsRetrieveRequest {
return ApiDcimRearPortsPathsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPort
+//
+// @return RearPort
func (a *DcimAPIService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPathsRetrieveRequest) (*RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsPathsRetrieve")
@@ -117440,9 +121966,9 @@ func (a *DcimAPIService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPat
}
type ApiDcimRearPortsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRearPortsRetrieveRequest) Execute() (*RearPort, *http.Response, error) {
@@ -117454,26 +121980,27 @@ DcimRearPortsRetrieve Method for DcimRearPortsRetrieve
Get a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsRetrieveRequest
*/
func (a *DcimAPIService) DcimRearPortsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsRetrieveRequest {
return ApiDcimRearPortsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPort
+//
+// @return RearPort
func (a *DcimAPIService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieveRequest) (*RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPort
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsRetrieve")
@@ -117557,9 +122084,9 @@ func (a *DcimAPIService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieve
}
type ApiDcimRearPortsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableRearPortRequest *WritableRearPortRequest
}
@@ -117577,26 +122104,27 @@ DcimRearPortsUpdate Method for DcimRearPortsUpdate
Put a rear port object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this rear port.
- @return ApiDcimRearPortsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this rear port.
+ @return ApiDcimRearPortsUpdateRequest
*/
func (a *DcimAPIService) DcimRearPortsUpdate(ctx context.Context, id int32) ApiDcimRearPortsUpdateRequest {
return ApiDcimRearPortsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RearPort
+//
+// @return RearPort
func (a *DcimAPIService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequest) (*RearPort, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RearPort
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RearPort
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsUpdate")
@@ -117685,8 +122213,8 @@ func (a *DcimAPIService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequ
}
type ApiDcimRegionsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
regionRequest *[]RegionRequest
}
@@ -117704,22 +122232,22 @@ DcimRegionsBulkDestroy Method for DcimRegionsBulkDestroy
Delete a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimRegionsBulkDestroy(ctx context.Context) ApiDcimRegionsBulkDestroyRequest {
return ApiDcimRegionsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkDestroy")
@@ -117798,8 +122326,8 @@ func (a *DcimAPIService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestr
}
type ApiDcimRegionsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
regionRequest *[]RegionRequest
}
@@ -117817,24 +122345,25 @@ DcimRegionsBulkPartialUpdate Method for DcimRegionsBulkPartialUpdate
Patch a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRegionsBulkPartialUpdate(ctx context.Context) ApiDcimRegionsBulkPartialUpdateRequest {
return ApiDcimRegionsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Region
+//
+// @return []Region
func (a *DcimAPIService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBulkPartialUpdateRequest) ([]Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Region
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkPartialUpdate")
@@ -117922,8 +122451,8 @@ func (a *DcimAPIService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBul
}
type ApiDcimRegionsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
regionRequest *[]RegionRequest
}
@@ -117941,24 +122470,25 @@ DcimRegionsBulkUpdate Method for DcimRegionsBulkUpdate
Put a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimRegionsBulkUpdate(ctx context.Context) ApiDcimRegionsBulkUpdateRequest {
return ApiDcimRegionsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Region
+//
+// @return []Region
func (a *DcimAPIService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdateRequest) ([]Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Region
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkUpdate")
@@ -118046,8 +122576,8 @@ func (a *DcimAPIService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdate
}
type ApiDcimRegionsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableRegionRequest *WritableRegionRequest
}
@@ -118065,24 +122595,25 @@ DcimRegionsCreate Method for DcimRegionsCreate
Post a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsCreateRequest
*/
func (a *DcimAPIService) DcimRegionsCreate(ctx context.Context) ApiDcimRegionsCreateRequest {
return ApiDcimRegionsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Region
+//
+// @return Region
func (a *DcimAPIService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) (*Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Region
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsCreate")
@@ -118170,9 +122701,9 @@ func (a *DcimAPIService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest)
}
type ApiDcimRegionsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRegionsDestroyRequest) Execute() (*http.Response, error) {
@@ -118184,24 +122715,24 @@ DcimRegionsDestroy Method for DcimRegionsDestroy
Delete a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsDestroyRequest
*/
func (a *DcimAPIService) DcimRegionsDestroy(ctx context.Context, id int32) ApiDcimRegionsDestroyRequest {
return ApiDcimRegionsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsDestroy")
@@ -118276,85 +122807,87 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques
}
type ApiDcimRegionsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest {
@@ -118749,6 +123282,16 @@ func (r ApiDcimRegionsListRequest) TagN(tagN []string) ApiDcimRegionsListRequest
return r
}
+func (r ApiDcimRegionsListRequest) TagId(tagId []int32) ApiDcimRegionsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimRegionsListRequest) TagIdN(tagIdN []int32) ApiDcimRegionsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimRegionsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRegionsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -118763,24 +123306,25 @@ DcimRegionsList Method for DcimRegionsList
Get a list of region objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimRegionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimRegionsListRequest
*/
func (a *DcimAPIService) DcimRegionsList(ctx context.Context) ApiDcimRegionsListRequest {
return ApiDcimRegionsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRegionList
+//
+// @return PaginatedRegionList
func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*PaginatedRegionList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRegionList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRegionList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsList")
@@ -119550,6 +124094,28 @@ func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -119622,9 +124188,9 @@ func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P
}
type ApiDcimRegionsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableRegionRequest *PatchedWritableRegionRequest
}
@@ -119642,26 +124208,27 @@ DcimRegionsPartialUpdate Method for DcimRegionsPartialUpdate
Patch a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimRegionsPartialUpdate(ctx context.Context, id int32) ApiDcimRegionsPartialUpdateRequest {
return ApiDcimRegionsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Region
+//
+// @return Region
func (a *DcimAPIService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartialUpdateRequest) (*Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Region
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsPartialUpdate")
@@ -119747,9 +124314,9 @@ func (a *DcimAPIService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartial
}
type ApiDcimRegionsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimRegionsRetrieveRequest) Execute() (*Region, *http.Response, error) {
@@ -119761,26 +124328,27 @@ DcimRegionsRetrieve Method for DcimRegionsRetrieve
Get a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsRetrieveRequest
*/
func (a *DcimAPIService) DcimRegionsRetrieve(ctx context.Context, id int32) ApiDcimRegionsRetrieveRequest {
return ApiDcimRegionsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Region
+//
+// @return Region
func (a *DcimAPIService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequest) (*Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Region
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsRetrieve")
@@ -119864,9 +124432,9 @@ func (a *DcimAPIService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequ
}
type ApiDcimRegionsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableRegionRequest *WritableRegionRequest
}
@@ -119884,26 +124452,27 @@ DcimRegionsUpdate Method for DcimRegionsUpdate
Put a region object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this region.
- @return ApiDcimRegionsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this region.
+ @return ApiDcimRegionsUpdateRequest
*/
func (a *DcimAPIService) DcimRegionsUpdate(ctx context.Context, id int32) ApiDcimRegionsUpdateRequest {
return ApiDcimRegionsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Region
+//
+// @return Region
func (a *DcimAPIService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) (*Region, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Region
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Region
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsUpdate")
@@ -119992,8 +124561,8 @@ func (a *DcimAPIService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest)
}
type ApiDcimSiteGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteGroupRequest *[]SiteGroupRequest
}
@@ -120011,22 +124580,22 @@ DcimSiteGroupsBulkDestroy Method for DcimSiteGroupsBulkDestroy
Delete a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimSiteGroupsBulkDestroy(ctx context.Context) ApiDcimSiteGroupsBulkDestroyRequest {
return ApiDcimSiteGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkDestroy")
@@ -120105,8 +124674,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBul
}
type ApiDcimSiteGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteGroupRequest *[]SiteGroupRequest
}
@@ -120124,24 +124693,25 @@ DcimSiteGroupsBulkPartialUpdate Method for DcimSiteGroupsBulkPartialUpdate
Patch a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdate(ctx context.Context) ApiDcimSiteGroupsBulkPartialUpdateRequest {
return ApiDcimSiteGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []SiteGroup
+//
+// @return []SiteGroup
func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGroupsBulkPartialUpdateRequest) ([]SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []SiteGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkPartialUpdate")
@@ -120229,8 +124799,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGro
}
type ApiDcimSiteGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteGroupRequest *[]SiteGroupRequest
}
@@ -120248,24 +124818,25 @@ DcimSiteGroupsBulkUpdate Method for DcimSiteGroupsBulkUpdate
Put a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimSiteGroupsBulkUpdate(ctx context.Context) ApiDcimSiteGroupsBulkUpdateRequest {
return ApiDcimSiteGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []SiteGroup
+//
+// @return []SiteGroup
func (a *DcimAPIService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulkUpdateRequest) ([]SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []SiteGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkUpdate")
@@ -120353,8 +124924,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulk
}
type ApiDcimSiteGroupsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableSiteGroupRequest *WritableSiteGroupRequest
}
@@ -120372,24 +124943,25 @@ DcimSiteGroupsCreate Method for DcimSiteGroupsCreate
Post a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsCreateRequest
*/
func (a *DcimAPIService) DcimSiteGroupsCreate(ctx context.Context) ApiDcimSiteGroupsCreateRequest {
return ApiDcimSiteGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return SiteGroup
+//
+// @return SiteGroup
func (a *DcimAPIService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRequest) (*SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SiteGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsCreate")
@@ -120477,9 +125049,9 @@ func (a *DcimAPIService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRe
}
type ApiDcimSiteGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimSiteGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -120491,24 +125063,24 @@ DcimSiteGroupsDestroy Method for DcimSiteGroupsDestroy
Delete a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsDestroyRequest
*/
func (a *DcimAPIService) DcimSiteGroupsDestroy(ctx context.Context, id int32) ApiDcimSiteGroupsDestroyRequest {
return ApiDcimSiteGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsDestroy")
@@ -120583,85 +125155,87 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy
}
type ApiDcimSiteGroupsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest {
@@ -121056,6 +125630,16 @@ func (r ApiDcimSiteGroupsListRequest) TagN(tagN []string) ApiDcimSiteGroupsListR
return r
}
+func (r ApiDcimSiteGroupsListRequest) TagId(tagId []int32) ApiDcimSiteGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimSiteGroupsListRequest) TagIdN(tagIdN []int32) ApiDcimSiteGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiDcimSiteGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimSiteGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -121070,24 +125654,25 @@ DcimSiteGroupsList Method for DcimSiteGroupsList
Get a list of site group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSiteGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSiteGroupsListRequest
*/
func (a *DcimAPIService) DcimSiteGroupsList(ctx context.Context) ApiDcimSiteGroupsListRequest {
return ApiDcimSiteGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedSiteGroupList
+//
+// @return PaginatedSiteGroupList
func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListRequest) (*PaginatedSiteGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedSiteGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedSiteGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsList")
@@ -121857,6 +126442,28 @@ func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -121929,9 +126536,9 @@ func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques
}
type ApiDcimSiteGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableSiteGroupRequest *PatchedWritableSiteGroupRequest
}
@@ -121949,26 +126556,27 @@ DcimSiteGroupsPartialUpdate Method for DcimSiteGroupsPartialUpdate
Patch a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimSiteGroupsPartialUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsPartialUpdateRequest {
return ApiDcimSiteGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SiteGroup
+//
+// @return SiteGroup
func (a *DcimAPIService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsPartialUpdateRequest) (*SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SiteGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsPartialUpdate")
@@ -122054,9 +126662,9 @@ func (a *DcimAPIService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsP
}
type ApiDcimSiteGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimSiteGroupsRetrieveRequest) Execute() (*SiteGroup, *http.Response, error) {
@@ -122068,26 +126676,27 @@ DcimSiteGroupsRetrieve Method for DcimSiteGroupsRetrieve
Get a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsRetrieveRequest
*/
func (a *DcimAPIService) DcimSiteGroupsRetrieve(ctx context.Context, id int32) ApiDcimSiteGroupsRetrieveRequest {
return ApiDcimSiteGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SiteGroup
+//
+// @return SiteGroup
func (a *DcimAPIService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrieveRequest) (*SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SiteGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsRetrieve")
@@ -122171,9 +126780,9 @@ func (a *DcimAPIService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrie
}
type ApiDcimSiteGroupsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableSiteGroupRequest *WritableSiteGroupRequest
}
@@ -122191,26 +126800,27 @@ DcimSiteGroupsUpdate Method for DcimSiteGroupsUpdate
Put a site group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site group.
- @return ApiDcimSiteGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site group.
+ @return ApiDcimSiteGroupsUpdateRequest
*/
func (a *DcimAPIService) DcimSiteGroupsUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsUpdateRequest {
return ApiDcimSiteGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SiteGroup
+//
+// @return SiteGroup
func (a *DcimAPIService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRequest) (*SiteGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SiteGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SiteGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsUpdate")
@@ -122299,8 +126909,8 @@ func (a *DcimAPIService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRe
}
type ApiDcimSitesBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteRequest *[]SiteRequest
}
@@ -122318,22 +126928,22 @@ DcimSitesBulkDestroy Method for DcimSitesBulkDestroy
Delete a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkDestroyRequest
*/
func (a *DcimAPIService) DcimSitesBulkDestroy(ctx context.Context) ApiDcimSitesBulkDestroyRequest {
return ApiDcimSitesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkDestroy")
@@ -122412,8 +127022,8 @@ func (a *DcimAPIService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRe
}
type ApiDcimSitesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteRequest *[]SiteRequest
}
@@ -122431,24 +127041,25 @@ DcimSitesBulkPartialUpdate Method for DcimSitesBulkPartialUpdate
Patch a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimSitesBulkPartialUpdate(ctx context.Context) ApiDcimSitesBulkPartialUpdateRequest {
return ApiDcimSitesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Site
+//
+// @return []Site
func (a *DcimAPIService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPartialUpdateRequest) ([]Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Site
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkPartialUpdate")
@@ -122536,8 +127147,8 @@ func (a *DcimAPIService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPar
}
type ApiDcimSitesBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
siteRequest *[]SiteRequest
}
@@ -122555,24 +127166,25 @@ DcimSitesBulkUpdate Method for DcimSitesBulkUpdate
Put a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesBulkUpdateRequest
*/
func (a *DcimAPIService) DcimSitesBulkUpdate(ctx context.Context) ApiDcimSitesBulkUpdateRequest {
return ApiDcimSitesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Site
+//
+// @return []Site
func (a *DcimAPIService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequest) ([]Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Site
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkUpdate")
@@ -122660,8 +127272,8 @@ func (a *DcimAPIService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequ
}
type ApiDcimSitesCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableSiteRequest *WritableSiteRequest
}
@@ -122679,24 +127291,25 @@ DcimSitesCreate Method for DcimSitesCreate
Post a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesCreateRequest
*/
func (a *DcimAPIService) DcimSitesCreate(ctx context.Context) ApiDcimSitesCreateRequest {
return ApiDcimSitesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Site
+//
+// @return Site
func (a *DcimAPIService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Site
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesCreate")
@@ -122784,9 +127397,9 @@ func (a *DcimAPIService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*S
}
type ApiDcimSitesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimSitesDestroyRequest) Execute() (*http.Response, error) {
@@ -122798,24 +127411,24 @@ DcimSitesDestroy Method for DcimSitesDestroy
Delete a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesDestroyRequest
*/
func (a *DcimAPIService) DcimSitesDestroy(ctx context.Context, id int32) ApiDcimSitesDestroyRequest {
return ApiDcimSitesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesDestroy")
@@ -122890,143 +127503,145 @@ func (a *DcimAPIService) DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (
}
type ApiDcimSitesListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- asn *[]int64
- asnN *[]int64
- asnId *[]int32
- asnIdN *[]int32
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- facility *[]string
- facilityEmpty *bool
- facilityIc *[]string
- facilityIe *[]string
- facilityIew *[]string
- facilityIsw *[]string
- facilityN *[]string
- facilityNic *[]string
- facilityNie *[]string
- facilityNiew *[]string
- facilityNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]string
- groupIdN *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- latitude *[]float64
- latitudeEmpty *bool
- latitudeGt *[]float64
- latitudeGte *[]float64
- latitudeLt *[]float64
- latitudeLte *[]float64
- latitudeN *[]float64
- limit *int32
- longitude *[]float64
- longitudeEmpty *bool
- longitudeGt *[]float64
- longitudeGte *[]float64
- longitudeLt *[]float64
- longitudeLte *[]float64
- longitudeN *[]float64
+ ctx context.Context
+ ApiService DcimAPI
+ asn *[]int64
+ asnN *[]int64
+ asnId *[]int32
+ asnIdN *[]int32
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ facility *[]string
+ facilityEmpty *bool
+ facilityIc *[]string
+ facilityIe *[]string
+ facilityIew *[]string
+ facilityIsw *[]string
+ facilityN *[]string
+ facilityNic *[]string
+ facilityNie *[]string
+ facilityNiew *[]string
+ facilityNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]string
+ groupIdN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ latitude *[]float64
+ latitudeEmpty *bool
+ latitudeGt *[]float64
+ latitudeGte *[]float64
+ latitudeLt *[]float64
+ latitudeLte *[]float64
+ latitudeN *[]float64
+ limit *int32
+ longitude *[]float64
+ longitudeEmpty *bool
+ longitudeGt *[]float64
+ longitudeGte *[]float64
+ longitudeLt *[]float64
+ longitudeLte *[]float64
+ longitudeN *[]float64
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- timeZone *[]string
- timeZoneIc *[]string
- timeZoneIe *[]string
- timeZoneIew *[]string
- timeZoneIsw *[]string
- timeZoneN *[]string
- timeZoneNic *[]string
- timeZoneNie *[]string
- timeZoneNiew *[]string
- timeZoneNisw *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ timeZone *[]string
+ timeZoneIc *[]string
+ timeZoneIe *[]string
+ timeZoneIew *[]string
+ timeZoneIsw *[]string
+ timeZoneN *[]string
+ timeZoneNic *[]string
+ timeZoneNie *[]string
+ timeZoneNiew *[]string
+ timeZoneNisw *[]string
+ updatedByRequest *string
}
// AS (ID)
@@ -123621,6 +128236,16 @@ func (r ApiDcimSitesListRequest) TagN(tagN []string) ApiDcimSitesListRequest {
return r
}
+func (r ApiDcimSitesListRequest) TagId(tagId []int32) ApiDcimSitesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TagIdN(tagIdN []int32) ApiDcimSitesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimSitesListRequest) Tenant(tenant []string) ApiDcimSitesListRequest {
r.tenant = &tenant
@@ -123729,24 +128354,25 @@ DcimSitesList Method for DcimSitesList
Get a list of site objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimSitesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimSitesListRequest
*/
func (a *DcimAPIService) DcimSitesList(ctx context.Context) ApiDcimSitesListRequest {
return ApiDcimSitesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedSiteList
+//
+// @return PaginatedSiteList
func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*PaginatedSiteList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedSiteList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedSiteList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesList")
@@ -124924,6 +129550,28 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -125194,9 +129842,9 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin
}
type ApiDcimSitesPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableSiteRequest *PatchedWritableSiteRequest
}
@@ -125214,26 +129862,27 @@ DcimSitesPartialUpdate Method for DcimSitesPartialUpdate
Patch a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesPartialUpdateRequest
*/
func (a *DcimAPIService) DcimSitesPartialUpdate(ctx context.Context, id int32) ApiDcimSitesPartialUpdateRequest {
return ApiDcimSitesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Site
+//
+// @return Site
func (a *DcimAPIService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpdateRequest) (*Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Site
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesPartialUpdate")
@@ -125319,9 +129968,9 @@ func (a *DcimAPIService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpda
}
type ApiDcimSitesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimSitesRetrieveRequest) Execute() (*Site, *http.Response, error) {
@@ -125333,26 +129982,27 @@ DcimSitesRetrieve Method for DcimSitesRetrieve
Get a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesRetrieveRequest
*/
func (a *DcimAPIService) DcimSitesRetrieve(ctx context.Context, id int32) ApiDcimSitesRetrieveRequest {
return ApiDcimSitesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Site
+//
+// @return Site
func (a *DcimAPIService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) (*Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Site
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesRetrieve")
@@ -125436,9 +130086,9 @@ func (a *DcimAPIService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest)
}
type ApiDcimSitesUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableSiteRequest *WritableSiteRequest
}
@@ -125456,26 +130106,27 @@ DcimSitesUpdate Method for DcimSitesUpdate
Put a site object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this site.
- @return ApiDcimSitesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this site.
+ @return ApiDcimSitesUpdateRequest
*/
func (a *DcimAPIService) DcimSitesUpdate(ctx context.Context, id int32) ApiDcimSitesUpdateRequest {
return ApiDcimSitesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Site
+//
+// @return Site
func (a *DcimAPIService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*Site, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Site
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Site
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesUpdate")
@@ -125564,8 +130215,8 @@ func (a *DcimAPIService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*S
}
type ApiDcimVirtualChassisBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualChassisRequest *[]VirtualChassisRequest
}
@@ -125583,22 +130234,22 @@ DcimVirtualChassisBulkDestroy Method for DcimVirtualChassisBulkDestroy
Delete a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkDestroyRequest
*/
func (a *DcimAPIService) DcimVirtualChassisBulkDestroy(ctx context.Context) ApiDcimVirtualChassisBulkDestroyRequest {
return ApiDcimVirtualChassisBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualChassisBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkDestroy")
@@ -125677,8 +130328,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualCh
}
type ApiDcimVirtualChassisBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualChassisRequest *[]VirtualChassisRequest
}
@@ -125696,24 +130347,25 @@ DcimVirtualChassisBulkPartialUpdate Method for DcimVirtualChassisBulkPartialUpda
Patch a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdate(ctx context.Context) ApiDcimVirtualChassisBulkPartialUpdateRequest {
return ApiDcimVirtualChassisBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualChassis
+//
+// @return []VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVirtualChassisBulkPartialUpdateRequest) ([]VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualChassis
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkPartialUpdate")
@@ -125801,8 +130453,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVir
}
type ApiDcimVirtualChassisBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualChassisRequest *[]VirtualChassisRequest
}
@@ -125820,24 +130472,25 @@ DcimVirtualChassisBulkUpdate Method for DcimVirtualChassisBulkUpdate
Put a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisBulkUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualChassisBulkUpdate(ctx context.Context) ApiDcimVirtualChassisBulkUpdateRequest {
return ApiDcimVirtualChassisBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualChassis
+//
+// @return []VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualChassisBulkUpdateRequest) ([]VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualChassis
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkUpdate")
@@ -125925,8 +130578,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualCha
}
type ApiDcimVirtualChassisCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableVirtualChassisRequest *WritableVirtualChassisRequest
}
@@ -125944,24 +130597,25 @@ DcimVirtualChassisCreate Method for DcimVirtualChassisCreate
Post a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisCreateRequest
*/
func (a *DcimAPIService) DcimVirtualChassisCreate(ctx context.Context) ApiDcimVirtualChassisCreateRequest {
return ApiDcimVirtualChassisCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualChassis
+//
+// @return VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassisCreateRequest) (*VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualChassis
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisCreate")
@@ -126049,9 +130703,9 @@ func (a *DcimAPIService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassis
}
type ApiDcimVirtualChassisDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimVirtualChassisDestroyRequest) Execute() (*http.Response, error) {
@@ -126063,24 +130717,24 @@ DcimVirtualChassisDestroy Method for DcimVirtualChassisDestroy
Delete a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisDestroyRequest
*/
func (a *DcimAPIService) DcimVirtualChassisDestroy(ctx context.Context, id int32) ApiDcimVirtualChassisDestroyRequest {
return ApiDcimVirtualChassisDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassisDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisDestroy")
@@ -126155,98 +130809,100 @@ func (a *DcimAPIService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassi
}
type ApiDcimVirtualChassisListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- domain *[]string
- domainEmpty *bool
- domainIc *[]string
- domainIe *[]string
- domainIew *[]string
- domainIsw *[]string
- domainN *[]string
- domainNic *[]string
- domainNie *[]string
- domainNiew *[]string
- domainNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- master *[]*string
- masterN *[]*string
- masterId *[]*int32
- masterIdN *[]*int32
- memberCount *[]int32
- memberCountEmpty *bool
- memberCountGt *[]int32
- memberCountGte *[]int32
- memberCountLt *[]int32
- memberCountLte *[]int32
- memberCountN *[]int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ domain *[]string
+ domainEmpty *bool
+ domainIc *[]string
+ domainIe *[]string
+ domainIew *[]string
+ domainIsw *[]string
+ domainN *[]string
+ domainNic *[]string
+ domainNie *[]string
+ domainNiew *[]string
+ domainNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ master *[]*string
+ masterN *[]*string
+ masterId *[]*int32
+ masterIdN *[]*int32
+ memberCount *[]int32
+ memberCountEmpty *bool
+ memberCountGt *[]int32
+ memberCountGte *[]int32
+ memberCountLt *[]int32
+ memberCountLte *[]int32
+ memberCountN *[]int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantId *[]int32
- tenantIdN *[]int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantId *[]int32
+ tenantIdN *[]int32
+ updatedByRequest *string
}
func (r ApiDcimVirtualChassisListRequest) Created(created []time.Time) ApiDcimVirtualChassisListRequest {
@@ -126686,6 +131342,16 @@ func (r ApiDcimVirtualChassisListRequest) TagN(tagN []string) ApiDcimVirtualChas
return r
}
+func (r ApiDcimVirtualChassisListRequest) TagId(tagId []int32) ApiDcimVirtualChassisListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) TagIdN(tagIdN []int32) ApiDcimVirtualChassisListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimVirtualChassisListRequest) Tenant(tenant []string) ApiDcimVirtualChassisListRequest {
r.tenant = &tenant
@@ -126724,24 +131390,25 @@ DcimVirtualChassisList Method for DcimVirtualChassisList
Get a list of virtual chassis objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualChassisListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualChassisListRequest
*/
func (a *DcimAPIService) DcimVirtualChassisList(ctx context.Context) ApiDcimVirtualChassisListRequest {
return ApiDcimVirtualChassisListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualChassisList
+//
+// @return PaginatedVirtualChassisList
func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisListRequest) (*PaginatedVirtualChassisList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualChassisList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualChassisList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisList")
@@ -127602,6 +132269,28 @@ func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -127718,9 +132407,9 @@ func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi
}
type ApiDcimVirtualChassisPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableVirtualChassisRequest *PatchedWritableVirtualChassisRequest
}
@@ -127738,26 +132427,27 @@ DcimVirtualChassisPartialUpdate Method for DcimVirtualChassisPartialUpdate
Patch a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisPartialUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualChassisPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisPartialUpdateRequest {
return ApiDcimVirtualChassisPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualChassis
+//
+// @return VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtualChassisPartialUpdateRequest) (*VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualChassis
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisPartialUpdate")
@@ -127843,9 +132533,9 @@ func (a *DcimAPIService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtual
}
type ApiDcimVirtualChassisRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimVirtualChassisRetrieveRequest) Execute() (*VirtualChassis, *http.Response, error) {
@@ -127857,26 +132547,27 @@ DcimVirtualChassisRetrieve Method for DcimVirtualChassisRetrieve
Get a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisRetrieveRequest
*/
func (a *DcimAPIService) DcimVirtualChassisRetrieve(ctx context.Context, id int32) ApiDcimVirtualChassisRetrieveRequest {
return ApiDcimVirtualChassisRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualChassis
+//
+// @return VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChassisRetrieveRequest) (*VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualChassis
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisRetrieve")
@@ -127960,9 +132651,9 @@ func (a *DcimAPIService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChass
}
type ApiDcimVirtualChassisUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableVirtualChassisRequest *WritableVirtualChassisRequest
}
@@ -127980,26 +132671,27 @@ DcimVirtualChassisUpdate Method for DcimVirtualChassisUpdate
Put a virtual chassis object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual chassis.
- @return ApiDcimVirtualChassisUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual chassis.
+ @return ApiDcimVirtualChassisUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualChassisUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisUpdateRequest {
return ApiDcimVirtualChassisUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualChassis
+//
+// @return VirtualChassis
func (a *DcimAPIService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassisUpdateRequest) (*VirtualChassis, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualChassis
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualChassis
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisUpdate")
@@ -128088,8 +132780,8 @@ func (a *DcimAPIService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassis
}
type ApiDcimVirtualDeviceContextsBulkDestroyRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualDeviceContextRequest *[]VirtualDeviceContextRequest
}
@@ -128107,22 +132799,22 @@ DcimVirtualDeviceContextsBulkDestroy Method for DcimVirtualDeviceContextsBulkDes
Delete a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkDestroyRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroy(ctx context.Context) ApiDcimVirtualDeviceContextsBulkDestroyRequest {
return ApiDcimVirtualDeviceContextsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVirtualDeviceContextsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkDestroy")
@@ -128201,8 +132893,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVi
}
type ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualDeviceContextRequest *[]VirtualDeviceContextRequest
}
@@ -128220,24 +132912,25 @@ DcimVirtualDeviceContextsBulkPartialUpdate Method for DcimVirtualDeviceContextsB
Patch a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest {
return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualDeviceContext
+//
+// @return []VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualDeviceContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkPartialUpdate")
@@ -128325,8 +133018,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r Api
}
type ApiDcimVirtualDeviceContextsBulkUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
virtualDeviceContextRequest *[]VirtualDeviceContextRequest
}
@@ -128344,24 +133037,25 @@ DcimVirtualDeviceContextsBulkUpdate Method for DcimVirtualDeviceContextsBulkUpda
Put a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsBulkUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkUpdateRequest {
return ApiDcimVirtualDeviceContextsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualDeviceContext
+//
+// @return []VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVirtualDeviceContextsBulkUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualDeviceContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkUpdate")
@@ -128449,8 +133143,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVir
}
type ApiDcimVirtualDeviceContextsCreateRequest struct {
- ctx context.Context
- ApiService DcimAPI
+ ctx context.Context
+ ApiService DcimAPI
writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest
}
@@ -128468,24 +133162,25 @@ DcimVirtualDeviceContextsCreate Method for DcimVirtualDeviceContextsCreate
Post a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsCreateRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsCreate(ctx context.Context) ApiDcimVirtualDeviceContextsCreateRequest {
return ApiDcimVirtualDeviceContextsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualDeviceContext
+//
+// @return VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtualDeviceContextsCreateRequest) (*VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDeviceContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsCreate")
@@ -128573,9 +133268,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtual
}
type ApiDcimVirtualDeviceContextsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimVirtualDeviceContextsDestroyRequest) Execute() (*http.Response, error) {
@@ -128587,24 +133282,24 @@ DcimVirtualDeviceContextsDestroy Method for DcimVirtualDeviceContextsDestroy
Delete a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsDestroyRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsDestroy(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsDestroyRequest {
return ApiDcimVirtualDeviceContextsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *DcimAPIService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtualDeviceContextsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsDestroy")
@@ -128679,97 +133374,103 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtua
}
type ApiDcimVirtualDeviceContextsListRequest struct {
- ctx context.Context
- ApiService DcimAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]int32
- deviceN *[]int32
- deviceId *[]int32
- deviceIdN *[]int32
- hasPrimaryIp *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- identifier *[]int32
- identifierEmpty *bool
- identifierGt *[]int32
- identifierGte *[]int32
- identifierLt *[]int32
- identifierLte *[]int32
- identifierN *[]int32
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService DcimAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]int32
+ deviceN *[]int32
+ deviceId *[]int32
+ deviceIdN *[]int32
+ hasPrimaryIp *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ identifier *[]int32
+ identifierEmpty *bool
+ identifierGt *[]int32
+ identifierGte *[]int32
+ identifierLt *[]int32
+ identifierLte *[]int32
+ identifierN *[]int32
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- primaryIp4Id *[]int32
- primaryIp4IdN *[]int32
- primaryIp6Id *[]int32
- primaryIp6IdN *[]int32
- q *string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ primaryIp4 *[]string
+ primaryIp4N *[]string
+ primaryIp4Id *[]int32
+ primaryIp4IdN *[]int32
+ primaryIp6 *[]string
+ primaryIp6N *[]string
+ primaryIp6Id *[]int32
+ primaryIp6IdN *[]int32
+ q *string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiDcimVirtualDeviceContextsListRequest) Created(created []time.Time) ApiDcimVirtualDeviceContextsListRequest {
@@ -129092,6 +133793,18 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Ordering(ordering string) ApiDc
return r
}
+// Primary IPv4 (address)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4(primaryIp4 []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp4 = &primaryIp4
+ return r
+}
+
+// Primary IPv4 (address)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4N(primaryIp4N []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp4N = &primaryIp4N
+ return r
+}
+
// Primary IPv4 (ID)
func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiDcimVirtualDeviceContextsListRequest {
r.primaryIp4Id = &primaryIp4Id
@@ -129104,6 +133817,18 @@ func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp4IdN(primaryIp4IdN []i
return r
}
+// Primary IPv6 (address)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp6(primaryIp6 []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp6 = &primaryIp6
+ return r
+}
+
+// Primary IPv6 (address)
+func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp6N(primaryIp6N []string) ApiDcimVirtualDeviceContextsListRequest {
+ r.primaryIp6N = &primaryIp6N
+ return r
+}
+
// Primary IPv6 (ID)
func (r ApiDcimVirtualDeviceContextsListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiDcimVirtualDeviceContextsListRequest {
r.primaryIp6Id = &primaryIp6Id
@@ -129187,6 +133912,16 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TagN(tagN []string) ApiDcimVirt
return r
}
+func (r ApiDcimVirtualDeviceContextsListRequest) TagId(tagId []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) TagIdN(tagIdN []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiDcimVirtualDeviceContextsListRequest) Tenant(tenant []string) ApiDcimVirtualDeviceContextsListRequest {
r.tenant = &tenant
@@ -129245,24 +133980,25 @@ DcimVirtualDeviceContextsList Method for DcimVirtualDeviceContextsList
Get a list of virtual device context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiDcimVirtualDeviceContextsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiDcimVirtualDeviceContextsListRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsList(ctx context.Context) ApiDcimVirtualDeviceContextsListRequest {
return ApiDcimVirtualDeviceContextsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualDeviceContextList
+//
+// @return PaginatedVirtualDeviceContextList
func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDeviceContextsListRequest) (*PaginatedVirtualDeviceContextList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualDeviceContextList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualDeviceContextList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsList")
@@ -129878,6 +134614,28 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
}
+ if r.primaryIp4 != nil {
+ t := *r.primaryIp4
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", t, "form", "multi")
+ }
+ }
+ if r.primaryIp4N != nil {
+ t := *r.primaryIp4N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", t, "form", "multi")
+ }
+ }
if r.primaryIp4Id != nil {
t := *r.primaryIp4Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -129900,6 +134658,28 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi")
}
}
+ if r.primaryIp6 != nil {
+ t := *r.primaryIp6
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", t, "form", "multi")
+ }
+ }
+ if r.primaryIp6N != nil {
+ t := *r.primaryIp6N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", t, "form", "multi")
+ }
+ }
if r.primaryIp6Id != nil {
t := *r.primaryIp6Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -130060,6 +134840,28 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -130220,9 +135022,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
}
type ApiDcimVirtualDeviceContextsPartialUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
patchedWritableVirtualDeviceContextRequest *PatchedWritableVirtualDeviceContextRequest
}
@@ -130240,26 +135042,27 @@ DcimVirtualDeviceContextsPartialUpdate Method for DcimVirtualDeviceContextsParti
Patch a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsPartialUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsPartialUpdateRequest {
return ApiDcimVirtualDeviceContextsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDeviceContext
+//
+// @return VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcimVirtualDeviceContextsPartialUpdateRequest) (*VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDeviceContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsPartialUpdate")
@@ -130345,9 +135148,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcim
}
type ApiDcimVirtualDeviceContextsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService DcimAPI
- id int32
+ id int32
}
func (r ApiDcimVirtualDeviceContextsRetrieveRequest) Execute() (*VirtualDeviceContext, *http.Response, error) {
@@ -130359,26 +135162,27 @@ DcimVirtualDeviceContextsRetrieve Method for DcimVirtualDeviceContextsRetrieve
Get a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsRetrieveRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieve(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsRetrieveRequest {
return ApiDcimVirtualDeviceContextsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDeviceContext
+//
+// @return VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtualDeviceContextsRetrieveRequest) (*VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDeviceContext
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsRetrieve")
@@ -130462,9 +135266,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtu
}
type ApiDcimVirtualDeviceContextsUpdateRequest struct {
- ctx context.Context
- ApiService DcimAPI
- id int32
+ ctx context.Context
+ ApiService DcimAPI
+ id int32
writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest
}
@@ -130482,26 +135286,27 @@ DcimVirtualDeviceContextsUpdate Method for DcimVirtualDeviceContextsUpdate
Put a virtual device context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual device context.
- @return ApiDcimVirtualDeviceContextsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual device context.
+ @return ApiDcimVirtualDeviceContextsUpdateRequest
*/
func (a *DcimAPIService) DcimVirtualDeviceContextsUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsUpdateRequest {
return ApiDcimVirtualDeviceContextsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDeviceContext
+//
+// @return VirtualDeviceContext
func (a *DcimAPIService) DcimVirtualDeviceContextsUpdateExecute(r ApiDcimVirtualDeviceContextsUpdateRequest) (*VirtualDeviceContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDeviceContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDeviceContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsUpdate")
diff --git a/api_extras.go b/api_extras.go
index c4ed6f89e..acb6f36f5 100644
--- a/api_extras.go
+++ b/api_extras.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
+ "reflect"
"strings"
"time"
- "reflect"
)
-
type ExtrasAPI interface {
/*
- ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy
+ ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy
- Delete a list of bookmark objects.
+ Delete a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkDestroyRequest
*/
ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest
@@ -38,12 +37,12 @@ type ExtrasAPI interface {
ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate
+ ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate
- Patch a list of bookmark objects.
+ Patch a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkPartialUpdateRequest
*/
ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type ExtrasAPI interface {
ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error)
/*
- ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate
+ ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate
- Put a list of bookmark objects.
+ Put a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkUpdateRequest
*/
ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest
@@ -66,12 +65,12 @@ type ExtrasAPI interface {
ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error)
/*
- ExtrasBookmarksCreate Method for ExtrasBookmarksCreate
+ ExtrasBookmarksCreate Method for ExtrasBookmarksCreate
- Post a list of bookmark objects.
+ Post a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksCreateRequest
*/
ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest
@@ -80,13 +79,13 @@ type ExtrasAPI interface {
ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error)
/*
- ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy
+ ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy
- Delete a bookmark object.
+ Delete a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksDestroyRequest
*/
ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest
@@ -94,12 +93,12 @@ type ExtrasAPI interface {
ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error)
/*
- ExtrasBookmarksList Method for ExtrasBookmarksList
+ ExtrasBookmarksList Method for ExtrasBookmarksList
- Get a list of bookmark objects.
+ Get a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksListRequest
*/
ExtrasBookmarksList(ctx context.Context) ApiExtrasBookmarksListRequest
@@ -108,13 +107,13 @@ type ExtrasAPI interface {
ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRequest) (*PaginatedBookmarkList, *http.Response, error)
/*
- ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate
+ ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate
- Patch a bookmark object.
+ Patch a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksPartialUpdateRequest
*/
ExtrasBookmarksPartialUpdate(ctx context.Context, id int32) ApiExtrasBookmarksPartialUpdateRequest
@@ -123,13 +122,13 @@ type ExtrasAPI interface {
ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookmarksPartialUpdateRequest) (*Bookmark, *http.Response, error)
/*
- ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve
+ ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve
- Get a bookmark object.
+ Get a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksRetrieveRequest
*/
ExtrasBookmarksRetrieve(ctx context.Context, id int32) ApiExtrasBookmarksRetrieveRequest
@@ -138,13 +137,13 @@ type ExtrasAPI interface {
ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRetrieveRequest) (*Bookmark, *http.Response, error)
/*
- ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate
+ ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate
- Put a bookmark object.
+ Put a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksUpdateRequest
*/
ExtrasBookmarksUpdate(ctx context.Context, id int32) ApiExtrasBookmarksUpdateRequest
@@ -153,12 +152,12 @@ type ExtrasAPI interface {
ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpdateRequest) (*Bookmark, *http.Response, error)
/*
- ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy
+ ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy
- Delete a list of config context objects.
+ Delete a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkDestroyRequest
*/
ExtrasConfigContextsBulkDestroy(ctx context.Context) ApiExtrasConfigContextsBulkDestroyRequest
@@ -166,12 +165,12 @@ type ExtrasAPI interface {
ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartialUpdate
+ ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartialUpdate
- Patch a list of config context objects.
+ Patch a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkPartialUpdateRequest
*/
ExtrasConfigContextsBulkPartialUpdate(ctx context.Context) ApiExtrasConfigContextsBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type ExtrasAPI interface {
ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExtrasConfigContextsBulkPartialUpdateRequest) ([]ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate
+ ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate
- Put a list of config context objects.
+ Put a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkUpdateRequest
*/
ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest
@@ -194,12 +193,12 @@ type ExtrasAPI interface {
ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConfigContextsBulkUpdateRequest) ([]ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate
+ ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate
- Post a list of config context objects.
+ Post a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsCreateRequest
*/
ExtrasConfigContextsCreate(ctx context.Context) ApiExtrasConfigContextsCreateRequest
@@ -208,13 +207,13 @@ type ExtrasAPI interface {
ExtrasConfigContextsCreateExecute(r ApiExtrasConfigContextsCreateRequest) (*ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy
+ ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy
- Delete a config context object.
+ Delete a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsDestroyRequest
*/
ExtrasConfigContextsDestroy(ctx context.Context, id int32) ApiExtrasConfigContextsDestroyRequest
@@ -222,12 +221,12 @@ type ExtrasAPI interface {
ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error)
/*
- ExtrasConfigContextsList Method for ExtrasConfigContextsList
+ ExtrasConfigContextsList Method for ExtrasConfigContextsList
- Get a list of config context objects.
+ Get a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsListRequest
*/
ExtrasConfigContextsList(ctx context.Context) ApiExtrasConfigContextsListRequest
@@ -236,13 +235,13 @@ type ExtrasAPI interface {
ExtrasConfigContextsListExecute(r ApiExtrasConfigContextsListRequest) (*PaginatedConfigContextList, *http.Response, error)
/*
- ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate
+ ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate
- Patch a config context object.
+ Patch a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsPartialUpdateRequest
*/
ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest
@@ -251,13 +250,13 @@ type ExtrasAPI interface {
ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve
+ ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve
- Get a config context object.
+ Get a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsRetrieveRequest
*/
ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest
@@ -266,13 +265,13 @@ type ExtrasAPI interface {
ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate
+ ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate
- Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
+ Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsSyncCreateRequest
*/
ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest
@@ -281,13 +280,13 @@ type ExtrasAPI interface {
ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error)
/*
- ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate
+ ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate
- Put a config context object.
+ Put a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsUpdateRequest
*/
ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest
@@ -296,12 +295,12 @@ type ExtrasAPI interface {
ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error)
/*
- ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy
+ ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy
- Delete a list of config template objects.
+ Delete a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkDestroyRequest
*/
ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest
@@ -309,12 +308,12 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkPartialUpdate
+ ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkPartialUpdate
- Patch a list of config template objects.
+ Patch a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest
*/
ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest
@@ -323,12 +322,12 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate
+ ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate
- Put a list of config template objects.
+ Put a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkUpdateRequest
*/
ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest
@@ -337,12 +336,12 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasConfigTemplatesBulkUpdateRequest) ([]ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate
+ ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate
- Post a list of config template objects.
+ Post a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesCreateRequest
*/
ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest
@@ -351,13 +350,13 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy
+ ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy
- Delete a config template object.
+ Delete a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesDestroyRequest
*/
ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest
@@ -365,12 +364,12 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error)
/*
- ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList
+ ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList
- Get a list of config template objects.
+ Get a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesListRequest
*/
ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest
@@ -379,13 +378,13 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error)
/*
- ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate
+ ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate
- Patch a config template object.
+ Patch a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesPartialUpdateRequest
*/
ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest
@@ -394,14 +393,14 @@ type ExtrasAPI interface {
ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate
+ ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate
- Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data,
-return the raw rendered content, rather than serialized JSON.
+ Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data,
+ return the raw rendered content, rather than serialized JSON.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesRenderCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesRenderCreateRequest
*/
ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest
@@ -410,13 +409,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve
+ ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve
- Get a config template object.
+ Get a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesRetrieveRequest
*/
ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest
@@ -425,13 +424,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate
+ ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate
- Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
+ Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesSyncCreateRequest
*/
ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest
@@ -440,13 +439,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate
+ ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate
- Put a config template object.
+ Put a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesUpdateRequest
*/
ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest
@@ -455,12 +454,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy
+ ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy
- Delete a list of custom field choice set objects.
+ Delete a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
*/
ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
@@ -468,12 +467,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate
+ ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate
- Patch a list of custom field choice set objects.
+ Patch a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest
*/
ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest
@@ -482,12 +481,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulkUpdate
+ ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulkUpdate
- Put a list of custom field choice set objects.
+ Put a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest
*/
ExtrasCustomFieldChoiceSetsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest
@@ -496,13 +495,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve
+ ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve
- Provides an endpoint to iterate through each choice in a set.
+ Provides an endpoint to iterate through each choice in a set.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest
*/
ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest
@@ -511,12 +510,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate
+ ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate
- Post a list of custom field choice set objects.
+ Post a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsCreateRequest
*/
ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest
@@ -525,13 +524,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy
+ ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy
- Delete a custom field choice set object.
+ Delete a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsDestroyRequest
*/
ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest
@@ -539,12 +538,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList
+ ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList
- Get a list of custom field choice set objects.
+ Get a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsListRequest
*/
ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest
@@ -553,13 +552,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate
+ ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate
- Patch a custom field choice set object.
+ Patch a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest
*/
ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest
@@ -568,13 +567,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve
+ ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve
- Get a custom field choice set object.
+ Get a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest
*/
ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest
@@ -583,13 +582,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate
+ ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate
- Put a custom field choice set object.
+ Put a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsUpdateRequest
*/
ExtrasCustomFieldChoiceSetsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsUpdateRequest
@@ -598,12 +597,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error)
/*
- ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy
+ ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy
- Delete a list of custom field objects.
+ Delete a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkDestroyRequest
*/
ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest
@@ -611,12 +610,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpdate
+ ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpdate
- Patch a list of custom field objects.
+ Patch a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkPartialUpdateRequest
*/
ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest
@@ -625,12 +624,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error)
/*
- ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate
+ ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate
- Put a list of custom field objects.
+ Put a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkUpdateRequest
*/
ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest
@@ -639,12 +638,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error)
/*
- ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate
+ ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate
- Post a list of custom field objects.
+ Post a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsCreateRequest
*/
ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest
@@ -653,13 +652,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error)
/*
- ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy
+ ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy
- Delete a custom field object.
+ Delete a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsDestroyRequest
*/
ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest
@@ -667,12 +666,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomFieldsList Method for ExtrasCustomFieldsList
+ ExtrasCustomFieldsList Method for ExtrasCustomFieldsList
- Get a list of custom field objects.
+ Get a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsListRequest
*/
ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest
@@ -681,13 +680,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error)
/*
- ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate
+ ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate
- Patch a custom field object.
+ Patch a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsPartialUpdateRequest
*/
ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest
@@ -696,13 +695,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error)
/*
- ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve
+ ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve
- Get a custom field object.
+ Get a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsRetrieveRequest
*/
ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest
@@ -711,13 +710,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error)
/*
- ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate
+ ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate
- Put a custom field object.
+ Put a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsUpdateRequest
*/
ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest
@@ -726,12 +725,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error)
/*
- ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy
+ ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy
- Delete a list of custom link objects.
+ Delete a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkDestroyRequest
*/
ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest
@@ -739,12 +738,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate
+ ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate
- Patch a list of custom link objects.
+ Patch a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkPartialUpdateRequest
*/
ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest
@@ -753,12 +752,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error)
/*
- ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate
+ ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate
- Put a list of custom link objects.
+ Put a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkUpdateRequest
*/
ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest
@@ -767,12 +766,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error)
/*
- ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate
+ ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate
- Post a list of custom link objects.
+ Post a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksCreateRequest
*/
ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest
@@ -781,13 +780,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error)
/*
- ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy
+ ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy
- Delete a custom link object.
+ Delete a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksDestroyRequest
*/
ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest
@@ -795,12 +794,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error)
/*
- ExtrasCustomLinksList Method for ExtrasCustomLinksList
+ ExtrasCustomLinksList Method for ExtrasCustomLinksList
- Get a list of custom link objects.
+ Get a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksListRequest
*/
ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest
@@ -809,13 +808,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error)
/*
- ExtrasCustomLinksPartialUpdate Method for ExtrasCustomLinksPartialUpdate
+ ExtrasCustomLinksPartialUpdate Method for ExtrasCustomLinksPartialUpdate
- Patch a custom link object.
+ Patch a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksPartialUpdateRequest
*/
ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest
@@ -824,13 +823,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error)
/*
- ExtrasCustomLinksRetrieve Method for ExtrasCustomLinksRetrieve
+ ExtrasCustomLinksRetrieve Method for ExtrasCustomLinksRetrieve
- Get a custom link object.
+ Get a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksRetrieveRequest
*/
ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest
@@ -839,13 +838,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error)
/*
- ExtrasCustomLinksUpdate Method for ExtrasCustomLinksUpdate
+ ExtrasCustomLinksUpdate Method for ExtrasCustomLinksUpdate
- Put a custom link object.
+ Put a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksUpdateRequest
*/
ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest
@@ -854,12 +853,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error)
/*
- ExtrasDashboardDestroy Method for ExtrasDashboardDestroy
+ ExtrasDashboardDestroy Method for ExtrasDashboardDestroy
- Delete a list of dashboard objects.
+ Delete a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardDestroyRequest
*/
ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest
@@ -867,12 +866,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error)
/*
- ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate
+ ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate
- Patch a list of dashboard objects.
+ Patch a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardPartialUpdateRequest
*/
ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest
@@ -881,12 +880,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error)
/*
- ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve
+ ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve
- Get a list of dashboard objects.
+ Get a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardRetrieveRequest
*/
ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest
@@ -895,12 +894,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error)
/*
- ExtrasDashboardUpdate Method for ExtrasDashboardUpdate
+ ExtrasDashboardUpdate Method for ExtrasDashboardUpdate
- Put a list of dashboard objects.
+ Put a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardUpdateRequest
*/
ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest
@@ -909,12 +908,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error)
/*
- ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy
+ ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy
- Delete a list of event rule 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 ApiExtrasEventRulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkDestroyRequest
*/
ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest
@@ -922,12 +921,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate
+ ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate
- Patch a list of event rule 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 ApiExtrasEventRulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkPartialUpdateRequest
*/
ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest
@@ -936,12 +935,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error)
/*
- ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate
+ ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate
- Put a list of event rule 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 ApiExtrasEventRulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkUpdateRequest
*/
ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest
@@ -950,12 +949,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error)
/*
- ExtrasEventRulesCreate Method for ExtrasEventRulesCreate
+ ExtrasEventRulesCreate Method for ExtrasEventRulesCreate
- Post a list of event rule 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 ApiExtrasEventRulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesCreateRequest
*/
ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest
@@ -964,13 +963,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error)
/*
- ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy
+ ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy
- Delete a event rule object.
+ Delete a event rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this event rule.
- @return ApiExtrasEventRulesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesDestroyRequest
*/
ExtrasEventRulesDestroy(ctx context.Context, id int32) ApiExtrasEventRulesDestroyRequest
@@ -978,12 +977,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesDestroyRequest) (*http.Response, error)
/*
- ExtrasEventRulesList Method for ExtrasEventRulesList
+ ExtrasEventRulesList Method for ExtrasEventRulesList
- Get a list of event rule objects.
+ Get a list of event rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasEventRulesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesListRequest
*/
ExtrasEventRulesList(ctx context.Context) ApiExtrasEventRulesListRequest
@@ -992,13 +991,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error)
/*
- ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate
+ ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate
- Patch a event rule object.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesPartialUpdateRequest
*/
ExtrasEventRulesPartialUpdate(ctx context.Context, id int32) ApiExtrasEventRulesPartialUpdateRequest
@@ -1007,13 +1006,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error)
/*
- ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve
+ ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve
- Get a event rule object.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesRetrieveRequest
*/
ExtrasEventRulesRetrieve(ctx context.Context, id int32) ApiExtrasEventRulesRetrieveRequest
@@ -1022,13 +1021,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error)
/*
- ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate
+ ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate
- Put a event rule object.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this event rule.
+ @return ApiExtrasEventRulesUpdateRequest
*/
ExtrasEventRulesUpdate(ctx context.Context, id int32) ApiExtrasEventRulesUpdateRequest
@@ -1037,12 +1036,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error)
/*
- ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy
+ ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy
- Delete a list of export template objects.
+ Delete a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkDestroyRequest
*/
ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest
@@ -1050,12 +1049,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate
+ ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate
- Patch a list of export template objects.
+ Patch a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
*/
ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest
@@ -1064,12 +1063,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate
+ ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate
- Put a list of export template objects.
+ Put a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkUpdateRequest
*/
ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest
@@ -1078,12 +1077,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate
+ ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate
- Post a list of export template objects.
+ Post a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesCreateRequest
*/
ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest
@@ -1092,13 +1091,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy
+ ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy
- Delete a export template object.
+ Delete a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesDestroyRequest
*/
ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest
@@ -1106,12 +1105,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error)
/*
- ExtrasExportTemplatesList Method for ExtrasExportTemplatesList
+ ExtrasExportTemplatesList Method for ExtrasExportTemplatesList
- Get a list of export template objects.
+ Get a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesListRequest
*/
ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest
@@ -1120,13 +1119,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error)
/*
- ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate
+ ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate
- Patch a export template object.
+ Patch a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesPartialUpdateRequest
*/
ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest
@@ -1135,13 +1134,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve
+ ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve
- Get a export template object.
+ Get a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesRetrieveRequest
*/
ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest
@@ -1150,13 +1149,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate
+ ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate
- Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
+ Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesSyncCreateRequest
*/
ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest
@@ -1165,13 +1164,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error)
/*
- ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate
+ ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate
- Put a export template object.
+ Put a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesUpdateRequest
*/
ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest
@@ -1180,12 +1179,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error)
/*
- ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy
+ ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy
- Delete a list of image attachment objects.
+ Delete a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkDestroyRequest
*/
ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest
@@ -1193,12 +1192,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPartialUpdate
+ ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPartialUpdate
- Patch a list of image attachment objects.
+ Patch a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest
*/
ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest
@@ -1207,12 +1206,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error)
/*
- ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate
+ ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate
- Put a list of image attachment objects.
+ Put a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkUpdateRequest
*/
ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest
@@ -1221,12 +1220,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error)
/*
- ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate
+ ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate
- Post a list of image attachment objects.
+ Post a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsCreateRequest
*/
ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest
@@ -1235,13 +1234,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error)
/*
- ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy
+ ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy
- Delete a image attachment object.
+ Delete a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsDestroyRequest
*/
ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest
@@ -1249,12 +1248,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error)
/*
- ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList
+ ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList
- Get a list of image attachment objects.
+ Get a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsListRequest
*/
ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest
@@ -1263,13 +1262,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error)
/*
- ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpdate
+ ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpdate
- Patch a image attachment object.
+ Patch a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsPartialUpdateRequest
*/
ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest
@@ -1278,13 +1277,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error)
/*
- ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve
+ ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve
- Get a image attachment object.
+ Get a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsRetrieveRequest
*/
ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest
@@ -1293,13 +1292,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error)
/*
- ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate
+ ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate
- Put a image attachment object.
+ Put a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsUpdateRequest
*/
ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest
@@ -1308,12 +1307,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error)
/*
- ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy
+ ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy
- Delete a list of journal entry objects.
+ Delete a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkDestroyRequest
*/
ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest
@@ -1321,12 +1320,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartialUpdate
+ ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartialUpdate
- Patch a list of journal entry objects.
+ Patch a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkPartialUpdateRequest
*/
ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest
@@ -1335,12 +1334,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error)
/*
- ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate
+ ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate
- Put a list of journal entry objects.
+ Put a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkUpdateRequest
*/
ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest
@@ -1349,12 +1348,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error)
/*
- ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate
+ ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate
- Post a list of journal entry objects.
+ Post a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesCreateRequest
*/
ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest
@@ -1363,13 +1362,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error)
/*
- ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy
+ ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy
- Delete a journal entry object.
+ Delete a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesDestroyRequest
*/
ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest
@@ -1377,12 +1376,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error)
/*
- ExtrasJournalEntriesList Method for ExtrasJournalEntriesList
+ ExtrasJournalEntriesList Method for ExtrasJournalEntriesList
- Get a list of journal entry objects.
+ Get a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesListRequest
*/
ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest
@@ -1391,13 +1390,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error)
/*
- ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate
+ ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate
- Patch a journal entry object.
+ Patch a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesPartialUpdateRequest
*/
ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest
@@ -1406,13 +1405,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error)
/*
- ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve
+ ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve
- Get a journal entry object.
+ Get a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesRetrieveRequest
*/
ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest
@@ -1421,13 +1420,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error)
/*
- ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate
+ ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate
- Put a journal entry object.
+ Put a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesUpdateRequest
*/
ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest
@@ -1436,12 +1435,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error)
/*
- ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy
+ ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy
- Delete a list of notification group objects.
+ Delete a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkDestroyRequest
*/
ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest
@@ -1449,12 +1448,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate
+ ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate
- Patch a list of notification group objects.
+ Patch a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest
*/
ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest
@@ -1463,12 +1462,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate
+ ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate
- Put a list of notification group objects.
+ Put a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkUpdateRequest
*/
ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest
@@ -1477,12 +1476,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate
+ ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate
- Post a list of notification group objects.
+ Post a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsCreateRequest
*/
ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest
@@ -1491,13 +1490,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy
+ ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy
- Delete a notification group object.
+ Delete a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsDestroyRequest
*/
ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest
@@ -1505,12 +1504,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error)
/*
- ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList
+ ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList
- Get a list of notification group objects.
+ Get a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsListRequest
*/
ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest
@@ -1519,13 +1518,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error)
/*
- ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate
+ ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate
- Patch a notification group object.
+ Patch a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsPartialUpdateRequest
*/
ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest
@@ -1534,13 +1533,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve
+ ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve
- Get a notification group object.
+ Get a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsRetrieveRequest
*/
ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest
@@ -1549,13 +1548,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate
+ ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate
- Put a notification group object.
+ Put a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsUpdateRequest
*/
ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest
@@ -1564,12 +1563,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error)
/*
- ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy
+ ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy
- Delete a list of notification objects.
+ Delete a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkDestroyRequest
*/
ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest
@@ -1577,12 +1576,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate
+ ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate
- Patch a list of notification objects.
+ Patch a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkPartialUpdateRequest
*/
ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest
@@ -1591,12 +1590,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error)
/*
- ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate
+ ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate
- Put a list of notification objects.
+ Put a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkUpdateRequest
*/
ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest
@@ -1605,12 +1604,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error)
/*
- ExtrasNotificationsCreate Method for ExtrasNotificationsCreate
+ ExtrasNotificationsCreate Method for ExtrasNotificationsCreate
- Post a list of notification objects.
+ Post a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsCreateRequest
*/
ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest
@@ -1619,13 +1618,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error)
/*
- ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy
+ ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy
- Delete a notification object.
+ Delete a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsDestroyRequest
*/
ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest
@@ -1633,12 +1632,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error)
/*
- ExtrasNotificationsList Method for ExtrasNotificationsList
+ ExtrasNotificationsList Method for ExtrasNotificationsList
- Get a list of notification objects.
+ Get a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsListRequest
*/
ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest
@@ -1647,13 +1646,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error)
/*
- ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate
+ ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate
- Patch a notification object.
+ Patch a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsPartialUpdateRequest
*/
ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest
@@ -1662,13 +1661,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error)
/*
- ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve
+ ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve
- Get a notification object.
+ Get a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsRetrieveRequest
*/
ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest
@@ -1677,13 +1676,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error)
/*
- ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate
+ ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate
- Put a notification object.
+ Put a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsUpdateRequest
*/
ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest
@@ -1692,12 +1691,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error)
/*
- ExtrasObjectTypesList Method for ExtrasObjectTypesList
+ ExtrasObjectTypesList Method for ExtrasObjectTypesList
- Read-only list of ObjectTypes.
+ Read-only list of ObjectTypes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasObjectTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasObjectTypesListRequest
*/
ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest
@@ -1706,13 +1705,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error)
/*
- ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve
+ ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve
- Read-only list of ObjectTypes.
+ Read-only list of ObjectTypes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this object type.
- @return ApiExtrasObjectTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this object type.
+ @return ApiExtrasObjectTypesRetrieveRequest
*/
ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest
@@ -1721,12 +1720,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error)
/*
- ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy
+ ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy
- Delete a list of saved filter objects.
+ Delete a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkDestroyRequest
*/
ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest
@@ -1734,12 +1733,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate
+ ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate
- Patch a list of saved filter objects.
+ Patch a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkPartialUpdateRequest
*/
ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest
@@ -1748,12 +1747,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error)
/*
- ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate
+ ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate
- Put a list of saved filter objects.
+ Put a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkUpdateRequest
*/
ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest
@@ -1762,12 +1761,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error)
/*
- ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate
+ ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate
- Post a list of saved filter objects.
+ Post a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersCreateRequest
*/
ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest
@@ -1776,13 +1775,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error)
/*
- ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy
+ ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy
- Delete a saved filter object.
+ Delete a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersDestroyRequest
*/
ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest
@@ -1790,12 +1789,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error)
/*
- ExtrasSavedFiltersList Method for ExtrasSavedFiltersList
+ ExtrasSavedFiltersList Method for ExtrasSavedFiltersList
- Get a list of saved filter objects.
+ Get a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersListRequest
*/
ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest
@@ -1804,13 +1803,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error)
/*
- ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate
+ ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate
- Patch a saved filter object.
+ Patch a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersPartialUpdateRequest
*/
ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest
@@ -1819,13 +1818,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error)
/*
- ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve
+ ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve
- Get a saved filter object.
+ Get a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersRetrieveRequest
*/
ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest
@@ -1834,13 +1833,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error)
/*
- ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate
+ ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate
- Put a saved filter object.
+ Put a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersUpdateRequest
*/
ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest
@@ -1849,12 +1848,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error)
/*
- ExtrasScriptsCreate Method for ExtrasScriptsCreate
+ ExtrasScriptsCreate Method for ExtrasScriptsCreate
- Post a list of script objects.
+ Post a list of script objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasScriptsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasScriptsCreateRequest
*/
ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest
@@ -1863,13 +1862,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error)
/*
- ExtrasScriptsDestroy Method for ExtrasScriptsDestroy
+ ExtrasScriptsDestroy Method for ExtrasScriptsDestroy
- Delete a script object.
+ Delete a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsDestroyRequest
*/
ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest
@@ -1877,12 +1876,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error)
/*
- ExtrasScriptsList Method for ExtrasScriptsList
+ ExtrasScriptsList Method for ExtrasScriptsList
- Get a list of script objects.
+ Get a list of script objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasScriptsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasScriptsListRequest
*/
ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest
@@ -1891,13 +1890,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error)
/*
- ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate
+ ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate
- Patch a script object.
+ Patch a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsPartialUpdateRequest
*/
ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest
@@ -1906,13 +1905,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error)
/*
- ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve
+ ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve
- Get a script object.
+ Get a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsRetrieveRequest
*/
ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest
@@ -1921,13 +1920,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error)
/*
- ExtrasScriptsUpdate Method for ExtrasScriptsUpdate
+ ExtrasScriptsUpdate Method for ExtrasScriptsUpdate
- Put a script object.
+ Put a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsUpdateRequest
*/
ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest
@@ -1936,12 +1935,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error)
/*
- ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy
+ ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy
- Delete a list of subscription objects.
+ Delete a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkDestroyRequest
*/
ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest
@@ -1949,12 +1948,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate
+ ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate
- Patch a list of subscription objects.
+ Patch a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkPartialUpdateRequest
*/
ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest
@@ -1963,12 +1962,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error)
/*
- ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate
+ ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate
- Put a list of subscription objects.
+ Put a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkUpdateRequest
*/
ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest
@@ -1977,12 +1976,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error)
/*
- ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate
+ ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate
- Post a list of subscription objects.
+ Post a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsCreateRequest
*/
ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest
@@ -1991,13 +1990,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error)
/*
- ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy
+ ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy
- Delete a subscription object.
+ Delete a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsDestroyRequest
*/
ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest
@@ -2005,12 +2004,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error)
/*
- ExtrasSubscriptionsList Method for ExtrasSubscriptionsList
+ ExtrasSubscriptionsList Method for ExtrasSubscriptionsList
- Get a list of subscription objects.
+ Get a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsListRequest
*/
ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest
@@ -2019,13 +2018,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error)
/*
- ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate
+ ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate
- Patch a subscription object.
+ Patch a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsPartialUpdateRequest
*/
ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest
@@ -2034,13 +2033,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error)
/*
- ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve
+ ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve
- Get a subscription object.
+ Get a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsRetrieveRequest
*/
ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest
@@ -2049,13 +2048,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error)
/*
- ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate
+ ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate
- Put a subscription object.
+ Put a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsUpdateRequest
*/
ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest
@@ -2064,12 +2063,169 @@ return the raw rendered content, rather than serialized JSON.
ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error)
/*
- ExtrasTagsBulkDestroy Method for ExtrasTagsBulkDestroy
+ ExtrasTableConfigsBulkDestroy Method for ExtrasTableConfigsBulkDestroy
- Delete a list of tag objects.
+ Delete a list of table config objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkDestroyRequest
+ */
+ ExtrasTableConfigsBulkDestroy(ctx context.Context) ApiExtrasTableConfigsBulkDestroyRequest
+
+ // ExtrasTableConfigsBulkDestroyExecute executes the request
+ ExtrasTableConfigsBulkDestroyExecute(r ApiExtrasTableConfigsBulkDestroyRequest) (*http.Response, error)
+
+ /*
+ ExtrasTableConfigsBulkPartialUpdate Method for ExtrasTableConfigsBulkPartialUpdate
+
+ Patch a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkPartialUpdateRequest
+ */
+ ExtrasTableConfigsBulkPartialUpdate(ctx context.Context) ApiExtrasTableConfigsBulkPartialUpdateRequest
+
+ // ExtrasTableConfigsBulkPartialUpdateExecute executes the request
+ // @return []TableConfig
+ ExtrasTableConfigsBulkPartialUpdateExecute(r ApiExtrasTableConfigsBulkPartialUpdateRequest) ([]TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsBulkUpdate Method for ExtrasTableConfigsBulkUpdate
+
+ Put a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkUpdateRequest
+ */
+ ExtrasTableConfigsBulkUpdate(ctx context.Context) ApiExtrasTableConfigsBulkUpdateRequest
+
+ // ExtrasTableConfigsBulkUpdateExecute executes the request
+ // @return []TableConfig
+ ExtrasTableConfigsBulkUpdateExecute(r ApiExtrasTableConfigsBulkUpdateRequest) ([]TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsCreate Method for ExtrasTableConfigsCreate
+
+ Post a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsCreateRequest
+ */
+ ExtrasTableConfigsCreate(ctx context.Context) ApiExtrasTableConfigsCreateRequest
+
+ // ExtrasTableConfigsCreateExecute executes the request
+ // @return TableConfig
+ ExtrasTableConfigsCreateExecute(r ApiExtrasTableConfigsCreateRequest) (*TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsDestroy Method for ExtrasTableConfigsDestroy
+
+ Delete a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsDestroyRequest
+ */
+ ExtrasTableConfigsDestroy(ctx context.Context, id int32) ApiExtrasTableConfigsDestroyRequest
+
+ // ExtrasTableConfigsDestroyExecute executes the request
+ ExtrasTableConfigsDestroyExecute(r ApiExtrasTableConfigsDestroyRequest) (*http.Response, error)
+
+ /*
+ ExtrasTableConfigsList Method for ExtrasTableConfigsList
+
+ Get a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsListRequest
+ */
+ ExtrasTableConfigsList(ctx context.Context) ApiExtrasTableConfigsListRequest
+
+ // ExtrasTableConfigsListExecute executes the request
+ // @return PaginatedTableConfigList
+ ExtrasTableConfigsListExecute(r ApiExtrasTableConfigsListRequest) (*PaginatedTableConfigList, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsPartialUpdate Method for ExtrasTableConfigsPartialUpdate
+
+ Patch a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsPartialUpdateRequest
+ */
+ ExtrasTableConfigsPartialUpdate(ctx context.Context, id int32) ApiExtrasTableConfigsPartialUpdateRequest
+
+ // ExtrasTableConfigsPartialUpdateExecute executes the request
+ // @return TableConfig
+ ExtrasTableConfigsPartialUpdateExecute(r ApiExtrasTableConfigsPartialUpdateRequest) (*TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsRetrieve Method for ExtrasTableConfigsRetrieve
+
+ Get a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsRetrieveRequest
+ */
+ ExtrasTableConfigsRetrieve(ctx context.Context, id int32) ApiExtrasTableConfigsRetrieveRequest
+
+ // ExtrasTableConfigsRetrieveExecute executes the request
+ // @return TableConfig
+ ExtrasTableConfigsRetrieveExecute(r ApiExtrasTableConfigsRetrieveRequest) (*TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTableConfigsUpdate Method for ExtrasTableConfigsUpdate
+
+ Put a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsUpdateRequest
+ */
+ ExtrasTableConfigsUpdate(ctx context.Context, id int32) ApiExtrasTableConfigsUpdateRequest
+
+ // ExtrasTableConfigsUpdateExecute executes the request
+ // @return TableConfig
+ ExtrasTableConfigsUpdateExecute(r ApiExtrasTableConfigsUpdateRequest) (*TableConfig, *http.Response, error)
+
+ /*
+ ExtrasTaggedObjectsList Method for ExtrasTaggedObjectsList
+
+ Get a list of tagged item objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTaggedObjectsListRequest
+ */
+ ExtrasTaggedObjectsList(ctx context.Context) ApiExtrasTaggedObjectsListRequest
+
+ // ExtrasTaggedObjectsListExecute executes the request
+ // @return PaginatedTaggedItemList
+ ExtrasTaggedObjectsListExecute(r ApiExtrasTaggedObjectsListRequest) (*PaginatedTaggedItemList, *http.Response, error)
+
+ /*
+ ExtrasTaggedObjectsRetrieve Method for ExtrasTaggedObjectsRetrieve
+
+ Get a tagged item object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tagged item.
+ @return ApiExtrasTaggedObjectsRetrieveRequest
+ */
+ ExtrasTaggedObjectsRetrieve(ctx context.Context, id int32) ApiExtrasTaggedObjectsRetrieveRequest
+
+ // ExtrasTaggedObjectsRetrieveExecute executes the request
+ // @return TaggedItem
+ ExtrasTaggedObjectsRetrieveExecute(r ApiExtrasTaggedObjectsRetrieveRequest) (*TaggedItem, *http.Response, error)
+
+ /*
+ ExtrasTagsBulkDestroy Method for ExtrasTagsBulkDestroy
+
+ Delete a list of tag objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkDestroyRequest
*/
ExtrasTagsBulkDestroy(ctx context.Context) ApiExtrasTagsBulkDestroyRequest
@@ -2077,12 +2233,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasTagsBulkPartialUpdate Method for ExtrasTagsBulkPartialUpdate
+ ExtrasTagsBulkPartialUpdate Method for ExtrasTagsBulkPartialUpdate
- Patch a list of tag objects.
+ Patch a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkPartialUpdateRequest
*/
ExtrasTagsBulkPartialUpdate(ctx context.Context) ApiExtrasTagsBulkPartialUpdateRequest
@@ -2091,12 +2247,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBulkPartialUpdateRequest) ([]Tag, *http.Response, error)
/*
- ExtrasTagsBulkUpdate Method for ExtrasTagsBulkUpdate
+ ExtrasTagsBulkUpdate Method for ExtrasTagsBulkUpdate
- Put a list of tag objects.
+ Put a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkUpdateRequest
*/
ExtrasTagsBulkUpdate(ctx context.Context) ApiExtrasTagsBulkUpdateRequest
@@ -2105,12 +2261,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdateRequest) ([]Tag, *http.Response, error)
/*
- ExtrasTagsCreate Method for ExtrasTagsCreate
+ ExtrasTagsCreate Method for ExtrasTagsCreate
- Post a list of tag objects.
+ Post a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsCreateRequest
*/
ExtrasTagsCreate(ctx context.Context) ApiExtrasTagsCreateRequest
@@ -2119,13 +2275,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) (*Tag, *http.Response, error)
/*
- ExtrasTagsDestroy Method for ExtrasTagsDestroy
+ ExtrasTagsDestroy Method for ExtrasTagsDestroy
- Delete a tag object.
+ Delete a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsDestroyRequest
*/
ExtrasTagsDestroy(ctx context.Context, id int32) ApiExtrasTagsDestroyRequest
@@ -2133,12 +2289,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyRequest) (*http.Response, error)
/*
- ExtrasTagsList Method for ExtrasTagsList
+ ExtrasTagsList Method for ExtrasTagsList
- Get a list of tag objects.
+ Get a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsListRequest
*/
ExtrasTagsList(ctx context.Context) ApiExtrasTagsListRequest
@@ -2147,13 +2303,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*PaginatedTagList, *http.Response, error)
/*
- ExtrasTagsPartialUpdate Method for ExtrasTagsPartialUpdate
+ ExtrasTagsPartialUpdate Method for ExtrasTagsPartialUpdate
- Patch a tag object.
+ Patch a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsPartialUpdateRequest
*/
ExtrasTagsPartialUpdate(ctx context.Context, id int32) ApiExtrasTagsPartialUpdateRequest
@@ -2162,13 +2318,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartialUpdateRequest) (*Tag, *http.Response, error)
/*
- ExtrasTagsRetrieve Method for ExtrasTagsRetrieve
+ ExtrasTagsRetrieve Method for ExtrasTagsRetrieve
- Get a tag object.
+ Get a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsRetrieveRequest
*/
ExtrasTagsRetrieve(ctx context.Context, id int32) ApiExtrasTagsRetrieveRequest
@@ -2177,13 +2333,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequest) (*Tag, *http.Response, error)
/*
- ExtrasTagsUpdate Method for ExtrasTagsUpdate
+ ExtrasTagsUpdate Method for ExtrasTagsUpdate
- Put a tag object.
+ Put a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsUpdateRequest
*/
ExtrasTagsUpdate(ctx context.Context, id int32) ApiExtrasTagsUpdateRequest
@@ -2192,12 +2348,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) (*Tag, *http.Response, error)
/*
- ExtrasWebhooksBulkDestroy Method for ExtrasWebhooksBulkDestroy
+ ExtrasWebhooksBulkDestroy Method for ExtrasWebhooksBulkDestroy
- Delete a list of webhook objects.
+ Delete a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkDestroyRequest
*/
ExtrasWebhooksBulkDestroy(ctx context.Context) ApiExtrasWebhooksBulkDestroyRequest
@@ -2205,12 +2361,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksBulkDestroyRequest) (*http.Response, error)
/*
- ExtrasWebhooksBulkPartialUpdate Method for ExtrasWebhooksBulkPartialUpdate
+ ExtrasWebhooksBulkPartialUpdate Method for ExtrasWebhooksBulkPartialUpdate
- Patch a list of webhook objects.
+ Patch a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkPartialUpdateRequest
*/
ExtrasWebhooksBulkPartialUpdate(ctx context.Context) ApiExtrasWebhooksBulkPartialUpdateRequest
@@ -2219,12 +2375,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWebhooksBulkPartialUpdateRequest) ([]Webhook, *http.Response, error)
/*
- ExtrasWebhooksBulkUpdate Method for ExtrasWebhooksBulkUpdate
+ ExtrasWebhooksBulkUpdate Method for ExtrasWebhooksBulkUpdate
- Put a list of webhook objects.
+ Put a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkUpdateRequest
*/
ExtrasWebhooksBulkUpdate(ctx context.Context) ApiExtrasWebhooksBulkUpdateRequest
@@ -2233,12 +2389,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBulkUpdateRequest) ([]Webhook, *http.Response, error)
/*
- ExtrasWebhooksCreate Method for ExtrasWebhooksCreate
+ ExtrasWebhooksCreate Method for ExtrasWebhooksCreate
- Post a list of webhook objects.
+ Post a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksCreateRequest
*/
ExtrasWebhooksCreate(ctx context.Context) ApiExtrasWebhooksCreateRequest
@@ -2247,13 +2403,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreateRequest) (*Webhook, *http.Response, error)
/*
- ExtrasWebhooksDestroy Method for ExtrasWebhooksDestroy
+ ExtrasWebhooksDestroy Method for ExtrasWebhooksDestroy
- Delete a webhook object.
+ Delete a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksDestroyRequest
*/
ExtrasWebhooksDestroy(ctx context.Context, id int32) ApiExtrasWebhooksDestroyRequest
@@ -2261,12 +2417,12 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestroyRequest) (*http.Response, error)
/*
- ExtrasWebhooksList Method for ExtrasWebhooksList
+ ExtrasWebhooksList Method for ExtrasWebhooksList
- Get a list of webhook objects.
+ Get a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksListRequest
*/
ExtrasWebhooksList(ctx context.Context) ApiExtrasWebhooksListRequest
@@ -2275,13 +2431,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequest) (*PaginatedWebhookList, *http.Response, error)
/*
- ExtrasWebhooksPartialUpdate Method for ExtrasWebhooksPartialUpdate
+ ExtrasWebhooksPartialUpdate Method for ExtrasWebhooksPartialUpdate
- Patch a webhook object.
+ Patch a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksPartialUpdateRequest
*/
ExtrasWebhooksPartialUpdate(ctx context.Context, id int32) ApiExtrasWebhooksPartialUpdateRequest
@@ -2290,13 +2446,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhooksPartialUpdateRequest) (*Webhook, *http.Response, error)
/*
- ExtrasWebhooksRetrieve Method for ExtrasWebhooksRetrieve
+ ExtrasWebhooksRetrieve Method for ExtrasWebhooksRetrieve
- Get a webhook object.
+ Get a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksRetrieveRequest
*/
ExtrasWebhooksRetrieve(ctx context.Context, id int32) ApiExtrasWebhooksRetrieveRequest
@@ -2305,13 +2461,13 @@ return the raw rendered content, rather than serialized JSON.
ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetrieveRequest) (*Webhook, *http.Response, error)
/*
- ExtrasWebhooksUpdate Method for ExtrasWebhooksUpdate
+ ExtrasWebhooksUpdate Method for ExtrasWebhooksUpdate
- Put a webhook object.
+ Put a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksUpdateRequest
*/
ExtrasWebhooksUpdate(ctx context.Context, id int32) ApiExtrasWebhooksUpdateRequest
@@ -2324,8 +2480,8 @@ return the raw rendered content, rather than serialized JSON.
type ExtrasAPIService service
type ApiExtrasBookmarksBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
bookmarkRequest *[]BookmarkRequest
}
@@ -2343,22 +2499,22 @@ ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy
Delete a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest {
return ApiExtrasBookmarksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkDestroy")
@@ -2437,8 +2593,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmark
}
type ApiExtrasBookmarksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
bookmarkRequest *[]BookmarkRequest
}
@@ -2456,24 +2612,25 @@ ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate
Patch a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest {
return ApiExtrasBookmarksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Bookmark
+//
+// @return []Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Bookmark
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkPartialUpdate")
@@ -2561,8 +2718,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBo
}
type ApiExtrasBookmarksBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
bookmarkRequest *[]BookmarkRequest
}
@@ -2580,24 +2737,25 @@ ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate
Put a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest {
return ApiExtrasBookmarksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Bookmark
+//
+// @return []Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Bookmark
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkUpdate")
@@ -2685,8 +2843,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarks
}
type ApiExtrasBookmarksCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
bookmarkRequest *BookmarkRequest
}
@@ -2704,24 +2862,25 @@ ExtrasBookmarksCreate Method for ExtrasBookmarksCreate
Post a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksCreateRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest {
return ApiExtrasBookmarksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Bookmark
+//
+// @return Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Bookmark
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksCreate")
@@ -2809,9 +2968,9 @@ func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCrea
}
type ApiExtrasBookmarksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasBookmarksDestroyRequest) Execute() (*http.Response, error) {
@@ -2823,24 +2982,24 @@ ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy
Delete a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest {
return ApiExtrasBookmarksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksDestroy")
@@ -2915,39 +3074,39 @@ func (a *ExtrasAPIService) ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDes
}
type ApiExtrasBookmarksListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- created *time.Time
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- objectId *[]int32
- objectIdEmpty *bool
- objectIdGt *[]int32
- objectIdGte *[]int32
- objectIdLt *[]int32
- objectIdLte *[]int32
- objectIdN *[]int32
- objectType *string
- objectTypeN *string
- objectTypeId *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ created *time.Time
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ limit *int32
+ objectId *[]int32
+ objectIdEmpty *bool
+ objectIdGt *[]int32
+ objectIdGte *[]int32
+ objectIdLt *[]int32
+ objectIdLte *[]int32
+ objectIdN *[]int32
+ objectType *string
+ objectTypeN *string
+ objectTypeId *[]int32
objectTypeIdEmpty *[]int32
- objectTypeIdGt *[]int32
- objectTypeIdGte *[]int32
- objectTypeIdLt *[]int32
- objectTypeIdLte *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- user *[]string
- userN *[]string
- userId *[]int32
- userIdN *[]int32
+ objectTypeIdGt *[]int32
+ objectTypeIdGte *[]int32
+ objectTypeIdLt *[]int32
+ objectTypeIdLte *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ user *[]string
+ userN *[]string
+ userId *[]int32
+ userIdN *[]int32
}
func (r ApiExtrasBookmarksListRequest) Created(created time.Time) ApiExtrasBookmarksListRequest {
@@ -3121,24 +3280,25 @@ ExtrasBookmarksList Method for ExtrasBookmarksList
Get a list of bookmark objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasBookmarksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasBookmarksListRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksList(ctx context.Context) ApiExtrasBookmarksListRequest {
return ApiExtrasBookmarksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedBookmarkList
+//
+// @return PaginatedBookmarkList
func (a *ExtrasAPIService) ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRequest) (*PaginatedBookmarkList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedBookmarkList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedBookmarkList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksList")
@@ -3498,9 +3658,9 @@ func (a *ExtrasAPIService) ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRe
}
type ApiExtrasBookmarksPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedBookmarkRequest *PatchedBookmarkRequest
}
@@ -3518,26 +3678,27 @@ ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate
Patch a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdate(ctx context.Context, id int32) ApiExtrasBookmarksPartialUpdateRequest {
return ApiExtrasBookmarksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Bookmark
+//
+// @return Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookmarksPartialUpdateRequest) (*Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Bookmark
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksPartialUpdate")
@@ -3623,9 +3784,9 @@ func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookma
}
type ApiExtrasBookmarksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasBookmarksRetrieveRequest) Execute() (*Bookmark, *http.Response, error) {
@@ -3637,26 +3798,27 @@ ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve
Get a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksRetrieve(ctx context.Context, id int32) ApiExtrasBookmarksRetrieveRequest {
return ApiExtrasBookmarksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Bookmark
+//
+// @return Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRetrieveRequest) (*Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Bookmark
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksRetrieve")
@@ -3740,9 +3902,9 @@ func (a *ExtrasAPIService) ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRe
}
type ApiExtrasBookmarksUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
bookmarkRequest *BookmarkRequest
}
@@ -3760,26 +3922,27 @@ ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate
Put a bookmark object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this bookmark.
- @return ApiExtrasBookmarksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this bookmark.
+ @return ApiExtrasBookmarksUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasBookmarksUpdate(ctx context.Context, id int32) ApiExtrasBookmarksUpdateRequest {
return ApiExtrasBookmarksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Bookmark
+//
+// @return Bookmark
func (a *ExtrasAPIService) ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpdateRequest) (*Bookmark, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Bookmark
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Bookmark
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksUpdate")
@@ -3868,8 +4031,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpda
}
type ApiExtrasConfigContextsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configContextRequest *[]ConfigContextRequest
}
@@ -3887,22 +4050,22 @@ ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy
Delete a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroy(ctx context.Context) ApiExtrasConfigContextsBulkDestroyRequest {
return ApiExtrasConfigContextsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkDestroy")
@@ -3981,8 +4144,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasCon
}
type ApiExtrasConfigContextsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configContextRequest *[]ConfigContextRequest
}
@@ -4000,24 +4163,25 @@ ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartial
Patch a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsBulkPartialUpdate(ctx context.Context) ApiExtrasConfigContextsBulkPartialUpdateRequest {
return ApiExtrasConfigContextsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConfigContext
+//
+// @return []ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExtrasConfigContextsBulkPartialUpdateRequest) ([]ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkPartialUpdate")
@@ -4105,8 +4269,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExt
}
type ApiExtrasConfigContextsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configContextRequest *[]ConfigContextRequest
}
@@ -4124,24 +4288,25 @@ ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate
Put a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest {
return ApiExtrasConfigContextsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConfigContext
+//
+// @return []ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConfigContextsBulkUpdateRequest) ([]ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkUpdate")
@@ -4229,8 +4394,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConf
}
type ApiExtrasConfigContextsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configContextRequest *ConfigContextRequest
}
@@ -4248,24 +4413,25 @@ ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate
Post a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsCreate(ctx context.Context) ApiExtrasConfigContextsCreateRequest {
return ApiExtrasConfigContextsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConfigContext
+//
+// @return ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigContextsCreateRequest) (*ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsCreate")
@@ -4353,9 +4519,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigCo
}
type ApiExtrasConfigContextsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasConfigContextsDestroyRequest) Execute() (*http.Response, error) {
@@ -4367,24 +4533,24 @@ ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy
Delete a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsDestroy(ctx context.Context, id int32) ApiExtrasConfigContextsDestroyRequest {
return ApiExtrasConfigContextsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsDestroy")
@@ -4459,126 +4625,126 @@ func (a *ExtrasAPIService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigC
}
type ApiExtrasConfigContextsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- autoSyncEnabled *bool
- clusterGroup *[]string
- clusterGroupN *[]string
- clusterGroupId *[]int32
- clusterGroupIdN *[]int32
- clusterId *[]int32
- clusterIdN *[]int32
- clusterType *[]string
- clusterTypeN *[]string
- clusterTypeId *[]int32
- clusterTypeIdN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- dataFileId *[]*int32
- dataFileIdN *[]*int32
- dataSourceId *[]*int32
- dataSourceIdN *[]*int32
- dataSynced *[]time.Time
- dataSyncedEmpty *bool
- dataSyncedGt *[]time.Time
- dataSyncedGte *[]time.Time
- dataSyncedLt *[]time.Time
- dataSyncedLte *[]time.Time
- dataSyncedN *[]time.Time
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isActive *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ autoSyncEnabled *bool
+ clusterGroup *[]string
+ clusterGroupN *[]string
+ clusterGroupId *[]int32
+ clusterGroupIdN *[]int32
+ clusterId *[]int32
+ clusterIdN *[]int32
+ clusterType *[]string
+ clusterTypeN *[]string
+ clusterTypeId *[]int32
+ clusterTypeIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ dataFileId *[]*int32
+ dataFileIdN *[]*int32
+ dataSourceId *[]*int32
+ dataSourceIdN *[]*int32
+ dataSynced *[]time.Time
+ dataSyncedEmpty *bool
+ dataSyncedGt *[]time.Time
+ dataSyncedGte *[]time.Time
+ dataSyncedLt *[]time.Time
+ dataSyncedLte *[]time.Time
+ dataSyncedN *[]time.Time
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ isActive *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]int32
+ locationIdN *[]int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- platform *[]string
- platformN *[]string
- platformId *[]int32
- platformIdN *[]int32
- q *string
- region *[]string
- regionN *[]string
- regionId *[]int32
- regionIdN *[]int32
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]int32
- siteGroupIdN *[]int32
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- tagId *[]int32
- tagIdN *[]int32
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]int32
- tenantGroupIdN *[]int32
- tenantId *[]int32
- tenantIdN *[]int32
- updatedByRequest *string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ platform *[]string
+ platformN *[]string
+ platformId *[]int32
+ platformIdN *[]int32
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]int32
+ regionIdN *[]int32
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]int32
+ siteGroupIdN *[]int32
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]int32
+ tenantGroupIdN *[]int32
+ tenantId *[]int32
+ tenantIdN *[]int32
+ updatedByRequest *string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiExtrasConfigContextsListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigContextsListRequest {
@@ -5236,24 +5402,25 @@ ExtrasConfigContextsList Method for ExtrasConfigContextsList
Get a list of config context objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigContextsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigContextsListRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsList(ctx context.Context) ApiExtrasConfigContextsListRequest {
return ApiExtrasConfigContextsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConfigContextList
+//
+// @return PaginatedConfigContextList
func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigContextsListRequest) (*PaginatedConfigContextList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConfigContextList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConfigContextList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsList")
@@ -6522,9 +6689,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
}
type ApiExtrasConfigContextsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedConfigContextRequest *PatchedConfigContextRequest
}
@@ -6542,26 +6709,27 @@ ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate
Patch a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest {
return ApiExtrasConfigContextsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigContext
+//
+// @return ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsPartialUpdate")
@@ -6647,9 +6815,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasC
}
type ApiExtrasConfigContextsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasConfigContextsRetrieveRequest) Execute() (*ConfigContext, *http.Response, error) {
@@ -6661,26 +6829,27 @@ ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve
Get a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest {
return ApiExtrasConfigContextsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigContext
+//
+// @return ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigContext
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsRetrieve")
@@ -6764,9 +6933,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfig
}
type ApiExtrasConfigContextsSyncCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
configContextRequest *ConfigContextRequest
}
@@ -6784,26 +6953,27 @@ ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate
Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsSyncCreateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest {
return ApiExtrasConfigContextsSyncCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigContext
+//
+// @return ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsSyncCreate")
@@ -6892,9 +7062,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf
}
type ApiExtrasConfigContextsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
configContextRequest *ConfigContextRequest
}
@@ -6912,26 +7082,27 @@ ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate
Put a config context object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config context.
- @return ApiExtrasConfigContextsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config context.
+ @return ApiExtrasConfigContextsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest {
return ApiExtrasConfigContextsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigContext
+//
+// @return ConfigContext
func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsUpdate")
@@ -7020,8 +7191,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo
}
type ApiExtrasConfigTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configTemplateRequest *[]ConfigTemplateRequest
}
@@ -7039,22 +7210,22 @@ ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy
Delete a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest {
return ApiExtrasConfigTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkDestroy")
@@ -7133,8 +7304,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasCo
}
type ApiExtrasConfigTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configTemplateRequest *[]ConfigTemplateRequest
}
@@ -7152,24 +7323,25 @@ ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkParti
Patch a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest {
return ApiExtrasConfigTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConfigTemplate
+//
+// @return []ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConfigTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkPartialUpdate")
@@ -7257,8 +7429,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiEx
}
type ApiExtrasConfigTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configTemplateRequest *[]ConfigTemplateRequest
}
@@ -7276,24 +7448,25 @@ ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate
Put a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest {
return ApiExtrasConfigTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ConfigTemplate
+//
+// @return []ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasConfigTemplatesBulkUpdateRequest) ([]ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ConfigTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkUpdate")
@@ -7381,8 +7554,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasCon
}
type ApiExtrasConfigTemplatesCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
configTemplateRequest *ConfigTemplateRequest
}
@@ -7400,24 +7573,25 @@ ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate
Post a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesCreateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest {
return ApiExtrasConfigTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesCreate")
@@ -7505,9 +7679,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT
}
type ApiExtrasConfigTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasConfigTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -7519,24 +7693,24 @@ ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy
Delete a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest {
return ApiExtrasConfigTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesDestroy")
@@ -7611,72 +7785,113 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig
}
type ApiExtrasConfigTemplatesListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- autoSyncEnabled *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- dataFileId *[]*int32
- dataFileIdN *[]*int32
- dataSourceId *[]*int32
- dataSourceIdN *[]*int32
- dataSynced *[]time.Time
- dataSyncedEmpty *bool
- dataSyncedGt *[]time.Time
- dataSyncedGte *[]time.Time
- dataSyncedLt *[]time.Time
- dataSyncedLte *[]time.Time
- dataSyncedN *[]time.Time
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ ctx context.Context
+ ApiService ExtrasAPI
+ asAttachment *bool
+ autoSyncEnabled *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ dataFileId *[]*int32
+ dataFileIdN *[]*int32
+ dataSourceId *[]*int32
+ dataSourceIdN *[]*int32
+ dataSynced *[]time.Time
+ dataSyncedEmpty *bool
+ dataSyncedGt *[]time.Time
+ dataSyncedGte *[]time.Time
+ dataSyncedLt *[]time.Time
+ dataSyncedLte *[]time.Time
+ dataSyncedN *[]time.Time
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ fileExtension *[]string
+ fileExtensionEmpty *bool
+ fileExtensionIc *[]string
+ fileExtensionIe *[]string
+ fileExtensionIew *[]string
+ fileExtensionIsw *[]string
+ fileExtensionN *[]string
+ fileExtensionNic *[]string
+ fileExtensionNie *[]string
+ fileExtensionNiew *[]string
+ fileExtensionNisw *[]string
+ fileName *[]string
+ fileNameEmpty *bool
+ fileNameIc *[]string
+ fileNameIe *[]string
+ fileNameIew *[]string
+ fileNameIsw *[]string
+ fileNameN *[]string
+ fileNameNic *[]string
+ fileNameNie *[]string
+ fileNameNiew *[]string
+ fileNameNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mimeType *[]string
+ mimeTypeEmpty *bool
+ mimeTypeIc *[]string
+ mimeTypeIe *[]string
+ mimeTypeIew *[]string
+ mimeTypeIsw *[]string
+ mimeTypeN *[]string
+ mimeTypeNic *[]string
+ mimeTypeNie *[]string
+ mimeTypeNiew *[]string
+ mimeTypeNisw *[]string
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) AsAttachment(asAttachment bool) ApiExtrasConfigTemplatesListRequest {
+ r.asAttachment = &asAttachment
+ return r
}
func (r ApiExtrasConfigTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigTemplatesListRequest {
@@ -7838,6 +8053,116 @@ func (r ApiExtrasConfigTemplatesListRequest) DescriptionNisw(descriptionNisw []s
return r
}
+func (r ApiExtrasConfigTemplatesListRequest) FileExtension(fileExtension []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtension = &fileExtension
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionEmpty(fileExtensionEmpty bool) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionEmpty = &fileExtensionEmpty
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionIc(fileExtensionIc []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionIc = &fileExtensionIc
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionIe(fileExtensionIe []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionIe = &fileExtensionIe
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionIew(fileExtensionIew []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionIew = &fileExtensionIew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionIsw(fileExtensionIsw []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionIsw = &fileExtensionIsw
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionN(fileExtensionN []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionN = &fileExtensionN
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionNic(fileExtensionNic []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionNic = &fileExtensionNic
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionNie(fileExtensionNie []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionNie = &fileExtensionNie
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionNiew(fileExtensionNiew []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionNiew = &fileExtensionNiew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileExtensionNisw(fileExtensionNisw []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileExtensionNisw = &fileExtensionNisw
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileName(fileName []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileName = &fileName
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameEmpty(fileNameEmpty bool) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameEmpty = &fileNameEmpty
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameIc(fileNameIc []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameIc = &fileNameIc
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameIe(fileNameIe []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameIe = &fileNameIe
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameIew(fileNameIew []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameIew = &fileNameIew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameIsw(fileNameIsw []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameIsw = &fileNameIsw
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameN(fileNameN []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameN = &fileNameN
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameNic(fileNameNic []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameNic = &fileNameNic
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameNie(fileNameNie []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameNie = &fileNameNie
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameNiew(fileNameNiew []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameNiew = &fileNameNiew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) FileNameNisw(fileNameNisw []string) ApiExtrasConfigTemplatesListRequest {
+ r.fileNameNisw = &fileNameNisw
+ return r
+}
+
func (r ApiExtrasConfigTemplatesListRequest) Id(id []int32) ApiExtrasConfigTemplatesListRequest {
r.id = &id
return r
@@ -7914,6 +8239,61 @@ func (r ApiExtrasConfigTemplatesListRequest) Limit(limit int32) ApiExtrasConfigT
return r
}
+func (r ApiExtrasConfigTemplatesListRequest) MimeType(mimeType []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeType = &mimeType
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeEmpty(mimeTypeEmpty bool) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeEmpty = &mimeTypeEmpty
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeIc(mimeTypeIc []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeIc = &mimeTypeIc
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeIe(mimeTypeIe []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeIe = &mimeTypeIe
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeIew(mimeTypeIew []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeIew = &mimeTypeIew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeIsw(mimeTypeIsw []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeIsw = &mimeTypeIsw
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeN(mimeTypeN []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeN = &mimeTypeN
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeNic(mimeTypeNic []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeNic = &mimeTypeNic
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeNie(mimeTypeNie []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeNie = &mimeTypeNie
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeNiew(mimeTypeNiew []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeNiew = &mimeTypeNiew
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) MimeTypeNisw(mimeTypeNisw []string) ApiExtrasConfigTemplatesListRequest {
+ r.mimeTypeNisw = &mimeTypeNisw
+ return r
+}
+
func (r ApiExtrasConfigTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasConfigTemplatesListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -8002,6 +8382,16 @@ func (r ApiExtrasConfigTemplatesListRequest) TagN(tagN []string) ApiExtrasConfig
return r
}
+func (r ApiExtrasConfigTemplatesListRequest) TagId(tagId []int32) ApiExtrasConfigTemplatesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiExtrasConfigTemplatesListRequest) TagIdN(tagIdN []int32) ApiExtrasConfigTemplatesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiExtrasConfigTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigTemplatesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -8016,24 +8406,25 @@ ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList
Get a list of config template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasConfigTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasConfigTemplatesListRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest {
return ApiExtrasConfigTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedConfigTemplateList
+//
+// @return PaginatedConfigTemplateList
func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedConfigTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedConfigTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesList")
@@ -8047,6 +8438,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.asAttachment != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "as_attachment", r.asAttachment, "form", "")
+ }
if r.autoSyncEnabled != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "form", "")
}
@@ -8356,6 +8750,232 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi")
}
}
+ if r.fileExtension != nil {
+ t := *r.fileExtension
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__empty", r.fileExtensionEmpty, "form", "")
+ }
+ if r.fileExtensionIc != nil {
+ t := *r.fileExtensionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionIe != nil {
+ t := *r.fileExtensionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionIew != nil {
+ t := *r.fileExtensionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionIsw != nil {
+ t := *r.fileExtensionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionN != nil {
+ t := *r.fileExtensionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionNic != nil {
+ t := *r.fileExtensionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionNie != nil {
+ t := *r.fileExtensionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionNiew != nil {
+ t := *r.fileExtensionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", t, "form", "multi")
+ }
+ }
+ if r.fileExtensionNisw != nil {
+ t := *r.fileExtensionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", t, "form", "multi")
+ }
+ }
+ if r.fileName != nil {
+ t := *r.fileName
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name", t, "form", "multi")
+ }
+ }
+ if r.fileNameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__empty", r.fileNameEmpty, "form", "")
+ }
+ if r.fileNameIc != nil {
+ t := *r.fileNameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ic", t, "form", "multi")
+ }
+ }
+ if r.fileNameIe != nil {
+ t := *r.fileNameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ie", t, "form", "multi")
+ }
+ }
+ if r.fileNameIew != nil {
+ t := *r.fileNameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__iew", t, "form", "multi")
+ }
+ }
+ if r.fileNameIsw != nil {
+ t := *r.fileNameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__isw", t, "form", "multi")
+ }
+ }
+ if r.fileNameN != nil {
+ t := *r.fileNameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__n", t, "form", "multi")
+ }
+ }
+ if r.fileNameNic != nil {
+ t := *r.fileNameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nic", t, "form", "multi")
+ }
+ }
+ if r.fileNameNie != nil {
+ t := *r.fileNameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nie", t, "form", "multi")
+ }
+ }
+ if r.fileNameNiew != nil {
+ t := *r.fileNameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__niew", t, "form", "multi")
+ }
+ }
+ if r.fileNameNisw != nil {
+ t := *r.fileNameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nisw", t, "form", "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8505,6 +9125,119 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
}
+ if r.mimeType != nil {
+ t := *r.mimeType
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__empty", r.mimeTypeEmpty, "form", "")
+ }
+ if r.mimeTypeIc != nil {
+ t := *r.mimeTypeIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeIe != nil {
+ t := *r.mimeTypeIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeIew != nil {
+ t := *r.mimeTypeIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeIsw != nil {
+ t := *r.mimeTypeIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeN != nil {
+ t := *r.mimeTypeN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeNic != nil {
+ t := *r.mimeTypeNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeNie != nil {
+ t := *r.mimeTypeNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeNiew != nil {
+ t := *r.mimeTypeNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", t, "form", "multi")
+ }
+ }
+ if r.mimeTypeNisw != nil {
+ t := *r.mimeTypeNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", t, "form", "multi")
+ }
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
}
@@ -8652,6 +9385,28 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -8724,9 +9479,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
}
type ApiExtrasConfigTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedConfigTemplateRequest *PatchedConfigTemplateRequest
}
@@ -8744,26 +9499,27 @@ ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate
Patch a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest {
return ApiExtrasConfigTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesPartialUpdate")
@@ -8849,11 +9605,11 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras
}
type ApiExtrasConfigTemplatesRenderCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
configTemplateRequest *ConfigTemplateRequest
- format *DcimDevicesRenderConfigCreateFormatParameter
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
func (r ApiExtrasConfigTemplatesRenderCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest {
@@ -8876,26 +9632,27 @@ ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate
Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data,
return the raw rendered content, rather than serialized JSON.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesRenderCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesRenderCreateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest {
return ApiExtrasConfigTemplatesRenderCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRenderCreate")
@@ -8987,9 +9744,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC
}
type ApiExtrasConfigTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasConfigTemplatesRetrieveRequest) Execute() (*ConfigTemplate, *http.Response, error) {
@@ -9001,26 +9758,27 @@ ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve
Get a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest {
return ApiExtrasConfigTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRetrieve")
@@ -9104,9 +9862,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfi
}
type ApiExtrasConfigTemplatesSyncCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
configTemplateRequest *ConfigTemplateRequest
}
@@ -9124,26 +9882,27 @@ ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate
Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesSyncCreateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest {
return ApiExtrasConfigTemplatesSyncCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesSyncCreate")
@@ -9232,9 +9991,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon
}
type ApiExtrasConfigTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
configTemplateRequest *ConfigTemplateRequest
}
@@ -9252,26 +10011,27 @@ ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate
Put a config template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this config template.
- @return ApiExtrasConfigTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this config template.
+ @return ApiExtrasConfigTemplatesUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest {
return ApiExtrasConfigTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ConfigTemplate
+//
+// @return ConfigTemplate
func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ConfigTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ConfigTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesUpdate")
@@ -9360,8 +10120,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT
}
type ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest
}
@@ -9379,22 +10139,22 @@ ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBul
Delete a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest {
return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkDestroy")
@@ -9473,8 +10233,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiEx
}
type ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest
}
@@ -9492,24 +10252,25 @@ ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceS
Patch a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest {
return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomFieldChoiceSet
+//
+// @return []CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkPartialUpdate")
@@ -9597,8 +10358,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r
}
type ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest
}
@@ -9616,24 +10377,25 @@ ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulk
Put a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest {
return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomFieldChoiceSet
+//
+// @return []CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkUpdate")
@@ -9721,9 +10483,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExt
}
type ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) {
@@ -9735,26 +10497,27 @@ ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSet
Provides an endpoint to iterate through each choice in a set.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest {
return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomFieldChoiceSet
+//
+// @return CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsChoicesRetrieve")
@@ -9838,8 +10601,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r A
}
type ApiExtrasCustomFieldChoiceSetsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest
}
@@ -9857,24 +10620,25 @@ ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate
Post a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest {
return ApiExtrasCustomFieldChoiceSetsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CustomFieldChoiceSet
+//
+// @return CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsCreate")
@@ -9962,9 +10726,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasC
}
type ApiExtrasCustomFieldChoiceSetsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomFieldChoiceSetsDestroyRequest) Execute() (*http.Response, error) {
@@ -9976,24 +10740,24 @@ ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy
Delete a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest {
return ApiExtrasCustomFieldChoiceSetsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsDestroy")
@@ -10068,61 +10832,61 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtras
}
type ApiExtrasCustomFieldChoiceSetsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- baseChoices *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter
- choice *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ baseChoices *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter
+ choice *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
orderAlphabetically *bool
- ordering *string
- q *string
- updatedByRequest *string
+ ordering *string
+ q *string
+ updatedByRequest *string
}
// Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes)
@@ -10404,24 +11168,25 @@ ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList
Get a list of custom field choice set objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldChoiceSetsListRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest {
return ApiExtrasCustomFieldChoiceSetsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCustomFieldChoiceSetList
+//
+// @return PaginatedCustomFieldChoiceSetList
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCustomFieldChoiceSetList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCustomFieldChoiceSetList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsList")
@@ -10991,9 +11756,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCus
}
type ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedWritableCustomFieldChoiceSetRequest *PatchedWritableCustomFieldChoiceSetRequest
}
@@ -11011,26 +11776,27 @@ ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsP
Patch a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest {
return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomFieldChoiceSet
+//
+// @return CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsPartialUpdate")
@@ -11116,9 +11882,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r Api
}
type ApiExtrasCustomFieldChoiceSetsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) {
@@ -11130,26 +11896,27 @@ ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrie
Get a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest {
return ApiExtrasCustomFieldChoiceSetsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomFieldChoiceSet
+//
+// @return CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsRetrieve")
@@ -11233,9 +12000,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtra
}
type ApiExtrasCustomFieldChoiceSetsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest
}
@@ -11253,26 +12020,27 @@ ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate
Put a custom field choice set object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field choice set.
- @return ApiExtrasCustomFieldChoiceSetsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field choice set.
+ @return ApiExtrasCustomFieldChoiceSetsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsUpdateRequest {
return ApiExtrasCustomFieldChoiceSetsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomFieldChoiceSet
+//
+// @return CustomFieldChoiceSet
func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomFieldChoiceSet
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomFieldChoiceSet
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsUpdate")
@@ -11361,8 +12129,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasC
}
type ApiExtrasCustomFieldsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldRequest *[]CustomFieldRequest
}
@@ -11380,22 +12148,22 @@ ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy
Delete a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest {
return ApiExtrasCustomFieldsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkDestroy")
@@ -11474,8 +12242,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto
}
type ApiExtrasCustomFieldsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldRequest *[]CustomFieldRequest
}
@@ -11493,24 +12261,25 @@ ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpda
Patch a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest {
return ApiExtrasCustomFieldsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomField
+//
+// @return []CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomField
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkPartialUpdate")
@@ -11598,8 +12367,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra
}
type ApiExtrasCustomFieldsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customFieldRequest *[]CustomFieldRequest
}
@@ -11617,24 +12386,25 @@ ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate
Put a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest {
return ApiExtrasCustomFieldsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomField
+//
+// @return []CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomField
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkUpdate")
@@ -11722,8 +12492,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustom
}
type ApiExtrasCustomFieldsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
writableCustomFieldRequest *WritableCustomFieldRequest
}
@@ -11741,24 +12511,25 @@ ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate
Post a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest {
return ApiExtrasCustomFieldsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CustomField
+//
+// @return CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomField
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsCreate")
@@ -11846,9 +12617,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFiel
}
type ApiExtrasCustomFieldsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomFieldsDestroyRequest) Execute() (*http.Response, error) {
@@ -11860,24 +12631,24 @@ ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy
Delete a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest {
return ApiExtrasCustomFieldsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsDestroy")
@@ -11952,156 +12723,156 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFie
}
type ApiExtrasCustomFieldsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- choiceSet *[]string
- choiceSetN *[]string
- choiceSetId *[]*int32
- choiceSetIdN *[]*int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- filterLogic *ExtrasCustomFieldsListFilterLogicParameter
- groupName *[]string
- groupNameEmpty *bool
- groupNameIc *[]string
- groupNameIe *[]string
- groupNameIew *[]string
- groupNameIsw *[]string
- groupNameN *[]string
- groupNameNic *[]string
- groupNameNie *[]string
- groupNameNiew *[]string
- groupNameNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isCloneable *bool
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- relatedObjectType *string
- relatedObjectTypeN *string
- relatedObjectTypeId *[]int32
- relatedObjectTypeIdN *[]int32
- required *bool
- searchWeight *[]int32
- searchWeightEmpty *bool
- searchWeightGt *[]int32
- searchWeightGte *[]int32
- searchWeightLt *[]int32
- searchWeightLte *[]int32
- searchWeightN *[]int32
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- uiEditable *ExtrasCustomFieldsListUiEditableParameter
- uiVisible *ExtrasCustomFieldsListUiVisibleParameter
- unique *bool
- updatedByRequest *string
- validationMaximum *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ choiceSet *[]string
+ choiceSetN *[]string
+ choiceSetId *[]*int32
+ choiceSetIdN *[]*int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ filterLogic *ExtrasCustomFieldsListFilterLogicParameter
+ groupName *[]string
+ groupNameEmpty *bool
+ groupNameIc *[]string
+ groupNameIe *[]string
+ groupNameIew *[]string
+ groupNameIsw *[]string
+ groupNameN *[]string
+ groupNameNic *[]string
+ groupNameNie *[]string
+ groupNameNiew *[]string
+ groupNameNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ isCloneable *bool
+ label *[]string
+ labelEmpty *bool
+ labelIc *[]string
+ labelIe *[]string
+ labelIew *[]string
+ labelIsw *[]string
+ labelN *[]string
+ labelNic *[]string
+ labelNie *[]string
+ labelNiew *[]string
+ labelNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ relatedObjectType *string
+ relatedObjectTypeN *string
+ relatedObjectTypeId *[]int32
+ relatedObjectTypeIdN *[]int32
+ required *bool
+ searchWeight *[]int32
+ searchWeightEmpty *bool
+ searchWeightGt *[]int32
+ searchWeightGte *[]int32
+ searchWeightLt *[]int32
+ searchWeightLte *[]int32
+ searchWeightN *[]int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ uiEditable *ExtrasCustomFieldsListUiEditableParameter
+ uiVisible *ExtrasCustomFieldsListUiVisibleParameter
+ unique *bool
+ updatedByRequest *string
+ validationMaximum *[]int32
validationMaximumEmpty *bool
- validationMaximumGt *[]int32
- validationMaximumGte *[]int32
- validationMaximumLt *[]int32
- validationMaximumLte *[]int32
- validationMaximumN *[]int32
- validationMinimum *[]int32
+ validationMaximumGt *[]int32
+ validationMaximumGte *[]int32
+ validationMaximumLt *[]int32
+ validationMaximumLte *[]int32
+ validationMaximumN *[]int32
+ validationMinimum *[]int32
validationMinimumEmpty *bool
- validationMinimumGt *[]int32
- validationMinimumGte *[]int32
- validationMinimumLt *[]int32
- validationMinimumLte *[]int32
- validationMinimumN *[]int32
- validationRegex *[]string
- validationRegexEmpty *bool
- validationRegexIc *[]string
- validationRegexIe *[]string
- validationRegexIew *[]string
- validationRegexIsw *[]string
- validationRegexN *[]string
- validationRegexNic *[]string
- validationRegexNie *[]string
- validationRegexNiew *[]string
- validationRegexNisw *[]string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ validationMinimumGt *[]int32
+ validationMinimumGte *[]int32
+ validationMinimumLt *[]int32
+ validationMinimumLte *[]int32
+ validationMinimumN *[]int32
+ validationRegex *[]string
+ validationRegexEmpty *bool
+ validationRegexIc *[]string
+ validationRegexIe *[]string
+ validationRegexIew *[]string
+ validationRegexIsw *[]string
+ validationRegexN *[]string
+ validationRegexNic *[]string
+ validationRegexNie *[]string
+ validationRegexNiew *[]string
+ validationRegexNisw *[]string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiExtrasCustomFieldsListRequest) ChoiceSet(choiceSet []string) ApiExtrasCustomFieldsListRequest {
@@ -12870,24 +13641,25 @@ ExtrasCustomFieldsList Method for ExtrasCustomFieldsList
Get a list of custom field objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomFieldsListRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest {
return ApiExtrasCustomFieldsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCustomFieldList
+//
+// @return PaginatedCustomFieldList
func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCustomFieldList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCustomFieldList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsList")
@@ -14310,9 +15082,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
}
type ApiExtrasCustomFieldsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedWritableCustomFieldRequest *PatchedWritableCustomFieldRequest
}
@@ -14330,26 +15102,27 @@ ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate
Patch a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest {
return ApiExtrasCustomFieldsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomField
+//
+// @return CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomField
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsPartialUpdate")
@@ -14435,9 +15208,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCus
}
type ApiExtrasCustomFieldsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomFieldsRetrieveRequest) Execute() (*CustomField, *http.Response, error) {
@@ -14449,26 +15222,27 @@ ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve
Get a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest {
return ApiExtrasCustomFieldsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomField
+//
+// @return CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomField
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsRetrieve")
@@ -14552,9 +15326,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFi
}
type ApiExtrasCustomFieldsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
writableCustomFieldRequest *WritableCustomFieldRequest
}
@@ -14572,26 +15346,27 @@ ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate
Put a custom field object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom field.
- @return ApiExtrasCustomFieldsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom field.
+ @return ApiExtrasCustomFieldsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest {
return ApiExtrasCustomFieldsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomField
+//
+// @return CustomField
func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomField
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomField
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsUpdate")
@@ -14680,8 +15455,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFiel
}
type ApiExtrasCustomLinksBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customLinkRequest *[]CustomLinkRequest
}
@@ -14699,22 +15474,22 @@ ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy
Delete a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest {
return ApiExtrasCustomLinksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkDestroy")
@@ -14793,8 +15568,8 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustom
}
type ApiExtrasCustomLinksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customLinkRequest *[]CustomLinkRequest
}
@@ -14812,24 +15587,25 @@ ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate
Patch a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest {
return ApiExtrasCustomLinksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomLink
+//
+// @return []CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomLink
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkPartialUpdate")
@@ -14917,8 +15693,8 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtras
}
type ApiExtrasCustomLinksBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customLinkRequest *[]CustomLinkRequest
}
@@ -14936,24 +15712,25 @@ ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate
Put a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest {
return ApiExtrasCustomLinksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []CustomLink
+//
+// @return []CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []CustomLink
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkUpdate")
@@ -15041,8 +15818,8 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomL
}
type ApiExtrasCustomLinksCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
customLinkRequest *CustomLinkRequest
}
@@ -15060,24 +15837,25 @@ ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate
Post a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksCreateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest {
return ApiExtrasCustomLinksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return CustomLink
+//
+// @return CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomLink
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksCreate")
@@ -15165,9 +15943,9 @@ func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinks
}
type ApiExtrasCustomLinksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomLinksDestroyRequest) Execute() (*http.Response, error) {
@@ -15179,24 +15957,24 @@ ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy
Delete a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest {
return ApiExtrasCustomLinksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksDestroy")
@@ -15271,100 +16049,100 @@ func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLink
}
type ApiExtrasCustomLinksListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- buttonClass *ExtrasCustomLinksListButtonClassParameter
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- enabled *bool
- groupName *[]string
- groupNameEmpty *bool
- groupNameIc *[]string
- groupNameIe *[]string
- groupNameIew *[]string
- groupNameIsw *[]string
- groupNameN *[]string
- groupNameNic *[]string
- groupNameNie *[]string
- groupNameNiew *[]string
- groupNameNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- linkText *string
- linkTextIc *string
- linkTextIe *string
- linkTextIew *string
- linkTextIsw *string
- linkTextN *string
- linkTextNic *string
- linkTextNie *string
- linkTextNiew *string
- linkTextNisw *string
- linkUrl *string
- linkUrlIc *string
- linkUrlIe *string
- linkUrlIew *string
- linkUrlIsw *string
- linkUrlN *string
- linkUrlNic *string
- linkUrlNie *string
- linkUrlNiew *string
- linkUrlNisw *string
+ ctx context.Context
+ ApiService ExtrasAPI
+ buttonClass *ExtrasCustomLinksListButtonClassParameter
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ enabled *bool
+ groupName *[]string
+ groupNameEmpty *bool
+ groupNameIc *[]string
+ groupNameIe *[]string
+ groupNameIew *[]string
+ groupNameIsw *[]string
+ groupNameN *[]string
+ groupNameNic *[]string
+ groupNameNie *[]string
+ groupNameNiew *[]string
+ groupNameNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ linkText *string
+ linkTextIc *string
+ linkTextIe *string
+ linkTextIew *string
+ linkTextIsw *string
+ linkTextN *string
+ linkTextNic *string
+ linkTextNie *string
+ linkTextNiew *string
+ linkTextNisw *string
+ linkUrl *string
+ linkUrlIc *string
+ linkUrlIe *string
+ linkUrlIew *string
+ linkUrlIsw *string
+ linkUrlN *string
+ linkUrlNic *string
+ linkUrlNie *string
+ linkUrlNiew *string
+ linkUrlNisw *string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- newWindow *bool
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- updatedByRequest *string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ newWindow *bool
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ updatedByRequest *string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link
@@ -15841,24 +16619,25 @@ ExtrasCustomLinksList Method for ExtrasCustomLinksList
Get a list of custom link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomLinksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasCustomLinksListRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest {
return ApiExtrasCustomLinksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedCustomLinkList
+//
+// @return PaginatedCustomLinkList
func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedCustomLinkList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedCustomLinkList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksList")
@@ -16601,9 +17380,9 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi
}
type ApiExtrasCustomLinksPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedCustomLinkRequest *PatchedCustomLinkRequest
}
@@ -16621,26 +17400,27 @@ ExtrasCustomLinksPartialUpdate Method for ExtrasCustomLinksPartialUpdate
Patch a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest {
return ApiExtrasCustomLinksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomLink
+//
+// @return CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomLink
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksPartialUpdate")
@@ -16726,9 +17506,9 @@ func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCust
}
type ApiExtrasCustomLinksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasCustomLinksRetrieveRequest) Execute() (*CustomLink, *http.Response, error) {
@@ -16740,26 +17520,27 @@ ExtrasCustomLinksRetrieve Method for ExtrasCustomLinksRetrieve
Get a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest {
return ApiExtrasCustomLinksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomLink
+//
+// @return CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomLink
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksRetrieve")
@@ -16843,9 +17624,9 @@ func (a *ExtrasAPIService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLin
}
type ApiExtrasCustomLinksUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
customLinkRequest *CustomLinkRequest
}
@@ -16863,26 +17644,27 @@ ExtrasCustomLinksUpdate Method for ExtrasCustomLinksUpdate
Put a custom link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this custom link.
- @return ApiExtrasCustomLinksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this custom link.
+ @return ApiExtrasCustomLinksUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest {
return ApiExtrasCustomLinksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return CustomLink
+//
+// @return CustomLink
func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *CustomLink
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *CustomLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksUpdate")
@@ -16971,7 +17753,7 @@ func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinks
}
type ApiExtrasDashboardDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
}
@@ -16984,22 +17766,22 @@ ExtrasDashboardDestroy Method for ExtrasDashboardDestroy
Delete a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest {
return ApiExtrasDashboardDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardDestroy")
@@ -17073,8 +17855,8 @@ func (a *ExtrasAPIService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDes
}
type ApiExtrasDashboardPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
patchedDashboardRequest *PatchedDashboardRequest
}
@@ -17092,24 +17874,25 @@ ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate
Patch a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest {
return ApiExtrasDashboardPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Dashboard
+//
+// @return Dashboard
func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Dashboard
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Dashboard
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardPartialUpdate")
@@ -17194,7 +17977,7 @@ func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashbo
}
type ApiExtrasDashboardRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
}
@@ -17207,24 +17990,25 @@ ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve
Get a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest {
return ApiExtrasDashboardRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Dashboard
+//
+// @return Dashboard
func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Dashboard
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Dashboard
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardRetrieve")
@@ -17307,8 +18091,8 @@ func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRe
}
type ApiExtrasDashboardUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
dashboardRequest *DashboardRequest
}
@@ -17326,24 +18110,25 @@ ExtrasDashboardUpdate Method for ExtrasDashboardUpdate
Put a list of dashboard objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasDashboardUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasDashboardUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest {
return ApiExtrasDashboardUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Dashboard
+//
+// @return Dashboard
func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Dashboard
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Dashboard
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardUpdate")
@@ -17428,8 +18213,8 @@ func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpda
}
type ApiExtrasEventRulesBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
eventRuleRequest *[]EventRuleRequest
}
@@ -17447,22 +18232,22 @@ ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy
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 ApiExtrasEventRulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest {
return ApiExtrasEventRulesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkDestroy")
@@ -17541,8 +18326,8 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRu
}
type ApiExtrasEventRulesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
eventRuleRequest *[]EventRuleRequest
}
@@ -17560,24 +18345,25 @@ ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate
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 ApiExtrasEventRulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest {
return ApiExtrasEventRulesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []EventRule
+//
+// @return []EventRule
func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []EventRule
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkPartialUpdate")
@@ -17665,8 +18451,8 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasE
}
type ApiExtrasEventRulesBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
eventRuleRequest *[]EventRuleRequest
}
@@ -17684,24 +18470,25 @@ ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate
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 ApiExtrasEventRulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest {
return ApiExtrasEventRulesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []EventRule
+//
+// @return []EventRule
func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []EventRule
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkUpdate")
@@ -17789,8 +18576,8 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRul
}
type ApiExtrasEventRulesCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
writableEventRuleRequest *WritableEventRuleRequest
}
@@ -17808,24 +18595,25 @@ ExtrasEventRulesCreate Method for ExtrasEventRulesCreate
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 ApiExtrasEventRulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasEventRulesCreateRequest
*/
func (a *ExtrasAPIService) ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest {
return ApiExtrasEventRulesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return EventRule
+//
+// @return EventRule
func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *EventRule
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesCreate")
@@ -17913,9 +18701,9 @@ func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCr
}
type ApiExtrasEventRulesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasEventRulesDestroyRequest) Execute() (*http.Response, error) {
@@ -17927,24 +18715,24 @@ 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
+ @param ctx 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,
+ 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
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesDestroy")
@@ -18019,94 +18807,96 @@ func (a *ExtrasAPIService) ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesD
}
type ApiExtrasEventRulesListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- actionObjectId *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ actionObjectId *[]int32
actionObjectIdEmpty *[]int32
- actionObjectIdGt *[]int32
- actionObjectIdGte *[]int32
- actionObjectIdLt *[]int32
- actionObjectIdLte *[]int32
- actionObjectIdN *[]int32
- actionObjectType *string
- actionObjectTypeN *string
- actionType *[]string
- actionTypeEmpty *bool
- actionTypeIc *[]string
- actionTypeIe *[]string
- actionTypeIew *[]string
- actionTypeIsw *[]string
- actionTypeN *[]string
- actionTypeNic *[]string
- actionTypeNie *[]string
- actionTypeNiew *[]string
- actionTypeNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enabled *bool
- eventType *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ actionObjectIdGt *[]int32
+ actionObjectIdGte *[]int32
+ actionObjectIdLt *[]int32
+ actionObjectIdLte *[]int32
+ actionObjectIdN *[]int32
+ actionObjectType *string
+ actionObjectTypeN *string
+ actionType *[]string
+ actionTypeEmpty *bool
+ actionTypeIc *[]string
+ actionTypeIe *[]string
+ actionTypeIew *[]string
+ actionTypeIsw *[]string
+ actionTypeN *[]string
+ actionTypeNic *[]string
+ actionTypeNie *[]string
+ actionTypeNiew *[]string
+ actionTypeNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ eventType *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiExtrasEventRulesListRequest) ActionObjectId(actionObjectId []int32) ApiExtrasEventRulesListRequest {
@@ -18538,6 +19328,16 @@ func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesL
return r
}
+func (r ApiExtrasEventRulesListRequest) TagId(tagId []int32) ApiExtrasEventRulesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) TagIdN(tagIdN []int32) ApiExtrasEventRulesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -18552,24 +19352,25 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedEventRuleList
+//
+// @return PaginatedEventRuleList
func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedEventRuleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedEventRuleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesList")
@@ -19334,6 +20135,28 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -19406,9 +20229,9 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList
}
type ApiExtrasEventRulesPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedWritableEventRuleRequest *PatchedWritableEventRuleRequest
}
@@ -19426,26 +20249,27 @@ 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
+ @param ctx 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,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return EventRule
+//
+// @return EventRule
func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *EventRule
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesPartialUpdate")
@@ -19531,9 +20355,9 @@ func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEvent
}
type ApiExtrasEventRulesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasEventRulesRetrieveRequest) Execute() (*EventRule, *http.Response, error) {
@@ -19545,26 +20369,27 @@ 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
+ @param ctx 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,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return EventRule
+//
+// @return EventRule
func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *EventRule
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesRetrieve")
@@ -19648,9 +20473,9 @@ func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRules
}
type ApiExtrasEventRulesUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
writableEventRuleRequest *WritableEventRuleRequest
}
@@ -19668,26 +20493,27 @@ 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
+ @param ctx 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,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return EventRule
+//
+// @return EventRule
func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *EventRule
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *EventRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesUpdate")
@@ -19776,8 +20602,8 @@ func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUp
}
type ApiExtrasExportTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
exportTemplateRequest *[]ExportTemplateRequest
}
@@ -19795,22 +20621,22 @@ ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy
Delete a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest {
return ApiExtrasExportTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy")
@@ -19889,8 +20715,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx
}
type ApiExtrasExportTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
exportTemplateRequest *[]ExportTemplateRequest
}
@@ -19908,24 +20734,25 @@ ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkParti
Patch a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest {
return ApiExtrasExportTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ExportTemplate
+//
+// @return []ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ExportTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate")
@@ -20013,8 +20840,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx
}
type ApiExtrasExportTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
exportTemplateRequest *[]ExportTemplateRequest
}
@@ -20032,24 +20859,25 @@ ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate
Put a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest {
return ApiExtrasExportTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ExportTemplate
+//
+// @return []ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ExportTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate")
@@ -20137,8 +20965,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp
}
type ApiExtrasExportTemplatesCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
exportTemplateRequest *ExportTemplateRequest
}
@@ -20156,24 +20984,25 @@ ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate
Post a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesCreateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest {
return ApiExtrasExportTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ExportTemplate
+//
+// @return ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesCreate")
@@ -20261,9 +21090,9 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT
}
type ApiExtrasExportTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasExportTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -20275,24 +21104,24 @@ ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy
Delete a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest {
return ApiExtrasExportTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesDestroy")
@@ -20367,105 +21196,116 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport
}
type ApiExtrasExportTemplatesListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- asAttachment *bool
- autoSyncEnabled *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- dataFileId *[]*int32
- dataFileIdN *[]*int32
- dataSourceId *[]*int32
- dataSourceIdN *[]*int32
- dataSynced *[]time.Time
- dataSyncedEmpty *bool
- dataSyncedGt *[]time.Time
- dataSyncedGte *[]time.Time
- dataSyncedLt *[]time.Time
- dataSyncedLte *[]time.Time
- dataSyncedN *[]time.Time
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- fileExtension *[]string
+ ctx context.Context
+ ApiService ExtrasAPI
+ asAttachment *bool
+ autoSyncEnabled *bool
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ dataFileId *[]*int32
+ dataFileIdN *[]*int32
+ dataSourceId *[]*int32
+ dataSourceIdN *[]*int32
+ dataSynced *[]time.Time
+ dataSyncedEmpty *bool
+ dataSyncedGt *[]time.Time
+ dataSyncedGte *[]time.Time
+ dataSyncedLt *[]time.Time
+ dataSyncedLte *[]time.Time
+ dataSyncedN *[]time.Time
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ fileExtension *[]string
fileExtensionEmpty *bool
- fileExtensionIc *[]string
- fileExtensionIe *[]string
- fileExtensionIew *[]string
- fileExtensionIsw *[]string
- fileExtensionN *[]string
- fileExtensionNic *[]string
- fileExtensionNie *[]string
- fileExtensionNiew *[]string
- fileExtensionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- mimeType *[]string
- mimeTypeEmpty *bool
- mimeTypeIc *[]string
- mimeTypeIe *[]string
- mimeTypeIew *[]string
- mimeTypeIsw *[]string
- mimeTypeN *[]string
- mimeTypeNic *[]string
- mimeTypeNie *[]string
- mimeTypeNiew *[]string
- mimeTypeNisw *[]string
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- updatedByRequest *string
+ fileExtensionIc *[]string
+ fileExtensionIe *[]string
+ fileExtensionIew *[]string
+ fileExtensionIsw *[]string
+ fileExtensionN *[]string
+ fileExtensionNic *[]string
+ fileExtensionNie *[]string
+ fileExtensionNiew *[]string
+ fileExtensionNisw *[]string
+ fileName *[]string
+ fileNameEmpty *bool
+ fileNameIc *[]string
+ fileNameIe *[]string
+ fileNameIew *[]string
+ fileNameIsw *[]string
+ fileNameN *[]string
+ fileNameNic *[]string
+ fileNameNie *[]string
+ fileNameNiew *[]string
+ fileNameNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mimeType *[]string
+ mimeTypeEmpty *bool
+ mimeTypeIc *[]string
+ mimeTypeIe *[]string
+ mimeTypeIew *[]string
+ mimeTypeIsw *[]string
+ mimeTypeN *[]string
+ mimeTypeNic *[]string
+ mimeTypeNie *[]string
+ mimeTypeNiew *[]string
+ mimeTypeNisw *[]string
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ updatedByRequest *string
}
func (r ApiExtrasExportTemplatesListRequest) AsAttachment(asAttachment bool) ApiExtrasExportTemplatesListRequest {
@@ -20687,6 +21527,61 @@ func (r ApiExtrasExportTemplatesListRequest) FileExtensionNisw(fileExtensionNisw
return r
}
+func (r ApiExtrasExportTemplatesListRequest) FileName(fileName []string) ApiExtrasExportTemplatesListRequest {
+ r.fileName = &fileName
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameEmpty(fileNameEmpty bool) ApiExtrasExportTemplatesListRequest {
+ r.fileNameEmpty = &fileNameEmpty
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameIc(fileNameIc []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameIc = &fileNameIc
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameIe(fileNameIe []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameIe = &fileNameIe
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameIew(fileNameIew []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameIew = &fileNameIew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameIsw(fileNameIsw []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameIsw = &fileNameIsw
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameN(fileNameN []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameN = &fileNameN
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameNic(fileNameNic []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameNic = &fileNameNic
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameNie(fileNameNie []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameNie = &fileNameNie
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameNiew(fileNameNiew []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameNiew = &fileNameNiew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileNameNisw(fileNameNisw []string) ApiExtrasExportTemplatesListRequest {
+ r.fileNameNisw = &fileNameNisw
+ return r
+}
+
func (r ApiExtrasExportTemplatesListRequest) Id(id []int32) ApiExtrasExportTemplatesListRequest {
r.id = &id
return r
@@ -20970,24 +21865,25 @@ ExtrasExportTemplatesList Method for ExtrasExportTemplatesList
Get a list of export template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasExportTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasExportTemplatesListRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest {
return ApiExtrasExportTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedExportTemplateList
+//
+// @return PaginatedExportTemplateList
func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedExportTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedExportTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesList")
@@ -21426,6 +22322,119 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem
parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", t, "form", "multi")
}
}
+ if r.fileName != nil {
+ t := *r.fileName
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name", t, "form", "multi")
+ }
+ }
+ if r.fileNameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__empty", r.fileNameEmpty, "form", "")
+ }
+ if r.fileNameIc != nil {
+ t := *r.fileNameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ic", t, "form", "multi")
+ }
+ }
+ if r.fileNameIe != nil {
+ t := *r.fileNameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__ie", t, "form", "multi")
+ }
+ }
+ if r.fileNameIew != nil {
+ t := *r.fileNameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__iew", t, "form", "multi")
+ }
+ }
+ if r.fileNameIsw != nil {
+ t := *r.fileNameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__isw", t, "form", "multi")
+ }
+ }
+ if r.fileNameN != nil {
+ t := *r.fileNameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__n", t, "form", "multi")
+ }
+ }
+ if r.fileNameNic != nil {
+ t := *r.fileNameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nic", t, "form", "multi")
+ }
+ }
+ if r.fileNameNie != nil {
+ t := *r.fileNameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nie", t, "form", "multi")
+ }
+ }
+ if r.fileNameNiew != nil {
+ t := *r.fileNameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__niew", t, "form", "multi")
+ }
+ }
+ if r.fileNameNisw != nil {
+ t := *r.fileNameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_name__nisw", t, "form", "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -21937,9 +22946,9 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem
}
type ApiExtrasExportTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedExportTemplateRequest *PatchedExportTemplateRequest
}
@@ -21957,26 +22966,27 @@ ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate
Patch a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest {
return ApiExtrasExportTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ExportTemplate
+//
+// @return ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate")
@@ -22062,9 +23072,9 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras
}
type ApiExtrasExportTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) {
@@ -22076,26 +23086,27 @@ ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve
Get a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest {
return ApiExtrasExportTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ExportTemplate
+//
+// @return ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve")
@@ -22179,9 +23190,9 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor
}
type ApiExtrasExportTemplatesSyncCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
exportTemplateRequest *ExportTemplateRequest
}
@@ -22199,26 +23210,27 @@ ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate
Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesSyncCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesSyncCreateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest {
return ApiExtrasExportTemplatesSyncCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ExportTemplate
+//
+// @return ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesSyncCreate")
@@ -22307,9 +23319,9 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExp
}
type ApiExtrasExportTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
exportTemplateRequest *ExportTemplateRequest
}
@@ -22327,26 +23339,27 @@ ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate
Put a export template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest {
return ApiExtrasExportTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ExportTemplate
+//
+// @return ExportTemplate
func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesUpdate")
@@ -22435,8 +23448,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT
}
type ApiExtrasImageAttachmentsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
imageAttachmentRequest *[]ImageAttachmentRequest
}
@@ -22454,22 +23467,22 @@ ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy
Delete a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest {
return ApiExtrasImageAttachmentsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkDestroy")
@@ -22548,8 +23561,8 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasI
}
type ApiExtrasImageAttachmentsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
imageAttachmentRequest *[]ImageAttachmentRequest
}
@@ -22567,24 +23580,25 @@ ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPar
Patch a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest {
return ApiExtrasImageAttachmentsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ImageAttachment
+//
+// @return []ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ImageAttachment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkPartialUpdate")
@@ -22672,8 +23686,8 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiE
}
type ApiExtrasImageAttachmentsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
imageAttachmentRequest *[]ImageAttachmentRequest
}
@@ -22691,24 +23705,25 @@ ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate
Put a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest {
return ApiExtrasImageAttachmentsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ImageAttachment
+//
+// @return []ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ImageAttachment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkUpdate")
@@ -22796,8 +23811,8 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasIm
}
type ApiExtrasImageAttachmentsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
imageAttachmentRequest *ImageAttachmentRequest
}
@@ -22815,24 +23830,25 @@ ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate
Post a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest {
return ApiExtrasImageAttachmentsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ImageAttachment
+//
+// @return ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ImageAttachment
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsCreate")
@@ -22920,9 +23936,9 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageA
}
type ApiExtrasImageAttachmentsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasImageAttachmentsDestroyRequest) Execute() (*http.Response, error) {
@@ -22934,24 +23950,24 @@ ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy
Delete a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest {
return ApiExtrasImageAttachmentsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsDestroy")
@@ -23026,72 +24042,72 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImage
}
type ApiExtrasImageAttachmentsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- imageHeight *[]int32
- imageHeightEmpty *bool
- imageHeightGt *[]int32
- imageHeightGte *[]int32
- imageHeightLt *[]int32
- imageHeightLte *[]int32
- imageHeightN *[]int32
- imageWidth *[]int32
- imageWidthEmpty *bool
- imageWidthGt *[]int32
- imageWidthGte *[]int32
- imageWidthLt *[]int32
- imageWidthLte *[]int32
- imageWidthN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ imageHeight *[]int32
+ imageHeightEmpty *bool
+ imageHeightGt *[]int32
+ imageHeightGte *[]int32
+ imageHeightLt *[]int32
+ imageHeightLte *[]int32
+ imageHeightN *[]int32
+ imageWidth *[]int32
+ imageWidthEmpty *bool
+ imageWidthGt *[]int32
+ imageWidthGte *[]int32
+ imageWidthLt *[]int32
+ imageWidthLte *[]int32
+ imageWidthN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectId *[]int32
- objectIdEmpty *bool
- objectIdGt *[]int32
- objectIdGte *[]int32
- objectIdLt *[]int32
- objectIdLte *[]int32
- objectIdN *[]int32
- objectType *string
- objectTypeN *string
- objectTypeId *int32
- objectTypeIdN *int32
- offset *int32
- ordering *string
- q *string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectId *[]int32
+ objectIdEmpty *bool
+ objectIdGt *[]int32
+ objectIdGte *[]int32
+ objectIdLt *[]int32
+ objectIdLte *[]int32
+ objectIdN *[]int32
+ objectType *string
+ objectTypeN *string
+ objectTypeId *int32
+ objectTypeIdN *int32
+ offset *int32
+ ordering *string
+ q *string
+ updatedByRequest *string
}
func (r ApiExtrasImageAttachmentsListRequest) Created(created []time.Time) ApiExtrasImageAttachmentsListRequest {
@@ -23427,24 +24443,25 @@ ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList
Get a list of image attachment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasImageAttachmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasImageAttachmentsListRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest {
return ApiExtrasImageAttachmentsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedImageAttachmentList
+//
+// @return PaginatedImageAttachmentList
func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedImageAttachmentList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedImageAttachmentList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsList")
@@ -24103,9 +25120,9 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt
}
type ApiExtrasImageAttachmentsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedImageAttachmentRequest *PatchedImageAttachmentRequest
}
@@ -24123,26 +25140,27 @@ ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpda
Patch a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest {
return ApiExtrasImageAttachmentsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ImageAttachment
+//
+// @return ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ImageAttachment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsPartialUpdate")
@@ -24228,9 +25246,9 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtra
}
type ApiExtrasImageAttachmentsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasImageAttachmentsRetrieveRequest) Execute() (*ImageAttachment, *http.Response, error) {
@@ -24242,26 +25260,27 @@ ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve
Get a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest {
return ApiExtrasImageAttachmentsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ImageAttachment
+//
+// @return ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ImageAttachment
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsRetrieve")
@@ -24345,9 +25364,9 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImag
}
type ApiExtrasImageAttachmentsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
imageAttachmentRequest *ImageAttachmentRequest
}
@@ -24365,26 +25384,27 @@ ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate
Put a image attachment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this image attachment.
- @return ApiExtrasImageAttachmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this image attachment.
+ @return ApiExtrasImageAttachmentsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest {
return ApiExtrasImageAttachmentsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ImageAttachment
+//
+// @return ImageAttachment
func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ImageAttachment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ImageAttachment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsUpdate")
@@ -24473,8 +25493,8 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageA
}
type ApiExtrasJournalEntriesBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
journalEntryRequest *[]JournalEntryRequest
}
@@ -24492,22 +25512,22 @@ ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy
Delete a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest {
return ApiExtrasJournalEntriesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkDestroy")
@@ -24586,8 +25606,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou
}
type ApiExtrasJournalEntriesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
journalEntryRequest *[]JournalEntryRequest
}
@@ -24605,24 +25625,25 @@ ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartial
Patch a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest {
return ApiExtrasJournalEntriesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []JournalEntry
+//
+// @return []JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []JournalEntry
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkPartialUpdate")
@@ -24710,8 +25731,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt
}
type ApiExtrasJournalEntriesBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
journalEntryRequest *[]JournalEntryRequest
}
@@ -24729,24 +25750,25 @@ ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate
Put a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest {
return ApiExtrasJournalEntriesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []JournalEntry
+//
+// @return []JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []JournalEntry
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkUpdate")
@@ -24834,8 +25856,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJour
}
type ApiExtrasJournalEntriesCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
writableJournalEntryRequest *WritableJournalEntryRequest
}
@@ -24853,24 +25875,25 @@ ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate
Post a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesCreateRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest {
return ApiExtrasJournalEntriesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return JournalEntry
+//
+// @return JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *JournalEntry
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesCreate")
@@ -24958,9 +25981,9 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalE
}
type ApiExtrasJournalEntriesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasJournalEntriesDestroyRequest) Execute() (*http.Response, error) {
@@ -24972,24 +25995,24 @@ ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy
Delete a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest {
return ApiExtrasJournalEntriesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesDestroy")
@@ -25064,59 +26087,61 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournal
}
type ApiExtrasJournalEntriesListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- assignedObjectId *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ assignedObjectId *[]int32
assignedObjectIdEmpty *bool
- assignedObjectIdGt *[]int32
- assignedObjectIdGte *[]int32
- assignedObjectIdLt *[]int32
- assignedObjectIdLte *[]int32
- assignedObjectIdN *[]int32
- assignedObjectType *string
- assignedObjectTypeN *string
- assignedObjectTypeId *[]int32
+ assignedObjectIdGt *[]int32
+ assignedObjectIdGte *[]int32
+ assignedObjectIdLt *[]int32
+ assignedObjectIdLte *[]int32
+ assignedObjectIdN *[]int32
+ assignedObjectType *string
+ assignedObjectTypeN *string
+ assignedObjectTypeId *[]int32
assignedObjectTypeIdN *[]int32
- createdAfter *time.Time
- createdBefore *time.Time
- createdBy *[]string
- createdByN *[]string
- createdById *[]*int32
- createdByIdN *[]*int32
- createdByRequest *string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- kind *[]string
- kindEmpty *bool
- kindIc *[]string
- kindIe *[]string
- kindIew *[]string
- kindIsw *[]string
- kindN *[]string
- kindNic *[]string
- kindNie *[]string
- kindNiew *[]string
- kindNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ createdAfter *time.Time
+ createdBefore *time.Time
+ createdBy *[]string
+ createdByN *[]string
+ createdById *[]*int32
+ createdByIdN *[]*int32
+ createdByRequest *string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ kind *[]string
+ kindEmpty *bool
+ kindIc *[]string
+ kindIe *[]string
+ kindIew *[]string
+ kindIsw *[]string
+ kindN *[]string
+ kindNic *[]string
+ kindNie *[]string
+ kindNiew *[]string
+ kindNisw *[]string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiExtrasJournalEntriesListRequest) AssignedObjectId(assignedObjectId []int32) ApiExtrasJournalEntriesListRequest {
@@ -25377,6 +26402,16 @@ func (r ApiExtrasJournalEntriesListRequest) TagN(tagN []string) ApiExtrasJournal
return r
}
+func (r ApiExtrasJournalEntriesListRequest) TagId(tagId []int32) ApiExtrasJournalEntriesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiExtrasJournalEntriesListRequest) TagIdN(tagIdN []int32) ApiExtrasJournalEntriesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiExtrasJournalEntriesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasJournalEntriesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -25391,24 +26426,25 @@ ExtrasJournalEntriesList Method for ExtrasJournalEntriesList
Get a list of journal entry objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasJournalEntriesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasJournalEntriesListRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest {
return ApiExtrasJournalEntriesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedJournalEntryList
+//
+// @return PaginatedJournalEntryList
func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedJournalEntryList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedJournalEntryList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesList")
@@ -25868,6 +26904,28 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -25940,9 +26998,9 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt
}
type ApiExtrasJournalEntriesPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedWritableJournalEntryRequest *PatchedWritableJournalEntryRequest
}
@@ -25960,26 +27018,27 @@ ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate
Patch a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest {
return ApiExtrasJournalEntriesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return JournalEntry
+//
+// @return JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *JournalEntry
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesPartialUpdate")
@@ -26065,9 +27124,9 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJ
}
type ApiExtrasJournalEntriesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasJournalEntriesRetrieveRequest) Execute() (*JournalEntry, *http.Response, error) {
@@ -26079,26 +27138,27 @@ ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve
Get a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest {
return ApiExtrasJournalEntriesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return JournalEntry
+//
+// @return JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *JournalEntry
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesRetrieve")
@@ -26182,9 +27242,9 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJourna
}
type ApiExtrasJournalEntriesUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
writableJournalEntryRequest *WritableJournalEntryRequest
}
@@ -26202,26 +27262,27 @@ ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate
Put a journal entry object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this journal entry.
- @return ApiExtrasJournalEntriesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this journal entry.
+ @return ApiExtrasJournalEntriesUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest {
return ApiExtrasJournalEntriesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return JournalEntry
+//
+// @return JournalEntry
func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *JournalEntry
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *JournalEntry
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesUpdate")
@@ -26310,8 +27371,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE
}
type ApiExtrasNotificationGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationGroupRequest *[]NotificationGroupRequest
}
@@ -26329,22 +27390,22 @@ ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestr
Delete a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest {
return ApiExtrasNotificationGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy")
@@ -26423,8 +27484,8 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtra
}
type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationGroupRequest *[]NotificationGroupRequest
}
@@ -26442,24 +27503,25 @@ ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBul
Patch a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest {
return ApiExtrasNotificationGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []NotificationGroup
+//
+// @return []NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []NotificationGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate")
@@ -26547,8 +27609,8 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r Ap
}
type ApiExtrasNotificationGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationGroupRequest *[]NotificationGroupRequest
}
@@ -26566,24 +27628,25 @@ ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate
Put a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest {
return ApiExtrasNotificationGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []NotificationGroup
+//
+// @return []NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []NotificationGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate")
@@ -26671,8 +27734,8 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtras
}
type ApiExtrasNotificationGroupsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationGroupRequest *NotificationGroupRequest
}
@@ -26690,24 +27753,25 @@ ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate
Post a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest {
return ApiExtrasNotificationGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return NotificationGroup
+//
+// @return NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *NotificationGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate")
@@ -26795,9 +27859,9 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNoti
}
type ApiExtrasNotificationGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -26809,24 +27873,24 @@ ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy
Delete a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest {
return ApiExtrasNotificationGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy")
@@ -26901,11 +27965,11 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNot
}
type ApiExtrasNotificationGroupsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- limit *int32
- offset *int32
- ordering *string
+ limit *int32
+ offset *int32
+ ordering *string
}
// Number of results to return per page.
@@ -26935,24 +27999,25 @@ ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList
Get a list of notification group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationGroupsListRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest {
return ApiExtrasNotificationGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedNotificationGroupList
+//
+// @return PaginatedNotificationGroupList
func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedNotificationGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedNotificationGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList")
@@ -27044,9 +28109,9 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotifi
}
type ApiExtrasNotificationGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedNotificationGroupRequest *PatchedNotificationGroupRequest
}
@@ -27064,26 +28129,27 @@ ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartial
Patch a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest {
return ApiExtrasNotificationGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return NotificationGroup
+//
+// @return NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *NotificationGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate")
@@ -27169,9 +28235,9 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExt
}
type ApiExtrasNotificationGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) {
@@ -27183,26 +28249,27 @@ ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve
Get a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest {
return ApiExtrasNotificationGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return NotificationGroup
+//
+// @return NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *NotificationGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve")
@@ -27286,9 +28353,9 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNo
}
type ApiExtrasNotificationGroupsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
notificationGroupRequest *NotificationGroupRequest
}
@@ -27306,26 +28373,27 @@ ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate
Put a notification group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification group.
- @return ApiExtrasNotificationGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification group.
+ @return ApiExtrasNotificationGroupsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest {
return ApiExtrasNotificationGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return NotificationGroup
+//
+// @return NotificationGroup
func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *NotificationGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *NotificationGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate")
@@ -27414,8 +28482,8 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNoti
}
type ApiExtrasNotificationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationRequest *[]NotificationRequest
}
@@ -27433,22 +28501,22 @@ ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy
Delete a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest {
return ApiExtrasNotificationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy")
@@ -27527,8 +28595,8 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNoti
}
type ApiExtrasNotificationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationRequest *[]NotificationRequest
}
@@ -27546,24 +28614,25 @@ ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUp
Patch a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest {
return ApiExtrasNotificationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Notification
+//
+// @return []Notification
func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Notification
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate")
@@ -27651,8 +28720,8 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtr
}
type ApiExtrasNotificationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationRequest *[]NotificationRequest
}
@@ -27670,24 +28739,25 @@ ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate
Put a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest {
return ApiExtrasNotificationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Notification
+//
+// @return []Notification
func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Notification
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate")
@@ -27775,8 +28845,8 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotif
}
type ApiExtrasNotificationsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
notificationRequest *NotificationRequest
}
@@ -27794,24 +28864,25 @@ ExtrasNotificationsCreate Method for ExtrasNotificationsCreate
Post a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest {
return ApiExtrasNotificationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Notification
+//
+// @return Notification
func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Notification
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate")
@@ -27899,9 +28970,9 @@ func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificat
}
type ApiExtrasNotificationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) {
@@ -27913,24 +28984,24 @@ ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy
Delete a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest {
return ApiExtrasNotificationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy")
@@ -28005,11 +29076,11 @@ func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotifica
}
type ApiExtrasNotificationsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- limit *int32
- offset *int32
- ordering *string
+ limit *int32
+ offset *int32
+ ordering *string
}
// Number of results to return per page.
@@ -28039,24 +29110,25 @@ ExtrasNotificationsList Method for ExtrasNotificationsList
Get a list of notification objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasNotificationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasNotificationsListRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest {
return ApiExtrasNotificationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedNotificationList
+//
+// @return PaginatedNotificationList
func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedNotificationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedNotificationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList")
@@ -28148,9 +29220,9 @@ func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificatio
}
type ApiExtrasNotificationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedNotificationRequest *PatchedNotificationRequest
}
@@ -28168,26 +29240,27 @@ ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate
Patch a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest {
return ApiExtrasNotificationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Notification
+//
+// @return Notification
func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Notification
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate")
@@ -28273,9 +29346,9 @@ func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNo
}
type ApiExtrasNotificationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) {
@@ -28287,26 +29360,27 @@ ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve
Get a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest {
return ApiExtrasNotificationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Notification
+//
+// @return Notification
func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Notification
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve")
@@ -28390,9 +29464,9 @@ func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotific
}
type ApiExtrasNotificationsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
notificationRequest *NotificationRequest
}
@@ -28410,26 +29484,27 @@ ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate
Put a notification object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this notification.
- @return ApiExtrasNotificationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this notification.
+ @return ApiExtrasNotificationsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest {
return ApiExtrasNotificationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Notification
+//
+// @return Notification
func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Notification
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Notification
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate")
@@ -28518,15 +29593,15 @@ func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificat
}
type ApiExtrasObjectTypesListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- appLabel *string
- id *int32
- limit *int32
- model *string
- offset *int32
- ordering *string
- q *string
+ appLabel *string
+ id *int32
+ limit *int32
+ model *string
+ offset *int32
+ ordering *string
+ q *string
}
func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest {
@@ -28577,24 +29652,25 @@ ExtrasObjectTypesList Method for ExtrasObjectTypesList
Read-only list of ObjectTypes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasObjectTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasObjectTypesListRequest
*/
func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest {
return ApiExtrasObjectTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedObjectTypeList
+//
+// @return PaginatedObjectTypeList
func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedObjectTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedObjectTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList")
@@ -28698,9 +29774,9 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi
}
type ApiExtrasObjectTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) {
@@ -28712,26 +29788,27 @@ ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve
Read-only list of ObjectTypes.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this object type.
- @return ApiExtrasObjectTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this object type.
+ @return ApiExtrasObjectTypesRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest {
return ApiExtrasObjectTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ObjectType
+//
+// @return ObjectType
func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve")
@@ -28815,8 +29892,8 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp
}
type ApiExtrasSavedFiltersBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
savedFilterRequest *[]SavedFilterRequest
}
@@ -28834,22 +29911,22 @@ ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy
Delete a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest {
return ApiExtrasSavedFiltersBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy")
@@ -28928,8 +30005,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved
}
type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
savedFilterRequest *[]SavedFilterRequest
}
@@ -28947,24 +30024,25 @@ ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpda
Patch a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest {
return ApiExtrasSavedFiltersBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []SavedFilter
+//
+// @return []SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []SavedFilter
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate")
@@ -29052,8 +30130,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra
}
type ApiExtrasSavedFiltersBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
savedFilterRequest *[]SavedFilterRequest
}
@@ -29071,24 +30149,25 @@ ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate
Put a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest {
return ApiExtrasSavedFiltersBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []SavedFilter
+//
+// @return []SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []SavedFilter
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate")
@@ -29176,8 +30255,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF
}
type ApiExtrasSavedFiltersCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
savedFilterRequest *SavedFilterRequest
}
@@ -29195,24 +30274,25 @@ ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate
Post a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersCreateRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest {
return ApiExtrasSavedFiltersCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return SavedFilter
+//
+// @return SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate")
@@ -29300,9 +30380,9 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte
}
type ApiExtrasSavedFiltersDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) {
@@ -29314,24 +30394,24 @@ ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy
Delete a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest {
return ApiExtrasSavedFiltersDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy")
@@ -29406,95 +30486,95 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt
}
type ApiExtrasSavedFiltersListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enabled *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- offset *int32
- ordering *string
- q *string
- shared *bool
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- updatedByRequest *string
- usable *bool
- user *[]string
- userN *[]string
- userId *[]*int32
- userIdN *[]*int32
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ shared *bool
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ updatedByRequest *string
+ usable *bool
+ user *[]string
+ userN *[]string
+ userId *[]*int32
+ userIdN *[]*int32
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest {
@@ -29949,24 +31029,25 @@ ExtrasSavedFiltersList Method for ExtrasSavedFiltersList
Get a list of saved filter objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSavedFiltersListRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest {
return ApiExtrasSavedFiltersListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedSavedFilterList
+//
+// @return PaginatedSavedFilterList
func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedSavedFilterList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedSavedFilterList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList")
@@ -30806,9 +31887,9 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
}
type ApiExtrasSavedFiltersPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedSavedFilterRequest *PatchedSavedFilterRequest
}
@@ -30826,26 +31907,27 @@ ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate
Patch a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest {
return ApiExtrasSavedFiltersPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SavedFilter
+//
+// @return SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate")
@@ -30931,9 +32013,9 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav
}
type ApiExtrasSavedFiltersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) {
@@ -30945,26 +32027,27 @@ ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve
Get a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest {
return ApiExtrasSavedFiltersRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SavedFilter
+//
+// @return SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve")
@@ -31048,9 +32131,9 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil
}
type ApiExtrasSavedFiltersUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
savedFilterRequest *SavedFilterRequest
}
@@ -31068,26 +32151,27 @@ ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate
Put a saved filter object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this saved filter.
- @return ApiExtrasSavedFiltersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this saved filter.
+ @return ApiExtrasSavedFiltersUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest {
return ApiExtrasSavedFiltersUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return SavedFilter
+//
+// @return SavedFilter
func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SavedFilter
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate")
@@ -31176,7 +32260,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte
}
type ApiExtrasScriptsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
}
@@ -31189,24 +32273,25 @@ ExtrasScriptsCreate Method for ExtrasScriptsCreate
Post a list of script objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasScriptsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasScriptsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest {
return ApiExtrasScriptsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Script
+//
+// @return Script
func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Script
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Script
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate")
@@ -31289,9 +32374,9 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe
}
type ApiExtrasScriptsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id string
+ id string
}
func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) {
@@ -31303,24 +32388,24 @@ ExtrasScriptsDestroy Method for ExtrasScriptsDestroy
Delete a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest {
return ApiExtrasScriptsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy")
@@ -31395,33 +32480,33 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy
}
type ApiExtrasScriptsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
isExecutable *bool
- limit *int32
- moduleId *[]int32
- moduleIdN *[]int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
+ limit *int32
+ moduleId *[]int32
+ moduleIdN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
}
func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest {
@@ -31564,24 +32649,25 @@ ExtrasScriptsList Method for ExtrasScriptsList
Get a list of script objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasScriptsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasScriptsListRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest {
return ApiExtrasScriptsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedScriptList
+//
+// @return PaginatedScriptList
func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedScriptList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedScriptList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList")
@@ -31883,9 +32969,9 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques
}
type ApiExtrasScriptsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id string
+ ctx context.Context
+ ApiService ExtrasAPI
+ id string
patchedScriptInputRequest *PatchedScriptInputRequest
}
@@ -31903,26 +32989,27 @@ ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate
Patch a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest {
return ApiExtrasScriptsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Script
+//
+// @return Script
func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Script
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Script
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate")
@@ -32008,9 +33095,9 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP
}
type ApiExtrasScriptsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id string
+ id string
}
func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) {
@@ -32022,26 +33109,27 @@ ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve
Get a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest {
return ApiExtrasScriptsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Script
+//
+// @return Script
func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Script
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Script
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve")
@@ -32125,9 +33213,9 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie
}
type ApiExtrasScriptsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id string
+ ctx context.Context
+ ApiService ExtrasAPI
+ id string
scriptInputRequest *ScriptInputRequest
}
@@ -32145,26 +33233,27 @@ ExtrasScriptsUpdate Method for ExtrasScriptsUpdate
Put a script object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiExtrasScriptsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiExtrasScriptsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest {
return ApiExtrasScriptsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Script
+//
+// @return Script
func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Script
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Script
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate")
@@ -32253,8 +33342,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe
}
type ApiExtrasSubscriptionsBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
subscriptionRequest *[]SubscriptionRequest
}
@@ -32272,22 +33361,22 @@ ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy
Delete a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest {
return ApiExtrasSubscriptionsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy")
@@ -32366,8 +33455,8 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubs
}
type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
subscriptionRequest *[]SubscriptionRequest
}
@@ -32385,24 +33474,25 @@ ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUp
Patch a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest {
return ApiExtrasSubscriptionsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Subscription
+//
+// @return []Subscription
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Subscription
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Subscription
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate")
@@ -32490,8 +33580,8 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtr
}
type ApiExtrasSubscriptionsBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
subscriptionRequest *[]SubscriptionRequest
}
@@ -32509,24 +33599,25 @@ ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate
Put a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest {
return ApiExtrasSubscriptionsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Subscription
+//
+// @return []Subscription
func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Subscription
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Subscription
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate")
@@ -32614,8 +33705,8 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubsc
}
type ApiExtrasSubscriptionsCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
subscriptionRequest *SubscriptionRequest
}
@@ -32633,24 +33724,25 @@ ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate
Post a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest {
return ApiExtrasSubscriptionsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Subscription
+//
+// @return Subscription
func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Subscription
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Subscription
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate")
@@ -32738,9 +33830,9 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscript
}
type ApiExtrasSubscriptionsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) {
@@ -32752,24 +33844,24 @@ ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy
Delete a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest {
return ApiExtrasSubscriptionsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy")
@@ -32844,11 +33936,11 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscrip
}
type ApiExtrasSubscriptionsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- limit *int32
- offset *int32
- ordering *string
+ limit *int32
+ offset *int32
+ ordering *string
}
// Number of results to return per page.
@@ -32878,24 +33970,25 @@ ExtrasSubscriptionsList Method for ExtrasSubscriptionsList
Get a list of subscription objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSubscriptionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasSubscriptionsListRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest {
return ApiExtrasSubscriptionsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedSubscriptionList
+//
+// @return PaginatedSubscriptionList
func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedSubscriptionList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedSubscriptionList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList")
@@ -32987,9 +34080,9 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptio
}
type ApiExtrasSubscriptionsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedSubscriptionRequest *PatchedSubscriptionRequest
}
@@ -33007,26 +34100,27 @@ ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate
Patch a subscription object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest {
return ApiExtrasSubscriptionsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Subscription
+//
+// @return Subscription
func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Subscription
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Subscription
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate")
@@ -33111,49 +34205,3089 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSu
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSubscriptionsRetrieveRequest struct {
- ctx context.Context
+type ApiExtrasSubscriptionsRetrieveRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+}
+
+func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) {
+ return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r)
+}
+
+/*
+ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve
+
+Get a subscription object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsRetrieveRequest
+*/
+func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest {
+ return ApiExtrasSubscriptionsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Subscription
+func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Subscription
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/subscriptions/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // 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 ApiExtrasSubscriptionsUpdateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+ subscriptionRequest *SubscriptionRequest
+}
+
+func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest {
+ r.subscriptionRequest = &subscriptionRequest
+ return r
+}
+
+func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) {
+ return r.ApiService.ExtrasSubscriptionsUpdateExecute(r)
+}
+
+/*
+ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate
+
+Put a subscription object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this subscription.
+ @return ApiExtrasSubscriptionsUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest {
+ return ApiExtrasSubscriptionsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return Subscription
+func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Subscription
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/subscriptions/{id}/"
+ localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.subscriptionRequest == nil {
+ return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"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.subscriptionRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiExtrasTableConfigsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ tableConfigRequest *[]TableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsBulkDestroyRequest) TableConfigRequest(tableConfigRequest []TableConfigRequest) ApiExtrasTableConfigsBulkDestroyRequest {
+ r.tableConfigRequest = &tableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsBulkDestroyExecute(r)
+}
+
+/*
+ExtrasTableConfigsBulkDestroy Method for ExtrasTableConfigsBulkDestroy
+
+Delete a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkDestroyRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkDestroy(ctx context.Context) ApiExtrasTableConfigsBulkDestroyRequest {
+ return ApiExtrasTableConfigsBulkDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkDestroyExecute(r ApiExtrasTableConfigsBulkDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsBulkDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tableConfigRequest == nil {
+ return nil, reportError("tableConfigRequest 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.tableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ 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 ApiExtrasTableConfigsBulkPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ tableConfigRequest *[]TableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsBulkPartialUpdateRequest) TableConfigRequest(tableConfigRequest []TableConfigRequest) ApiExtrasTableConfigsBulkPartialUpdateRequest {
+ r.tableConfigRequest = &tableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsBulkPartialUpdateRequest) Execute() ([]TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsBulkPartialUpdateExecute(r)
+}
+
+/*
+ExtrasTableConfigsBulkPartialUpdate Method for ExtrasTableConfigsBulkPartialUpdate
+
+Patch a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkPartialUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkPartialUpdate(ctx context.Context) ApiExtrasTableConfigsBulkPartialUpdateRequest {
+ return ApiExtrasTableConfigsBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkPartialUpdateExecute(r ApiExtrasTableConfigsBulkPartialUpdateRequest) ([]TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsBulkPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tableConfigRequest == nil {
+ return localVarReturnValue, nil, reportError("tableConfigRequest 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.tableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiExtrasTableConfigsBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ tableConfigRequest *[]TableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsBulkUpdateRequest) TableConfigRequest(tableConfigRequest []TableConfigRequest) ApiExtrasTableConfigsBulkUpdateRequest {
+ r.tableConfigRequest = &tableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsBulkUpdateRequest) Execute() ([]TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsBulkUpdateExecute(r)
+}
+
+/*
+ExtrasTableConfigsBulkUpdate Method for ExtrasTableConfigsBulkUpdate
+
+Put a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsBulkUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkUpdate(ctx context.Context) ApiExtrasTableConfigsBulkUpdateRequest {
+ return ApiExtrasTableConfigsBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsBulkUpdateExecute(r ApiExtrasTableConfigsBulkUpdateRequest) ([]TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsBulkUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tableConfigRequest == nil {
+ return localVarReturnValue, nil, reportError("tableConfigRequest 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.tableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiExtrasTableConfigsCreateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ tableConfigRequest *TableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsCreateRequest) TableConfigRequest(tableConfigRequest TableConfigRequest) ApiExtrasTableConfigsCreateRequest {
+ r.tableConfigRequest = &tableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsCreateRequest) Execute() (*TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsCreateExecute(r)
+}
+
+/*
+ExtrasTableConfigsCreate Method for ExtrasTableConfigsCreate
+
+Post a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsCreateRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsCreate(ctx context.Context) ApiExtrasTableConfigsCreateRequest {
+ return ApiExtrasTableConfigsCreateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsCreateExecute(r ApiExtrasTableConfigsCreateRequest) (*TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsCreate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.tableConfigRequest == nil {
+ return localVarReturnValue, nil, reportError("tableConfigRequest 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.tableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiExtrasTableConfigsDestroyRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+}
+
+func (r ApiExtrasTableConfigsDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsDestroyExecute(r)
+}
+
+/*
+ExtrasTableConfigsDestroy Method for ExtrasTableConfigsDestroy
+
+Delete a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsDestroyRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsDestroy(ctx context.Context, id int32) ApiExtrasTableConfigsDestroyRequest {
+ return ApiExtrasTableConfigsDestroyRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+func (a *ExtrasAPIService) ExtrasTableConfigsDestroyExecute(r ApiExtrasTableConfigsDestroyRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsDestroy")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/{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 ApiExtrasTableConfigsListRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeN *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ shared *bool
+ table *[]string
+ tableEmpty *bool
+ tableIc *[]string
+ tableIe *[]string
+ tableIew *[]string
+ tableIsw *[]string
+ tableN *[]string
+ tableNic *[]string
+ tableNie *[]string
+ tableNiew *[]string
+ tableNisw *[]string
+ updatedByRequest *string
+ usable *bool
+ user *[]string
+ userN *[]string
+ userId *[]*int32
+ userIdN *[]*int32
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
+}
+
+func (r ApiExtrasTableConfigsListRequest) Created(created []time.Time) ApiExtrasTableConfigsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedN(createdN []time.Time) ApiExtrasTableConfigsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasTableConfigsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Description(description []string) ApiExtrasTableConfigsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasTableConfigsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionN(descriptionN []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasTableConfigsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Enabled(enabled bool) ApiExtrasTableConfigsListRequest {
+ r.enabled = &enabled
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Id(id []int32) ApiExtrasTableConfigsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdEmpty(idEmpty bool) ApiExtrasTableConfigsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdGt(idGt []int32) ApiExtrasTableConfigsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdGte(idGte []int32) ApiExtrasTableConfigsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdLt(idLt []int32) ApiExtrasTableConfigsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdLte(idLte []int32) ApiExtrasTableConfigsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) IdN(idN []int32) ApiExtrasTableConfigsListRequest {
+ r.idN = &idN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasTableConfigsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiExtrasTableConfigsListRequest) Limit(limit int32) ApiExtrasTableConfigsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasTableConfigsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Name(name []string) ApiExtrasTableConfigsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameEmpty(nameEmpty bool) ApiExtrasTableConfigsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameIc(nameIc []string) ApiExtrasTableConfigsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameIe(nameIe []string) ApiExtrasTableConfigsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameIew(nameIew []string) ApiExtrasTableConfigsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameIsw(nameIsw []string) ApiExtrasTableConfigsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameN(nameN []string) ApiExtrasTableConfigsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameNic(nameNic []string) ApiExtrasTableConfigsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameNie(nameNie []string) ApiExtrasTableConfigsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameNiew(nameNiew []string) ApiExtrasTableConfigsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) NameNisw(nameNisw []string) ApiExtrasTableConfigsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) ObjectType(objectType string) ApiExtrasTableConfigsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasTableConfigsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasTableConfigsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasTableConfigsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiExtrasTableConfigsListRequest) Offset(offset int32) ApiExtrasTableConfigsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiExtrasTableConfigsListRequest) Ordering(ordering string) ApiExtrasTableConfigsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiExtrasTableConfigsListRequest) Q(q string) ApiExtrasTableConfigsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Shared(shared bool) ApiExtrasTableConfigsListRequest {
+ r.shared = &shared
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Table(table []string) ApiExtrasTableConfigsListRequest {
+ r.table = &table
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableEmpty(tableEmpty bool) ApiExtrasTableConfigsListRequest {
+ r.tableEmpty = &tableEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableIc(tableIc []string) ApiExtrasTableConfigsListRequest {
+ r.tableIc = &tableIc
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableIe(tableIe []string) ApiExtrasTableConfigsListRequest {
+ r.tableIe = &tableIe
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableIew(tableIew []string) ApiExtrasTableConfigsListRequest {
+ r.tableIew = &tableIew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableIsw(tableIsw []string) ApiExtrasTableConfigsListRequest {
+ r.tableIsw = &tableIsw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableN(tableN []string) ApiExtrasTableConfigsListRequest {
+ r.tableN = &tableN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableNic(tableNic []string) ApiExtrasTableConfigsListRequest {
+ r.tableNic = &tableNic
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableNie(tableNie []string) ApiExtrasTableConfigsListRequest {
+ r.tableNie = &tableNie
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableNiew(tableNiew []string) ApiExtrasTableConfigsListRequest {
+ r.tableNiew = &tableNiew
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) TableNisw(tableNisw []string) ApiExtrasTableConfigsListRequest {
+ r.tableNisw = &tableNisw
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasTableConfigsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Usable(usable bool) ApiExtrasTableConfigsListRequest {
+ r.usable = &usable
+ return r
+}
+
+// User (name)
+func (r ApiExtrasTableConfigsListRequest) User(user []string) ApiExtrasTableConfigsListRequest {
+ r.user = &user
+ return r
+}
+
+// User (name)
+func (r ApiExtrasTableConfigsListRequest) UserN(userN []string) ApiExtrasTableConfigsListRequest {
+ r.userN = &userN
+ return r
+}
+
+// User (ID)
+func (r ApiExtrasTableConfigsListRequest) UserId(userId []*int32) ApiExtrasTableConfigsListRequest {
+ r.userId = &userId
+ return r
+}
+
+// User (ID)
+func (r ApiExtrasTableConfigsListRequest) UserIdN(userIdN []*int32) ApiExtrasTableConfigsListRequest {
+ r.userIdN = &userIdN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Weight(weight []int32) ApiExtrasTableConfigsListRequest {
+ r.weight = &weight
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasTableConfigsListRequest {
+ r.weightEmpty = &weightEmpty
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightGt(weightGt []int32) ApiExtrasTableConfigsListRequest {
+ r.weightGt = &weightGt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightGte(weightGte []int32) ApiExtrasTableConfigsListRequest {
+ r.weightGte = &weightGte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightLt(weightLt []int32) ApiExtrasTableConfigsListRequest {
+ r.weightLt = &weightLt
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightLte(weightLte []int32) ApiExtrasTableConfigsListRequest {
+ r.weightLte = &weightLte
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) WeightN(weightN []int32) ApiExtrasTableConfigsListRequest {
+ r.weightN = &weightN
+ return r
+}
+
+func (r ApiExtrasTableConfigsListRequest) Execute() (*PaginatedTableConfigList, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsListExecute(r)
+}
+
+/*
+ExtrasTableConfigsList Method for ExtrasTableConfigsList
+
+Get a list of table config objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTableConfigsListRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsList(ctx context.Context) ApiExtrasTableConfigsListRequest {
+ return ApiExtrasTableConfigsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedTableConfigList
+func (a *ExtrasAPIService) ExtrasTableConfigsListExecute(r ApiExtrasTableConfigsListRequest) (*PaginatedTableConfigList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTableConfigList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.created != nil {
+ t := *r.created
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi")
+ }
+ }
+ if r.createdEmpty != nil {
+ t := *r.createdEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi")
+ }
+ }
+ if r.createdGt != nil {
+ t := *r.createdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi")
+ }
+ }
+ if r.createdGte != nil {
+ t := *r.createdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi")
+ }
+ }
+ if r.createdLt != nil {
+ t := *r.createdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi")
+ }
+ }
+ if r.createdLte != nil {
+ t := *r.createdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi")
+ }
+ }
+ if r.createdN != nil {
+ t := *r.createdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi")
+ }
+ }
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "")
+ }
+ if r.description != nil {
+ t := *r.description
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi")
+ }
+ }
+ if r.descriptionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "")
+ }
+ if r.descriptionIc != nil {
+ t := *r.descriptionIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi")
+ }
+ }
+ if r.descriptionIe != nil {
+ t := *r.descriptionIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi")
+ }
+ }
+ if r.descriptionIew != nil {
+ t := *r.descriptionIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi")
+ }
+ }
+ if r.descriptionIsw != nil {
+ t := *r.descriptionIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi")
+ }
+ }
+ if r.descriptionN != nil {
+ t := *r.descriptionN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi")
+ }
+ }
+ if r.descriptionNic != nil {
+ t := *r.descriptionNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi")
+ }
+ }
+ if r.descriptionNie != nil {
+ t := *r.descriptionNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi")
+ }
+ }
+ if r.descriptionNiew != nil {
+ t := *r.descriptionNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi")
+ }
+ }
+ if r.descriptionNisw != nil {
+ t := *r.descriptionNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi")
+ }
+ }
+ if r.enabled != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "")
+ }
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi")
+ }
+ }
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "")
+ }
+ if r.nameIc != nil {
+ t := *r.nameIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi")
+ }
+ }
+ if r.nameIe != nil {
+ t := *r.nameIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi")
+ }
+ }
+ if r.nameIew != nil {
+ t := *r.nameIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi")
+ }
+ }
+ if r.nameIsw != nil {
+ t := *r.nameIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi")
+ }
+ }
+ if r.nameN != nil {
+ t := *r.nameN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi")
+ }
+ }
+ if r.nameNic != nil {
+ t := *r.nameNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi")
+ }
+ }
+ if r.nameNie != nil {
+ t := *r.nameNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi")
+ }
+ }
+ if r.nameNiew != nil {
+ t := *r.nameNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi")
+ }
+ }
+ if r.nameNisw != nil {
+ t := *r.nameNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi")
+ }
+ }
+ if r.objectType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "")
+ }
+ if r.objectTypeN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "")
+ }
+ if r.objectTypeId != nil {
+ t := *r.objectTypeId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "multi")
+ }
+ }
+ if r.objectTypeIdN != nil {
+ t := *r.objectTypeIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
+ }
+ if r.shared != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "form", "")
+ }
+ if r.table != nil {
+ t := *r.table
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table", t, "form", "multi")
+ }
+ }
+ if r.tableEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__empty", r.tableEmpty, "form", "")
+ }
+ if r.tableIc != nil {
+ t := *r.tableIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__ic", t, "form", "multi")
+ }
+ }
+ if r.tableIe != nil {
+ t := *r.tableIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__ie", t, "form", "multi")
+ }
+ }
+ if r.tableIew != nil {
+ t := *r.tableIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__iew", t, "form", "multi")
+ }
+ }
+ if r.tableIsw != nil {
+ t := *r.tableIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__isw", t, "form", "multi")
+ }
+ }
+ if r.tableN != nil {
+ t := *r.tableN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__n", t, "form", "multi")
+ }
+ }
+ if r.tableNic != nil {
+ t := *r.tableNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nic", t, "form", "multi")
+ }
+ }
+ if r.tableNie != nil {
+ t := *r.tableNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nie", t, "form", "multi")
+ }
+ }
+ if r.tableNiew != nil {
+ t := *r.tableNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__niew", t, "form", "multi")
+ }
+ }
+ if r.tableNisw != nil {
+ t := *r.tableNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "table__nisw", t, "form", "multi")
+ }
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
+ }
+ if r.usable != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "form", "")
+ }
+ if r.user != nil {
+ t := *r.user
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "multi")
+ }
+ }
+ if r.userN != nil {
+ t := *r.userN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi")
+ }
+ }
+ if r.userId != nil {
+ t := *r.userId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi")
+ }
+ }
+ if r.userIdN != nil {
+ t := *r.userIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi")
+ }
+ }
+ if r.weight != nil {
+ t := *r.weight
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi")
+ }
+ }
+ if r.weightEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "")
+ }
+ if r.weightGt != nil {
+ t := *r.weightGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi")
+ }
+ }
+ if r.weightGte != nil {
+ t := *r.weightGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi")
+ }
+ }
+ if r.weightLt != nil {
+ t := *r.weightLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi")
+ }
+ }
+ if r.weightLte != nil {
+ t := *r.weightLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi")
+ }
+ }
+ if r.weightN != nil {
+ t := *r.weightN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi")
+ }
+ }
+ // 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 ApiExtrasTableConfigsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+ patchedTableConfigRequest *PatchedTableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsPartialUpdateRequest) PatchedTableConfigRequest(patchedTableConfigRequest PatchedTableConfigRequest) ApiExtrasTableConfigsPartialUpdateRequest {
+ r.patchedTableConfigRequest = &patchedTableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsPartialUpdateRequest) Execute() (*TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsPartialUpdateExecute(r)
+}
+
+/*
+ExtrasTableConfigsPartialUpdate Method for ExtrasTableConfigsPartialUpdate
+
+Patch a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsPartialUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsPartialUpdate(ctx context.Context, id int32) ApiExtrasTableConfigsPartialUpdateRequest {
+ return ApiExtrasTableConfigsPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsPartialUpdateExecute(r ApiExtrasTableConfigsPartialUpdateRequest) (*TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsPartialUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/{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.patchedTableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiExtrasTableConfigsRetrieveRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+}
+
+func (r ApiExtrasTableConfigsRetrieveRequest) Execute() (*TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsRetrieveExecute(r)
+}
+
+/*
+ExtrasTableConfigsRetrieve Method for ExtrasTableConfigsRetrieve
+
+Get a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsRetrieveRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsRetrieve(ctx context.Context, id int32) ApiExtrasTableConfigsRetrieveRequest {
+ return ApiExtrasTableConfigsRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsRetrieveExecute(r ApiExtrasTableConfigsRetrieveRequest) (*TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsRetrieve")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/{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 ApiExtrasTableConfigsUpdateRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
+ tableConfigRequest *TableConfigRequest
+}
+
+func (r ApiExtrasTableConfigsUpdateRequest) TableConfigRequest(tableConfigRequest TableConfigRequest) ApiExtrasTableConfigsUpdateRequest {
+ r.tableConfigRequest = &tableConfigRequest
+ return r
+}
+
+func (r ApiExtrasTableConfigsUpdateRequest) Execute() (*TableConfig, *http.Response, error) {
+ return r.ApiService.ExtrasTableConfigsUpdateExecute(r)
+}
+
+/*
+ExtrasTableConfigsUpdate Method for ExtrasTableConfigsUpdate
+
+Put a table config object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this table config.
+ @return ApiExtrasTableConfigsUpdateRequest
+*/
+func (a *ExtrasAPIService) ExtrasTableConfigsUpdate(ctx context.Context, id int32) ApiExtrasTableConfigsUpdateRequest {
+ return ApiExtrasTableConfigsUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return TableConfig
+func (a *ExtrasAPIService) ExtrasTableConfigsUpdateExecute(r ApiExtrasTableConfigsUpdateRequest) (*TableConfig, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TableConfig
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTableConfigsUpdate")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/table-configs/{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.tableConfigRequest == nil {
+ return localVarReturnValue, nil, reportError("tableConfigRequest 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.tableConfigRequest
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["tokenAuth"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ 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 ApiExtrasTaggedObjectsListRequest struct {
+ ctx context.Context
+ ApiService ExtrasAPI
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ limit *int32
+ objectId *[]int32
+ objectIdEmpty *bool
+ objectIdGt *[]int32
+ objectIdGte *[]int32
+ objectIdLt *[]int32
+ objectIdLte *[]int32
+ objectIdN *[]int32
+ objectType *string
+ objectTypeN *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) Id(id []int32) ApiExtrasTaggedObjectsListRequest {
+ r.id = &id
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdEmpty(idEmpty bool) ApiExtrasTaggedObjectsListRequest {
+ r.idEmpty = &idEmpty
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdGt(idGt []int32) ApiExtrasTaggedObjectsListRequest {
+ r.idGt = &idGt
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdGte(idGte []int32) ApiExtrasTaggedObjectsListRequest {
+ r.idGte = &idGte
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdLt(idLt []int32) ApiExtrasTaggedObjectsListRequest {
+ r.idLt = &idLt
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdLte(idLte []int32) ApiExtrasTaggedObjectsListRequest {
+ r.idLte = &idLte
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) IdN(idN []int32) ApiExtrasTaggedObjectsListRequest {
+ r.idN = &idN
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiExtrasTaggedObjectsListRequest) Limit(limit int32) ApiExtrasTaggedObjectsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectId(objectId []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectId = &objectId
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdEmpty = &objectIdEmpty
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdGt = &objectIdGt
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdGte = &objectIdGte
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdLt = &objectIdLt
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdLte = &objectIdLte
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectIdN(objectIdN []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectIdN = &objectIdN
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectType(objectType string) ApiExtrasTaggedObjectsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasTaggedObjectsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasTaggedObjectsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiExtrasTaggedObjectsListRequest) Offset(offset int32) ApiExtrasTaggedObjectsListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiExtrasTaggedObjectsListRequest) Ordering(ordering string) ApiExtrasTaggedObjectsListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiExtrasTaggedObjectsListRequest) Q(q string) ApiExtrasTaggedObjectsListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) Tag(tag []string) ApiExtrasTaggedObjectsListRequest {
+ r.tag = &tag
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) TagN(tagN []string) ApiExtrasTaggedObjectsListRequest {
+ r.tagN = &tagN
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) TagId(tagId []int32) ApiExtrasTaggedObjectsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) TagIdN(tagIdN []int32) ApiExtrasTaggedObjectsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
+func (r ApiExtrasTaggedObjectsListRequest) Execute() (*PaginatedTaggedItemList, *http.Response, error) {
+ return r.ApiService.ExtrasTaggedObjectsListExecute(r)
+}
+
+/*
+ExtrasTaggedObjectsList Method for ExtrasTaggedObjectsList
+
+Get a list of tagged item objects.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTaggedObjectsListRequest
+*/
+func (a *ExtrasAPIService) ExtrasTaggedObjectsList(ctx context.Context) ApiExtrasTaggedObjectsListRequest {
+ return ApiExtrasTaggedObjectsListRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return PaginatedTaggedItemList
+func (a *ExtrasAPIService) ExtrasTaggedObjectsListExecute(r ApiExtrasTaggedObjectsListRequest) (*PaginatedTaggedItemList, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTaggedItemList
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTaggedObjectsList")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/extras/tagged-objects/"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.id != nil {
+ t := *r.id
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi")
+ }
+ }
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "")
+ }
+ if r.idGt != nil {
+ t := *r.idGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi")
+ }
+ }
+ if r.idGte != nil {
+ t := *r.idGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi")
+ }
+ }
+ if r.idLt != nil {
+ t := *r.idLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi")
+ }
+ }
+ if r.idLte != nil {
+ t := *r.idLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi")
+ }
+ }
+ if r.idN != nil {
+ t := *r.idN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
+ }
+ if r.objectId != nil {
+ t := *r.objectId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "form", "multi")
+ }
+ }
+ if r.objectIdEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "form", "")
+ }
+ if r.objectIdGt != nil {
+ t := *r.objectIdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "form", "multi")
+ }
+ }
+ if r.objectIdGte != nil {
+ t := *r.objectIdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "form", "multi")
+ }
+ }
+ if r.objectIdLt != nil {
+ t := *r.objectIdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "form", "multi")
+ }
+ }
+ if r.objectIdLte != nil {
+ t := *r.objectIdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "form", "multi")
+ }
+ }
+ if r.objectIdN != nil {
+ t := *r.objectIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "form", "multi")
+ }
+ }
+ if r.objectType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "")
+ }
+ if r.objectTypeN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "")
+ }
+ if r.objectTypeId != nil {
+ t := *r.objectTypeId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "multi")
+ }
+ }
+ if r.objectTypeIdN != nil {
+ t := *r.objectTypeIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi")
+ }
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "")
+ }
+ if r.tag != nil {
+ t := *r.tag
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi")
+ }
+ }
+ if r.tagN != nil {
+ t := *r.tagN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
+ }
+ }
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
+ // 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 ApiExtrasTaggedObjectsRetrieveRequest struct {
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
-func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) {
- return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r)
+func (r ApiExtrasTaggedObjectsRetrieveRequest) Execute() (*TaggedItem, *http.Response, error) {
+ return r.ApiService.ExtrasTaggedObjectsRetrieveExecute(r)
}
/*
-ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve
+ExtrasTaggedObjectsRetrieve Method for ExtrasTaggedObjectsRetrieve
-Get a subscription object.
+Get a tagged item object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tagged item.
+ @return ApiExtrasTaggedObjectsRetrieveRequest
*/
-func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest {
- return ApiExtrasSubscriptionsRetrieveRequest{
+func (a *ExtrasAPIService) ExtrasTaggedObjectsRetrieve(ctx context.Context, id int32) ApiExtrasTaggedObjectsRetrieveRequest {
+ return ApiExtrasTaggedObjectsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Subscription
-func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) {
+//
+// @return TaggedItem
+func (a *ExtrasAPIService) ExtrasTaggedObjectsRetrieveExecute(r ApiExtrasTaggedObjectsRetrieveRequest) (*TaggedItem, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Subscription
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TaggedItem
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTaggedObjectsRetrieve")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/subscriptions/{id}/"
+ localVarPath := localBasePath + "/api/extras/tagged-objects/{id}/"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
localVarHeaderParams := make(map[string]string)
@@ -33228,136 +37362,8 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscri
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSubscriptionsUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
- subscriptionRequest *SubscriptionRequest
-}
-
-func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest {
- r.subscriptionRequest = &subscriptionRequest
- return r
-}
-
-func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) {
- return r.ApiService.ExtrasSubscriptionsUpdateExecute(r)
-}
-
-/*
-ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate
-
-Put a subscription object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this subscription.
- @return ApiExtrasSubscriptionsUpdateRequest
-*/
-func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest {
- return ApiExtrasSubscriptionsUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-// @return Subscription
-func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Subscription
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/extras/subscriptions/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
- if r.subscriptionRequest == nil {
- return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified")
- }
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{"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.subscriptionRequest
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if apiKey, ok := auth["tokenAuth"]; ok {
- var key string
- if apiKey.Prefix != "" {
- key = apiKey.Prefix + " " + apiKey.Key
- } else {
- key = apiKey.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
type ApiExtrasTagsBulkDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
tagRequest *[]TagRequest
}
@@ -33376,22 +37382,22 @@ ExtrasTagsBulkDestroy Method for ExtrasTagsBulkDestroy
Delete a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasTagsBulkDestroy(ctx context.Context) ApiExtrasTagsBulkDestroyRequest {
return ApiExtrasTagsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkDestroy")
@@ -33470,7 +37476,7 @@ func (a *ExtrasAPIService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestr
}
type ApiExtrasTagsBulkPartialUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
tagRequest *[]TagRequest
}
@@ -33489,24 +37495,25 @@ ExtrasTagsBulkPartialUpdate Method for ExtrasTagsBulkPartialUpdate
Patch a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdate(ctx context.Context) ApiExtrasTagsBulkPartialUpdateRequest {
return ApiExtrasTagsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tag
+//
+// @return []Tag
func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBulkPartialUpdateRequest) ([]Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tag
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkPartialUpdate")
@@ -33594,7 +37601,7 @@ func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBul
}
type ApiExtrasTagsBulkUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
tagRequest *[]TagRequest
}
@@ -33613,24 +37620,25 @@ ExtrasTagsBulkUpdate Method for ExtrasTagsBulkUpdate
Put a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasTagsBulkUpdate(ctx context.Context) ApiExtrasTagsBulkUpdateRequest {
return ApiExtrasTagsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tag
+//
+// @return []Tag
func (a *ExtrasAPIService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdateRequest) ([]Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tag
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkUpdate")
@@ -33718,7 +37726,7 @@ func (a *ExtrasAPIService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdate
}
type ApiExtrasTagsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
tagRequest *TagRequest
}
@@ -33737,24 +37745,25 @@ ExtrasTagsCreate Method for ExtrasTagsCreate
Post a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsCreateRequest
*/
func (a *ExtrasAPIService) ExtrasTagsCreate(ctx context.Context) ApiExtrasTagsCreateRequest {
return ApiExtrasTagsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Tag
+//
+// @return Tag
func (a *ExtrasAPIService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) (*Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tag
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsCreate")
@@ -33842,9 +37851,9 @@ func (a *ExtrasAPIService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest)
}
type ApiExtrasTagsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasTagsDestroyRequest) Execute() (*http.Response, error) {
@@ -33856,24 +37865,24 @@ ExtrasTagsDestroy Method for ExtrasTagsDestroy
Delete a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasTagsDestroy(ctx context.Context, id int32) ApiExtrasTagsDestroyRequest {
return ApiExtrasTagsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsDestroy")
@@ -33948,85 +37957,92 @@ func (a *ExtrasAPIService) ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyReques
}
type ApiExtrasTagsListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- contentType *[]string
- contentTypeId *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- forObjectTypeId *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ color *[]string
+ colorEmpty *bool
+ colorIc *[]string
+ colorIe *[]string
+ colorIew *[]string
+ colorIsw *[]string
+ colorN *[]string
+ colorNic *[]string
+ colorNie *[]string
+ colorNiew *[]string
+ colorNisw *[]string
+ contentType *[]string
+ contentTypeId *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ forObjectTypeId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectTypes *[]int32
- objectTypesN *[]int32
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectTypes *[]int32
+ objectTypesN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ updatedByRequest *string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiExtrasTagsListRequest) Color(color []string) ApiExtrasTagsListRequest {
@@ -34418,6 +38434,41 @@ func (r ApiExtrasTagsListRequest) UpdatedByRequest(updatedByRequest string) ApiE
return r
}
+func (r ApiExtrasTagsListRequest) Weight(weight []int32) ApiExtrasTagsListRequest {
+ r.weight = &weight
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasTagsListRequest {
+ r.weightEmpty = &weightEmpty
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightGt(weightGt []int32) ApiExtrasTagsListRequest {
+ r.weightGt = &weightGt
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightGte(weightGte []int32) ApiExtrasTagsListRequest {
+ r.weightGte = &weightGte
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightLt(weightLt []int32) ApiExtrasTagsListRequest {
+ r.weightLt = &weightLt
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightLte(weightLte []int32) ApiExtrasTagsListRequest {
+ r.weightLte = &weightLte
+ return r
+}
+
+func (r ApiExtrasTagsListRequest) WeightN(weightN []int32) ApiExtrasTagsListRequest {
+ r.weightN = &weightN
+ return r
+}
+
func (r ApiExtrasTagsListRequest) Execute() (*PaginatedTagList, *http.Response, error) {
return r.ApiService.ExtrasTagsListExecute(r)
}
@@ -34427,24 +38478,25 @@ ExtrasTagsList Method for ExtrasTagsList
Get a list of tag objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasTagsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasTagsListRequest
*/
func (a *ExtrasAPIService) ExtrasTagsList(ctx context.Context) ApiExtrasTagsListRequest {
return ApiExtrasTagsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTagList
+//
+// @return PaginatedTagList
func (a *ExtrasAPIService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*PaginatedTagList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTagList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTagList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsList")
@@ -35209,6 +39261,75 @@ func (a *ExtrasAPIService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
+ if r.weight != nil {
+ t := *r.weight
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi")
+ }
+ }
+ if r.weightEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "")
+ }
+ if r.weightGt != nil {
+ t := *r.weightGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi")
+ }
+ }
+ if r.weightGte != nil {
+ t := *r.weightGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi")
+ }
+ }
+ if r.weightLt != nil {
+ t := *r.weightLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi")
+ }
+ }
+ if r.weightLte != nil {
+ t := *r.weightLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi")
+ }
+ }
+ if r.weightN != nil {
+ t := *r.weightN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi")
+ }
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -35278,9 +39399,9 @@ func (a *ExtrasAPIService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P
}
type ApiExtrasTagsPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedTagRequest *PatchedTagRequest
}
@@ -35298,26 +39419,27 @@ ExtrasTagsPartialUpdate Method for ExtrasTagsPartialUpdate
Patch a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasTagsPartialUpdate(ctx context.Context, id int32) ApiExtrasTagsPartialUpdateRequest {
return ApiExtrasTagsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tag
+//
+// @return Tag
func (a *ExtrasAPIService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartialUpdateRequest) (*Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tag
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsPartialUpdate")
@@ -35403,9 +39525,9 @@ func (a *ExtrasAPIService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartial
}
type ApiExtrasTagsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasTagsRetrieveRequest) Execute() (*Tag, *http.Response, error) {
@@ -35417,26 +39539,27 @@ ExtrasTagsRetrieve Method for ExtrasTagsRetrieve
Get a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasTagsRetrieve(ctx context.Context, id int32) ApiExtrasTagsRetrieveRequest {
return ApiExtrasTagsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tag
+//
+// @return Tag
func (a *ExtrasAPIService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequest) (*Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tag
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsRetrieve")
@@ -35520,9 +39643,9 @@ func (a *ExtrasAPIService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequ
}
type ApiExtrasTagsUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
tagRequest *TagRequest
}
@@ -35540,26 +39663,27 @@ ExtrasTagsUpdate Method for ExtrasTagsUpdate
Put a tag object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tag.
- @return ApiExtrasTagsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tag.
+ @return ApiExtrasTagsUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasTagsUpdate(ctx context.Context, id int32) ApiExtrasTagsUpdateRequest {
return ApiExtrasTagsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tag
+//
+// @return Tag
func (a *ExtrasAPIService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) (*Tag, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tag
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tag
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsUpdate")
@@ -35648,8 +39772,8 @@ func (a *ExtrasAPIService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest)
}
type ApiExtrasWebhooksBulkDestroyRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
webhookRequest *[]WebhookRequest
}
@@ -35667,22 +39791,22 @@ ExtrasWebhooksBulkDestroy Method for ExtrasWebhooksBulkDestroy
Delete a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroy(ctx context.Context) ApiExtrasWebhooksBulkDestroyRequest {
return ApiExtrasWebhooksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkDestroy")
@@ -35761,8 +39885,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksB
}
type ApiExtrasWebhooksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
webhookRequest *[]WebhookRequest
}
@@ -35780,24 +39904,25 @@ ExtrasWebhooksBulkPartialUpdate Method for ExtrasWebhooksBulkPartialUpdate
Patch a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdate(ctx context.Context) ApiExtrasWebhooksBulkPartialUpdateRequest {
return ApiExtrasWebhooksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Webhook
+//
+// @return []Webhook
func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWebhooksBulkPartialUpdateRequest) ([]Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Webhook
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkPartialUpdate")
@@ -35885,8 +40010,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWeb
}
type ApiExtrasWebhooksBulkUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
webhookRequest *[]WebhookRequest
}
@@ -35904,24 +40029,25 @@ ExtrasWebhooksBulkUpdate Method for ExtrasWebhooksBulkUpdate
Put a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksBulkUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdate(ctx context.Context) ApiExtrasWebhooksBulkUpdateRequest {
return ApiExtrasWebhooksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Webhook
+//
+// @return []Webhook
func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBulkUpdateRequest) ([]Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Webhook
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkUpdate")
@@ -36009,8 +40135,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBu
}
type ApiExtrasWebhooksCreateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
+ ctx context.Context
+ ApiService ExtrasAPI
webhookRequest *WebhookRequest
}
@@ -36028,24 +40154,25 @@ ExtrasWebhooksCreate Method for ExtrasWebhooksCreate
Post a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksCreateRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksCreate(ctx context.Context) ApiExtrasWebhooksCreateRequest {
return ApiExtrasWebhooksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Webhook
+//
+// @return Webhook
func (a *ExtrasAPIService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreateRequest) (*Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Webhook
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksCreate")
@@ -36133,9 +40260,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreate
}
type ApiExtrasWebhooksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasWebhooksDestroyRequest) Execute() (*http.Response, error) {
@@ -36147,24 +40274,24 @@ ExtrasWebhooksDestroy Method for ExtrasWebhooksDestroy
Delete a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksDestroyRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksDestroy(ctx context.Context, id int32) ApiExtrasWebhooksDestroyRequest {
return ApiExtrasWebhooksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *ExtrasAPIService) ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksDestroy")
@@ -36239,106 +40366,108 @@ func (a *ExtrasAPIService) ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestr
}
type ApiExtrasWebhooksListRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- caFilePath *[]string
- caFilePathEmpty *bool
- caFilePathIc *[]string
- caFilePathIe *[]string
- caFilePathIew *[]string
- caFilePathIsw *[]string
- caFilePathN *[]string
- caFilePathNic *[]string
- caFilePathNie *[]string
- caFilePathNiew *[]string
- caFilePathNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- httpContentType *[]string
+ ctx context.Context
+ ApiService ExtrasAPI
+ caFilePath *[]string
+ caFilePathEmpty *bool
+ caFilePathIc *[]string
+ caFilePathIe *[]string
+ caFilePathIew *[]string
+ caFilePathIsw *[]string
+ caFilePathN *[]string
+ caFilePathNic *[]string
+ caFilePathNie *[]string
+ caFilePathNiew *[]string
+ caFilePathNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ httpContentType *[]string
httpContentTypeEmpty *bool
- httpContentTypeIc *[]string
- httpContentTypeIe *[]string
- httpContentTypeIew *[]string
- httpContentTypeIsw *[]string
- httpContentTypeN *[]string
- httpContentTypeNic *[]string
- httpContentTypeNie *[]string
- httpContentTypeNiew *[]string
- httpContentTypeNisw *[]string
- httpMethod *[]string
- httpMethodEmpty *bool
- httpMethodIc *[]string
- httpMethodIe *[]string
- httpMethodIew *[]string
- httpMethodIsw *[]string
- httpMethodN *[]string
- httpMethodNic *[]string
- httpMethodNie *[]string
- httpMethodNiew *[]string
- httpMethodNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- payloadUrl *[]string
- q *string
- secret *[]string
- secretEmpty *bool
- secretIc *[]string
- secretIe *[]string
- secretIew *[]string
- secretIsw *[]string
- secretN *[]string
- secretNic *[]string
- secretNie *[]string
- secretNiew *[]string
- secretNisw *[]string
- sslVerification *bool
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ httpContentTypeIc *[]string
+ httpContentTypeIe *[]string
+ httpContentTypeIew *[]string
+ httpContentTypeIsw *[]string
+ httpContentTypeN *[]string
+ httpContentTypeNic *[]string
+ httpContentTypeNie *[]string
+ httpContentTypeNiew *[]string
+ httpContentTypeNisw *[]string
+ httpMethod *[]string
+ httpMethodEmpty *bool
+ httpMethodIc *[]string
+ httpMethodIe *[]string
+ httpMethodIew *[]string
+ httpMethodIsw *[]string
+ httpMethodN *[]string
+ httpMethodNic *[]string
+ httpMethodNie *[]string
+ httpMethodNiew *[]string
+ httpMethodNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ payloadUrl *[]string
+ q *string
+ secret *[]string
+ secretEmpty *bool
+ secretIc *[]string
+ secretIe *[]string
+ secretIew *[]string
+ secretIsw *[]string
+ secretN *[]string
+ secretNic *[]string
+ secretNie *[]string
+ secretNiew *[]string
+ secretNisw *[]string
+ sslVerification *bool
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiExtrasWebhooksListRequest) CaFilePath(caFilePath []string) ApiExtrasWebhooksListRequest {
@@ -36830,6 +40959,16 @@ func (r ApiExtrasWebhooksListRequest) TagN(tagN []string) ApiExtrasWebhooksListR
return r
}
+func (r ApiExtrasWebhooksListRequest) TagId(tagId []int32) ApiExtrasWebhooksListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiExtrasWebhooksListRequest) TagIdN(tagIdN []int32) ApiExtrasWebhooksListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiExtrasWebhooksListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasWebhooksListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -36844,24 +40983,25 @@ ExtrasWebhooksList Method for ExtrasWebhooksList
Get a list of webhook objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasWebhooksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiExtrasWebhooksListRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksList(ctx context.Context) ApiExtrasWebhooksListRequest {
return ApiExtrasWebhooksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedWebhookList
+//
+// @return PaginatedWebhookList
func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequest) (*PaginatedWebhookList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedWebhookList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedWebhookList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksList")
@@ -37830,6 +41970,28 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -37902,9 +42064,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ
}
type ApiExtrasWebhooksPartialUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
patchedWebhookRequest *PatchedWebhookRequest
}
@@ -37922,26 +42084,27 @@ ExtrasWebhooksPartialUpdate Method for ExtrasWebhooksPartialUpdate
Patch a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksPartialUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdate(ctx context.Context, id int32) ApiExtrasWebhooksPartialUpdateRequest {
return ApiExtrasWebhooksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Webhook
+//
+// @return Webhook
func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhooksPartialUpdateRequest) (*Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Webhook
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksPartialUpdate")
@@ -38027,9 +42190,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhook
}
type ApiExtrasWebhooksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService ExtrasAPI
- id int32
+ id int32
}
func (r ApiExtrasWebhooksRetrieveRequest) Execute() (*Webhook, *http.Response, error) {
@@ -38041,26 +42204,27 @@ ExtrasWebhooksRetrieve Method for ExtrasWebhooksRetrieve
Get a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksRetrieveRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksRetrieve(ctx context.Context, id int32) ApiExtrasWebhooksRetrieveRequest {
return ApiExtrasWebhooksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Webhook
+//
+// @return Webhook
func (a *ExtrasAPIService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetrieveRequest) (*Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Webhook
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksRetrieve")
@@ -38144,9 +42308,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetr
}
type ApiExtrasWebhooksUpdateRequest struct {
- ctx context.Context
- ApiService ExtrasAPI
- id int32
+ ctx context.Context
+ ApiService ExtrasAPI
+ id int32
webhookRequest *WebhookRequest
}
@@ -38164,26 +42328,27 @@ ExtrasWebhooksUpdate Method for ExtrasWebhooksUpdate
Put a webhook object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this webhook.
- @return ApiExtrasWebhooksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this webhook.
+ @return ApiExtrasWebhooksUpdateRequest
*/
func (a *ExtrasAPIService) ExtrasWebhooksUpdate(ctx context.Context, id int32) ApiExtrasWebhooksUpdateRequest {
return ApiExtrasWebhooksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Webhook
+//
+// @return Webhook
func (a *ExtrasAPIService) ExtrasWebhooksUpdateExecute(r ApiExtrasWebhooksUpdateRequest) (*Webhook, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Webhook
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Webhook
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksUpdate")
diff --git a/api_ipam.go b/api_ipam.go
index 9cec5c207..802529186 100644
--- a/api_ipam.go
+++ b/api_ipam.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type IpamAPI interface {
/*
- IpamAggregatesBulkDestroy Method for IpamAggregatesBulkDestroy
+ IpamAggregatesBulkDestroy Method for IpamAggregatesBulkDestroy
- Delete a list of aggregate objects.
+ Delete a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkDestroyRequest
*/
IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest
@@ -38,12 +37,12 @@ type IpamAPI interface {
IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error)
/*
- IpamAggregatesBulkPartialUpdate Method for IpamAggregatesBulkPartialUpdate
+ IpamAggregatesBulkPartialUpdate Method for IpamAggregatesBulkPartialUpdate
- Patch a list of aggregate objects.
+ Patch a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkPartialUpdateRequest
*/
IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type IpamAPI interface {
IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error)
/*
- IpamAggregatesBulkUpdate Method for IpamAggregatesBulkUpdate
+ IpamAggregatesBulkUpdate Method for IpamAggregatesBulkUpdate
- Put a list of aggregate objects.
+ Put a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkUpdateRequest
*/
IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest
@@ -66,12 +65,12 @@ type IpamAPI interface {
IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error)
/*
- IpamAggregatesCreate Method for IpamAggregatesCreate
+ IpamAggregatesCreate Method for IpamAggregatesCreate
- Post a list of aggregate objects.
+ Post a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesCreateRequest
*/
IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest
@@ -80,13 +79,13 @@ type IpamAPI interface {
IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error)
/*
- IpamAggregatesDestroy Method for IpamAggregatesDestroy
+ IpamAggregatesDestroy Method for IpamAggregatesDestroy
- Delete a aggregate object.
+ Delete a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesDestroyRequest
*/
IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest
@@ -94,12 +93,12 @@ type IpamAPI interface {
IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error)
/*
- IpamAggregatesList Method for IpamAggregatesList
+ IpamAggregatesList Method for IpamAggregatesList
- Get a list of aggregate objects.
+ Get a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesListRequest
*/
IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest
@@ -108,13 +107,13 @@ type IpamAPI interface {
IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error)
/*
- IpamAggregatesPartialUpdate Method for IpamAggregatesPartialUpdate
+ IpamAggregatesPartialUpdate Method for IpamAggregatesPartialUpdate
- Patch a aggregate object.
+ Patch a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesPartialUpdateRequest
*/
IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest
@@ -123,13 +122,13 @@ type IpamAPI interface {
IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error)
/*
- IpamAggregatesRetrieve Method for IpamAggregatesRetrieve
+ IpamAggregatesRetrieve Method for IpamAggregatesRetrieve
- Get a aggregate object.
+ Get a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesRetrieveRequest
*/
IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest
@@ -138,13 +137,13 @@ type IpamAPI interface {
IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error)
/*
- IpamAggregatesUpdate Method for IpamAggregatesUpdate
+ IpamAggregatesUpdate Method for IpamAggregatesUpdate
- Put a aggregate object.
+ Put a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesUpdateRequest
*/
IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest
@@ -153,13 +152,13 @@ type IpamAPI interface {
IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error)
/*
- IpamAsnRangesAvailableAsnsCreate Method for IpamAsnRangesAvailableAsnsCreate
+ IpamAsnRangesAvailableAsnsCreate Method for IpamAsnRangesAvailableAsnsCreate
- Post a ASN object.
+ Post a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamAsnRangesAvailableAsnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamAsnRangesAvailableAsnsCreateRequest
*/
IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest
@@ -168,13 +167,13 @@ type IpamAPI interface {
IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error)
/*
- IpamAsnRangesAvailableAsnsList Method for IpamAsnRangesAvailableAsnsList
+ IpamAsnRangesAvailableAsnsList Method for IpamAsnRangesAvailableAsnsList
- Get a ASN object.
+ Get a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamAsnRangesAvailableAsnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamAsnRangesAvailableAsnsListRequest
*/
IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest
@@ -183,12 +182,12 @@ type IpamAPI interface {
IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error)
/*
- IpamAsnRangesBulkDestroy Method for IpamAsnRangesBulkDestroy
+ IpamAsnRangesBulkDestroy Method for IpamAsnRangesBulkDestroy
- Delete a list of ASN range objects.
+ Delete a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkDestroyRequest
*/
IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest
@@ -196,12 +195,12 @@ type IpamAPI interface {
IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error)
/*
- IpamAsnRangesBulkPartialUpdate Method for IpamAsnRangesBulkPartialUpdate
+ IpamAsnRangesBulkPartialUpdate Method for IpamAsnRangesBulkPartialUpdate
- Patch a list of ASN range objects.
+ Patch a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkPartialUpdateRequest
*/
IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest
@@ -210,12 +209,12 @@ type IpamAPI interface {
IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error)
/*
- IpamAsnRangesBulkUpdate Method for IpamAsnRangesBulkUpdate
+ IpamAsnRangesBulkUpdate Method for IpamAsnRangesBulkUpdate
- Put a list of ASN range objects.
+ Put a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkUpdateRequest
*/
IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest
@@ -224,12 +223,12 @@ type IpamAPI interface {
IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error)
/*
- IpamAsnRangesCreate Method for IpamAsnRangesCreate
+ IpamAsnRangesCreate Method for IpamAsnRangesCreate
- Post a list of ASN range objects.
+ Post a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesCreateRequest
*/
IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest
@@ -238,13 +237,13 @@ type IpamAPI interface {
IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error)
/*
- IpamAsnRangesDestroy Method for IpamAsnRangesDestroy
+ IpamAsnRangesDestroy Method for IpamAsnRangesDestroy
- Delete a ASN range object.
+ Delete a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesDestroyRequest
*/
IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest
@@ -252,12 +251,12 @@ type IpamAPI interface {
IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error)
/*
- IpamAsnRangesList Method for IpamAsnRangesList
+ IpamAsnRangesList Method for IpamAsnRangesList
- Get a list of ASN range objects.
+ Get a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesListRequest
*/
IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest
@@ -266,13 +265,13 @@ type IpamAPI interface {
IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error)
/*
- IpamAsnRangesPartialUpdate Method for IpamAsnRangesPartialUpdate
+ IpamAsnRangesPartialUpdate Method for IpamAsnRangesPartialUpdate
- Patch a ASN range object.
+ Patch a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesPartialUpdateRequest
*/
IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest
@@ -281,13 +280,13 @@ type IpamAPI interface {
IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error)
/*
- IpamAsnRangesRetrieve Method for IpamAsnRangesRetrieve
+ IpamAsnRangesRetrieve Method for IpamAsnRangesRetrieve
- Get a ASN range object.
+ Get a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesRetrieveRequest
*/
IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest
@@ -296,13 +295,13 @@ type IpamAPI interface {
IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error)
/*
- IpamAsnRangesUpdate Method for IpamAsnRangesUpdate
+ IpamAsnRangesUpdate Method for IpamAsnRangesUpdate
- Put a ASN range object.
+ Put a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesUpdateRequest
*/
IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest
@@ -311,12 +310,12 @@ type IpamAPI interface {
IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error)
/*
- IpamAsnsBulkDestroy Method for IpamAsnsBulkDestroy
+ IpamAsnsBulkDestroy Method for IpamAsnsBulkDestroy
- Delete a list of ASN objects.
+ Delete a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkDestroyRequest
*/
IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest
@@ -324,12 +323,12 @@ type IpamAPI interface {
IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error)
/*
- IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate
+ IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate
- Patch a list of ASN objects.
+ Patch a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkPartialUpdateRequest
*/
IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest
@@ -338,12 +337,12 @@ type IpamAPI interface {
IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error)
/*
- IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate
+ IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate
- Put a list of ASN objects.
+ Put a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkUpdateRequest
*/
IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest
@@ -352,12 +351,12 @@ type IpamAPI interface {
IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error)
/*
- IpamAsnsCreate Method for IpamAsnsCreate
+ IpamAsnsCreate Method for IpamAsnsCreate
- Post a list of ASN objects.
+ Post a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsCreateRequest
*/
IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest
@@ -366,13 +365,13 @@ type IpamAPI interface {
IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error)
/*
- IpamAsnsDestroy Method for IpamAsnsDestroy
+ IpamAsnsDestroy Method for IpamAsnsDestroy
- Delete a ASN object.
+ Delete a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsDestroyRequest
*/
IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest
@@ -380,12 +379,12 @@ type IpamAPI interface {
IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*http.Response, error)
/*
- IpamAsnsList Method for IpamAsnsList
+ IpamAsnsList Method for IpamAsnsList
- Get a list of ASN objects.
+ Get a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsListRequest
*/
IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest
@@ -394,13 +393,13 @@ type IpamAPI interface {
IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error)
/*
- IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate
+ IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate
- Patch a ASN object.
+ Patch a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsPartialUpdateRequest
*/
IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest
@@ -409,13 +408,13 @@ type IpamAPI interface {
IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error)
/*
- IpamAsnsRetrieve Method for IpamAsnsRetrieve
+ IpamAsnsRetrieve Method for IpamAsnsRetrieve
- Get a ASN object.
+ Get a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsRetrieveRequest
*/
IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest
@@ -424,13 +423,13 @@ type IpamAPI interface {
IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error)
/*
- IpamAsnsUpdate Method for IpamAsnsUpdate
+ IpamAsnsUpdate Method for IpamAsnsUpdate
- Put a ASN object.
+ Put a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsUpdateRequest
*/
IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest
@@ -439,12 +438,12 @@ type IpamAPI interface {
IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestroy
+ IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestroy
- Delete a list of FHRP group assignment objects.
+ Delete a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest
*/
IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest
@@ -452,12 +451,12 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*http.Response, error)
/*
- IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBulkPartialUpdate
+ IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBulkPartialUpdate
- Patch a list of FHRP group assignment objects.
+ Patch a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest
*/
IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest
@@ -466,12 +465,12 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate
+ IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate
- Put a list of FHRP group assignment objects.
+ Put a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest
*/
IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest
@@ -480,12 +479,12 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate
+ IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate
- Post a list of FHRP group assignment objects.
+ Post a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsCreateRequest
*/
IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest
@@ -494,13 +493,13 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy
+ IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy
- Delete a FHRP group assignment object.
+ Delete a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsDestroyRequest
*/
IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest
@@ -508,12 +507,12 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*http.Response, error)
/*
- IpamFhrpGroupAssignmentsList Method for IpamFhrpGroupAssignmentsList
+ IpamFhrpGroupAssignmentsList Method for IpamFhrpGroupAssignmentsList
- Get a list of FHRP group assignment objects.
+ Get a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsListRequest
*/
IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest
@@ -522,13 +521,13 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartialUpdate
+ IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartialUpdate
- Patch a FHRP group assignment object.
+ Patch a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest
*/
IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest
@@ -537,13 +536,13 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve
+ IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve
- Get a FHRP group assignment object.
+ Get a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsRetrieveRequest
*/
IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest
@@ -552,13 +551,13 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate
+ IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate
- Put a FHRP group assignment object.
+ Put a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsUpdateRequest
*/
IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest
@@ -567,12 +566,12 @@ type IpamAPI interface {
IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error)
/*
- IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy
+ IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy
- Delete a list of FHRP group objects.
+ Delete a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkDestroyRequest
*/
IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest
@@ -580,12 +579,12 @@ type IpamAPI interface {
IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*http.Response, error)
/*
- IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate
+ IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate
- Patch a list of FHRP group objects.
+ Patch a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkPartialUpdateRequest
*/
IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest
@@ -594,12 +593,12 @@ type IpamAPI interface {
IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error)
/*
- IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate
+ IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate
- Put a list of FHRP group objects.
+ Put a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkUpdateRequest
*/
IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest
@@ -608,12 +607,12 @@ type IpamAPI interface {
IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error)
/*
- IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate
+ IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate
- Post a list of FHRP group objects.
+ Post a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsCreateRequest
*/
IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest
@@ -622,13 +621,13 @@ type IpamAPI interface {
IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error)
/*
- IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy
+ IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy
- Delete a FHRP group object.
+ Delete a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsDestroyRequest
*/
IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest
@@ -636,12 +635,12 @@ type IpamAPI interface {
IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*http.Response, error)
/*
- IpamFhrpGroupsList Method for IpamFhrpGroupsList
+ IpamFhrpGroupsList Method for IpamFhrpGroupsList
- Get a list of FHRP group objects.
+ Get a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsListRequest
*/
IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest
@@ -650,13 +649,13 @@ type IpamAPI interface {
IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error)
/*
- IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate
+ IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate
- Patch a FHRP group object.
+ Patch a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsPartialUpdateRequest
*/
IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest
@@ -665,13 +664,13 @@ type IpamAPI interface {
IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error)
/*
- IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve
+ IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve
- Get a FHRP group object.
+ Get a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsRetrieveRequest
*/
IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest
@@ -680,13 +679,13 @@ type IpamAPI interface {
IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error)
/*
- IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate
+ IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate
- Put a FHRP group object.
+ Put a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsUpdateRequest
*/
IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest
@@ -695,12 +694,12 @@ type IpamAPI interface {
IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error)
/*
- IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy
+ IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy
- Delete a list of IP address objects.
+ Delete a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkDestroyRequest
*/
IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest
@@ -708,12 +707,12 @@ type IpamAPI interface {
IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*http.Response, error)
/*
- IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate
+ IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate
- Patch a list of IP address objects.
+ Patch a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkPartialUpdateRequest
*/
IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest
@@ -722,12 +721,12 @@ type IpamAPI interface {
IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error)
/*
- IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate
+ IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate
- Put a list of IP address objects.
+ Put a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkUpdateRequest
*/
IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest
@@ -736,12 +735,12 @@ type IpamAPI interface {
IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error)
/*
- IpamIpAddressesCreate Method for IpamIpAddressesCreate
+ IpamIpAddressesCreate Method for IpamIpAddressesCreate
- Post a list of IP address objects.
+ Post a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesCreateRequest
*/
IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest
@@ -750,13 +749,13 @@ type IpamAPI interface {
IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error)
/*
- IpamIpAddressesDestroy Method for IpamIpAddressesDestroy
+ IpamIpAddressesDestroy Method for IpamIpAddressesDestroy
- Delete a IP address object.
+ Delete a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesDestroyRequest
*/
IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest
@@ -764,12 +763,12 @@ type IpamAPI interface {
IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*http.Response, error)
/*
- IpamIpAddressesList Method for IpamIpAddressesList
+ IpamIpAddressesList Method for IpamIpAddressesList
- Get a list of IP address objects.
+ Get a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesListRequest
*/
IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest
@@ -778,13 +777,13 @@ type IpamAPI interface {
IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error)
/*
- IpamIpAddressesPartialUpdate Method for IpamIpAddressesPartialUpdate
+ IpamIpAddressesPartialUpdate Method for IpamIpAddressesPartialUpdate
- Patch a IP address object.
+ Patch a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesPartialUpdateRequest
*/
IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest
@@ -793,13 +792,13 @@ type IpamAPI interface {
IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error)
/*
- IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve
+ IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve
- Get a IP address object.
+ Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesRetrieveRequest
*/
IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest
@@ -808,13 +807,13 @@ type IpamAPI interface {
IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error)
/*
- IpamIpAddressesUpdate Method for IpamIpAddressesUpdate
+ IpamIpAddressesUpdate Method for IpamIpAddressesUpdate
- Put a IP address object.
+ Put a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesUpdateRequest
*/
IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest
@@ -823,13 +822,13 @@ type IpamAPI interface {
IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error)
/*
- IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate
+ IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate
- Post a IP address object.
+ Post a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamIpRangesAvailableIpsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamIpRangesAvailableIpsCreateRequest
*/
IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest
@@ -838,13 +837,13 @@ type IpamAPI interface {
IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error)
/*
- IpamIpRangesAvailableIpsList Method for IpamIpRangesAvailableIpsList
+ IpamIpRangesAvailableIpsList Method for IpamIpRangesAvailableIpsList
- Get a IP address object.
+ Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamIpRangesAvailableIpsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamIpRangesAvailableIpsListRequest
*/
IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest
@@ -853,12 +852,12 @@ type IpamAPI interface {
IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error)
/*
- IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy
+ IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy
- Delete a list of IP range objects.
+ Delete a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkDestroyRequest
*/
IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest
@@ -866,12 +865,12 @@ type IpamAPI interface {
IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*http.Response, error)
/*
- IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate
+ IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate
- Patch a list of IP range objects.
+ Patch a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkPartialUpdateRequest
*/
IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest
@@ -880,12 +879,12 @@ type IpamAPI interface {
IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error)
/*
- IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate
+ IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate
- Put a list of IP range objects.
+ Put a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkUpdateRequest
*/
IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest
@@ -894,12 +893,12 @@ type IpamAPI interface {
IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error)
/*
- IpamIpRangesCreate Method for IpamIpRangesCreate
+ IpamIpRangesCreate Method for IpamIpRangesCreate
- Post a list of IP range objects.
+ Post a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesCreateRequest
*/
IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest
@@ -908,13 +907,13 @@ type IpamAPI interface {
IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error)
/*
- IpamIpRangesDestroy Method for IpamIpRangesDestroy
+ IpamIpRangesDestroy Method for IpamIpRangesDestroy
- Delete a IP range object.
+ Delete a IP range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesDestroyRequest
*/
IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest
@@ -922,12 +921,12 @@ type IpamAPI interface {
IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*http.Response, error)
/*
- IpamIpRangesList Method for IpamIpRangesList
+ IpamIpRangesList Method for IpamIpRangesList
- Get a list of IP range objects.
+ Get a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesListRequest
*/
IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest
@@ -936,13 +935,13 @@ type IpamAPI interface {
IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error)
/*
- IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate
+ IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate
- Patch a IP range 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 IP range.
- @return ApiIpamIpRangesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesPartialUpdateRequest
*/
IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest
@@ -951,13 +950,13 @@ type IpamAPI interface {
IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error)
/*
- IpamIpRangesRetrieve Method for IpamIpRangesRetrieve
+ IpamIpRangesRetrieve Method for IpamIpRangesRetrieve
- Get a IP range 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 IP range.
- @return ApiIpamIpRangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesRetrieveRequest
*/
IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest
@@ -966,13 +965,13 @@ type IpamAPI interface {
IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error)
/*
- IpamIpRangesUpdate Method for IpamIpRangesUpdate
+ IpamIpRangesUpdate Method for IpamIpRangesUpdate
- Put a IP range 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 IP range.
- @return ApiIpamIpRangesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesUpdateRequest
*/
IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest
@@ -981,13 +980,13 @@ type IpamAPI interface {
IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error)
/*
- IpamPrefixesAvailableIpsCreate Method for IpamPrefixesAvailableIpsCreate
+ IpamPrefixesAvailableIpsCreate Method for IpamPrefixesAvailableIpsCreate
- Post a IP address object.
+ Post a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailableIpsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailableIpsCreateRequest
*/
IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest
@@ -996,13 +995,13 @@ type IpamAPI interface {
IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error)
/*
- IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList
+ IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList
- Get a IP address object.
+ Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailableIpsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailableIpsListRequest
*/
IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest
@@ -1011,13 +1010,13 @@ type IpamAPI interface {
IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error)
/*
- IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCreate
+ IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCreate
- Post a prefix object.
+ Post a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailablePrefixesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailablePrefixesCreateRequest
*/
IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest
@@ -1026,13 +1025,13 @@ type IpamAPI interface {
IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error)
/*
- IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList
+ IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList
- Get a prefix object.
+ Get a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailablePrefixesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailablePrefixesListRequest
*/
IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest
@@ -1041,12 +1040,12 @@ type IpamAPI interface {
IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error)
/*
- IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy
+ IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy
- Delete a list of prefix objects.
+ Delete a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkDestroyRequest
*/
IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest
@@ -1054,12 +1053,12 @@ type IpamAPI interface {
IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*http.Response, error)
/*
- IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate
+ IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate
- Patch a list of prefix objects.
+ Patch a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkPartialUpdateRequest
*/
IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest
@@ -1068,12 +1067,12 @@ type IpamAPI interface {
IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error)
/*
- IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate
+ IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate
- Put a list of prefix objects.
+ Put a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkUpdateRequest
*/
IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest
@@ -1082,12 +1081,12 @@ type IpamAPI interface {
IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error)
/*
- IpamPrefixesCreate Method for IpamPrefixesCreate
+ IpamPrefixesCreate Method for IpamPrefixesCreate
- Post a list of prefix objects.
+ Post a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesCreateRequest
*/
IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest
@@ -1096,13 +1095,13 @@ type IpamAPI interface {
IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error)
/*
- IpamPrefixesDestroy Method for IpamPrefixesDestroy
+ IpamPrefixesDestroy Method for IpamPrefixesDestroy
- Delete a prefix object.
+ Delete a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesDestroyRequest
*/
IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest
@@ -1110,12 +1109,12 @@ type IpamAPI interface {
IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*http.Response, error)
/*
- IpamPrefixesList Method for IpamPrefixesList
+ IpamPrefixesList Method for IpamPrefixesList
- Get a list of prefix objects.
+ Get a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesListRequest
*/
IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest
@@ -1124,13 +1123,13 @@ type IpamAPI interface {
IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error)
/*
- IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate
+ IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate
- Patch a prefix object.
+ Patch a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesPartialUpdateRequest
*/
IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest
@@ -1139,13 +1138,13 @@ type IpamAPI interface {
IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error)
/*
- IpamPrefixesRetrieve Method for IpamPrefixesRetrieve
+ IpamPrefixesRetrieve Method for IpamPrefixesRetrieve
- Get a prefix object.
+ Get a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesRetrieveRequest
*/
IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest
@@ -1154,13 +1153,13 @@ type IpamAPI interface {
IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error)
/*
- IpamPrefixesUpdate Method for IpamPrefixesUpdate
+ IpamPrefixesUpdate Method for IpamPrefixesUpdate
- Put a prefix object.
+ Put a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesUpdateRequest
*/
IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest
@@ -1169,12 +1168,12 @@ type IpamAPI interface {
IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error)
/*
- IpamRirsBulkDestroy Method for IpamRirsBulkDestroy
+ IpamRirsBulkDestroy Method for IpamRirsBulkDestroy
- Delete a list of RIR objects.
+ Delete a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkDestroyRequest
*/
IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest
@@ -1182,12 +1181,12 @@ type IpamAPI interface {
IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*http.Response, error)
/*
- IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate
+ IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate
- Patch a list of RIR objects.
+ Patch a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkPartialUpdateRequest
*/
IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest
@@ -1196,12 +1195,12 @@ type IpamAPI interface {
IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error)
/*
- IpamRirsBulkUpdate Method for IpamRirsBulkUpdate
+ IpamRirsBulkUpdate Method for IpamRirsBulkUpdate
- Put a list of RIR objects.
+ Put a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkUpdateRequest
*/
IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest
@@ -1210,12 +1209,12 @@ type IpamAPI interface {
IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error)
/*
- IpamRirsCreate Method for IpamRirsCreate
+ IpamRirsCreate Method for IpamRirsCreate
- Post a list of RIR objects.
+ Post a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsCreateRequest
*/
IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest
@@ -1224,13 +1223,13 @@ type IpamAPI interface {
IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error)
/*
- IpamRirsDestroy Method for IpamRirsDestroy
+ IpamRirsDestroy Method for IpamRirsDestroy
- Delete a RIR object.
+ Delete a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsDestroyRequest
*/
IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest
@@ -1238,12 +1237,12 @@ type IpamAPI interface {
IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*http.Response, error)
/*
- IpamRirsList Method for IpamRirsList
+ IpamRirsList Method for IpamRirsList
- Get a list of RIR objects.
+ Get a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsListRequest
*/
IpamRirsList(ctx context.Context) ApiIpamRirsListRequest
@@ -1252,13 +1251,13 @@ type IpamAPI interface {
IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error)
/*
- IpamRirsPartialUpdate Method for IpamRirsPartialUpdate
+ IpamRirsPartialUpdate Method for IpamRirsPartialUpdate
- Patch a RIR object.
+ Patch a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsPartialUpdateRequest
*/
IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest
@@ -1267,13 +1266,13 @@ type IpamAPI interface {
IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error)
/*
- IpamRirsRetrieve Method for IpamRirsRetrieve
+ IpamRirsRetrieve Method for IpamRirsRetrieve
- Get a RIR object.
+ Get a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsRetrieveRequest
*/
IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest
@@ -1282,13 +1281,13 @@ type IpamAPI interface {
IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error)
/*
- IpamRirsUpdate Method for IpamRirsUpdate
+ IpamRirsUpdate Method for IpamRirsUpdate
- Put a RIR object.
+ Put a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsUpdateRequest
*/
IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest
@@ -1297,12 +1296,12 @@ type IpamAPI interface {
IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error)
/*
- IpamRolesBulkDestroy Method for IpamRolesBulkDestroy
+ IpamRolesBulkDestroy Method for IpamRolesBulkDestroy
- Delete a list of role objects.
+ Delete a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkDestroyRequest
*/
IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest
@@ -1310,12 +1309,12 @@ type IpamAPI interface {
IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*http.Response, error)
/*
- IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate
+ IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate
- Patch a list of role objects.
+ Patch a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkPartialUpdateRequest
*/
IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest
@@ -1324,12 +1323,12 @@ type IpamAPI interface {
IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error)
/*
- IpamRolesBulkUpdate Method for IpamRolesBulkUpdate
+ IpamRolesBulkUpdate Method for IpamRolesBulkUpdate
- Put a list of role objects.
+ Put a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkUpdateRequest
*/
IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest
@@ -1338,12 +1337,12 @@ type IpamAPI interface {
IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error)
/*
- IpamRolesCreate Method for IpamRolesCreate
+ IpamRolesCreate Method for IpamRolesCreate
- Post a list of role objects.
+ Post a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesCreateRequest
*/
IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest
@@ -1352,13 +1351,13 @@ type IpamAPI interface {
IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error)
/*
- IpamRolesDestroy Method for IpamRolesDestroy
+ IpamRolesDestroy Method for IpamRolesDestroy
- Delete a role object.
+ Delete a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesDestroyRequest
*/
IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest
@@ -1366,12 +1365,12 @@ type IpamAPI interface {
IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*http.Response, error)
/*
- IpamRolesList Method for IpamRolesList
+ IpamRolesList Method for IpamRolesList
- Get a list of role objects.
+ Get a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesListRequest
*/
IpamRolesList(ctx context.Context) ApiIpamRolesListRequest
@@ -1380,13 +1379,13 @@ type IpamAPI interface {
IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error)
/*
- IpamRolesPartialUpdate Method for IpamRolesPartialUpdate
+ IpamRolesPartialUpdate Method for IpamRolesPartialUpdate
- Patch a role object.
+ Patch a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesPartialUpdateRequest
*/
IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest
@@ -1395,13 +1394,13 @@ type IpamAPI interface {
IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error)
/*
- IpamRolesRetrieve Method for IpamRolesRetrieve
+ IpamRolesRetrieve Method for IpamRolesRetrieve
- Get a role object.
+ Get a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesRetrieveRequest
*/
IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest
@@ -1410,13 +1409,13 @@ type IpamAPI interface {
IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error)
/*
- IpamRolesUpdate Method for IpamRolesUpdate
+ IpamRolesUpdate Method for IpamRolesUpdate
- Put a role object.
+ Put a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesUpdateRequest
*/
IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest
@@ -1425,12 +1424,12 @@ type IpamAPI interface {
IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error)
/*
- IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy
+ IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy
- Delete a list of route target objects.
+ Delete a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkDestroyRequest
*/
IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest
@@ -1438,12 +1437,12 @@ type IpamAPI interface {
IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*http.Response, error)
/*
- IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate
+ IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate
- Patch a list of route target objects.
+ Patch a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkPartialUpdateRequest
*/
IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest
@@ -1452,12 +1451,12 @@ type IpamAPI interface {
IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error)
/*
- IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate
+ IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate
- Put a list of route target objects.
+ Put a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkUpdateRequest
*/
IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest
@@ -1466,12 +1465,12 @@ type IpamAPI interface {
IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error)
/*
- IpamRouteTargetsCreate Method for IpamRouteTargetsCreate
+ IpamRouteTargetsCreate Method for IpamRouteTargetsCreate
- Post a list of route target objects.
+ Post a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsCreateRequest
*/
IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest
@@ -1480,13 +1479,13 @@ type IpamAPI interface {
IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error)
/*
- IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy
+ IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy
- Delete a route target object.
+ Delete a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsDestroyRequest
*/
IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest
@@ -1494,12 +1493,12 @@ type IpamAPI interface {
IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*http.Response, error)
/*
- IpamRouteTargetsList Method for IpamRouteTargetsList
+ IpamRouteTargetsList Method for IpamRouteTargetsList
- Get a list of route target objects.
+ Get a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsListRequest
*/
IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest
@@ -1508,13 +1507,13 @@ type IpamAPI interface {
IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error)
/*
- IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate
+ IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate
- Patch a route target object.
+ Patch a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsPartialUpdateRequest
*/
IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest
@@ -1523,13 +1522,13 @@ type IpamAPI interface {
IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error)
/*
- IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve
+ IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve
- Get a route target object.
+ Get a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsRetrieveRequest
*/
IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest
@@ -1538,13 +1537,13 @@ type IpamAPI interface {
IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error)
/*
- IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate
+ IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate
- Put a route target object.
+ Put a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsUpdateRequest
*/
IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest
@@ -1553,12 +1552,12 @@ type IpamAPI interface {
IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error)
/*
- IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy
+ IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy
- Delete a list of service template objects.
+ Delete a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkDestroyRequest
*/
IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest
@@ -1566,12 +1565,12 @@ type IpamAPI interface {
IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*http.Response, error)
/*
- IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartialUpdate
+ IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartialUpdate
- Patch a list of service template objects.
+ Patch a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkPartialUpdateRequest
*/
IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest
@@ -1580,12 +1579,12 @@ type IpamAPI interface {
IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error)
/*
- IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate
+ IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate
- Put a list of service template objects.
+ Put a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkUpdateRequest
*/
IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest
@@ -1594,12 +1593,12 @@ type IpamAPI interface {
IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error)
/*
- IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate
+ IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate
- Post a list of service template objects.
+ Post a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesCreateRequest
*/
IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest
@@ -1608,13 +1607,13 @@ type IpamAPI interface {
IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error)
/*
- IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy
+ IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy
- Delete a service template object.
+ Delete a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesDestroyRequest
*/
IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest
@@ -1622,12 +1621,12 @@ type IpamAPI interface {
IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*http.Response, error)
/*
- IpamServiceTemplatesList Method for IpamServiceTemplatesList
+ IpamServiceTemplatesList Method for IpamServiceTemplatesList
- Get a list of service template objects.
+ Get a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesListRequest
*/
IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest
@@ -1636,13 +1635,13 @@ type IpamAPI interface {
IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error)
/*
- IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate
+ IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate
- Patch a service template object.
+ Patch a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesPartialUpdateRequest
*/
IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest
@@ -1651,13 +1650,13 @@ type IpamAPI interface {
IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error)
/*
- IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve
+ IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve
- Get a service template object.
+ Get a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesRetrieveRequest
*/
IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest
@@ -1666,13 +1665,13 @@ type IpamAPI interface {
IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error)
/*
- IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate
+ IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate
- Put a service template object.
+ Put a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesUpdateRequest
*/
IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest
@@ -1681,12 +1680,12 @@ type IpamAPI interface {
IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error)
/*
- IpamServicesBulkDestroy Method for IpamServicesBulkDestroy
+ IpamServicesBulkDestroy Method for IpamServicesBulkDestroy
- Delete a list of service objects.
+ Delete a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkDestroyRequest
*/
IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest
@@ -1694,12 +1693,12 @@ type IpamAPI interface {
IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error)
/*
- IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate
+ IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate
- Patch a list of service objects.
+ Patch a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkPartialUpdateRequest
*/
IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest
@@ -1708,12 +1707,12 @@ type IpamAPI interface {
IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error)
/*
- IpamServicesBulkUpdate Method for IpamServicesBulkUpdate
+ IpamServicesBulkUpdate Method for IpamServicesBulkUpdate
- Put a list of service objects.
+ Put a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkUpdateRequest
*/
IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest
@@ -1722,12 +1721,12 @@ type IpamAPI interface {
IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error)
/*
- IpamServicesCreate Method for IpamServicesCreate
+ IpamServicesCreate Method for IpamServicesCreate
- Post a list of service objects.
+ Post a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesCreateRequest
*/
IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest
@@ -1736,13 +1735,13 @@ type IpamAPI interface {
IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error)
/*
- IpamServicesDestroy Method for IpamServicesDestroy
+ IpamServicesDestroy Method for IpamServicesDestroy
- Delete a service object.
+ Delete a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesDestroyRequest
*/
IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest
@@ -1750,12 +1749,12 @@ type IpamAPI interface {
IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequest) (*http.Response, error)
/*
- IpamServicesList Method for IpamServicesList
+ IpamServicesList Method for IpamServicesList
- Get a list of service objects.
+ Get a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesListRequest
*/
IpamServicesList(ctx context.Context) ApiIpamServicesListRequest
@@ -1764,13 +1763,13 @@ type IpamAPI interface {
IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error)
/*
- IpamServicesPartialUpdate Method for IpamServicesPartialUpdate
+ IpamServicesPartialUpdate Method for IpamServicesPartialUpdate
- Patch a service object.
+ Patch a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesPartialUpdateRequest
*/
IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest
@@ -1779,13 +1778,13 @@ type IpamAPI interface {
IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error)
/*
- IpamServicesRetrieve Method for IpamServicesRetrieve
+ IpamServicesRetrieve Method for IpamServicesRetrieve
- Get a service object.
+ Get a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesRetrieveRequest
*/
IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest
@@ -1794,13 +1793,13 @@ type IpamAPI interface {
IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error)
/*
- IpamServicesUpdate Method for IpamServicesUpdate
+ IpamServicesUpdate Method for IpamServicesUpdate
- Put a service object.
+ Put a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesUpdateRequest
*/
IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest
@@ -1809,13 +1808,13 @@ type IpamAPI interface {
IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error)
/*
- IpamVlanGroupsAvailableVlansCreate Method for IpamVlanGroupsAvailableVlansCreate
+ IpamVlanGroupsAvailableVlansCreate Method for IpamVlanGroupsAvailableVlansCreate
- Post a VLAN object.
+ Post a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamVlanGroupsAvailableVlansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamVlanGroupsAvailableVlansCreateRequest
*/
IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest
@@ -1824,13 +1823,13 @@ type IpamAPI interface {
IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error)
/*
- IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList
+ IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList
- Get a VLAN object.
+ Get a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamVlanGroupsAvailableVlansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamVlanGroupsAvailableVlansListRequest
*/
IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest
@@ -1839,12 +1838,12 @@ type IpamAPI interface {
IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error)
/*
- IpamVlanGroupsBulkDestroy Method for IpamVlanGroupsBulkDestroy
+ IpamVlanGroupsBulkDestroy Method for IpamVlanGroupsBulkDestroy
- Delete a list of VLAN group objects.
+ Delete a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkDestroyRequest
*/
IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest
@@ -1852,12 +1851,12 @@ type IpamAPI interface {
IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error)
/*
- IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate
+ IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate
- Patch a list of VLAN group objects.
+ Patch a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkPartialUpdateRequest
*/
IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest
@@ -1866,12 +1865,12 @@ type IpamAPI interface {
IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error)
/*
- IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate
+ IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate
- Put a list of VLAN group objects.
+ Put a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkUpdateRequest
*/
IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest
@@ -1880,12 +1879,12 @@ type IpamAPI interface {
IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error)
/*
- IpamVlanGroupsCreate Method for IpamVlanGroupsCreate
+ IpamVlanGroupsCreate Method for IpamVlanGroupsCreate
- Post a list of VLAN group objects.
+ Post a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsCreateRequest
*/
IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest
@@ -1894,13 +1893,13 @@ type IpamAPI interface {
IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error)
/*
- IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy
+ IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy
- Delete a VLAN group object.
+ Delete a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsDestroyRequest
*/
IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest
@@ -1908,12 +1907,12 @@ type IpamAPI interface {
IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroyRequest) (*http.Response, error)
/*
- IpamVlanGroupsList Method for IpamVlanGroupsList
+ IpamVlanGroupsList Method for IpamVlanGroupsList
- Get a list of VLAN group objects.
+ Get a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsListRequest
*/
IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest
@@ -1922,13 +1921,13 @@ type IpamAPI interface {
IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error)
/*
- IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate
+ IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate
- Patch a VLAN group object.
+ Patch a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsPartialUpdateRequest
*/
IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest
@@ -1937,13 +1936,13 @@ type IpamAPI interface {
IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error)
/*
- IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve
+ IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve
- Get a VLAN group object.
+ Get a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsRetrieveRequest
*/
IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest
@@ -1952,13 +1951,13 @@ type IpamAPI interface {
IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error)
/*
- IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate
+ IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate
- Put a VLAN group object.
+ Put a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsUpdateRequest
*/
IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest
@@ -1967,12 +1966,12 @@ type IpamAPI interface {
IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error)
/*
- IpamVlanTranslationPoliciesBulkDestroy Method for IpamVlanTranslationPoliciesBulkDestroy
+ IpamVlanTranslationPoliciesBulkDestroy Method for IpamVlanTranslationPoliciesBulkDestroy
- Delete a list of VLAN translation policy objects.
+ Delete a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkDestroyRequest
*/
IpamVlanTranslationPoliciesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkDestroyRequest
@@ -1980,12 +1979,12 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesBulkDestroyExecute(r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) (*http.Response, error)
/*
- IpamVlanTranslationPoliciesBulkPartialUpdate Method for IpamVlanTranslationPoliciesBulkPartialUpdate
+ IpamVlanTranslationPoliciesBulkPartialUpdate Method for IpamVlanTranslationPoliciesBulkPartialUpdate
- Patch a list of VLAN translation policy objects.
+ Patch a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest
*/
IpamVlanTranslationPoliciesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest
@@ -1994,12 +1993,12 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationPoliciesBulkUpdate Method for IpamVlanTranslationPoliciesBulkUpdate
+ IpamVlanTranslationPoliciesBulkUpdate Method for IpamVlanTranslationPoliciesBulkUpdate
- Put a list of VLAN translation policy objects.
+ Put a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkUpdateRequest
*/
IpamVlanTranslationPoliciesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkUpdateRequest
@@ -2008,12 +2007,12 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesBulkUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationPoliciesCreate Method for IpamVlanTranslationPoliciesCreate
+ IpamVlanTranslationPoliciesCreate Method for IpamVlanTranslationPoliciesCreate
- Post a list of VLAN translation policy objects.
+ Post a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesCreateRequest
*/
IpamVlanTranslationPoliciesCreate(ctx context.Context) ApiIpamVlanTranslationPoliciesCreateRequest
@@ -2022,13 +2021,13 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesCreateExecute(r ApiIpamVlanTranslationPoliciesCreateRequest) (*VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationPoliciesDestroy Method for IpamVlanTranslationPoliciesDestroy
+ IpamVlanTranslationPoliciesDestroy Method for IpamVlanTranslationPoliciesDestroy
- Delete a VLAN translation policy object.
+ Delete a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesDestroyRequest
*/
IpamVlanTranslationPoliciesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesDestroyRequest
@@ -2036,12 +2035,12 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesDestroyExecute(r ApiIpamVlanTranslationPoliciesDestroyRequest) (*http.Response, error)
/*
- IpamVlanTranslationPoliciesList Method for IpamVlanTranslationPoliciesList
+ IpamVlanTranslationPoliciesList Method for IpamVlanTranslationPoliciesList
- Get a list of VLAN translation policy objects.
+ Get a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesListRequest
*/
IpamVlanTranslationPoliciesList(ctx context.Context) ApiIpamVlanTranslationPoliciesListRequest
@@ -2050,13 +2049,13 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTranslationPoliciesListRequest) (*PaginatedVLANTranslationPolicyList, *http.Response, error)
/*
- IpamVlanTranslationPoliciesPartialUpdate Method for IpamVlanTranslationPoliciesPartialUpdate
+ IpamVlanTranslationPoliciesPartialUpdate Method for IpamVlanTranslationPoliciesPartialUpdate
- Patch a VLAN translation policy object.
+ Patch a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest
*/
IpamVlanTranslationPoliciesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesPartialUpdateRequest
@@ -2065,13 +2064,13 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) (*VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationPoliciesRetrieve Method for IpamVlanTranslationPoliciesRetrieve
+ IpamVlanTranslationPoliciesRetrieve Method for IpamVlanTranslationPoliciesRetrieve
- Get a VLAN translation policy object.
+ Get a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesRetrieveRequest
*/
IpamVlanTranslationPoliciesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesRetrieveRequest
@@ -2080,13 +2079,13 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesRetrieveExecute(r ApiIpamVlanTranslationPoliciesRetrieveRequest) (*VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationPoliciesUpdate Method for IpamVlanTranslationPoliciesUpdate
+ IpamVlanTranslationPoliciesUpdate Method for IpamVlanTranslationPoliciesUpdate
- Put a VLAN translation policy object.
+ Put a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesUpdateRequest
*/
IpamVlanTranslationPoliciesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesUpdateRequest
@@ -2095,12 +2094,12 @@ type IpamAPI interface {
IpamVlanTranslationPoliciesUpdateExecute(r ApiIpamVlanTranslationPoliciesUpdateRequest) (*VLANTranslationPolicy, *http.Response, error)
/*
- IpamVlanTranslationRulesBulkDestroy Method for IpamVlanTranslationRulesBulkDestroy
+ IpamVlanTranslationRulesBulkDestroy Method for IpamVlanTranslationRulesBulkDestroy
- Delete a list of VLAN translation rule objects.
+ Delete a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkDestroyRequest
*/
IpamVlanTranslationRulesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationRulesBulkDestroyRequest
@@ -2108,12 +2107,12 @@ type IpamAPI interface {
IpamVlanTranslationRulesBulkDestroyExecute(r ApiIpamVlanTranslationRulesBulkDestroyRequest) (*http.Response, error)
/*
- IpamVlanTranslationRulesBulkPartialUpdate Method for IpamVlanTranslationRulesBulkPartialUpdate
+ IpamVlanTranslationRulesBulkPartialUpdate Method for IpamVlanTranslationRulesBulkPartialUpdate
- Patch a list of VLAN translation rule objects.
+ Patch a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest
*/
IpamVlanTranslationRulesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkPartialUpdateRequest
@@ -2122,12 +2121,12 @@ type IpamAPI interface {
IpamVlanTranslationRulesBulkPartialUpdateExecute(r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) ([]VLANTranslationRule, *http.Response, error)
/*
- IpamVlanTranslationRulesBulkUpdate Method for IpamVlanTranslationRulesBulkUpdate
+ IpamVlanTranslationRulesBulkUpdate Method for IpamVlanTranslationRulesBulkUpdate
- Put a list of VLAN translation rule objects.
+ Put a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkUpdateRequest
*/
IpamVlanTranslationRulesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkUpdateRequest
@@ -2136,12 +2135,12 @@ type IpamAPI interface {
IpamVlanTranslationRulesBulkUpdateExecute(r ApiIpamVlanTranslationRulesBulkUpdateRequest) ([]VLANTranslationRule, *http.Response, error)
/*
- IpamVlanTranslationRulesCreate Method for IpamVlanTranslationRulesCreate
+ IpamVlanTranslationRulesCreate Method for IpamVlanTranslationRulesCreate
- Post a list of VLAN translation rule objects.
+ Post a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesCreateRequest
*/
IpamVlanTranslationRulesCreate(ctx context.Context) ApiIpamVlanTranslationRulesCreateRequest
@@ -2150,13 +2149,13 @@ type IpamAPI interface {
IpamVlanTranslationRulesCreateExecute(r ApiIpamVlanTranslationRulesCreateRequest) (*VLANTranslationRule, *http.Response, error)
/*
- IpamVlanTranslationRulesDestroy Method for IpamVlanTranslationRulesDestroy
+ IpamVlanTranslationRulesDestroy Method for IpamVlanTranslationRulesDestroy
- Delete a VLAN translation rule object.
+ Delete a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesDestroyRequest
*/
IpamVlanTranslationRulesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationRulesDestroyRequest
@@ -2164,12 +2163,12 @@ type IpamAPI interface {
IpamVlanTranslationRulesDestroyExecute(r ApiIpamVlanTranslationRulesDestroyRequest) (*http.Response, error)
/*
- IpamVlanTranslationRulesList Method for IpamVlanTranslationRulesList
+ IpamVlanTranslationRulesList Method for IpamVlanTranslationRulesList
- Get a list of VLAN translation rule objects.
+ Get a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesListRequest
*/
IpamVlanTranslationRulesList(ctx context.Context) ApiIpamVlanTranslationRulesListRequest
@@ -2178,13 +2177,13 @@ type IpamAPI interface {
IpamVlanTranslationRulesListExecute(r ApiIpamVlanTranslationRulesListRequest) (*PaginatedVLANTranslationRuleList, *http.Response, error)
/*
- IpamVlanTranslationRulesPartialUpdate Method for IpamVlanTranslationRulesPartialUpdate
+ IpamVlanTranslationRulesPartialUpdate Method for IpamVlanTranslationRulesPartialUpdate
- Patch a VLAN translation rule object.
+ Patch a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesPartialUpdateRequest
*/
IpamVlanTranslationRulesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesPartialUpdateRequest
@@ -2193,13 +2192,13 @@ type IpamAPI interface {
IpamVlanTranslationRulesPartialUpdateExecute(r ApiIpamVlanTranslationRulesPartialUpdateRequest) (*VLANTranslationRule, *http.Response, error)
/*
- IpamVlanTranslationRulesRetrieve Method for IpamVlanTranslationRulesRetrieve
+ IpamVlanTranslationRulesRetrieve Method for IpamVlanTranslationRulesRetrieve
- Get a VLAN translation rule object.
+ Get a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesRetrieveRequest
*/
IpamVlanTranslationRulesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationRulesRetrieveRequest
@@ -2208,13 +2207,13 @@ type IpamAPI interface {
IpamVlanTranslationRulesRetrieveExecute(r ApiIpamVlanTranslationRulesRetrieveRequest) (*VLANTranslationRule, *http.Response, error)
/*
- IpamVlanTranslationRulesUpdate Method for IpamVlanTranslationRulesUpdate
+ IpamVlanTranslationRulesUpdate Method for IpamVlanTranslationRulesUpdate
- Put a VLAN translation rule object.
+ Put a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesUpdateRequest
*/
IpamVlanTranslationRulesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesUpdateRequest
@@ -2223,12 +2222,12 @@ type IpamAPI interface {
IpamVlanTranslationRulesUpdateExecute(r ApiIpamVlanTranslationRulesUpdateRequest) (*VLANTranslationRule, *http.Response, error)
/*
- IpamVlansBulkDestroy Method for IpamVlansBulkDestroy
+ IpamVlansBulkDestroy Method for IpamVlansBulkDestroy
- Delete a list of VLAN objects.
+ Delete a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkDestroyRequest
*/
IpamVlansBulkDestroy(ctx context.Context) ApiIpamVlansBulkDestroyRequest
@@ -2236,12 +2235,12 @@ type IpamAPI interface {
IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRequest) (*http.Response, error)
/*
- IpamVlansBulkPartialUpdate Method for IpamVlansBulkPartialUpdate
+ IpamVlansBulkPartialUpdate Method for IpamVlansBulkPartialUpdate
- Patch a list of VLAN objects.
+ Patch a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkPartialUpdateRequest
*/
IpamVlansBulkPartialUpdate(ctx context.Context) ApiIpamVlansBulkPartialUpdateRequest
@@ -2250,12 +2249,12 @@ type IpamAPI interface {
IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPartialUpdateRequest) ([]VLAN, *http.Response, error)
/*
- IpamVlansBulkUpdate Method for IpamVlansBulkUpdate
+ IpamVlansBulkUpdate Method for IpamVlansBulkUpdate
- Put a list of VLAN objects.
+ Put a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkUpdateRequest
*/
IpamVlansBulkUpdate(ctx context.Context) ApiIpamVlansBulkUpdateRequest
@@ -2264,12 +2263,12 @@ type IpamAPI interface {
IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequest) ([]VLAN, *http.Response, error)
/*
- IpamVlansCreate Method for IpamVlansCreate
+ IpamVlansCreate Method for IpamVlansCreate
- Post a list of VLAN objects.
+ Post a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansCreateRequest
*/
IpamVlansCreate(ctx context.Context) ApiIpamVlansCreateRequest
@@ -2278,13 +2277,13 @@ type IpamAPI interface {
IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*VLAN, *http.Response, error)
/*
- IpamVlansDestroy Method for IpamVlansDestroy
+ IpamVlansDestroy Method for IpamVlansDestroy
- Delete a VLAN object.
+ Delete a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansDestroyRequest
*/
IpamVlansDestroy(ctx context.Context, id int32) ApiIpamVlansDestroyRequest
@@ -2292,12 +2291,12 @@ type IpamAPI interface {
IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (*http.Response, error)
/*
- IpamVlansList Method for IpamVlansList
+ IpamVlansList Method for IpamVlansList
- Get a list of VLAN objects.
+ Get a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansListRequest
*/
IpamVlansList(ctx context.Context) ApiIpamVlansListRequest
@@ -2306,13 +2305,13 @@ type IpamAPI interface {
IpamVlansListExecute(r ApiIpamVlansListRequest) (*PaginatedVLANList, *http.Response, error)
/*
- IpamVlansPartialUpdate Method for IpamVlansPartialUpdate
+ IpamVlansPartialUpdate Method for IpamVlansPartialUpdate
- Patch a VLAN object.
+ Patch a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansPartialUpdateRequest
*/
IpamVlansPartialUpdate(ctx context.Context, id int32) ApiIpamVlansPartialUpdateRequest
@@ -2321,13 +2320,13 @@ type IpamAPI interface {
IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpdateRequest) (*VLAN, *http.Response, error)
/*
- IpamVlansRetrieve Method for IpamVlansRetrieve
+ IpamVlansRetrieve Method for IpamVlansRetrieve
- Get a VLAN object.
+ Get a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansRetrieveRequest
*/
IpamVlansRetrieve(ctx context.Context, id int32) ApiIpamVlansRetrieveRequest
@@ -2336,13 +2335,13 @@ type IpamAPI interface {
IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) (*VLAN, *http.Response, error)
/*
- IpamVlansUpdate Method for IpamVlansUpdate
+ IpamVlansUpdate Method for IpamVlansUpdate
- Put a VLAN object.
+ Put a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansUpdateRequest
*/
IpamVlansUpdate(ctx context.Context, id int32) ApiIpamVlansUpdateRequest
@@ -2351,12 +2350,12 @@ type IpamAPI interface {
IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*VLAN, *http.Response, error)
/*
- IpamVrfsBulkDestroy Method for IpamVrfsBulkDestroy
+ IpamVrfsBulkDestroy Method for IpamVrfsBulkDestroy
- Delete a list of VRF objects.
+ Delete a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkDestroyRequest
*/
IpamVrfsBulkDestroy(ctx context.Context) ApiIpamVrfsBulkDestroyRequest
@@ -2364,12 +2363,12 @@ type IpamAPI interface {
IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequest) (*http.Response, error)
/*
- IpamVrfsBulkPartialUpdate Method for IpamVrfsBulkPartialUpdate
+ IpamVrfsBulkPartialUpdate Method for IpamVrfsBulkPartialUpdate
- Patch a list of VRF objects.
+ Patch a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkPartialUpdateRequest
*/
IpamVrfsBulkPartialUpdate(ctx context.Context) ApiIpamVrfsBulkPartialUpdateRequest
@@ -2378,12 +2377,12 @@ type IpamAPI interface {
IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkPartialUpdateRequest) ([]VRF, *http.Response, error)
/*
- IpamVrfsBulkUpdate Method for IpamVrfsBulkUpdate
+ IpamVrfsBulkUpdate Method for IpamVrfsBulkUpdate
- Put a list of VRF objects.
+ Put a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkUpdateRequest
*/
IpamVrfsBulkUpdate(ctx context.Context) ApiIpamVrfsBulkUpdateRequest
@@ -2392,12 +2391,12 @@ type IpamAPI interface {
IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateRequest) ([]VRF, *http.Response, error)
/*
- IpamVrfsCreate Method for IpamVrfsCreate
+ IpamVrfsCreate Method for IpamVrfsCreate
- Post a list of VRF objects.
+ Post a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsCreateRequest
*/
IpamVrfsCreate(ctx context.Context) ApiIpamVrfsCreateRequest
@@ -2406,13 +2405,13 @@ type IpamAPI interface {
IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF, *http.Response, error)
/*
- IpamVrfsDestroy Method for IpamVrfsDestroy
+ IpamVrfsDestroy Method for IpamVrfsDestroy
- Delete a VRF object.
+ Delete a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsDestroyRequest
*/
IpamVrfsDestroy(ctx context.Context, id int32) ApiIpamVrfsDestroyRequest
@@ -2420,12 +2419,12 @@ type IpamAPI interface {
IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*http.Response, error)
/*
- IpamVrfsList Method for IpamVrfsList
+ IpamVrfsList Method for IpamVrfsList
- Get a list of VRF objects.
+ Get a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsListRequest
*/
IpamVrfsList(ctx context.Context) ApiIpamVrfsListRequest
@@ -2434,13 +2433,13 @@ type IpamAPI interface {
IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*PaginatedVRFList, *http.Response, error)
/*
- IpamVrfsPartialUpdate Method for IpamVrfsPartialUpdate
+ IpamVrfsPartialUpdate Method for IpamVrfsPartialUpdate
- Patch a VRF object.
+ Patch a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsPartialUpdateRequest
*/
IpamVrfsPartialUpdate(ctx context.Context, id int32) ApiIpamVrfsPartialUpdateRequest
@@ -2449,13 +2448,13 @@ type IpamAPI interface {
IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdateRequest) (*VRF, *http.Response, error)
/*
- IpamVrfsRetrieve Method for IpamVrfsRetrieve
+ IpamVrfsRetrieve Method for IpamVrfsRetrieve
- Get a VRF object.
+ Get a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsRetrieveRequest
*/
IpamVrfsRetrieve(ctx context.Context, id int32) ApiIpamVrfsRetrieveRequest
@@ -2464,13 +2463,13 @@ type IpamAPI interface {
IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (*VRF, *http.Response, error)
/*
- IpamVrfsUpdate Method for IpamVrfsUpdate
+ IpamVrfsUpdate Method for IpamVrfsUpdate
- Put a VRF object.
+ Put a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsUpdateRequest
*/
IpamVrfsUpdate(ctx context.Context, id int32) ApiIpamVrfsUpdateRequest
@@ -2483,8 +2482,8 @@ type IpamAPI interface {
type IpamAPIService service
type ApiIpamAggregatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aggregateRequest *[]AggregateRequest
}
@@ -2502,22 +2501,22 @@ IpamAggregatesBulkDestroy Method for IpamAggregatesBulkDestroy
Delete a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest {
return ApiIpamAggregatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkDestroy")
@@ -2596,8 +2595,8 @@ func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBul
}
type ApiIpamAggregatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aggregateRequest *[]AggregateRequest
}
@@ -2615,24 +2614,25 @@ IpamAggregatesBulkPartialUpdate Method for IpamAggregatesBulkPartialUpdate
Patch a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest {
return ApiIpamAggregatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Aggregate
+//
+// @return []Aggregate
func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Aggregate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkPartialUpdate")
@@ -2720,8 +2720,8 @@ func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggrega
}
type ApiIpamAggregatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aggregateRequest *[]AggregateRequest
}
@@ -2739,24 +2739,25 @@ IpamAggregatesBulkUpdate Method for IpamAggregatesBulkUpdate
Put a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest {
return ApiIpamAggregatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Aggregate
+//
+// @return []Aggregate
func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Aggregate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkUpdate")
@@ -2844,8 +2845,8 @@ func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulk
}
type ApiIpamAggregatesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableAggregateRequest *WritableAggregateRequest
}
@@ -2863,24 +2864,25 @@ IpamAggregatesCreate Method for IpamAggregatesCreate
Post a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesCreateRequest
*/
func (a *IpamAPIService) IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest {
return ApiIpamAggregatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Aggregate
+//
+// @return Aggregate
func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Aggregate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesCreate")
@@ -2968,9 +2970,9 @@ func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRe
}
type ApiIpamAggregatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAggregatesDestroyRequest) Execute() (*http.Response, error) {
@@ -2982,24 +2984,24 @@ IpamAggregatesDestroy Method for IpamAggregatesDestroy
Delete a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesDestroyRequest
*/
func (a *IpamAPIService) IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest {
return ApiIpamAggregatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesDestroy")
@@ -3074,70 +3076,112 @@ func (a *IpamAPIService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroy
}
type ApiIpamAggregatesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- dateAdded *[]string
- dateAddedEmpty *bool
- dateAddedGt *[]string
- dateAddedGte *[]string
- dateAddedLt *[]string
- dateAddedLte *[]string
- dateAddedN *[]string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- family *float32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ dateAdded *[]string
+ dateAddedEmpty *bool
+ dateAddedGt *[]string
+ dateAddedGte *[]string
+ dateAddedLt *[]string
+ dateAddedLte *[]string
+ dateAddedN *[]string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ family *float32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- offset *int32
- ordering *string
- prefix *string
- q *string
- rir *[]string
- rirN *[]string
- rirId *[]int32
- rirIdN *[]int32
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ offset *int32
+ ordering *string
+ prefix *string
+ q *string
+ rir *[]string
+ rirN *[]string
+ rirId *[]int32
+ rirIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+}
+
+// Contact
+func (r ApiIpamAggregatesListRequest) Contact(contact []int32) ApiIpamAggregatesListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiIpamAggregatesListRequest) ContactN(contactN []int32) ApiIpamAggregatesListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiIpamAggregatesListRequest) ContactGroup(contactGroup []string) ApiIpamAggregatesListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiIpamAggregatesListRequest) ContactGroupN(contactGroupN []string) ApiIpamAggregatesListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiIpamAggregatesListRequest) ContactRole(contactRole []int32) ApiIpamAggregatesListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiIpamAggregatesListRequest) ContactRoleN(contactRoleN []int32) ApiIpamAggregatesListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
func (r ApiIpamAggregatesListRequest) Created(created []time.Time) ApiIpamAggregatesListRequest {
@@ -3414,6 +3458,16 @@ func (r ApiIpamAggregatesListRequest) TagN(tagN []string) ApiIpamAggregatesListR
return r
}
+func (r ApiIpamAggregatesListRequest) TagId(tagId []int32) ApiIpamAggregatesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamAggregatesListRequest) TagIdN(tagIdN []int32) ApiIpamAggregatesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamAggregatesListRequest) Tenant(tenant []string) ApiIpamAggregatesListRequest {
r.tenant = &tenant
@@ -3472,24 +3526,25 @@ IpamAggregatesList Method for IpamAggregatesList
Get a list of aggregate objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAggregatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAggregatesListRequest
*/
func (a *IpamAPIService) IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest {
return ApiIpamAggregatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedAggregateList
+//
+// @return PaginatedAggregateList
func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedAggregateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedAggregateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesList")
@@ -3503,6 +3558,72 @@ func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -3998,6 +4119,28 @@ func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4158,9 +4301,9 @@ func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques
}
type ApiIpamAggregatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableAggregateRequest *PatchedWritableAggregateRequest
}
@@ -4178,26 +4321,27 @@ IpamAggregatesPartialUpdate Method for IpamAggregatesPartialUpdate
Patch a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest {
return ApiIpamAggregatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Aggregate
+//
+// @return Aggregate
func (a *IpamAPIService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Aggregate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesPartialUpdate")
@@ -4283,9 +4427,9 @@ func (a *IpamAPIService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesP
}
type ApiIpamAggregatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAggregatesRetrieveRequest) Execute() (*Aggregate, *http.Response, error) {
@@ -4297,26 +4441,27 @@ IpamAggregatesRetrieve Method for IpamAggregatesRetrieve
Get a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesRetrieveRequest
*/
func (a *IpamAPIService) IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest {
return ApiIpamAggregatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Aggregate
+//
+// @return Aggregate
func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Aggregate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesRetrieve")
@@ -4400,9 +4545,9 @@ func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrie
}
type ApiIpamAggregatesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableAggregateRequest *WritableAggregateRequest
}
@@ -4420,26 +4565,27 @@ IpamAggregatesUpdate Method for IpamAggregatesUpdate
Put a aggregate object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this aggregate.
- @return ApiIpamAggregatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this aggregate.
+ @return ApiIpamAggregatesUpdateRequest
*/
func (a *IpamAPIService) IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest {
return ApiIpamAggregatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Aggregate
+//
+// @return Aggregate
func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Aggregate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Aggregate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesUpdate")
@@ -4528,9 +4674,9 @@ func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRe
}
type ApiIpamAsnRangesAvailableAsnsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
aSNRequest *[]ASNRequest
}
@@ -4548,26 +4694,27 @@ IpamAsnRangesAvailableAsnsCreate Method for IpamAsnRangesAvailableAsnsCreate
Post a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamAsnRangesAvailableAsnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamAsnRangesAvailableAsnsCreateRequest
*/
func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest {
return ApiIpamAsnRangesAvailableAsnsCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []ASN
+//
+// @return []ASN
func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ASN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsCreate")
@@ -4656,9 +4803,9 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRan
}
type ApiIpamAsnRangesAvailableAsnsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAsnRangesAvailableAsnsListRequest) Execute() ([]AvailableASN, *http.Response, error) {
@@ -4670,26 +4817,27 @@ IpamAsnRangesAvailableAsnsList Method for IpamAsnRangesAvailableAsnsList
Get a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamAsnRangesAvailableAsnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamAsnRangesAvailableAsnsListRequest
*/
func (a *IpamAPIService) IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest {
return ApiIpamAsnRangesAvailableAsnsListRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []AvailableASN
+//
+// @return []AvailableASN
func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []AvailableASN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []AvailableASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsList")
@@ -4773,8 +4921,8 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRange
}
type ApiIpamAsnRangesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aSNRangeRequest *[]ASNRangeRequest
}
@@ -4792,22 +4940,22 @@ IpamAsnRangesBulkDestroy Method for IpamAsnRangesBulkDestroy
Delete a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest {
return ApiIpamAsnRangesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkDestroy")
@@ -4886,8 +5034,8 @@ func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkD
}
type ApiIpamAsnRangesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aSNRangeRequest *[]ASNRangeRequest
}
@@ -4905,24 +5053,25 @@ IpamAsnRangesBulkPartialUpdate Method for IpamAsnRangesBulkPartialUpdate
Patch a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest {
return ApiIpamAsnRangesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ASNRange
+//
+// @return []ASNRange
func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ASNRange
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkPartialUpdate")
@@ -5010,8 +5159,8 @@ func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRange
}
type ApiIpamAsnRangesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aSNRangeRequest *[]ASNRangeRequest
}
@@ -5029,24 +5178,25 @@ IpamAsnRangesBulkUpdate Method for IpamAsnRangesBulkUpdate
Put a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest {
return ApiIpamAsnRangesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ASNRange
+//
+// @return []ASNRange
func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ASNRange
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkUpdate")
@@ -5134,8 +5284,8 @@ func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUp
}
type ApiIpamAsnRangesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
aSNRangeRequest *ASNRangeRequest
}
@@ -5153,24 +5303,25 @@ IpamAsnRangesCreate Method for IpamAsnRangesCreate
Post a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesCreateRequest
*/
func (a *IpamAPIService) IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest {
return ApiIpamAsnRangesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ASNRange
+//
+// @return ASNRange
func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASNRange
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesCreate")
@@ -5258,9 +5409,9 @@ func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ
}
type ApiIpamAsnRangesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAsnRangesDestroyRequest) Execute() (*http.Response, error) {
@@ -5272,24 +5423,24 @@ IpamAsnRangesDestroy Method for IpamAsnRangesDestroy
Delete a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesDestroyRequest
*/
func (a *IpamAPIService) IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest {
return ApiIpamAsnRangesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesDestroy")
@@ -5364,97 +5515,99 @@ func (a *IpamAPIService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRe
}
type ApiIpamAsnRangesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- end *[]int32
- endEmpty *bool
- endGt *[]int32
- endGte *[]int32
- endLt *[]int32
- endLte *[]int32
- endN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ end *[]int32
+ endEmpty *bool
+ endGt *[]int32
+ endGte *[]int32
+ endLt *[]int32
+ endLte *[]int32
+ endN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rir *[]string
- rirN *[]string
- rirId *[]int32
- rirIdN *[]int32
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- start *[]int32
- startEmpty *bool
- startGt *[]int32
- startGte *[]int32
- startLt *[]int32
- startLte *[]int32
- startN *[]int32
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ rir *[]string
+ rirN *[]string
+ rirId *[]int32
+ rirIdN *[]int32
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ start *[]int32
+ startEmpty *bool
+ startGt *[]int32
+ startGte *[]int32
+ startLt *[]int32
+ startLte *[]int32
+ startN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiIpamAsnRangesListRequest) Created(created []time.Time) ApiIpamAsnRangesListRequest {
@@ -5865,6 +6018,16 @@ func (r ApiIpamAsnRangesListRequest) TagN(tagN []string) ApiIpamAsnRangesListReq
return r
}
+func (r ApiIpamAsnRangesListRequest) TagId(tagId []int32) ApiIpamAsnRangesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamAsnRangesListRequest) TagIdN(tagIdN []int32) ApiIpamAsnRangesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamAsnRangesListRequest) Tenant(tenant []string) ApiIpamAsnRangesListRequest {
r.tenant = &tenant
@@ -5923,24 +6086,25 @@ IpamAsnRangesList Method for IpamAsnRangesList
Get a list of ASN range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnRangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnRangesListRequest
*/
func (a *IpamAPIService) IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest {
return ApiIpamAsnRangesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedASNRangeList
+//
+// @return PaginatedASNRangeList
func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedASNRangeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedASNRangeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesList")
@@ -6738,6 +6902,28 @@ func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6898,9 +7084,9 @@ func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest)
}
type ApiIpamAsnRangesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedASNRangeRequest *PatchedASNRangeRequest
}
@@ -6918,26 +7104,27 @@ IpamAsnRangesPartialUpdate Method for IpamAsnRangesPartialUpdate
Patch a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest {
return ApiIpamAsnRangesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASNRange
+//
+// @return ASNRange
func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASNRange
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesPartialUpdate")
@@ -7023,9 +7210,9 @@ func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPar
}
type ApiIpamAsnRangesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAsnRangesRetrieveRequest) Execute() (*ASNRange, *http.Response, error) {
@@ -7037,26 +7224,27 @@ IpamAsnRangesRetrieve Method for IpamAsnRangesRetrieve
Get a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesRetrieveRequest
*/
func (a *IpamAPIService) IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest {
return ApiIpamAsnRangesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASNRange
+//
+// @return ASNRange
func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASNRange
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesRetrieve")
@@ -7140,9 +7328,9 @@ func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieve
}
type ApiIpamAsnRangesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
aSNRangeRequest *ASNRangeRequest
}
@@ -7160,26 +7348,27 @@ IpamAsnRangesUpdate Method for IpamAsnRangesUpdate
Put a ASN range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN range.
- @return ApiIpamAsnRangesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN range.
+ @return ApiIpamAsnRangesUpdateRequest
*/
func (a *IpamAPIService) IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest {
return ApiIpamAsnRangesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASNRange
+//
+// @return ASNRange
func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASNRange
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASNRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesUpdate")
@@ -7268,7 +7457,7 @@ func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ
}
type ApiIpamAsnsBulkDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
aSNRequest *[]ASNRequest
}
@@ -7287,22 +7476,22 @@ IpamAsnsBulkDestroy Method for IpamAsnsBulkDestroy
Delete a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest {
return ApiIpamAsnsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkDestroy")
@@ -7381,7 +7570,7 @@ func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequ
}
type ApiIpamAsnsBulkPartialUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
aSNRequest *[]ASNRequest
}
@@ -7400,24 +7589,25 @@ IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate
Patch a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest {
return ApiIpamAsnsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ASN
+//
+// @return []ASN
func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ASN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkPartialUpdate")
@@ -7505,7 +7695,7 @@ func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkParti
}
type ApiIpamAsnsBulkUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
aSNRequest *[]ASNRequest
}
@@ -7524,24 +7714,25 @@ IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate
Put a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest {
return ApiIpamAsnsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ASN
+//
+// @return []ASN
func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ASN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkUpdate")
@@ -7629,7 +7820,7 @@ func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateReques
}
type ApiIpamAsnsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
aSNRequest *ASNRequest
}
@@ -7648,24 +7839,25 @@ IpamAsnsCreate Method for IpamAsnsCreate
Post a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsCreateRequest
*/
func (a *IpamAPIService) IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest {
return ApiIpamAsnsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ASN
+//
+// @return ASN
func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsCreate")
@@ -7753,9 +7945,9 @@ func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN
}
type ApiIpamAsnsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAsnsDestroyRequest) Execute() (*http.Response, error) {
@@ -7767,24 +7959,24 @@ IpamAsnsDestroy Method for IpamAsnsDestroy
Delete a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsDestroyRequest
*/
func (a *IpamAPIService) IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest {
return ApiIpamAsnsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsDestroy")
@@ -7859,76 +8051,82 @@ func (a *IpamAPIService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*h
}
type ApiIpamAsnsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- asn *[]int32
- asnEmpty *bool
- asnGt *[]int32
- asnGte *[]int32
- asnLt *[]int32
- asnLte *[]int32
- asnN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ asn *[]int32
+ asnEmpty *bool
+ asnGt *[]int32
+ asnGte *[]int32
+ asnLt *[]int32
+ asnLte *[]int32
+ asnN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- offset *int32
- ordering *string
- provider *[]string
- providerN *[]string
- providerId *[]int32
- providerIdN *[]int32
- q *string
- rir *[]string
- rirN *[]string
- rirId *[]int32
- rirIdN *[]int32
- site *[]string
- siteN *[]string
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ offset *int32
+ ordering *string
+ provider *[]string
+ providerN *[]string
+ providerId *[]int32
+ providerIdN *[]int32
+ q *string
+ rir *[]string
+ rirN *[]string
+ rirId *[]int32
+ rirIdN *[]int32
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiIpamAsnsListRequest) Asn(asn []int32) ApiIpamAsnsListRequest {
@@ -8220,6 +8418,26 @@ func (r ApiIpamAsnsListRequest) SiteN(siteN []string) ApiIpamAsnsListRequest {
return r
}
+func (r ApiIpamAsnsListRequest) SiteGroup(siteGroup []string) ApiIpamAsnsListRequest {
+ r.siteGroup = &siteGroup
+ return r
+}
+
+func (r ApiIpamAsnsListRequest) SiteGroupN(siteGroupN []string) ApiIpamAsnsListRequest {
+ r.siteGroupN = &siteGroupN
+ return r
+}
+
+func (r ApiIpamAsnsListRequest) SiteGroupId(siteGroupId []string) ApiIpamAsnsListRequest {
+ r.siteGroupId = &siteGroupId
+ return r
+}
+
+func (r ApiIpamAsnsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamAsnsListRequest {
+ r.siteGroupIdN = &siteGroupIdN
+ return r
+}
+
// Site (ID)
func (r ApiIpamAsnsListRequest) SiteId(siteId []int32) ApiIpamAsnsListRequest {
r.siteId = &siteId
@@ -8242,6 +8460,16 @@ func (r ApiIpamAsnsListRequest) TagN(tagN []string) ApiIpamAsnsListRequest {
return r
}
+func (r ApiIpamAsnsListRequest) TagId(tagId []int32) ApiIpamAsnsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamAsnsListRequest) TagIdN(tagIdN []int32) ApiIpamAsnsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamAsnsListRequest) Tenant(tenant []string) ApiIpamAsnsListRequest {
r.tenant = &tenant
@@ -8300,24 +8528,25 @@ IpamAsnsList Method for IpamAsnsList
Get a list of ASN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamAsnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamAsnsListRequest
*/
func (a *IpamAPIService) IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest {
return ApiIpamAsnsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedASNList
+//
+// @return PaginatedASNList
func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedASNList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedASNList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsList")
@@ -8864,6 +9093,50 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat
parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi")
}
}
+ if r.siteGroup != nil {
+ t := *r.siteGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi")
+ }
+ }
+ if r.siteGroupN != nil {
+ t := *r.siteGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi")
+ }
+ }
+ if r.siteGroupId != nil {
+ t := *r.siteGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi")
+ }
+ }
+ if r.siteGroupIdN != nil {
+ t := *r.siteGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi")
+ }
+ }
if r.siteId != nil {
t := *r.siteId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8908,6 +9181,28 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -9068,9 +9363,9 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat
}
type ApiIpamAsnsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedASNRequest *PatchedASNRequest
}
@@ -9088,26 +9383,27 @@ IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate
Patch a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest {
return ApiIpamAsnsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASN
+//
+// @return ASN
func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsPartialUpdate")
@@ -9193,9 +9489,9 @@ func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdate
}
type ApiIpamAsnsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamAsnsRetrieveRequest) Execute() (*ASN, *http.Response, error) {
@@ -9207,26 +9503,27 @@ IpamAsnsRetrieve Method for IpamAsnsRetrieve
Get a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsRetrieveRequest
*/
func (a *IpamAPIService) IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest {
return ApiIpamAsnsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASN
+//
+// @return ASN
func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsRetrieve")
@@ -9310,9 +9607,9 @@ func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (
}
type ApiIpamAsnsUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
aSNRequest *ASNRequest
}
@@ -9330,26 +9627,27 @@ IpamAsnsUpdate Method for IpamAsnsUpdate
Put a ASN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this ASN.
- @return ApiIpamAsnsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this ASN.
+ @return ApiIpamAsnsUpdateRequest
*/
func (a *IpamAPIService) IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest {
return ApiIpamAsnsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ASN
+//
+// @return ASN
func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ASN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ASN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsUpdate")
@@ -9438,8 +9736,8 @@ func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN
}
type ApiIpamFhrpGroupAssignmentsBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest
}
@@ -9457,22 +9755,22 @@ IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestr
Delete a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest {
return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkDestroy")
@@ -9551,8 +9849,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhr
}
type ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest
}
@@ -9570,24 +9868,25 @@ IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBul
Patch a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest {
return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FHRPGroupAssignment
+//
+// @return []FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkPartialUpdate")
@@ -9675,8 +9974,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiI
}
type ApiIpamFhrpGroupAssignmentsBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest
}
@@ -9694,24 +9993,25 @@ IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate
Put a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest {
return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FHRPGroupAssignment
+//
+// @return []FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkUpdate")
@@ -9799,8 +10099,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrp
}
type ApiIpamFhrpGroupAssignmentsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest
}
@@ -9818,24 +10118,25 @@ IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate
Post a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsCreateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest {
return ApiIpamFhrpGroupAssignmentsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return FHRPGroupAssignment
+//
+// @return FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsCreate")
@@ -9923,9 +10224,9 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou
}
type ApiIpamFhrpGroupAssignmentsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamFhrpGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) {
@@ -9937,24 +10238,24 @@ IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy
Delete a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsDestroyRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest {
return ApiIpamFhrpGroupAssignmentsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsDestroy")
@@ -10029,57 +10330,57 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGro
}
type ApiIpamFhrpGroupAssignmentsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- device *[]string
- deviceId *[]int32
- groupId *[]int32
- groupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceId *[]int32
- interfaceIdEmpty *bool
- interfaceIdGt *[]int32
- interfaceIdGte *[]int32
- interfaceIdLt *[]int32
- interfaceIdLte *[]int32
- interfaceIdN *[]int32
- interfaceType *string
- interfaceTypeN *string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ device *[]string
+ deviceId *[]int32
+ groupId *[]int32
+ groupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *[]int32
+ interfaceIdEmpty *bool
+ interfaceIdGt *[]int32
+ interfaceIdGte *[]int32
+ interfaceIdLt *[]int32
+ interfaceIdLte *[]int32
+ interfaceIdN *[]int32
+ interfaceType *string
+ interfaceTypeN *string
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- offset *int32
- ordering *string
- priority *[]int32
- priorityEmpty *bool
- priorityGt *[]int32
- priorityGte *[]int32
- priorityLt *[]int32
- priorityLte *[]int32
- priorityN *[]int32
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineId *[]int32
+ offset *int32
+ ordering *string
+ priority *[]int32
+ priorityEmpty *bool
+ priorityGt *[]int32
+ priorityGte *[]int32
+ priorityLt *[]int32
+ priorityLte *[]int32
+ priorityN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineId *[]int32
}
func (r ApiIpamFhrpGroupAssignmentsListRequest) Created(created []time.Time) ApiIpamFhrpGroupAssignmentsListRequest {
@@ -10341,24 +10642,25 @@ IpamFhrpGroupAssignmentsList Method for IpamFhrpGroupAssignmentsList
Get a list of FHRP group assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupAssignmentsListRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest {
return ApiIpamFhrpGroupAssignmentsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedFHRPGroupAssignmentList
+//
+// @return PaginatedFHRPGroupAssignmentList
func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedFHRPGroupAssignmentList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedFHRPGroupAssignmentList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsList")
@@ -10892,9 +11194,9 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA
}
type ApiIpamFhrpGroupAssignmentsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedFHRPGroupAssignmentRequest *PatchedFHRPGroupAssignmentRequest
}
@@ -10912,26 +11214,27 @@ IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartial
Patch a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest {
return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroupAssignment
+//
+// @return FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsPartialUpdate")
@@ -11017,9 +11320,9 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF
}
type ApiIpamFhrpGroupAssignmentsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamFhrpGroupAssignmentsRetrieveRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) {
@@ -11031,26 +11334,27 @@ IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve
Get a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsRetrieveRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest {
return ApiIpamFhrpGroupAssignmentsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroupAssignment
+//
+// @return FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsRetrieve")
@@ -11134,9 +11438,9 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGr
}
type ApiIpamFhrpGroupAssignmentsUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest
}
@@ -11154,26 +11458,27 @@ IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate
Put a FHRP group assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group assignment.
- @return ApiIpamFhrpGroupAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group assignment.
+ @return ApiIpamFhrpGroupAssignmentsUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest {
return ApiIpamFhrpGroupAssignmentsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroupAssignment
+//
+// @return FHRPGroupAssignment
func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroupAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroupAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsUpdate")
@@ -11262,8 +11567,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou
}
type ApiIpamFhrpGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupRequest *[]FHRPGroupRequest
}
@@ -11281,22 +11586,22 @@ IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy
Delete a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest {
return ApiIpamFhrpGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkDestroy")
@@ -11375,8 +11680,8 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBul
}
type ApiIpamFhrpGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupRequest *[]FHRPGroupRequest
}
@@ -11394,24 +11699,25 @@ IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate
Patch a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest {
return ApiIpamFhrpGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FHRPGroup
+//
+// @return []FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FHRPGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkPartialUpdate")
@@ -11499,8 +11805,8 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGro
}
type ApiIpamFhrpGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupRequest *[]FHRPGroupRequest
}
@@ -11518,24 +11824,25 @@ IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate
Put a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest {
return ApiIpamFhrpGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []FHRPGroup
+//
+// @return []FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []FHRPGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkUpdate")
@@ -11623,8 +11930,8 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulk
}
type ApiIpamFhrpGroupsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
fHRPGroupRequest *FHRPGroupRequest
}
@@ -11642,24 +11949,25 @@ IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate
Post a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsCreateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest {
return ApiIpamFhrpGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return FHRPGroup
+//
+// @return FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsCreate")
@@ -11747,9 +12055,9 @@ func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRe
}
type ApiIpamFhrpGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamFhrpGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -11761,24 +12069,24 @@ IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy
Delete a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsDestroyRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest {
return ApiIpamFhrpGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsDestroy")
@@ -11853,101 +12161,103 @@ func (a *IpamAPIService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroy
}
type ApiIpamFhrpGroupsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- authKey *[]string
- authKeyEmpty *bool
- authKeyIc *[]string
- authKeyIe *[]string
- authKeyIew *[]string
- authKeyIsw *[]string
- authKeyN *[]string
- authKeyNic *[]string
- authKeyNie *[]string
- authKeyNiew *[]string
- authKeyNisw *[]string
- authType *[]*string
- authTypeEmpty *bool
- authTypeIc *[]*string
- authTypeIe *[]*string
- authTypeIew *[]*string
- authTypeIsw *[]*string
- authTypeN *[]*string
- authTypeNic *[]*string
- authTypeNie *[]*string
- authTypeNiew *[]*string
- authTypeNisw *[]*string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- groupId *[]int32
- groupIdEmpty *bool
- groupIdGt *[]int32
- groupIdGte *[]int32
- groupIdLt *[]int32
- groupIdLte *[]int32
- groupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ authKey *[]string
+ authKeyEmpty *bool
+ authKeyIc *[]string
+ authKeyIe *[]string
+ authKeyIew *[]string
+ authKeyIsw *[]string
+ authKeyN *[]string
+ authKeyNic *[]string
+ authKeyNie *[]string
+ authKeyNiew *[]string
+ authKeyNisw *[]string
+ authType *[]*string
+ authTypeEmpty *bool
+ authTypeIc *[]*string
+ authTypeIe *[]*string
+ authTypeIew *[]*string
+ authTypeIsw *[]*string
+ authTypeN *[]*string
+ authTypeNic *[]*string
+ authTypeNie *[]*string
+ authTypeNiew *[]*string
+ authTypeNisw *[]*string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ groupId *[]int32
+ groupIdEmpty *bool
+ groupIdGt *[]int32
+ groupIdGte *[]int32
+ groupIdLt *[]int32
+ groupIdLte *[]int32
+ groupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- protocol *[]string
- protocolEmpty *bool
- protocolIc *[]string
- protocolIe *[]string
- protocolIew *[]string
- protocolIsw *[]string
- protocolN *[]string
- protocolNic *[]string
- protocolNie *[]string
- protocolNiew *[]string
- protocolNisw *[]string
- q *string
- relatedIp *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ protocol *[]string
+ protocolEmpty *bool
+ protocolIc *[]string
+ protocolIe *[]string
+ protocolIew *[]string
+ protocolIsw *[]string
+ protocolN *[]string
+ protocolNic *[]string
+ protocolNie *[]string
+ protocolNiew *[]string
+ protocolNisw *[]string
+ q *string
+ relatedIp *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiIpamFhrpGroupsListRequest) AuthKey(authKey []string) ApiIpamFhrpGroupsListRequest {
@@ -12414,6 +12724,16 @@ func (r ApiIpamFhrpGroupsListRequest) TagN(tagN []string) ApiIpamFhrpGroupsListR
return r
}
+func (r ApiIpamFhrpGroupsListRequest) TagId(tagId []int32) ApiIpamFhrpGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamFhrpGroupsListRequest) TagIdN(tagIdN []int32) ApiIpamFhrpGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamFhrpGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamFhrpGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -12428,24 +12748,25 @@ IpamFhrpGroupsList Method for IpamFhrpGroupsList
Get a list of FHRP group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamFhrpGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamFhrpGroupsListRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest {
return ApiIpamFhrpGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedFHRPGroupList
+//
+// @return PaginatedFHRPGroupList
func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedFHRPGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedFHRPGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsList")
@@ -13367,6 +13688,28 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -13439,9 +13782,9 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques
}
type ApiIpamFhrpGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedFHRPGroupRequest *PatchedFHRPGroupRequest
}
@@ -13459,26 +13802,27 @@ IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate
Patch a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest {
return ApiIpamFhrpGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroup
+//
+// @return FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsPartialUpdate")
@@ -13564,9 +13908,9 @@ func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsP
}
type ApiIpamFhrpGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamFhrpGroupsRetrieveRequest) Execute() (*FHRPGroup, *http.Response, error) {
@@ -13578,26 +13922,27 @@ IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve
Get a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsRetrieveRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest {
return ApiIpamFhrpGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroup
+//
+// @return FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsRetrieve")
@@ -13681,9 +14026,9 @@ func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrie
}
type ApiIpamFhrpGroupsUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
fHRPGroupRequest *FHRPGroupRequest
}
@@ -13701,26 +14046,27 @@ IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate
Put a FHRP group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this FHRP group.
- @return ApiIpamFhrpGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this FHRP group.
+ @return ApiIpamFhrpGroupsUpdateRequest
*/
func (a *IpamAPIService) IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest {
return ApiIpamFhrpGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return FHRPGroup
+//
+// @return FHRPGroup
func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *FHRPGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *FHRPGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsUpdate")
@@ -13809,8 +14155,8 @@ func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRe
}
type ApiIpamIpAddressesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPAddressRequest *[]IPAddressRequest
}
@@ -13828,22 +14174,22 @@ IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy
Delete a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest {
return ApiIpamIpAddressesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkDestroy")
@@ -13922,8 +14268,8 @@ func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesB
}
type ApiIpamIpAddressesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPAddressRequest *[]IPAddressRequest
}
@@ -13941,24 +14287,25 @@ IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate
Patch a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest {
return ApiIpamIpAddressesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPAddress
+//
+// @return []IPAddress
func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPAddress
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkPartialUpdate")
@@ -14046,8 +14393,8 @@ func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddr
}
type ApiIpamIpAddressesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPAddressRequest *[]IPAddressRequest
}
@@ -14065,24 +14412,25 @@ IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate
Put a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest {
return ApiIpamIpAddressesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPAddress
+//
+// @return []IPAddress
func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPAddress
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkUpdate")
@@ -14170,8 +14518,8 @@ func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBu
}
type ApiIpamIpAddressesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableIPAddressRequest *WritableIPAddressRequest
}
@@ -14189,24 +14537,25 @@ IpamIpAddressesCreate Method for IpamIpAddressesCreate
Post a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesCreateRequest
*/
func (a *IpamAPIService) IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest {
return ApiIpamIpAddressesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IPAddress
+//
+// @return IPAddress
func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPAddress
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesCreate")
@@ -14294,9 +14643,9 @@ func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreate
}
type ApiIpamIpAddressesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamIpAddressesDestroyRequest) Execute() (*http.Response, error) {
@@ -14308,24 +14657,24 @@ IpamIpAddressesDestroy Method for IpamIpAddressesDestroy
Delete a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesDestroyRequest
*/
func (a *IpamAPIService) IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest {
return ApiIpamIpAddressesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesDestroy")
@@ -14400,131 +14749,139 @@ func (a *IpamAPIService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestr
}
type ApiIpamIpAddressesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- address *[]string
- assigned *bool
- assignedObjectId *[]int32
+ ctx context.Context
+ ApiService IpamAPI
+ address *[]string
+ assigned *bool
+ assignedObjectId *[]int32
assignedObjectIdEmpty *bool
- assignedObjectIdGt *[]int32
- assignedObjectIdGte *[]int32
- assignedObjectIdLt *[]int32
- assignedObjectIdLte *[]int32
- assignedObjectIdN *[]int32
- assignedObjectType *int32
- assignedObjectTypeN *int32
- assignedToInterface *bool
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]string
- deviceId *[]int32
- dnsName *[]string
- dnsNameEmpty *bool
- dnsNameIc *[]string
- dnsNameIe *[]string
- dnsNameIew *[]string
- dnsNameIsw *[]string
- dnsNameN *[]string
- dnsNameNic *[]string
- dnsNameNie *[]string
- dnsNameNiew *[]string
- dnsNameNisw *[]string
- family *float32
- fhrpgroupId *[]int32
- fhrpgroupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interface_ *[]string
- interfaceN *[]string
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- maskLength *[]int32
- maskLengthGte *float32
- maskLengthLte *float32
- modifiedByRequest *string
- natInsideId *[]int32
- natInsideIdN *[]int32
- offset *int32
- ordering *string
- parent *[]string
- presentInVrf *string
- presentInVrfId *string
- q *string
- role *[]*string
- roleEmpty *bool
- roleIc *[]*string
- roleIe *[]*string
- roleIew *[]*string
- roleIsw *[]*string
- roleN *[]*string
- roleNic *[]*string
- roleNie *[]*string
- roleNiew *[]*string
- roleNisw *[]*string
- serviceId *[]int32
- serviceIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineId *[]int32
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]*int32
- vrfIdN *[]*int32
+ assignedObjectIdGt *[]int32
+ assignedObjectIdGte *[]int32
+ assignedObjectIdLt *[]int32
+ assignedObjectIdLte *[]int32
+ assignedObjectIdN *[]int32
+ assignedObjectType *int32
+ assignedObjectTypeN *int32
+ assignedToInterface *bool
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]string
+ deviceId *[]int32
+ dnsName *[]string
+ dnsNameEmpty *bool
+ dnsNameIc *[]string
+ dnsNameIe *[]string
+ dnsNameIew *[]string
+ dnsNameIsw *[]string
+ dnsNameN *[]string
+ dnsNameNic *[]string
+ dnsNameNie *[]string
+ dnsNameNiew *[]string
+ dnsNameNisw *[]string
+ family *float32
+ fhrpgroupId *[]int32
+ fhrpgroupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interface_ *[]string
+ interfaceN *[]string
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ maskLength *[]int32
+ maskLengthGte *float32
+ maskLengthLte *float32
+ modifiedByRequest *string
+ natInsideId *[]int32
+ natInsideIdN *[]int32
+ offset *int32
+ ordering *string
+ parent *[]string
+ presentInVrf *string
+ presentInVrfId *string
+ q *string
+ role *[]*string
+ roleEmpty *bool
+ roleIc *[]*string
+ roleIe *[]*string
+ roleIew *[]*string
+ roleIsw *[]*string
+ roleN *[]*string
+ roleNic *[]*string
+ roleNie *[]*string
+ roleNiew *[]*string
+ roleNisw *[]*string
+ serviceId *[]int32
+ serviceIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineId *[]int32
+ vminterface *[]string
+ vminterfaceN *[]string
+ vminterfaceId *[]int32
+ vminterfaceIdN *[]int32
+ vrf *[]*string
+ vrfN *[]*string
+ vrfId *[]*int32
+ vrfIdN *[]*int32
}
func (r ApiIpamIpAddressesListRequest) Address(address []string) ApiIpamIpAddressesListRequest {
@@ -14589,6 +14946,40 @@ func (r ApiIpamIpAddressesListRequest) AssignedToInterface(assignedToInterface b
return r
}
+// Contact
+func (r ApiIpamIpAddressesListRequest) Contact(contact []int32) ApiIpamIpAddressesListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiIpamIpAddressesListRequest) ContactN(contactN []int32) ApiIpamIpAddressesListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiIpamIpAddressesListRequest) ContactGroup(contactGroup []string) ApiIpamIpAddressesListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiIpamIpAddressesListRequest) ContactGroupN(contactGroupN []string) ApiIpamIpAddressesListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiIpamIpAddressesListRequest) ContactRole(contactRole []int32) ApiIpamIpAddressesListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiIpamIpAddressesListRequest) ContactRoleN(contactRoleN []int32) ApiIpamIpAddressesListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
+}
+
func (r ApiIpamIpAddressesListRequest) Created(created []time.Time) ApiIpamIpAddressesListRequest {
r.created = &created
return r
@@ -15083,6 +15474,16 @@ func (r ApiIpamIpAddressesListRequest) TagN(tagN []string) ApiIpamIpAddressesLis
return r
}
+func (r ApiIpamIpAddressesListRequest) TagId(tagId []int32) ApiIpamIpAddressesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamIpAddressesListRequest) TagIdN(tagIdN []int32) ApiIpamIpAddressesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamIpAddressesListRequest) Tenant(tenant []string) ApiIpamIpAddressesListRequest {
r.tenant = &tenant
@@ -15199,24 +15600,25 @@ IpamIpAddressesList Method for IpamIpAddressesList
Get a list of IP address objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpAddressesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpAddressesListRequest
*/
func (a *IpamAPIService) IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest {
return ApiIpamIpAddressesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIPAddressList
+//
+// @return PaginatedIPAddressList
func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIPAddressList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPAddressList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesList")
@@ -15322,6 +15724,72 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
if r.assignedToInterface != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_to_interface", r.assignedToInterface, "form", "")
}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -16206,6 +16674,28 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -16476,9 +16966,9 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
}
type ApiIpamIpAddressesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableIPAddressRequest *PatchedWritableIPAddressRequest
}
@@ -16496,26 +16986,27 @@ IpamIpAddressesPartialUpdate Method for IpamIpAddressesPartialUpdate
Patch a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest {
return ApiIpamIpAddressesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPAddress
+//
+// @return IPAddress
func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPAddress
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesPartialUpdate")
@@ -16601,9 +17092,9 @@ func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddresse
}
type ApiIpamIpAddressesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamIpAddressesRetrieveRequest) Execute() (*IPAddress, *http.Response, error) {
@@ -16615,26 +17106,27 @@ IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve
Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesRetrieveRequest
*/
func (a *IpamAPIService) IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest {
return ApiIpamIpAddressesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPAddress
+//
+// @return IPAddress
func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPAddress
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesRetrieve")
@@ -16718,9 +17210,9 @@ func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetr
}
type ApiIpamIpAddressesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableIPAddressRequest *WritableIPAddressRequest
}
@@ -16738,26 +17230,27 @@ IpamIpAddressesUpdate Method for IpamIpAddressesUpdate
Put a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP address.
- @return ApiIpamIpAddressesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP address.
+ @return ApiIpamIpAddressesUpdateRequest
*/
func (a *IpamAPIService) IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest {
return ApiIpamIpAddressesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPAddress
+//
+// @return IPAddress
func (a *IpamAPIService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPAddress
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesUpdate")
@@ -16846,9 +17339,9 @@ func (a *IpamAPIService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdate
}
type ApiIpamIpRangesAvailableIpsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
iPAddressRequest *[]IPAddressRequest
}
@@ -16866,26 +17359,27 @@ IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate
Post a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamIpRangesAvailableIpsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamIpRangesAvailableIpsCreateRequest
*/
func (a *IpamAPIService) IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest {
return ApiIpamIpRangesAvailableIpsCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []IPAddress
+//
+// @return []IPAddress
func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPAddress
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsCreate")
@@ -16974,9 +17468,9 @@ func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRanges
}
type ApiIpamIpRangesAvailableIpsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamIpRangesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) {
@@ -16988,26 +17482,27 @@ IpamIpRangesAvailableIpsList Method for IpamIpRangesAvailableIpsList
Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamIpRangesAvailableIpsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamIpRangesAvailableIpsListRequest
*/
func (a *IpamAPIService) IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest {
return ApiIpamIpRangesAvailableIpsListRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []AvailableIP
+//
+// @return []AvailableIP
func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []AvailableIP
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []AvailableIP
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsList")
@@ -17091,8 +17586,8 @@ func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAv
}
type ApiIpamIpRangesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPRangeRequest *[]IPRangeRequest
}
@@ -17110,22 +17605,22 @@ IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy
Delete a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest {
return ApiIpamIpRangesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkDestroy")
@@ -17204,8 +17699,8 @@ func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDes
}
type ApiIpamIpRangesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPRangeRequest *[]IPRangeRequest
}
@@ -17223,24 +17718,25 @@ IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate
Patch a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest {
return ApiIpamIpRangesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPRange
+//
+// @return []IPRange
func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPRange
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkPartialUpdate")
@@ -17328,8 +17824,8 @@ func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesB
}
type ApiIpamIpRangesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
iPRangeRequest *[]IPRangeRequest
}
@@ -17347,24 +17843,25 @@ IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate
Put a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest {
return ApiIpamIpRangesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPRange
+//
+// @return []IPRange
func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPRange
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkUpdate")
@@ -17452,8 +17949,8 @@ func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpda
}
type ApiIpamIpRangesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableIPRangeRequest *WritableIPRangeRequest
}
@@ -17471,24 +17968,25 @@ IpamIpRangesCreate Method for IpamIpRangesCreate
Post a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesCreateRequest
*/
func (a *IpamAPIService) IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest {
return ApiIpamIpRangesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IPRange
+//
+// @return IPRange
func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesCreate")
@@ -17576,9 +18074,9 @@ func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateReques
}
type ApiIpamIpRangesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamIpRangesDestroyRequest) Execute() (*http.Response, error) {
@@ -17590,24 +18088,24 @@ IpamIpRangesDestroy Method for IpamIpRangesDestroy
Delete a IP range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesDestroyRequest
*/
func (a *IpamAPIService) IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest {
return ApiIpamIpRangesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesDestroy")
@@ -17682,89 +18180,132 @@ func (a *IpamAPIService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequ
}
type ApiIpamIpRangesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- contains *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- endAddress *[]string
- family *float32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- markUtilized *bool
+ ctx context.Context
+ ApiService IpamAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ contains *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ endAddress *[]string
+ family *float32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ markPopulated *bool
+ markUtilized *bool
modifiedByRequest *string
- offset *int32
- ordering *string
- parent *[]string
- q *string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- size *[]int32
- sizeEmpty *bool
- sizeGt *[]int32
- sizeGte *[]int32
- sizeLt *[]int32
- sizeLte *[]int32
- sizeN *[]int32
- startAddress *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]*int32
- vrfIdN *[]*int32
+ offset *int32
+ ordering *string
+ parent *[]string
+ q *string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ size *[]int32
+ sizeEmpty *bool
+ sizeGt *[]int32
+ sizeGte *[]int32
+ sizeLt *[]int32
+ sizeLte *[]int32
+ sizeN *[]int32
+ startAddress *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vrf *[]*string
+ vrfN *[]*string
+ vrfId *[]*int32
+ vrfIdN *[]*int32
+}
+
+// Contact
+func (r ApiIpamIpRangesListRequest) Contact(contact []int32) ApiIpamIpRangesListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiIpamIpRangesListRequest) ContactN(contactN []int32) ApiIpamIpRangesListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) ContactGroup(contactGroup []string) ApiIpamIpRangesListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) ContactGroupN(contactGroupN []string) ApiIpamIpRangesListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiIpamIpRangesListRequest) ContactRole(contactRole []int32) ApiIpamIpRangesListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiIpamIpRangesListRequest) ContactRoleN(contactRoleN []int32) ApiIpamIpRangesListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
// Ranges which contain this prefix or IP
@@ -17954,6 +18495,11 @@ func (r ApiIpamIpRangesListRequest) Limit(limit int32) ApiIpamIpRangesListReques
return r
}
+func (r ApiIpamIpRangesListRequest) MarkPopulated(markPopulated bool) ApiIpamIpRangesListRequest {
+ r.markPopulated = &markPopulated
+ return r
+}
+
func (r ApiIpamIpRangesListRequest) MarkUtilized(markUtilized bool) ApiIpamIpRangesListRequest {
r.markUtilized = &markUtilized
return r
@@ -18126,6 +18672,16 @@ func (r ApiIpamIpRangesListRequest) TagN(tagN []string) ApiIpamIpRangesListReque
return r
}
+func (r ApiIpamIpRangesListRequest) TagId(tagId []int32) ApiIpamIpRangesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) TagIdN(tagIdN []int32) ApiIpamIpRangesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamIpRangesListRequest) Tenant(tenant []string) ApiIpamIpRangesListRequest {
r.tenant = &tenant
@@ -18208,24 +18764,25 @@ IpamIpRangesList Method for IpamIpRangesList
Get a list of IP range objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamIpRangesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamIpRangesListRequest
*/
func (a *IpamAPIService) IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest {
return ApiIpamIpRangesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIPRangeList
+//
+// @return PaginatedIPRangeList
func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIPRangeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPRangeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesList")
@@ -18239,6 +18796,72 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.contains != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "form", "")
}
@@ -18598,6 +19221,9 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "")
}
+ if r.markPopulated != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_populated", r.markPopulated, "form", "")
+ }
if r.markUtilized != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "form", "")
}
@@ -18883,6 +19509,28 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -19087,9 +19735,9 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
}
type ApiIpamIpRangesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest
}
@@ -19107,26 +19755,27 @@ IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate
Patch a IP range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest {
return ApiIpamIpRangesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPRange
+//
+// @return IPRange
func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate")
@@ -19212,9 +19861,9 @@ func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesParti
}
type ApiIpamIpRangesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) {
@@ -19226,26 +19875,27 @@ IpamIpRangesRetrieve Method for IpamIpRangesRetrieve
Get a IP range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesRetrieveRequest
*/
func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest {
return ApiIpamIpRangesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPRange
+//
+// @return IPRange
func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve")
@@ -19329,9 +19979,9 @@ func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRe
}
type ApiIpamIpRangesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableIPRangeRequest *WritableIPRangeRequest
}
@@ -19349,26 +19999,27 @@ IpamIpRangesUpdate Method for IpamIpRangesUpdate
Put a IP range object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IP range.
- @return ApiIpamIpRangesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IP range.
+ @return ApiIpamIpRangesUpdateRequest
*/
func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest {
return ApiIpamIpRangesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPRange
+//
+// @return IPRange
func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPRange
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPRange
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate")
@@ -19457,9 +20108,9 @@ func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateReques
}
type ApiIpamPrefixesAvailableIpsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
iPAddressRequest *[]IPAddressRequest
}
@@ -19477,26 +20128,27 @@ IpamPrefixesAvailableIpsCreate Method for IpamPrefixesAvailableIpsCreate
Post a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailableIpsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailableIpsCreateRequest
*/
func (a *IpamAPIService) IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest {
return ApiIpamPrefixesAvailableIpsCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []IPAddress
+//
+// @return []IPAddress
func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPAddress
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPAddress
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsCreate")
@@ -19585,9 +20237,9 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixes
}
type ApiIpamPrefixesAvailableIpsListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamPrefixesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) {
@@ -19599,26 +20251,27 @@ IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList
Get a IP address object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailableIpsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailableIpsListRequest
*/
func (a *IpamAPIService) IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest {
return ApiIpamPrefixesAvailableIpsListRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []AvailableIP
+//
+// @return []AvailableIP
func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []AvailableIP
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []AvailableIP
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsList")
@@ -19702,9 +20355,9 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAv
}
type ApiIpamPrefixesAvailablePrefixesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
prefixRequest *[]PrefixRequest
}
@@ -19722,26 +20375,27 @@ IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCrea
Post a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailablePrefixesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailablePrefixesCreateRequest
*/
func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest {
return ApiIpamPrefixesAvailablePrefixesCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []Prefix
+//
+// @return []Prefix
func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Prefix
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesCreate")
@@ -19830,9 +20484,9 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPre
}
type ApiIpamPrefixesAvailablePrefixesListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamPrefixesAvailablePrefixesListRequest) Execute() ([]AvailablePrefix, *http.Response, error) {
@@ -19844,26 +20498,27 @@ IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList
Get a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamPrefixesAvailablePrefixesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamPrefixesAvailablePrefixesListRequest
*/
func (a *IpamAPIService) IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest {
return ApiIpamPrefixesAvailablePrefixesListRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []AvailablePrefix
+//
+// @return []AvailablePrefix
func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []AvailablePrefix
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []AvailablePrefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesList")
@@ -19947,8 +20602,8 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefi
}
type ApiIpamPrefixesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
prefixRequest *[]PrefixRequest
}
@@ -19966,22 +20621,22 @@ IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy
Delete a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest {
return ApiIpamPrefixesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkDestroy")
@@ -20060,8 +20715,8 @@ func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDes
}
type ApiIpamPrefixesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
prefixRequest *[]PrefixRequest
}
@@ -20079,24 +20734,25 @@ IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate
Patch a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest {
return ApiIpamPrefixesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Prefix
+//
+// @return []Prefix
func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Prefix
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkPartialUpdate")
@@ -20184,8 +20840,8 @@ func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesB
}
type ApiIpamPrefixesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
prefixRequest *[]PrefixRequest
}
@@ -20203,24 +20859,25 @@ IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate
Put a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest {
return ApiIpamPrefixesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Prefix
+//
+// @return []Prefix
func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Prefix
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkUpdate")
@@ -20308,8 +20965,8 @@ func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpda
}
type ApiIpamPrefixesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writablePrefixRequest *WritablePrefixRequest
}
@@ -20327,24 +20984,25 @@ IpamPrefixesCreate Method for IpamPrefixesCreate
Post a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesCreateRequest
*/
func (a *IpamAPIService) IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest {
return ApiIpamPrefixesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Prefix
+//
+// @return Prefix
func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Prefix
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesCreate")
@@ -20432,9 +21090,9 @@ func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateReques
}
type ApiIpamPrefixesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamPrefixesDestroyRequest) Execute() (*http.Response, error) {
@@ -20446,24 +21104,24 @@ IpamPrefixesDestroy Method for IpamPrefixesDestroy
Delete a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesDestroyRequest
*/
func (a *IpamAPIService) IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest {
return ApiIpamPrefixesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesDestroy")
@@ -20538,136 +21196,148 @@ func (a *IpamAPIService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequ
}
type ApiIpamPrefixesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- children *[]int32
- childrenEmpty *[]int32
- childrenGt *[]int32
- childrenGte *[]int32
- childrenLt *[]int32
- childrenLte *[]int32
- childrenN *[]int32
- contains *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- depth *[]int32
- depthEmpty *[]int32
- depthGt *[]int32
- depthGte *[]int32
- depthLt *[]int32
- depthLte *[]int32
- depthN *[]int32
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- family *float32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isPool *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
- markUtilized *bool
- maskLength *[]int32
- maskLengthGte *float32
- maskLengthLte *float32
+ ctx context.Context
+ ApiService IpamAPI
+ children *[]int32
+ childrenEmpty *[]int32
+ childrenGt *[]int32
+ childrenGte *[]int32
+ childrenLt *[]int32
+ childrenLte *[]int32
+ childrenN *[]int32
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ contains *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ depth *[]int32
+ depthEmpty *[]int32
+ depthGt *[]int32
+ depthGte *[]int32
+ depthLt *[]int32
+ depthLte *[]int32
+ depthN *[]int32
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ family *float32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ isPool *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
+ markUtilized *bool
+ maskLength *[]int32
+ maskLengthGte *float32
+ maskLengthLte *float32
modifiedByRequest *string
- offset *int32
- ordering *string
- prefix *[]string
- presentInVrf *string
- presentInVrfId *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- scopeId *[]int32
- scopeIdEmpty *bool
- scopeIdGt *[]int32
- scopeIdGte *[]int32
- scopeIdLt *[]int32
- scopeIdLte *[]int32
- scopeIdN *[]int32
- scopeType *string
- scopeTypeN *string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vlanId *[]*int32
- vlanIdN *[]*int32
- vlanVid *int32
- vlanVidEmpty *int32
- vlanVidGt *int32
- vlanVidGte *int32
- vlanVidLt *int32
- vlanVidLte *int32
- vlanVidN *int32
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]*int32
- vrfIdN *[]*int32
- within *string
- withinInclude *string
+ offset *int32
+ ordering *string
+ prefix *[]string
+ presentInVrf *string
+ presentInVrfId *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ scopeId *[]int32
+ scopeIdEmpty *bool
+ scopeIdGt *[]int32
+ scopeIdGte *[]int32
+ scopeIdLt *[]int32
+ scopeIdLte *[]int32
+ scopeIdN *[]int32
+ scopeType *string
+ scopeTypeN *string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vlanGroup *[]string
+ vlanGroupN *[]string
+ vlanGroupId *[]int32
+ vlanGroupIdN *[]int32
+ vlanId *[]*int32
+ vlanIdN *[]*int32
+ vlanVid *int32
+ vlanVidEmpty *int32
+ vlanVidGt *int32
+ vlanVidGte *int32
+ vlanVidLt *int32
+ vlanVidLte *int32
+ vlanVidN *int32
+ vrf *[]*string
+ vrfN *[]*string
+ vrfId *[]*int32
+ vrfIdN *[]*int32
+ within *string
+ withinInclude *string
}
func (r ApiIpamPrefixesListRequest) Children(children []int32) ApiIpamPrefixesListRequest {
@@ -20705,6 +21375,40 @@ func (r ApiIpamPrefixesListRequest) ChildrenN(childrenN []int32) ApiIpamPrefixes
return r
}
+// Contact
+func (r ApiIpamPrefixesListRequest) Contact(contact []int32) ApiIpamPrefixesListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiIpamPrefixesListRequest) ContactN(contactN []int32) ApiIpamPrefixesListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiIpamPrefixesListRequest) ContactGroup(contactGroup []string) ApiIpamPrefixesListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiIpamPrefixesListRequest) ContactGroupN(contactGroupN []string) ApiIpamPrefixesListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiIpamPrefixesListRequest) ContactRole(contactRole []int32) ApiIpamPrefixesListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiIpamPrefixesListRequest) ContactRoleN(contactRoleN []int32) ApiIpamPrefixesListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
+}
+
// Prefixes which contain this prefix or IP
func (r ApiIpamPrefixesListRequest) Contains(contains string) ApiIpamPrefixesListRequest {
r.contains = &contains
@@ -21213,6 +21917,16 @@ func (r ApiIpamPrefixesListRequest) TagN(tagN []string) ApiIpamPrefixesListReque
return r
}
+func (r ApiIpamPrefixesListRequest) TagId(tagId []int32) ApiIpamPrefixesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamPrefixesListRequest) TagIdN(tagIdN []int32) ApiIpamPrefixesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamPrefixesListRequest) Tenant(tenant []string) ApiIpamPrefixesListRequest {
r.tenant = &tenant
@@ -21262,6 +21976,30 @@ func (r ApiIpamPrefixesListRequest) UpdatedByRequest(updatedByRequest string) Ap
return r
}
+// VLAN Group (slug)
+func (r ApiIpamPrefixesListRequest) VlanGroup(vlanGroup []string) ApiIpamPrefixesListRequest {
+ r.vlanGroup = &vlanGroup
+ return r
+}
+
+// VLAN Group (slug)
+func (r ApiIpamPrefixesListRequest) VlanGroupN(vlanGroupN []string) ApiIpamPrefixesListRequest {
+ r.vlanGroupN = &vlanGroupN
+ return r
+}
+
+// VLAN Group (ID)
+func (r ApiIpamPrefixesListRequest) VlanGroupId(vlanGroupId []int32) ApiIpamPrefixesListRequest {
+ r.vlanGroupId = &vlanGroupId
+ return r
+}
+
+// VLAN Group (ID)
+func (r ApiIpamPrefixesListRequest) VlanGroupIdN(vlanGroupIdN []int32) ApiIpamPrefixesListRequest {
+ r.vlanGroupIdN = &vlanGroupIdN
+ return r
+}
+
// VLAN (ID)
func (r ApiIpamPrefixesListRequest) VlanId(vlanId []*int32) ApiIpamPrefixesListRequest {
r.vlanId = &vlanId
@@ -21361,24 +22099,25 @@ IpamPrefixesList Method for IpamPrefixesList
Get a list of prefix objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamPrefixesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamPrefixesListRequest
*/
func (a *IpamAPIService) IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest {
return ApiIpamPrefixesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedPrefixList
+//
+// @return PaginatedPrefixList
func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedPrefixList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedPrefixList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesList")
@@ -21469,6 +22208,72 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", t, "form", "multi")
}
}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.contains != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "form", "")
}
@@ -22376,6 +23181,28 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -22467,6 +23294,50 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
+ if r.vlanGroup != nil {
+ t := *r.vlanGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group", t, "form", "multi")
+ }
+ }
+ if r.vlanGroupN != nil {
+ t := *r.vlanGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group__n", t, "form", "multi")
+ }
+ }
+ if r.vlanGroupId != nil {
+ t := *r.vlanGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group_id", t, "form", "multi")
+ }
+ }
+ if r.vlanGroupIdN != nil {
+ t := *r.vlanGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_group_id__n", t, "form", "multi")
+ }
+ }
if r.vlanId != nil {
t := *r.vlanId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -22629,9 +23500,9 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (
}
type ApiIpamPrefixesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritablePrefixRequest *PatchedWritablePrefixRequest
}
@@ -22649,26 +23520,27 @@ IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate
Patch a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest {
return ApiIpamPrefixesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Prefix
+//
+// @return Prefix
func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Prefix
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesPartialUpdate")
@@ -22754,9 +23626,9 @@ func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesParti
}
type ApiIpamPrefixesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamPrefixesRetrieveRequest) Execute() (*Prefix, *http.Response, error) {
@@ -22768,26 +23640,27 @@ IpamPrefixesRetrieve Method for IpamPrefixesRetrieve
Get a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesRetrieveRequest
*/
func (a *IpamAPIService) IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest {
return ApiIpamPrefixesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Prefix
+//
+// @return Prefix
func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Prefix
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesRetrieve")
@@ -22871,9 +23744,9 @@ func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRe
}
type ApiIpamPrefixesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writablePrefixRequest *WritablePrefixRequest
}
@@ -22891,26 +23764,27 @@ IpamPrefixesUpdate Method for IpamPrefixesUpdate
Put a prefix object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this prefix.
- @return ApiIpamPrefixesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this prefix.
+ @return ApiIpamPrefixesUpdateRequest
*/
func (a *IpamAPIService) IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest {
return ApiIpamPrefixesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Prefix
+//
+// @return Prefix
func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Prefix
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Prefix
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesUpdate")
@@ -22999,7 +23873,7 @@ func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateReques
}
type ApiIpamRirsBulkDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
rIRRequest *[]RIRRequest
}
@@ -23018,22 +23892,22 @@ IpamRirsBulkDestroy Method for IpamRirsBulkDestroy
Delete a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest {
return ApiIpamRirsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkDestroy")
@@ -23112,7 +23986,7 @@ func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequ
}
type ApiIpamRirsBulkPartialUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
rIRRequest *[]RIRRequest
}
@@ -23131,24 +24005,25 @@ IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate
Patch a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest {
return ApiIpamRirsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RIR
+//
+// @return []RIR
func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RIR
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkPartialUpdate")
@@ -23236,7 +24111,7 @@ func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkParti
}
type ApiIpamRirsBulkUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
rIRRequest *[]RIRRequest
}
@@ -23255,24 +24130,25 @@ IpamRirsBulkUpdate Method for IpamRirsBulkUpdate
Put a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest {
return ApiIpamRirsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RIR
+//
+// @return []RIR
func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RIR
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkUpdate")
@@ -23360,7 +24236,7 @@ func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateReques
}
type ApiIpamRirsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
rIRRequest *RIRRequest
}
@@ -23379,24 +24255,25 @@ IpamRirsCreate Method for IpamRirsCreate
Post a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsCreateRequest
*/
func (a *IpamAPIService) IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest {
return ApiIpamRirsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RIR
+//
+// @return RIR
func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RIR
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsCreate")
@@ -23484,9 +24361,9 @@ func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR
}
type ApiIpamRirsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRirsDestroyRequest) Execute() (*http.Response, error) {
@@ -23498,24 +24375,24 @@ IpamRirsDestroy Method for IpamRirsDestroy
Delete a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsDestroyRequest
*/
func (a *IpamAPIService) IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest {
return ApiIpamRirsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsDestroy")
@@ -23590,72 +24467,74 @@ func (a *IpamAPIService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*h
}
type ApiIpamRirsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isPrivate *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ isPrivate *bool
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiIpamRirsListRequest) Created(created []time.Time) ApiIpamRirsListRequest {
@@ -23977,6 +24856,16 @@ func (r ApiIpamRirsListRequest) TagN(tagN []string) ApiIpamRirsListRequest {
return r
}
+func (r ApiIpamRirsListRequest) TagId(tagId []int32) ApiIpamRirsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamRirsListRequest) TagIdN(tagIdN []int32) ApiIpamRirsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamRirsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRirsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -23991,24 +24880,25 @@ IpamRirsList Method for IpamRirsList
Get a list of RIR objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRirsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRirsListRequest
*/
func (a *IpamAPIService) IpamRirsList(ctx context.Context) ApiIpamRirsListRequest {
return ApiIpamRirsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRIRList
+//
+// @return PaginatedRIRList
func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRIRList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRIRList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsList")
@@ -24627,6 +25517,28 @@ func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -24699,9 +25611,9 @@ func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat
}
type ApiIpamRirsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedRIRRequest *PatchedRIRRequest
}
@@ -24719,26 +25631,27 @@ IpamRirsPartialUpdate Method for IpamRirsPartialUpdate
Patch a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest {
return ApiIpamRirsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RIR
+//
+// @return RIR
func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RIR
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsPartialUpdate")
@@ -24824,9 +25737,9 @@ func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdate
}
type ApiIpamRirsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRirsRetrieveRequest) Execute() (*RIR, *http.Response, error) {
@@ -24838,26 +25751,27 @@ IpamRirsRetrieve Method for IpamRirsRetrieve
Get a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsRetrieveRequest
*/
func (a *IpamAPIService) IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest {
return ApiIpamRirsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RIR
+//
+// @return RIR
func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RIR
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsRetrieve")
@@ -24941,9 +25855,9 @@ func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (
}
type ApiIpamRirsUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
rIRRequest *RIRRequest
}
@@ -24961,26 +25875,27 @@ IpamRirsUpdate Method for IpamRirsUpdate
Put a RIR object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this RIR.
- @return ApiIpamRirsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this RIR.
+ @return ApiIpamRirsUpdateRequest
*/
func (a *IpamAPIService) IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest {
return ApiIpamRirsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RIR
+//
+// @return RIR
func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RIR
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RIR
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsUpdate")
@@ -25069,8 +25984,8 @@ func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR
}
type ApiIpamRolesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
roleRequest *[]RoleRequest
}
@@ -25088,22 +26003,22 @@ IpamRolesBulkDestroy Method for IpamRolesBulkDestroy
Delete a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest {
return ApiIpamRolesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkDestroy")
@@ -25182,8 +26097,8 @@ func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRe
}
type ApiIpamRolesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
roleRequest *[]RoleRequest
}
@@ -25201,24 +26116,25 @@ IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate
Patch a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest {
return ApiIpamRolesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Role
+//
+// @return []Role
func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Role
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkPartialUpdate")
@@ -25306,8 +26222,8 @@ func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPar
}
type ApiIpamRolesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
roleRequest *[]RoleRequest
}
@@ -25325,24 +26241,25 @@ IpamRolesBulkUpdate Method for IpamRolesBulkUpdate
Put a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest {
return ApiIpamRolesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Role
+//
+// @return []Role
func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Role
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkUpdate")
@@ -25430,8 +26347,8 @@ func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequ
}
type ApiIpamRolesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
roleRequest *RoleRequest
}
@@ -25449,24 +26366,25 @@ IpamRolesCreate Method for IpamRolesCreate
Post a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesCreateRequest
*/
func (a *IpamAPIService) IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest {
return ApiIpamRolesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Role
+//
+// @return Role
func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Role
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesCreate")
@@ -25554,9 +26472,9 @@ func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*R
}
type ApiIpamRolesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRolesDestroyRequest) Execute() (*http.Response, error) {
@@ -25568,24 +26486,24 @@ IpamRolesDestroy Method for IpamRolesDestroy
Delete a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesDestroyRequest
*/
func (a *IpamAPIService) IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest {
return ApiIpamRolesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesDestroy")
@@ -25660,78 +26578,80 @@ func (a *IpamAPIService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (
}
type ApiIpamRolesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiIpamRolesListRequest) Created(created []time.Time) ApiIpamRolesListRequest {
@@ -26048,6 +26968,16 @@ func (r ApiIpamRolesListRequest) TagN(tagN []string) ApiIpamRolesListRequest {
return r
}
+func (r ApiIpamRolesListRequest) TagId(tagId []int32) ApiIpamRolesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamRolesListRequest) TagIdN(tagIdN []int32) ApiIpamRolesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRolesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -26097,24 +27027,25 @@ IpamRolesList Method for IpamRolesList
Get a list of role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRolesListRequest
*/
func (a *IpamAPIService) IpamRolesList(ctx context.Context) ApiIpamRolesListRequest {
return ApiIpamRolesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRoleList
+//
+// @return PaginatedRoleList
func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRoleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRoleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesList")
@@ -26730,6 +27661,28 @@ func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -26871,9 +27824,9 @@ func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin
}
type ApiIpamRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedRoleRequest *PatchedRoleRequest
}
@@ -26891,26 +27844,27 @@ IpamRolesPartialUpdate Method for IpamRolesPartialUpdate
Patch a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest {
return ApiIpamRolesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Role
+//
+// @return Role
func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Role
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesPartialUpdate")
@@ -26996,9 +27950,9 @@ func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpda
}
type ApiIpamRolesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRolesRetrieveRequest) Execute() (*Role, *http.Response, error) {
@@ -27010,26 +27964,27 @@ IpamRolesRetrieve Method for IpamRolesRetrieve
Get a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesRetrieveRequest
*/
func (a *IpamAPIService) IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest {
return ApiIpamRolesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Role
+//
+// @return Role
func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Role
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesRetrieve")
@@ -27113,9 +28068,9 @@ func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest)
}
type ApiIpamRolesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
roleRequest *RoleRequest
}
@@ -27133,26 +28088,27 @@ IpamRolesUpdate Method for IpamRolesUpdate
Put a role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this role.
- @return ApiIpamRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this role.
+ @return ApiIpamRolesUpdateRequest
*/
func (a *IpamAPIService) IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest {
return ApiIpamRolesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Role
+//
+// @return Role
func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Role
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Role
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesUpdate")
@@ -27241,8 +28197,8 @@ func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*R
}
type ApiIpamRouteTargetsBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
routeTargetRequest *[]RouteTargetRequest
}
@@ -27260,22 +28216,22 @@ IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy
Delete a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest {
return ApiIpamRouteTargetsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkDestroy")
@@ -27354,8 +28310,8 @@ func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTarget
}
type ApiIpamRouteTargetsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
routeTargetRequest *[]RouteTargetRequest
}
@@ -27373,24 +28329,25 @@ IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate
Patch a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest {
return ApiIpamRouteTargetsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RouteTarget
+//
+// @return []RouteTarget
func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RouteTarget
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkPartialUpdate")
@@ -27478,8 +28435,8 @@ func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRoute
}
type ApiIpamRouteTargetsBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
routeTargetRequest *[]RouteTargetRequest
}
@@ -27497,24 +28454,25 @@ IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate
Put a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest {
return ApiIpamRouteTargetsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []RouteTarget
+//
+// @return []RouteTarget
func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []RouteTarget
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkUpdate")
@@ -27602,8 +28560,8 @@ func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargets
}
type ApiIpamRouteTargetsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
routeTargetRequest *RouteTargetRequest
}
@@ -27621,24 +28579,25 @@ IpamRouteTargetsCreate Method for IpamRouteTargetsCreate
Post a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsCreateRequest
*/
func (a *IpamAPIService) IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest {
return ApiIpamRouteTargetsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return RouteTarget
+//
+// @return RouteTarget
func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RouteTarget
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsCreate")
@@ -27726,9 +28685,9 @@ func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea
}
type ApiIpamRouteTargetsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRouteTargetsDestroyRequest) Execute() (*http.Response, error) {
@@ -27740,24 +28699,24 @@ IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy
Delete a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsDestroyRequest
*/
func (a *IpamAPIService) IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest {
return ApiIpamRouteTargetsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsDestroy")
@@ -27832,84 +28791,86 @@ func (a *IpamAPIService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDes
}
type ApiIpamRouteTargetsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- exportingL2vpn *[]*int64
- exportingL2vpnN *[]*int64
- exportingL2vpnId *[]int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ exportingL2vpn *[]*int64
+ exportingL2vpnN *[]*int64
+ exportingL2vpnId *[]int32
exportingL2vpnIdN *[]int32
- exportingVrf *[]*string
- exportingVrfN *[]*string
- exportingVrfId *[]int32
- exportingVrfIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- importingL2vpn *[]*int64
- importingL2vpnN *[]*int64
- importingL2vpnId *[]int32
+ exportingVrf *[]*string
+ exportingVrfN *[]*string
+ exportingVrfId *[]int32
+ exportingVrfIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ importingL2vpn *[]*int64
+ importingL2vpnN *[]*int64
+ importingL2vpnId *[]int32
importingL2vpnIdN *[]int32
- importingVrf *[]*string
- importingVrfN *[]*string
- importingVrfId *[]int32
- importingVrfIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ importingVrf *[]*string
+ importingVrfN *[]*string
+ importingVrfId *[]int32
+ importingVrfIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiIpamRouteTargetsListRequest) Created(created []time.Time) ApiIpamRouteTargetsListRequest {
@@ -28267,6 +29228,16 @@ func (r ApiIpamRouteTargetsListRequest) TagN(tagN []string) ApiIpamRouteTargetsL
return r
}
+func (r ApiIpamRouteTargetsListRequest) TagId(tagId []int32) ApiIpamRouteTargetsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamRouteTargetsListRequest) TagIdN(tagIdN []int32) ApiIpamRouteTargetsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamRouteTargetsListRequest) Tenant(tenant []string) ApiIpamRouteTargetsListRequest {
r.tenant = &tenant
@@ -28325,24 +29296,25 @@ IpamRouteTargetsList Method for IpamRouteTargetsList
Get a list of route target objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamRouteTargetsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamRouteTargetsListRequest
*/
func (a *IpamAPIService) IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest {
return ApiIpamRouteTargetsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedRouteTargetList
+//
+// @return PaginatedRouteTargetList
func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedRouteTargetList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedRouteTargetList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsList")
@@ -29021,6 +29993,28 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -29181,9 +30175,9 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe
}
type ApiIpamRouteTargetsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedRouteTargetRequest *PatchedRouteTargetRequest
}
@@ -29201,26 +30195,27 @@ IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate
Patch a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest {
return ApiIpamRouteTargetsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RouteTarget
+//
+// @return RouteTarget
func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RouteTarget
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsPartialUpdate")
@@ -29306,9 +30301,9 @@ func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTarg
}
type ApiIpamRouteTargetsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamRouteTargetsRetrieveRequest) Execute() (*RouteTarget, *http.Response, error) {
@@ -29320,26 +30315,27 @@ IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve
Get a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsRetrieveRequest
*/
func (a *IpamAPIService) IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest {
return ApiIpamRouteTargetsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RouteTarget
+//
+// @return RouteTarget
func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RouteTarget
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsRetrieve")
@@ -29423,9 +30419,9 @@ func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRe
}
type ApiIpamRouteTargetsUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
routeTargetRequest *RouteTargetRequest
}
@@ -29443,26 +30439,27 @@ IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate
Put a route target object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this route target.
- @return ApiIpamRouteTargetsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this route target.
+ @return ApiIpamRouteTargetsUpdateRequest
*/
func (a *IpamAPIService) IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest {
return ApiIpamRouteTargetsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return RouteTarget
+//
+// @return RouteTarget
func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *RouteTarget
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RouteTarget
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsUpdate")
@@ -29551,8 +30548,8 @@ func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda
}
type ApiIpamServiceTemplatesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceTemplateRequest *[]ServiceTemplateRequest
}
@@ -29570,22 +30567,22 @@ IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy
Delete a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest {
return ApiIpamServiceTemplatesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkDestroy")
@@ -29664,8 +30661,8 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamService
}
type ApiIpamServiceTemplatesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceTemplateRequest *[]ServiceTemplateRequest
}
@@ -29683,24 +30680,25 @@ IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartial
Patch a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest {
return ApiIpamServiceTemplatesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ServiceTemplate
+//
+// @return []ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ServiceTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkPartialUpdate")
@@ -29788,8 +30786,8 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamS
}
type ApiIpamServiceTemplatesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceTemplateRequest *[]ServiceTemplateRequest
}
@@ -29807,24 +30805,25 @@ IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate
Put a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest {
return ApiIpamServiceTemplatesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ServiceTemplate
+//
+// @return []ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ServiceTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkUpdate")
@@ -29912,8 +30911,8 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceT
}
type ApiIpamServiceTemplatesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableServiceTemplateRequest *WritableServiceTemplateRequest
}
@@ -29931,24 +30930,25 @@ IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate
Post a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesCreateRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest {
return ApiIpamServiceTemplatesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ServiceTemplate
+//
+// @return ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ServiceTemplate
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesCreate")
@@ -30036,9 +31036,9 @@ func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTempl
}
type ApiIpamServiceTemplatesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamServiceTemplatesDestroyRequest) Execute() (*http.Response, error) {
@@ -30050,24 +31050,24 @@ IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy
Delete a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesDestroyRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest {
return ApiIpamServiceTemplatesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesDestroy")
@@ -30142,62 +31142,64 @@ func (a *IpamAPIService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemp
}
type ApiIpamServiceTemplatesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- port *float32
- protocol *IpamServiceTemplatesListProtocolParameter
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ port *float32
+ protocol *IpamServiceTemplatesListProtocolParameter
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiIpamServiceTemplatesListRequest) Created(created []time.Time) ApiIpamServiceTemplatesListRequest {
@@ -30470,6 +31472,16 @@ func (r ApiIpamServiceTemplatesListRequest) TagN(tagN []string) ApiIpamServiceTe
return r
}
+func (r ApiIpamServiceTemplatesListRequest) TagId(tagId []int32) ApiIpamServiceTemplatesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamServiceTemplatesListRequest) TagIdN(tagIdN []int32) ApiIpamServiceTemplatesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamServiceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServiceTemplatesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -30484,24 +31496,25 @@ IpamServiceTemplatesList Method for IpamServiceTemplatesList
Get a list of service template objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServiceTemplatesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServiceTemplatesListRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest {
return ApiIpamServiceTemplatesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedServiceTemplateList
+//
+// @return PaginatedServiceTemplateList
func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedServiceTemplateList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedServiceTemplateList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesList")
@@ -31010,6 +32023,28 @@ func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -31082,9 +32117,9 @@ func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat
}
type ApiIpamServiceTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableServiceTemplateRequest *PatchedWritableServiceTemplateRequest
}
@@ -31102,26 +32137,27 @@ IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate
Patch a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest {
return ApiIpamServiceTemplatesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ServiceTemplate
+//
+// @return ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ServiceTemplate
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesPartialUpdate")
@@ -31207,9 +32243,9 @@ func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServi
}
type ApiIpamServiceTemplatesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamServiceTemplatesRetrieveRequest) Execute() (*ServiceTemplate, *http.Response, error) {
@@ -31221,26 +32257,27 @@ IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve
Get a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesRetrieveRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest {
return ApiIpamServiceTemplatesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ServiceTemplate
+//
+// @return ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ServiceTemplate
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesRetrieve")
@@ -31324,9 +32361,9 @@ func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTem
}
type ApiIpamServiceTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableServiceTemplateRequest *WritableServiceTemplateRequest
}
@@ -31344,26 +32381,27 @@ IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate
Put a service template object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service template.
- @return ApiIpamServiceTemplatesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service template.
+ @return ApiIpamServiceTemplatesUpdateRequest
*/
func (a *IpamAPIService) IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest {
return ApiIpamServiceTemplatesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ServiceTemplate
+//
+// @return ServiceTemplate
func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ServiceTemplate
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ServiceTemplate
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesUpdate")
@@ -31452,8 +32490,8 @@ func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTempl
}
type ApiIpamServicesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceRequest *[]ServiceRequest
}
@@ -31471,22 +32509,22 @@ IpamServicesBulkDestroy Method for IpamServicesBulkDestroy
Delete a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest {
return ApiIpamServicesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkDestroy")
@@ -31565,8 +32603,8 @@ func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDes
}
type ApiIpamServicesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceRequest *[]ServiceRequest
}
@@ -31584,24 +32622,25 @@ IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate
Patch a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest {
return ApiIpamServicesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Service
+//
+// @return []Service
func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Service
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkPartialUpdate")
@@ -31689,8 +32728,8 @@ func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesB
}
type ApiIpamServicesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
serviceRequest *[]ServiceRequest
}
@@ -31708,24 +32747,25 @@ IpamServicesBulkUpdate Method for IpamServicesBulkUpdate
Put a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest {
return ApiIpamServicesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Service
+//
+// @return []Service
func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Service
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkUpdate")
@@ -31813,8 +32853,8 @@ func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpda
}
type ApiIpamServicesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableServiceRequest *WritableServiceRequest
}
@@ -31832,24 +32872,25 @@ IpamServicesCreate Method for IpamServicesCreate
Post a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesCreateRequest
*/
func (a *IpamAPIService) IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest {
return ApiIpamServicesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Service
+//
+// @return Service
func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Service
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesCreate")
@@ -31937,9 +32978,9 @@ func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateReques
}
type ApiIpamServicesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamServicesDestroyRequest) Execute() (*http.Response, error) {
@@ -31951,24 +32992,24 @@ IpamServicesDestroy Method for IpamServicesDestroy
Delete a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesDestroyRequest
*/
func (a *IpamAPIService) IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest {
return ApiIpamServicesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesDestroy")
@@ -32043,74 +33084,123 @@ func (a *IpamAPIService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequ
}
type ApiIpamServicesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]*int32
- deviceIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ipAddress *[]string
- ipAddressN *[]string
- ipAddressId *[]int32
- ipAddressIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- port *float32
- protocol *IpamServiceTemplatesListProtocolParameter
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineN *[]string
- virtualMachineId *[]*int32
- virtualMachineIdN *[]*int32
+ ctx context.Context
+ ApiService IpamAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]string
+ deviceId *[]int32
+ fhrpgroup *[]string
+ fhrpgroupId *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ipAddress *[]string
+ ipAddressN *[]string
+ ipAddressId *[]int32
+ ipAddressIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parentObjectId *[]int32
+ parentObjectIdEmpty *bool
+ parentObjectIdGt *[]int32
+ parentObjectIdGte *[]int32
+ parentObjectIdLt *[]int32
+ parentObjectIdLte *[]int32
+ parentObjectIdN *[]int32
+ parentObjectType *int32
+ parentObjectTypeN *int32
+ port *float32
+ protocol *IpamServiceTemplatesListProtocolParameter
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineId *[]int32
+}
+
+// Contact
+func (r ApiIpamServicesListRequest) Contact(contact []int32) ApiIpamServicesListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiIpamServicesListRequest) ContactN(contactN []int32) ApiIpamServicesListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ContactGroup(contactGroup []string) ApiIpamServicesListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ContactGroupN(contactGroupN []string) ApiIpamServicesListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiIpamServicesListRequest) ContactRole(contactRole []int32) ApiIpamServicesListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiIpamServicesListRequest) ContactRoleN(contactRoleN []int32) ApiIpamServicesListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
func (r ApiIpamServicesListRequest) Created(created []time.Time) ApiIpamServicesListRequest {
@@ -32208,27 +33298,23 @@ func (r ApiIpamServicesListRequest) DescriptionNisw(descriptionNisw []string) Ap
return r
}
-// Device (name)
-func (r ApiIpamServicesListRequest) Device(device []*string) ApiIpamServicesListRequest {
+func (r ApiIpamServicesListRequest) Device(device []string) ApiIpamServicesListRequest {
r.device = &device
return r
}
-// Device (name)
-func (r ApiIpamServicesListRequest) DeviceN(deviceN []*string) ApiIpamServicesListRequest {
- r.deviceN = &deviceN
+func (r ApiIpamServicesListRequest) DeviceId(deviceId []int32) ApiIpamServicesListRequest {
+ r.deviceId = &deviceId
return r
}
-// Device (ID)
-func (r ApiIpamServicesListRequest) DeviceId(deviceId []*int32) ApiIpamServicesListRequest {
- r.deviceId = &deviceId
+func (r ApiIpamServicesListRequest) Fhrpgroup(fhrpgroup []string) ApiIpamServicesListRequest {
+ r.fhrpgroup = &fhrpgroup
return r
}
-// Device (ID)
-func (r ApiIpamServicesListRequest) DeviceIdN(deviceIdN []*int32) ApiIpamServicesListRequest {
- r.deviceIdN = &deviceIdN
+func (r ApiIpamServicesListRequest) FhrpgroupId(fhrpgroupId []int32) ApiIpamServicesListRequest {
+ r.fhrpgroupId = &fhrpgroupId
return r
}
@@ -32404,6 +33490,51 @@ func (r ApiIpamServicesListRequest) Ordering(ordering string) ApiIpamServicesLis
return r
}
+func (r ApiIpamServicesListRequest) ParentObjectId(parentObjectId []int32) ApiIpamServicesListRequest {
+ r.parentObjectId = &parentObjectId
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdEmpty(parentObjectIdEmpty bool) ApiIpamServicesListRequest {
+ r.parentObjectIdEmpty = &parentObjectIdEmpty
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdGt(parentObjectIdGt []int32) ApiIpamServicesListRequest {
+ r.parentObjectIdGt = &parentObjectIdGt
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdGte(parentObjectIdGte []int32) ApiIpamServicesListRequest {
+ r.parentObjectIdGte = &parentObjectIdGte
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdLt(parentObjectIdLt []int32) ApiIpamServicesListRequest {
+ r.parentObjectIdLt = &parentObjectIdLt
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdLte(parentObjectIdLte []int32) ApiIpamServicesListRequest {
+ r.parentObjectIdLte = &parentObjectIdLte
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectIdN(parentObjectIdN []int32) ApiIpamServicesListRequest {
+ r.parentObjectIdN = &parentObjectIdN
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectType(parentObjectType int32) ApiIpamServicesListRequest {
+ r.parentObjectType = &parentObjectType
+ return r
+}
+
+func (r ApiIpamServicesListRequest) ParentObjectTypeN(parentObjectTypeN int32) ApiIpamServicesListRequest {
+ r.parentObjectTypeN = &parentObjectTypeN
+ return r
+}
+
func (r ApiIpamServicesListRequest) Port(port float32) ApiIpamServicesListRequest {
r.port = &port
return r
@@ -32431,32 +33562,28 @@ func (r ApiIpamServicesListRequest) TagN(tagN []string) ApiIpamServicesListReque
return r
}
-func (r ApiIpamServicesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServicesListRequest {
- r.updatedByRequest = &updatedByRequest
+func (r ApiIpamServicesListRequest) TagId(tagId []int32) ApiIpamServicesListRequest {
+ r.tagId = &tagId
return r
}
-// Virtual machine (name)
-func (r ApiIpamServicesListRequest) VirtualMachine(virtualMachine []string) ApiIpamServicesListRequest {
- r.virtualMachine = &virtualMachine
+func (r ApiIpamServicesListRequest) TagIdN(tagIdN []int32) ApiIpamServicesListRequest {
+ r.tagIdN = &tagIdN
return r
}
-// Virtual machine (name)
-func (r ApiIpamServicesListRequest) VirtualMachineN(virtualMachineN []string) ApiIpamServicesListRequest {
- r.virtualMachineN = &virtualMachineN
+func (r ApiIpamServicesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServicesListRequest {
+ r.updatedByRequest = &updatedByRequest
return r
}
-// Virtual machine (ID)
-func (r ApiIpamServicesListRequest) VirtualMachineId(virtualMachineId []*int32) ApiIpamServicesListRequest {
- r.virtualMachineId = &virtualMachineId
+func (r ApiIpamServicesListRequest) VirtualMachine(virtualMachine []string) ApiIpamServicesListRequest {
+ r.virtualMachine = &virtualMachine
return r
}
-// Virtual machine (ID)
-func (r ApiIpamServicesListRequest) VirtualMachineIdN(virtualMachineIdN []*int32) ApiIpamServicesListRequest {
- r.virtualMachineIdN = &virtualMachineIdN
+func (r ApiIpamServicesListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamServicesListRequest {
+ r.virtualMachineId = &virtualMachineId
return r
}
@@ -32469,24 +33596,25 @@ IpamServicesList Method for IpamServicesList
Get a list of service objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamServicesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamServicesListRequest
*/
func (a *IpamAPIService) IpamServicesList(ctx context.Context) ApiIpamServicesListRequest {
return ApiIpamServicesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedServiceList
+//
+// @return PaginatedServiceList
func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedServiceList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedServiceList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesList")
@@ -32500,6 +33628,72 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -32704,37 +33898,37 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi")
}
}
- if r.deviceN != nil {
- t := *r.deviceN
+ 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__n", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi")
}
}
- if r.deviceId != nil {
- t := *r.deviceId
+ if r.fhrpgroup != nil {
+ t := *r.fhrpgroup
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup", t, "form", "multi")
}
}
- if r.deviceIdN != nil {
- t := *r.deviceIdN
+ if r.fhrpgroupId != nil {
+ t := *r.fhrpgroupId
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", t, "form", "multi")
}
}
if r.id != nil {
@@ -33052,6 +34246,81 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "")
}
+ if r.parentObjectId != nil {
+ t := *r.parentObjectId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id", t, "form", "multi")
+ }
+ }
+ if r.parentObjectIdEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__empty", r.parentObjectIdEmpty, "form", "")
+ }
+ if r.parentObjectIdGt != nil {
+ t := *r.parentObjectIdGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__gt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__gt", t, "form", "multi")
+ }
+ }
+ if r.parentObjectIdGte != nil {
+ t := *r.parentObjectIdGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__gte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__gte", t, "form", "multi")
+ }
+ }
+ if r.parentObjectIdLt != nil {
+ t := *r.parentObjectIdLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__lt", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__lt", t, "form", "multi")
+ }
+ }
+ if r.parentObjectIdLte != nil {
+ t := *r.parentObjectIdLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__lte", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__lte", t, "form", "multi")
+ }
+ }
+ if r.parentObjectIdN != nil {
+ t := *r.parentObjectIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_id__n", t, "form", "multi")
+ }
+ }
+ if r.parentObjectType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_type", r.parentObjectType, "form", "")
+ }
+ if r.parentObjectTypeN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_object_type__n", r.parentObjectTypeN, "form", "")
+ }
if r.port != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "port", r.port, "form", "")
}
@@ -33083,51 +34352,51 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
- if r.updatedByRequest != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
- }
- if r.virtualMachine != nil {
- t := *r.virtualMachine
+ if r.tagId != nil {
+ t := *r.tagId
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
}
}
- if r.virtualMachineN != nil {
- t := *r.virtualMachineN
+ if r.tagIdN != nil {
+ t := *r.tagIdN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
}
}
- if r.virtualMachineId != nil {
- t := *r.virtualMachineId
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
+ }
+ if r.virtualMachine != nil {
+ t := *r.virtualMachine
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi")
}
}
- if r.virtualMachineIdN != nil {
- t := *r.virtualMachineIdN
+ 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__n", s.Index(i).Interface(), "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "form", "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi")
}
}
// to determine the Content-Type header
@@ -33199,9 +34468,9 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
}
type ApiIpamServicesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableServiceRequest *PatchedWritableServiceRequest
}
@@ -33219,26 +34488,27 @@ IpamServicesPartialUpdate Method for IpamServicesPartialUpdate
Patch a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest {
return ApiIpamServicesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Service
+//
+// @return Service
func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Service
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesPartialUpdate")
@@ -33324,9 +34594,9 @@ func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesParti
}
type ApiIpamServicesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamServicesRetrieveRequest) Execute() (*Service, *http.Response, error) {
@@ -33338,26 +34608,27 @@ IpamServicesRetrieve Method for IpamServicesRetrieve
Get a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesRetrieveRequest
*/
func (a *IpamAPIService) IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest {
return ApiIpamServicesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Service
+//
+// @return Service
func (a *IpamAPIService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Service
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesRetrieve")
@@ -33441,9 +34712,9 @@ func (a *IpamAPIService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRe
}
type ApiIpamServicesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableServiceRequest *WritableServiceRequest
}
@@ -33461,26 +34732,27 @@ IpamServicesUpdate Method for IpamServicesUpdate
Put a service object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this service.
- @return ApiIpamServicesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this service.
+ @return ApiIpamServicesUpdateRequest
*/
func (a *IpamAPIService) IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest {
return ApiIpamServicesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Service
+//
+// @return Service
func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Service
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Service
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesUpdate")
@@ -33569,9 +34841,9 @@ func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateReques
}
type ApiIpamVlanGroupsAvailableVlansCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
vLANRequest *[]VLANRequest
}
@@ -33589,26 +34861,27 @@ IpamVlanGroupsAvailableVlansCreate Method for IpamVlanGroupsAvailableVlansCreate
Post a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamVlanGroupsAvailableVlansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamVlanGroupsAvailableVlansCreateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest {
return ApiIpamVlanGroupsAvailableVlansCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []VLAN
+//
+// @return []VLAN
func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLAN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansCreate")
@@ -33697,9 +34970,9 @@ func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlan
}
type ApiIpamVlanGroupsAvailableVlansListRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanGroupsAvailableVlansListRequest) Execute() ([]AvailableVLAN, *http.Response, error) {
@@ -33711,26 +34984,27 @@ IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList
Get a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
- @return ApiIpamVlanGroupsAvailableVlansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id
+ @return ApiIpamVlanGroupsAvailableVlansListRequest
*/
func (a *IpamAPIService) IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest {
return ApiIpamVlanGroupsAvailableVlansListRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return []AvailableVLAN
+//
+// @return []AvailableVLAN
func (a *IpamAPIService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []AvailableVLAN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []AvailableVLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansList")
@@ -33814,8 +35088,8 @@ func (a *IpamAPIService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGr
}
type ApiIpamVlanGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANGroupRequest *[]VLANGroupRequest
}
@@ -33833,22 +35107,22 @@ IpamVlanGroupsBulkDestroy Method for IpamVlanGroupsBulkDestroy
Delete a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest {
return ApiIpamVlanGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkDestroy")
@@ -33927,8 +35201,8 @@ func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBul
}
type ApiIpamVlanGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANGroupRequest *[]VLANGroupRequest
}
@@ -33946,24 +35220,25 @@ IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate
Patch a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest {
return ApiIpamVlanGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANGroup
+//
+// @return []VLANGroup
func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkPartialUpdate")
@@ -34051,8 +35326,8 @@ func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGro
}
type ApiIpamVlanGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANGroupRequest *[]VLANGroupRequest
}
@@ -34070,24 +35345,25 @@ IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate
Put a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest {
return ApiIpamVlanGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANGroup
+//
+// @return []VLANGroup
func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkUpdate")
@@ -34175,8 +35451,8 @@ func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulk
}
type ApiIpamVlanGroupsCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANGroupRequest *VLANGroupRequest
}
@@ -34194,24 +35470,25 @@ IpamVlanGroupsCreate Method for IpamVlanGroupsCreate
Post a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsCreateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest {
return ApiIpamVlanGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VLANGroup
+//
+// @return VLANGroup
func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsCreate")
@@ -34299,9 +35576,9 @@ func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRe
}
type ApiIpamVlanGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -34313,24 +35590,24 @@ IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy
Delete a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsDestroyRequest
*/
func (a *IpamAPIService) IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest {
return ApiIpamVlanGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsDestroy")
@@ -34405,88 +35682,98 @@ func (a *IpamAPIService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroy
}
type ApiIpamVlanGroupsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- cluster *int32
- clusterGroup *int32
- containsVid *float32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *int32
+ ctx context.Context
+ ApiService IpamAPI
+ cluster *int32
+ clusterGroup *int32
+ containsVid *float32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rack *int32
- region *int32
- scopeId *[]int32
- scopeIdEmpty *bool
- scopeIdGt *[]int32
- scopeIdGte *[]int32
- scopeIdLt *[]int32
- scopeIdLte *[]int32
- scopeIdN *[]int32
- scopeType *string
- scopeTypeN *string
- site *int32
- siteGroup *int32
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ rack *int32
+ region *int32
+ scopeId *[]int32
+ scopeIdEmpty *bool
+ scopeIdGt *[]int32
+ scopeIdGte *[]int32
+ scopeIdLt *[]int32
+ scopeIdLte *[]int32
+ scopeIdN *[]int32
+ scopeType *string
+ scopeTypeN *string
+ site *int32
+ siteGroup *int32
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiIpamVlanGroupsListRequest) Cluster(cluster int32) ApiIpamVlanGroupsListRequest {
@@ -34888,6 +36175,60 @@ func (r ApiIpamVlanGroupsListRequest) TagN(tagN []string) ApiIpamVlanGroupsListR
return r
}
+func (r ApiIpamVlanGroupsListRequest) TagId(tagId []int32) ApiIpamVlanGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) TagIdN(tagIdN []int32) ApiIpamVlanGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
+// Tenant (slug)
+func (r ApiIpamVlanGroupsListRequest) Tenant(tenant []string) ApiIpamVlanGroupsListRequest {
+ r.tenant = &tenant
+ return r
+}
+
+// Tenant (slug)
+func (r ApiIpamVlanGroupsListRequest) TenantN(tenantN []string) ApiIpamVlanGroupsListRequest {
+ r.tenantN = &tenantN
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) TenantGroup(tenantGroup []string) ApiIpamVlanGroupsListRequest {
+ r.tenantGroup = &tenantGroup
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlanGroupsListRequest {
+ r.tenantGroupN = &tenantGroupN
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlanGroupsListRequest {
+ r.tenantGroupId = &tenantGroupId
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlanGroupsListRequest {
+ r.tenantGroupIdN = &tenantGroupIdN
+ return r
+}
+
+// Tenant (ID)
+func (r ApiIpamVlanGroupsListRequest) TenantId(tenantId []*int32) ApiIpamVlanGroupsListRequest {
+ r.tenantId = &tenantId
+ return r
+}
+
+// Tenant (ID)
+func (r ApiIpamVlanGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamVlanGroupsListRequest {
+ r.tenantIdN = &tenantIdN
+ return r
+}
+
func (r ApiIpamVlanGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -34902,24 +36243,25 @@ IpamVlanGroupsList Method for IpamVlanGroupsList
Get a list of VLAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanGroupsListRequest
*/
func (a *IpamAPIService) IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest {
return ApiIpamVlanGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVLANGroupList
+//
+// @return PaginatedVLANGroupList
func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVLANGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVLANGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsList")
@@ -35634,6 +36976,116 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
+ if r.tenant != nil {
+ t := *r.tenant
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi")
+ }
+ }
+ if r.tenantN != nil {
+ t := *r.tenantN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi")
+ }
+ }
+ if r.tenantGroup != nil {
+ t := *r.tenantGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi")
+ }
+ }
+ if r.tenantGroupN != nil {
+ t := *r.tenantGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi")
+ }
+ }
+ if r.tenantGroupId != nil {
+ t := *r.tenantGroupId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi")
+ }
+ }
+ if r.tenantGroupIdN != nil {
+ t := *r.tenantGroupIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi")
+ }
+ }
+ if r.tenantId != nil {
+ t := *r.tenantId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi")
+ }
+ }
+ if r.tenantIdN != nil {
+ t := *r.tenantIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -35706,9 +37158,9 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques
}
type ApiIpamVlanGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedVLANGroupRequest *PatchedVLANGroupRequest
}
@@ -35726,26 +37178,27 @@ IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate
Patch a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest {
return ApiIpamVlanGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANGroup
+//
+// @return VLANGroup
func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsPartialUpdate")
@@ -35831,9 +37284,9 @@ func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsP
}
type ApiIpamVlanGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanGroupsRetrieveRequest) Execute() (*VLANGroup, *http.Response, error) {
@@ -35845,26 +37298,27 @@ IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve
Get a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsRetrieveRequest
*/
func (a *IpamAPIService) IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest {
return ApiIpamVlanGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANGroup
+//
+// @return VLANGroup
func (a *IpamAPIService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsRetrieve")
@@ -35948,9 +37402,9 @@ func (a *IpamAPIService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrie
}
type ApiIpamVlanGroupsUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
vLANGroupRequest *VLANGroupRequest
}
@@ -35968,26 +37422,27 @@ IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate
Put a VLAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN group.
- @return ApiIpamVlanGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN group.
+ @return ApiIpamVlanGroupsUpdateRequest
*/
func (a *IpamAPIService) IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest {
return ApiIpamVlanGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANGroup
+//
+// @return VLANGroup
func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsUpdate")
@@ -36076,8 +37531,8 @@ func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRe
}
type ApiIpamVlanTranslationPoliciesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest
}
@@ -36095,22 +37550,22 @@ IpamVlanTranslationPoliciesBulkDestroy Method for IpamVlanTranslationPoliciesBul
Delete a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkDestroyRequest {
return ApiIpamVlanTranslationPoliciesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkDestroyExecute(r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesBulkDestroy")
@@ -36189,8 +37644,8 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkDestroyExecute(r ApiIpam
}
type ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest
}
@@ -36208,24 +37663,25 @@ IpamVlanTranslationPoliciesBulkPartialUpdate Method for IpamVlanTranslationPolic
Patch a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest {
return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANTranslationPolicy
+//
+// @return []VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesBulkPartialUpdate")
@@ -36313,8 +37769,8 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r A
}
type ApiIpamVlanTranslationPoliciesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest
}
@@ -36332,24 +37788,25 @@ IpamVlanTranslationPoliciesBulkUpdate Method for IpamVlanTranslationPoliciesBulk
Put a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkUpdateRequest {
return ApiIpamVlanTranslationPoliciesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANTranslationPolicy
+//
+// @return []VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesBulkUpdate")
@@ -36437,8 +37894,8 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkUpdateExecute(r ApiIpamV
}
type ApiIpamVlanTranslationPoliciesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationPolicyRequest *VLANTranslationPolicyRequest
}
@@ -36456,24 +37913,25 @@ IpamVlanTranslationPoliciesCreate Method for IpamVlanTranslationPoliciesCreate
Post a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesCreateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesCreate(ctx context.Context) ApiIpamVlanTranslationPoliciesCreateRequest {
return ApiIpamVlanTranslationPoliciesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VLANTranslationPolicy
+//
+// @return VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesCreateExecute(r ApiIpamVlanTranslationPoliciesCreateRequest) (*VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesCreate")
@@ -36561,9 +38019,9 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesCreateExecute(r ApiIpamVlanT
}
type ApiIpamVlanTranslationPoliciesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanTranslationPoliciesDestroyRequest) Execute() (*http.Response, error) {
@@ -36575,24 +38033,24 @@ IpamVlanTranslationPoliciesDestroy Method for IpamVlanTranslationPoliciesDestroy
Delete a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesDestroyRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesDestroyRequest {
return ApiIpamVlanTranslationPoliciesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanTranslationPoliciesDestroyExecute(r ApiIpamVlanTranslationPoliciesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesDestroy")
@@ -36667,60 +38125,62 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesDestroyExecute(r ApiIpamVlan
}
type ApiIpamVlanTranslationPoliciesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiIpamVlanTranslationPoliciesListRequest) Created(created []time.Time) ApiIpamVlanTranslationPoliciesListRequest {
@@ -36982,6 +38442,16 @@ func (r ApiIpamVlanTranslationPoliciesListRequest) TagN(tagN []string) ApiIpamVl
return r
}
+func (r ApiIpamVlanTranslationPoliciesListRequest) TagId(tagId []int32) ApiIpamVlanTranslationPoliciesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamVlanTranslationPoliciesListRequest) TagIdN(tagIdN []int32) ApiIpamVlanTranslationPoliciesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamVlanTranslationPoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanTranslationPoliciesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -36996,24 +38466,25 @@ IpamVlanTranslationPoliciesList Method for IpamVlanTranslationPoliciesList
Get a list of VLAN translation policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationPoliciesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationPoliciesListRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesList(ctx context.Context) ApiIpamVlanTranslationPoliciesListRequest {
return ApiIpamVlanTranslationPoliciesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVLANTranslationPolicyList
+//
+// @return PaginatedVLANTranslationPolicyList
func (a *IpamAPIService) IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTranslationPoliciesListRequest) (*PaginatedVLANTranslationPolicyList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVLANTranslationPolicyList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVLANTranslationPolicyList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesList")
@@ -37516,6 +38987,28 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTra
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -37588,9 +39081,9 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTra
}
type ApiIpamVlanTranslationPoliciesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedVLANTranslationPolicyRequest *PatchedVLANTranslationPolicyRequest
}
@@ -37608,26 +39101,27 @@ IpamVlanTranslationPoliciesPartialUpdate Method for IpamVlanTranslationPoliciesP
Patch a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesPartialUpdateRequest {
return ApiIpamVlanTranslationPoliciesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationPolicy
+//
+// @return VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesPartialUpdate")
@@ -37713,9 +39207,9 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesPartialUpdateExecute(r ApiIp
}
type ApiIpamVlanTranslationPoliciesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanTranslationPoliciesRetrieveRequest) Execute() (*VLANTranslationPolicy, *http.Response, error) {
@@ -37727,26 +39221,27 @@ IpamVlanTranslationPoliciesRetrieve Method for IpamVlanTranslationPoliciesRetrie
Get a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesRetrieveRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesRetrieveRequest {
return ApiIpamVlanTranslationPoliciesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationPolicy
+//
+// @return VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesRetrieveExecute(r ApiIpamVlanTranslationPoliciesRetrieveRequest) (*VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesRetrieve")
@@ -37830,9 +39325,9 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesRetrieveExecute(r ApiIpamVla
}
type ApiIpamVlanTranslationPoliciesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
vLANTranslationPolicyRequest *VLANTranslationPolicyRequest
}
@@ -37850,26 +39345,27 @@ IpamVlanTranslationPoliciesUpdate Method for IpamVlanTranslationPoliciesUpdate
Put a VLAN translation policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation policy.
- @return ApiIpamVlanTranslationPoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation policy.
+ @return ApiIpamVlanTranslationPoliciesUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationPoliciesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesUpdateRequest {
return ApiIpamVlanTranslationPoliciesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationPolicy
+//
+// @return VLANTranslationPolicy
func (a *IpamAPIService) IpamVlanTranslationPoliciesUpdateExecute(r ApiIpamVlanTranslationPoliciesUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesUpdate")
@@ -37958,8 +39454,8 @@ func (a *IpamAPIService) IpamVlanTranslationPoliciesUpdateExecute(r ApiIpamVlanT
}
type ApiIpamVlanTranslationRulesBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationRuleRequest *[]VLANTranslationRuleRequest
}
@@ -37977,22 +39473,22 @@ IpamVlanTranslationRulesBulkDestroy Method for IpamVlanTranslationRulesBulkDestr
Delete a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkDestroyRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationRulesBulkDestroyRequest {
return ApiIpamVlanTranslationRulesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanTranslationRulesBulkDestroyExecute(r ApiIpamVlanTranslationRulesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesBulkDestroy")
@@ -38071,8 +39567,8 @@ func (a *IpamAPIService) IpamVlanTranslationRulesBulkDestroyExecute(r ApiIpamVla
}
type ApiIpamVlanTranslationRulesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationRuleRequest *[]VLANTranslationRuleRequest
}
@@ -38090,24 +39586,25 @@ IpamVlanTranslationRulesBulkPartialUpdate Method for IpamVlanTranslationRulesBul
Patch a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkPartialUpdateRequest {
return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANTranslationRule
+//
+// @return []VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesBulkPartialUpdateExecute(r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) ([]VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANTranslationRule
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesBulkPartialUpdate")
@@ -38195,8 +39692,8 @@ func (a *IpamAPIService) IpamVlanTranslationRulesBulkPartialUpdateExecute(r ApiI
}
type ApiIpamVlanTranslationRulesBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationRuleRequest *[]VLANTranslationRuleRequest
}
@@ -38214,24 +39711,25 @@ IpamVlanTranslationRulesBulkUpdate Method for IpamVlanTranslationRulesBulkUpdate
Put a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesBulkUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkUpdateRequest {
return ApiIpamVlanTranslationRulesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLANTranslationRule
+//
+// @return []VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesBulkUpdateExecute(r ApiIpamVlanTranslationRulesBulkUpdateRequest) ([]VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLANTranslationRule
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesBulkUpdate")
@@ -38319,8 +39817,8 @@ func (a *IpamAPIService) IpamVlanTranslationRulesBulkUpdateExecute(r ApiIpamVlan
}
type ApiIpamVlanTranslationRulesCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANTranslationRuleRequest *VLANTranslationRuleRequest
}
@@ -38338,24 +39836,25 @@ IpamVlanTranslationRulesCreate Method for IpamVlanTranslationRulesCreate
Post a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesCreateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesCreate(ctx context.Context) ApiIpamVlanTranslationRulesCreateRequest {
return ApiIpamVlanTranslationRulesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VLANTranslationRule
+//
+// @return VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesCreateExecute(r ApiIpamVlanTranslationRulesCreateRequest) (*VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationRule
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesCreate")
@@ -38443,9 +39942,9 @@ func (a *IpamAPIService) IpamVlanTranslationRulesCreateExecute(r ApiIpamVlanTran
}
type ApiIpamVlanTranslationRulesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanTranslationRulesDestroyRequest) Execute() (*http.Response, error) {
@@ -38457,24 +39956,24 @@ IpamVlanTranslationRulesDestroy Method for IpamVlanTranslationRulesDestroy
Delete a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesDestroyRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationRulesDestroyRequest {
return ApiIpamVlanTranslationRulesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlanTranslationRulesDestroyExecute(r ApiIpamVlanTranslationRulesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesDestroy")
@@ -38549,67 +40048,69 @@ func (a *IpamAPIService) IpamVlanTranslationRulesDestroyExecute(r ApiIpamVlanTra
}
type ApiIpamVlanTranslationRulesListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- localVid *[]int32
- localVidEmpty *bool
- localVidGt *[]int32
- localVidGte *[]int32
- localVidLt *[]int32
- localVidLte *[]int32
- localVidN *[]int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ localVid *[]int32
+ localVidEmpty *bool
+ localVidGt *[]int32
+ localVidGte *[]int32
+ localVidLt *[]int32
+ localVidLte *[]int32
+ localVidN *[]int32
modifiedByRequest *string
- offset *int32
- ordering *string
- policy *[]string
- policyN *[]string
- policyId *[]int32
- policyIdN *[]int32
- q *string
- remoteVid *[]int32
- remoteVidEmpty *bool
- remoteVidGt *[]int32
- remoteVidGte *[]int32
- remoteVidLt *[]int32
- remoteVidLte *[]int32
- remoteVidN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ offset *int32
+ ordering *string
+ policy *[]string
+ policyN *[]string
+ policyId *[]int32
+ policyIdN *[]int32
+ q *string
+ remoteVid *[]int32
+ remoteVidEmpty *bool
+ remoteVidGt *[]int32
+ remoteVidGte *[]int32
+ remoteVidLt *[]int32
+ remoteVidLte *[]int32
+ remoteVidN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiIpamVlanTranslationRulesListRequest) Created(created []time.Time) ApiIpamVlanTranslationRulesListRequest {
@@ -38910,6 +40411,16 @@ func (r ApiIpamVlanTranslationRulesListRequest) TagN(tagN []string) ApiIpamVlanT
return r
}
+func (r ApiIpamVlanTranslationRulesListRequest) TagId(tagId []int32) ApiIpamVlanTranslationRulesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamVlanTranslationRulesListRequest) TagIdN(tagIdN []int32) ApiIpamVlanTranslationRulesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiIpamVlanTranslationRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanTranslationRulesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -38924,24 +40435,25 @@ IpamVlanTranslationRulesList Method for IpamVlanTranslationRulesList
Get a list of VLAN translation rule objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlanTranslationRulesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlanTranslationRulesListRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesList(ctx context.Context) ApiIpamVlanTranslationRulesListRequest {
return ApiIpamVlanTranslationRulesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVLANTranslationRuleList
+//
+// @return PaginatedVLANTranslationRuleList
func (a *IpamAPIService) IpamVlanTranslationRulesListExecute(r ApiIpamVlanTranslationRulesListRequest) (*PaginatedVLANTranslationRuleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVLANTranslationRuleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVLANTranslationRuleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesList")
@@ -39513,6 +41025,28 @@ func (a *IpamAPIService) IpamVlanTranslationRulesListExecute(r ApiIpamVlanTransl
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -39585,9 +41119,9 @@ func (a *IpamAPIService) IpamVlanTranslationRulesListExecute(r ApiIpamVlanTransl
}
type ApiIpamVlanTranslationRulesPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedVLANTranslationRuleRequest *PatchedVLANTranslationRuleRequest
}
@@ -39605,26 +41139,27 @@ IpamVlanTranslationRulesPartialUpdate Method for IpamVlanTranslationRulesPartial
Patch a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesPartialUpdateRequest {
return ApiIpamVlanTranslationRulesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationRule
+//
+// @return VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesPartialUpdateExecute(r ApiIpamVlanTranslationRulesPartialUpdateRequest) (*VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationRule
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesPartialUpdate")
@@ -39710,9 +41245,9 @@ func (a *IpamAPIService) IpamVlanTranslationRulesPartialUpdateExecute(r ApiIpamV
}
type ApiIpamVlanTranslationRulesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlanTranslationRulesRetrieveRequest) Execute() (*VLANTranslationRule, *http.Response, error) {
@@ -39724,26 +41259,27 @@ IpamVlanTranslationRulesRetrieve Method for IpamVlanTranslationRulesRetrieve
Get a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesRetrieveRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationRulesRetrieveRequest {
return ApiIpamVlanTranslationRulesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationRule
+//
+// @return VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesRetrieveExecute(r ApiIpamVlanTranslationRulesRetrieveRequest) (*VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationRule
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesRetrieve")
@@ -39827,9 +41363,9 @@ func (a *IpamAPIService) IpamVlanTranslationRulesRetrieveExecute(r ApiIpamVlanTr
}
type ApiIpamVlanTranslationRulesUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
vLANTranslationRuleRequest *VLANTranslationRuleRequest
}
@@ -39847,26 +41383,27 @@ IpamVlanTranslationRulesUpdate Method for IpamVlanTranslationRulesUpdate
Put a VLAN translation rule object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN translation rule.
- @return ApiIpamVlanTranslationRulesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN translation rule.
+ @return ApiIpamVlanTranslationRulesUpdateRequest
*/
func (a *IpamAPIService) IpamVlanTranslationRulesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesUpdateRequest {
return ApiIpamVlanTranslationRulesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLANTranslationRule
+//
+// @return VLANTranslationRule
func (a *IpamAPIService) IpamVlanTranslationRulesUpdateExecute(r ApiIpamVlanTranslationRulesUpdateRequest) (*VLANTranslationRule, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLANTranslationRule
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLANTranslationRule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesUpdate")
@@ -39955,8 +41492,8 @@ func (a *IpamAPIService) IpamVlanTranslationRulesUpdateExecute(r ApiIpamVlanTran
}
type ApiIpamVlansBulkDestroyRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANRequest *[]VLANRequest
}
@@ -39974,22 +41511,22 @@ IpamVlansBulkDestroy Method for IpamVlansBulkDestroy
Delete a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkDestroyRequest
*/
func (a *IpamAPIService) IpamVlansBulkDestroy(ctx context.Context) ApiIpamVlansBulkDestroyRequest {
return ApiIpamVlansBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkDestroy")
@@ -40068,8 +41605,8 @@ func (a *IpamAPIService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRe
}
type ApiIpamVlansBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANRequest *[]VLANRequest
}
@@ -40087,24 +41624,25 @@ IpamVlansBulkPartialUpdate Method for IpamVlansBulkPartialUpdate
Patch a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlansBulkPartialUpdate(ctx context.Context) ApiIpamVlansBulkPartialUpdateRequest {
return ApiIpamVlansBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLAN
+//
+// @return []VLAN
func (a *IpamAPIService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPartialUpdateRequest) ([]VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLAN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkPartialUpdate")
@@ -40192,8 +41730,8 @@ func (a *IpamAPIService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPar
}
type ApiIpamVlansBulkUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
vLANRequest *[]VLANRequest
}
@@ -40211,24 +41749,25 @@ IpamVlansBulkUpdate Method for IpamVlansBulkUpdate
Put a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansBulkUpdateRequest
*/
func (a *IpamAPIService) IpamVlansBulkUpdate(ctx context.Context) ApiIpamVlansBulkUpdateRequest {
return ApiIpamVlansBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VLAN
+//
+// @return []VLAN
func (a *IpamAPIService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequest) ([]VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VLAN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkUpdate")
@@ -40316,8 +41855,8 @@ func (a *IpamAPIService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequ
}
type ApiIpamVlansCreateRequest struct {
- ctx context.Context
- ApiService IpamAPI
+ ctx context.Context
+ ApiService IpamAPI
writableVLANRequest *WritableVLANRequest
}
@@ -40335,24 +41874,25 @@ IpamVlansCreate Method for IpamVlansCreate
Post a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansCreateRequest
*/
func (a *IpamAPIService) IpamVlansCreate(ctx context.Context) ApiIpamVlansCreateRequest {
return ApiIpamVlansCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VLAN
+//
+// @return VLAN
func (a *IpamAPIService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLAN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansCreate")
@@ -40440,9 +41980,9 @@ func (a *IpamAPIService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*V
}
type ApiIpamVlansDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlansDestroyRequest) Execute() (*http.Response, error) {
@@ -40454,24 +41994,24 @@ IpamVlansDestroy Method for IpamVlansDestroy
Delete a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansDestroyRequest
*/
func (a *IpamAPIService) IpamVlansDestroy(ctx context.Context, id int32) ApiIpamVlansDestroyRequest {
return ApiIpamVlansDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansDestroy")
@@ -40546,135 +42086,137 @@ func (a *IpamAPIService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (
}
type ApiIpamVlansListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- availableAtSite *string
- availableOnDevice *string
+ ctx context.Context
+ ApiService IpamAPI
+ availableAtSite *string
+ availableOnDevice *string
availableOnVirtualmachine *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]*int32
- groupIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceId *string
- l2vpn *[]*int64
- l2vpnN *[]*int64
- l2vpnId *[]int32
- l2vpnIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- qinqRole *[]*string
- qinqRoleEmpty *bool
- qinqRoleIc *[]*string
- qinqRoleIe *[]*string
- qinqRoleIew *[]*string
- qinqRoleIsw *[]*string
- qinqRoleN *[]*string
- qinqRoleNic *[]*string
- qinqRoleNie *[]*string
- qinqRoleNiew *[]*string
- qinqRoleNisw *[]*string
- qinqSvlanId *[]*int32
- qinqSvlanIdN *[]*int32
- qinqSvlanVid *[]int32
- qinqSvlanVidEmpty *[]int32
- qinqSvlanVidGt *[]int32
- qinqSvlanVidGte *[]int32
- qinqSvlanVidLt *[]int32
- qinqSvlanVidLte *[]int32
- qinqSvlanVidN *[]int32
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]*int32
- siteIdN *[]*int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vid *[]int32
- vidEmpty *bool
- vidGt *[]int32
- vidGte *[]int32
- vidLt *[]int32
- vidLte *[]int32
- vidN *[]int32
- vminterfaceId *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]*int32
+ groupIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *string
+ l2vpn *[]*int64
+ l2vpnN *[]*int64
+ l2vpnId *[]int32
+ l2vpnIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ qinqRole *[]*string
+ qinqRoleEmpty *bool
+ qinqRoleIc *[]*string
+ qinqRoleIe *[]*string
+ qinqRoleIew *[]*string
+ qinqRoleIsw *[]*string
+ qinqRoleN *[]*string
+ qinqRoleNic *[]*string
+ qinqRoleNie *[]*string
+ qinqRoleNiew *[]*string
+ qinqRoleNisw *[]*string
+ qinqSvlanId *[]*int32
+ qinqSvlanIdN *[]*int32
+ qinqSvlanVid *[]int32
+ qinqSvlanVidEmpty *[]int32
+ qinqSvlanVidGt *[]int32
+ qinqSvlanVidGte *[]int32
+ qinqSvlanVidLt *[]int32
+ qinqSvlanVidLte *[]int32
+ qinqSvlanVidN *[]int32
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]*int32
+ roleIdN *[]*int32
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]*int32
+ siteIdN *[]*int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vid *[]int32
+ vidEmpty *bool
+ vidGt *[]int32
+ vidGte *[]int32
+ vidLt *[]int32
+ vidLte *[]int32
+ vidN *[]int32
+ vminterfaceId *string
}
func (r ApiIpamVlansListRequest) AvailableAtSite(availableAtSite string) ApiIpamVlansListRequest {
@@ -41270,6 +42812,16 @@ func (r ApiIpamVlansListRequest) TagN(tagN []string) ApiIpamVlansListRequest {
return r
}
+func (r ApiIpamVlansListRequest) TagId(tagId []int32) ApiIpamVlansListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamVlansListRequest) TagIdN(tagIdN []int32) ApiIpamVlansListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamVlansListRequest) Tenant(tenant []string) ApiIpamVlansListRequest {
r.tenant = &tenant
@@ -41369,24 +42921,25 @@ IpamVlansList Method for IpamVlansList
Get a list of VLAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVlansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVlansListRequest
*/
func (a *IpamAPIService) IpamVlansList(ctx context.Context) ApiIpamVlansListRequest {
return ApiIpamVlansListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVLANList
+//
+// @return PaginatedVLANList
func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*PaginatedVLANList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVLANList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVLANList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansList")
@@ -42490,6 +44043,28 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -42722,9 +44297,9 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin
}
type ApiIpamVlansPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedWritableVLANRequest *PatchedWritableVLANRequest
}
@@ -42742,26 +44317,27 @@ IpamVlansPartialUpdate Method for IpamVlansPartialUpdate
Patch a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVlansPartialUpdate(ctx context.Context, id int32) ApiIpamVlansPartialUpdateRequest {
return ApiIpamVlansPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLAN
+//
+// @return VLAN
func (a *IpamAPIService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpdateRequest) (*VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLAN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansPartialUpdate")
@@ -42847,9 +44423,9 @@ func (a *IpamAPIService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpda
}
type ApiIpamVlansRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVlansRetrieveRequest) Execute() (*VLAN, *http.Response, error) {
@@ -42861,26 +44437,27 @@ IpamVlansRetrieve Method for IpamVlansRetrieve
Get a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansRetrieveRequest
*/
func (a *IpamAPIService) IpamVlansRetrieve(ctx context.Context, id int32) ApiIpamVlansRetrieveRequest {
return ApiIpamVlansRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLAN
+//
+// @return VLAN
func (a *IpamAPIService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) (*VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLAN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansRetrieve")
@@ -42964,9 +44541,9 @@ func (a *IpamAPIService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest)
}
type ApiIpamVlansUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
writableVLANRequest *WritableVLANRequest
}
@@ -42984,26 +44561,27 @@ IpamVlansUpdate Method for IpamVlansUpdate
Put a VLAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VLAN.
- @return ApiIpamVlansUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VLAN.
+ @return ApiIpamVlansUpdateRequest
*/
func (a *IpamAPIService) IpamVlansUpdate(ctx context.Context, id int32) ApiIpamVlansUpdateRequest {
return ApiIpamVlansUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VLAN
+//
+// @return VLAN
func (a *IpamAPIService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*VLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VLAN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansUpdate")
@@ -43092,7 +44670,7 @@ func (a *IpamAPIService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*V
}
type ApiIpamVrfsBulkDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
vRFRequest *[]VRFRequest
}
@@ -43111,22 +44689,22 @@ IpamVrfsBulkDestroy Method for IpamVrfsBulkDestroy
Delete a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkDestroyRequest
*/
func (a *IpamAPIService) IpamVrfsBulkDestroy(ctx context.Context) ApiIpamVrfsBulkDestroyRequest {
return ApiIpamVrfsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkDestroy")
@@ -43205,7 +44783,7 @@ func (a *IpamAPIService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequ
}
type ApiIpamVrfsBulkPartialUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
vRFRequest *[]VRFRequest
}
@@ -43224,24 +44802,25 @@ IpamVrfsBulkPartialUpdate Method for IpamVrfsBulkPartialUpdate
Patch a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVrfsBulkPartialUpdate(ctx context.Context) ApiIpamVrfsBulkPartialUpdateRequest {
return ApiIpamVrfsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VRF
+//
+// @return []VRF
func (a *IpamAPIService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkPartialUpdateRequest) ([]VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VRF
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkPartialUpdate")
@@ -43329,7 +44908,7 @@ func (a *IpamAPIService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkParti
}
type ApiIpamVrfsBulkUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
vRFRequest *[]VRFRequest
}
@@ -43348,24 +44927,25 @@ IpamVrfsBulkUpdate Method for IpamVrfsBulkUpdate
Put a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsBulkUpdateRequest
*/
func (a *IpamAPIService) IpamVrfsBulkUpdate(ctx context.Context) ApiIpamVrfsBulkUpdateRequest {
return ApiIpamVrfsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VRF
+//
+// @return []VRF
func (a *IpamAPIService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateRequest) ([]VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VRF
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkUpdate")
@@ -43453,7 +45033,7 @@ func (a *IpamAPIService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateReques
}
type ApiIpamVrfsCreateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
vRFRequest *VRFRequest
}
@@ -43472,24 +45052,25 @@ IpamVrfsCreate Method for IpamVrfsCreate
Post a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsCreateRequest
*/
func (a *IpamAPIService) IpamVrfsCreate(ctx context.Context) ApiIpamVrfsCreateRequest {
return ApiIpamVrfsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VRF
+//
+// @return VRF
func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VRF
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsCreate")
@@ -43577,9 +45158,9 @@ func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF
}
type ApiIpamVrfsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVrfsDestroyRequest) Execute() (*http.Response, error) {
@@ -43591,24 +45172,24 @@ IpamVrfsDestroy Method for IpamVrfsDestroy
Delete a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsDestroyRequest
*/
func (a *IpamAPIService) IpamVrfsDestroy(ctx context.Context, id int32) ApiIpamVrfsDestroyRequest {
return ApiIpamVrfsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *IpamAPIService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsDestroy")
@@ -43683,88 +45264,90 @@ func (a *IpamAPIService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*h
}
type ApiIpamVrfsListRequest struct {
- ctx context.Context
- ApiService IpamAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enforceUnique *bool
- exportTarget *[]string
- exportTargetN *[]string
- exportTargetId *[]int32
- exportTargetIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- importTarget *[]string
- importTargetN *[]string
- importTargetId *[]int32
- importTargetIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService IpamAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enforceUnique *bool
+ exportTarget *[]string
+ exportTargetN *[]string
+ exportTargetId *[]int32
+ exportTargetIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ importTarget *[]string
+ importTargetN *[]string
+ importTargetId *[]int32
+ importTargetIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rd *[]string
- rdEmpty *bool
- rdIc *[]string
- rdIe *[]string
- rdIew *[]string
- rdIsw *[]string
- rdN *[]string
- rdNic *[]string
- rdNie *[]string
- rdNiew *[]string
- rdNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ 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
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiIpamVrfsListRequest) Created(created []time.Time) ApiIpamVrfsListRequest {
@@ -44134,6 +45717,16 @@ func (r ApiIpamVrfsListRequest) TagN(tagN []string) ApiIpamVrfsListRequest {
return r
}
+func (r ApiIpamVrfsListRequest) TagId(tagId []int32) ApiIpamVrfsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiIpamVrfsListRequest) TagIdN(tagIdN []int32) ApiIpamVrfsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiIpamVrfsListRequest) Tenant(tenant []string) ApiIpamVrfsListRequest {
r.tenant = &tenant
@@ -44192,24 +45785,25 @@ IpamVrfsList Method for IpamVrfsList
Get a list of VRF objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiIpamVrfsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiIpamVrfsListRequest
*/
func (a *IpamAPIService) IpamVrfsList(ctx context.Context) ApiIpamVrfsListRequest {
return ApiIpamVrfsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVRFList
+//
+// @return PaginatedVRFList
func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*PaginatedVRFList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVRFList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVRFList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsList")
@@ -44916,6 +46510,28 @@ func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -45076,9 +46692,9 @@ func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat
}
type ApiIpamVrfsPartialUpdateRequest struct {
- ctx context.Context
- ApiService IpamAPI
- id int32
+ ctx context.Context
+ ApiService IpamAPI
+ id int32
patchedVRFRequest *PatchedVRFRequest
}
@@ -45096,26 +46712,27 @@ IpamVrfsPartialUpdate Method for IpamVrfsPartialUpdate
Patch a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsPartialUpdateRequest
*/
func (a *IpamAPIService) IpamVrfsPartialUpdate(ctx context.Context, id int32) ApiIpamVrfsPartialUpdateRequest {
return ApiIpamVrfsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VRF
+//
+// @return VRF
func (a *IpamAPIService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdateRequest) (*VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VRF
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsPartialUpdate")
@@ -45201,9 +46818,9 @@ func (a *IpamAPIService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdate
}
type ApiIpamVrfsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
}
func (r ApiIpamVrfsRetrieveRequest) Execute() (*VRF, *http.Response, error) {
@@ -45215,26 +46832,27 @@ IpamVrfsRetrieve Method for IpamVrfsRetrieve
Get a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsRetrieveRequest
*/
func (a *IpamAPIService) IpamVrfsRetrieve(ctx context.Context, id int32) ApiIpamVrfsRetrieveRequest {
return ApiIpamVrfsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VRF
+//
+// @return VRF
func (a *IpamAPIService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (*VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VRF
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsRetrieve")
@@ -45318,9 +46936,9 @@ func (a *IpamAPIService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (
}
type ApiIpamVrfsUpdateRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService IpamAPI
- id int32
+ id int32
vRFRequest *VRFRequest
}
@@ -45338,26 +46956,27 @@ IpamVrfsUpdate Method for IpamVrfsUpdate
Put a VRF object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this VRF.
- @return ApiIpamVrfsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this VRF.
+ @return ApiIpamVrfsUpdateRequest
*/
func (a *IpamAPIService) IpamVrfsUpdate(ctx context.Context, id int32) ApiIpamVrfsUpdateRequest {
return ApiIpamVrfsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VRF
+//
+// @return VRF
func (a *IpamAPIService) IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VRF
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VRF
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsUpdate")
diff --git a/api_schema.go b/api_schema.go
index c06b7abc4..056b9f782 100644
--- a/api_schema.go
+++ b/api_schema.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,19 +18,18 @@ import (
"net/url"
)
-
type SchemaAPI interface {
/*
- SchemaRetrieve Method for SchemaRetrieve
+ SchemaRetrieve Method for SchemaRetrieve
- OpenApi3 schema for this API. Format can be selected via content negotiation.
+ OpenApi3 schema for this API. Format can be selected via content negotiation.
-- YAML: application/vnd.oai.openapi
-- JSON: application/vnd.oai.openapi+json
+ - YAML: application/vnd.oai.openapi
+ - JSON: application/vnd.oai.openapi+json
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiSchemaRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiSchemaRetrieveRequest
*/
SchemaRetrieve(ctx context.Context) ApiSchemaRetrieveRequest
@@ -43,10 +42,10 @@ type SchemaAPI interface {
type SchemaAPIService service
type ApiSchemaRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService SchemaAPI
- format *SchemaRetrieveFormatParameter
- lang *SchemaRetrieveLangParameter
+ format *SchemaRetrieveFormatParameter
+ lang *SchemaRetrieveLangParameter
}
func (r ApiSchemaRetrieveRequest) Format(format SchemaRetrieveFormatParameter) ApiSchemaRetrieveRequest {
@@ -71,24 +70,25 @@ OpenApi3 schema for this API. Format can be selected via content negotiation.
- YAML: application/vnd.oai.openapi
- JSON: application/vnd.oai.openapi+json
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiSchemaRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiSchemaRetrieveRequest
*/
func (a *SchemaAPIService) SchemaRetrieve(ctx context.Context) ApiSchemaRetrieveRequest {
return ApiSchemaRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *SchemaAPIService) SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaAPIService.SchemaRetrieve")
diff --git a/api_status.go b/api_status.go
index d38e3811c..eac2e4333 100644
--- a/api_status.go
+++ b/api_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,16 +18,15 @@ import (
"net/url"
)
-
type StatusAPI interface {
/*
- StatusRetrieve Method for StatusRetrieve
+ StatusRetrieve Method for StatusRetrieve
- A lightweight read-only endpoint for conveying NetBox's current operational status.
+ A lightweight read-only endpoint for conveying NetBox's current operational status.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiStatusRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiStatusRetrieveRequest
*/
StatusRetrieve(ctx context.Context) ApiStatusRetrieveRequest
@@ -40,7 +39,7 @@ type StatusAPI interface {
type StatusAPIService service
type ApiStatusRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService StatusAPI
}
@@ -53,24 +52,25 @@ StatusRetrieve Method for StatusRetrieve
A lightweight read-only endpoint for conveying NetBox's current operational status.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiStatusRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiStatusRetrieveRequest
*/
func (a *StatusAPIService) StatusRetrieve(ctx context.Context) ApiStatusRetrieveRequest {
return ApiStatusRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *StatusAPIService) StatusRetrieveExecute(r ApiStatusRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatusAPIService.StatusRetrieve")
diff --git a/api_tenancy.go b/api_tenancy.go
index b54c45a5d..6f1502c91 100644
--- a/api_tenancy.go
+++ b/api_tenancy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type TenancyAPI interface {
/*
- TenancyContactAssignmentsBulkDestroy Method for TenancyContactAssignmentsBulkDestroy
+ TenancyContactAssignmentsBulkDestroy Method for TenancyContactAssignmentsBulkDestroy
- Delete a list of contact assignment objects.
+ Delete a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkDestroyRequest
*/
TenancyContactAssignmentsBulkDestroy(ctx context.Context) ApiTenancyContactAssignmentsBulkDestroyRequest
@@ -38,12 +37,12 @@ type TenancyAPI interface {
TenancyContactAssignmentsBulkDestroyExecute(r ApiTenancyContactAssignmentsBulkDestroyRequest) (*http.Response, error)
/*
- TenancyContactAssignmentsBulkPartialUpdate Method for TenancyContactAssignmentsBulkPartialUpdate
+ TenancyContactAssignmentsBulkPartialUpdate Method for TenancyContactAssignmentsBulkPartialUpdate
- Patch a list of contact assignment objects.
+ Patch a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest
*/
TenancyContactAssignmentsBulkPartialUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type TenancyAPI interface {
TenancyContactAssignmentsBulkPartialUpdateExecute(r ApiTenancyContactAssignmentsBulkPartialUpdateRequest) ([]ContactAssignment, *http.Response, error)
/*
- TenancyContactAssignmentsBulkUpdate Method for TenancyContactAssignmentsBulkUpdate
+ TenancyContactAssignmentsBulkUpdate Method for TenancyContactAssignmentsBulkUpdate
- Put a list of contact assignment objects.
+ Put a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkUpdateRequest
*/
TenancyContactAssignmentsBulkUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkUpdateRequest
@@ -66,12 +65,12 @@ type TenancyAPI interface {
TenancyContactAssignmentsBulkUpdateExecute(r ApiTenancyContactAssignmentsBulkUpdateRequest) ([]ContactAssignment, *http.Response, error)
/*
- TenancyContactAssignmentsCreate Method for TenancyContactAssignmentsCreate
+ TenancyContactAssignmentsCreate Method for TenancyContactAssignmentsCreate
- Post a list of contact assignment objects.
+ Post a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsCreateRequest
*/
TenancyContactAssignmentsCreate(ctx context.Context) ApiTenancyContactAssignmentsCreateRequest
@@ -80,13 +79,13 @@ type TenancyAPI interface {
TenancyContactAssignmentsCreateExecute(r ApiTenancyContactAssignmentsCreateRequest) (*ContactAssignment, *http.Response, error)
/*
- TenancyContactAssignmentsDestroy Method for TenancyContactAssignmentsDestroy
+ TenancyContactAssignmentsDestroy Method for TenancyContactAssignmentsDestroy
- Delete a contact assignment object.
+ Delete a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsDestroyRequest
*/
TenancyContactAssignmentsDestroy(ctx context.Context, id int32) ApiTenancyContactAssignmentsDestroyRequest
@@ -94,12 +93,12 @@ type TenancyAPI interface {
TenancyContactAssignmentsDestroyExecute(r ApiTenancyContactAssignmentsDestroyRequest) (*http.Response, error)
/*
- TenancyContactAssignmentsList Method for TenancyContactAssignmentsList
+ TenancyContactAssignmentsList Method for TenancyContactAssignmentsList
- Get a list of contact assignment objects.
+ Get a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsListRequest
*/
TenancyContactAssignmentsList(ctx context.Context) ApiTenancyContactAssignmentsListRequest
@@ -108,13 +107,13 @@ type TenancyAPI interface {
TenancyContactAssignmentsListExecute(r ApiTenancyContactAssignmentsListRequest) (*PaginatedContactAssignmentList, *http.Response, error)
/*
- TenancyContactAssignmentsPartialUpdate Method for TenancyContactAssignmentsPartialUpdate
+ TenancyContactAssignmentsPartialUpdate Method for TenancyContactAssignmentsPartialUpdate
- Patch a contact assignment object.
+ Patch a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsPartialUpdateRequest
*/
TenancyContactAssignmentsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsPartialUpdateRequest
@@ -123,13 +122,13 @@ type TenancyAPI interface {
TenancyContactAssignmentsPartialUpdateExecute(r ApiTenancyContactAssignmentsPartialUpdateRequest) (*ContactAssignment, *http.Response, error)
/*
- TenancyContactAssignmentsRetrieve Method for TenancyContactAssignmentsRetrieve
+ TenancyContactAssignmentsRetrieve Method for TenancyContactAssignmentsRetrieve
- Get a contact assignment object.
+ Get a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsRetrieveRequest
*/
TenancyContactAssignmentsRetrieve(ctx context.Context, id int32) ApiTenancyContactAssignmentsRetrieveRequest
@@ -138,13 +137,13 @@ type TenancyAPI interface {
TenancyContactAssignmentsRetrieveExecute(r ApiTenancyContactAssignmentsRetrieveRequest) (*ContactAssignment, *http.Response, error)
/*
- TenancyContactAssignmentsUpdate Method for TenancyContactAssignmentsUpdate
+ TenancyContactAssignmentsUpdate Method for TenancyContactAssignmentsUpdate
- Put a contact assignment object.
+ Put a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsUpdateRequest
*/
TenancyContactAssignmentsUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsUpdateRequest
@@ -153,12 +152,12 @@ type TenancyAPI interface {
TenancyContactAssignmentsUpdateExecute(r ApiTenancyContactAssignmentsUpdateRequest) (*ContactAssignment, *http.Response, error)
/*
- TenancyContactGroupsBulkDestroy Method for TenancyContactGroupsBulkDestroy
+ TenancyContactGroupsBulkDestroy Method for TenancyContactGroupsBulkDestroy
- Delete a list of contact group objects.
+ Delete a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkDestroyRequest
*/
TenancyContactGroupsBulkDestroy(ctx context.Context) ApiTenancyContactGroupsBulkDestroyRequest
@@ -166,12 +165,12 @@ type TenancyAPI interface {
TenancyContactGroupsBulkDestroyExecute(r ApiTenancyContactGroupsBulkDestroyRequest) (*http.Response, error)
/*
- TenancyContactGroupsBulkPartialUpdate Method for TenancyContactGroupsBulkPartialUpdate
+ TenancyContactGroupsBulkPartialUpdate Method for TenancyContactGroupsBulkPartialUpdate
- Patch a list of contact group objects.
+ Patch a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkPartialUpdateRequest
*/
TenancyContactGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyContactGroupsBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type TenancyAPI interface {
TenancyContactGroupsBulkPartialUpdateExecute(r ApiTenancyContactGroupsBulkPartialUpdateRequest) ([]ContactGroup, *http.Response, error)
/*
- TenancyContactGroupsBulkUpdate Method for TenancyContactGroupsBulkUpdate
+ TenancyContactGroupsBulkUpdate Method for TenancyContactGroupsBulkUpdate
- Put a list of contact group objects.
+ Put a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkUpdateRequest
*/
TenancyContactGroupsBulkUpdate(ctx context.Context) ApiTenancyContactGroupsBulkUpdateRequest
@@ -194,12 +193,12 @@ type TenancyAPI interface {
TenancyContactGroupsBulkUpdateExecute(r ApiTenancyContactGroupsBulkUpdateRequest) ([]ContactGroup, *http.Response, error)
/*
- TenancyContactGroupsCreate Method for TenancyContactGroupsCreate
+ TenancyContactGroupsCreate Method for TenancyContactGroupsCreate
- Post a list of contact group objects.
+ Post a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsCreateRequest
*/
TenancyContactGroupsCreate(ctx context.Context) ApiTenancyContactGroupsCreateRequest
@@ -208,13 +207,13 @@ type TenancyAPI interface {
TenancyContactGroupsCreateExecute(r ApiTenancyContactGroupsCreateRequest) (*ContactGroup, *http.Response, error)
/*
- TenancyContactGroupsDestroy Method for TenancyContactGroupsDestroy
+ TenancyContactGroupsDestroy Method for TenancyContactGroupsDestroy
- Delete a contact group object.
+ Delete a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsDestroyRequest
*/
TenancyContactGroupsDestroy(ctx context.Context, id int32) ApiTenancyContactGroupsDestroyRequest
@@ -222,12 +221,12 @@ type TenancyAPI interface {
TenancyContactGroupsDestroyExecute(r ApiTenancyContactGroupsDestroyRequest) (*http.Response, error)
/*
- TenancyContactGroupsList Method for TenancyContactGroupsList
+ TenancyContactGroupsList Method for TenancyContactGroupsList
- Get a list of contact group objects.
+ Get a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsListRequest
*/
TenancyContactGroupsList(ctx context.Context) ApiTenancyContactGroupsListRequest
@@ -236,13 +235,13 @@ type TenancyAPI interface {
TenancyContactGroupsListExecute(r ApiTenancyContactGroupsListRequest) (*PaginatedContactGroupList, *http.Response, error)
/*
- TenancyContactGroupsPartialUpdate Method for TenancyContactGroupsPartialUpdate
+ TenancyContactGroupsPartialUpdate Method for TenancyContactGroupsPartialUpdate
- Patch a contact group object.
+ Patch a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsPartialUpdateRequest
*/
TenancyContactGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsPartialUpdateRequest
@@ -251,13 +250,13 @@ type TenancyAPI interface {
TenancyContactGroupsPartialUpdateExecute(r ApiTenancyContactGroupsPartialUpdateRequest) (*ContactGroup, *http.Response, error)
/*
- TenancyContactGroupsRetrieve Method for TenancyContactGroupsRetrieve
+ TenancyContactGroupsRetrieve Method for TenancyContactGroupsRetrieve
- Get a contact group object.
+ Get a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsRetrieveRequest
*/
TenancyContactGroupsRetrieve(ctx context.Context, id int32) ApiTenancyContactGroupsRetrieveRequest
@@ -266,13 +265,13 @@ type TenancyAPI interface {
TenancyContactGroupsRetrieveExecute(r ApiTenancyContactGroupsRetrieveRequest) (*ContactGroup, *http.Response, error)
/*
- TenancyContactGroupsUpdate Method for TenancyContactGroupsUpdate
+ TenancyContactGroupsUpdate Method for TenancyContactGroupsUpdate
- Put a contact group object.
+ Put a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsUpdateRequest
*/
TenancyContactGroupsUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsUpdateRequest
@@ -281,12 +280,12 @@ type TenancyAPI interface {
TenancyContactGroupsUpdateExecute(r ApiTenancyContactGroupsUpdateRequest) (*ContactGroup, *http.Response, error)
/*
- TenancyContactRolesBulkDestroy Method for TenancyContactRolesBulkDestroy
+ TenancyContactRolesBulkDestroy Method for TenancyContactRolesBulkDestroy
- Delete a list of contact role objects.
+ Delete a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkDestroyRequest
*/
TenancyContactRolesBulkDestroy(ctx context.Context) ApiTenancyContactRolesBulkDestroyRequest
@@ -294,12 +293,12 @@ type TenancyAPI interface {
TenancyContactRolesBulkDestroyExecute(r ApiTenancyContactRolesBulkDestroyRequest) (*http.Response, error)
/*
- TenancyContactRolesBulkPartialUpdate Method for TenancyContactRolesBulkPartialUpdate
+ TenancyContactRolesBulkPartialUpdate Method for TenancyContactRolesBulkPartialUpdate
- Patch a list of contact role objects.
+ Patch a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkPartialUpdateRequest
*/
TenancyContactRolesBulkPartialUpdate(ctx context.Context) ApiTenancyContactRolesBulkPartialUpdateRequest
@@ -308,12 +307,12 @@ type TenancyAPI interface {
TenancyContactRolesBulkPartialUpdateExecute(r ApiTenancyContactRolesBulkPartialUpdateRequest) ([]ContactRole, *http.Response, error)
/*
- TenancyContactRolesBulkUpdate Method for TenancyContactRolesBulkUpdate
+ TenancyContactRolesBulkUpdate Method for TenancyContactRolesBulkUpdate
- Put a list of contact role objects.
+ Put a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkUpdateRequest
*/
TenancyContactRolesBulkUpdate(ctx context.Context) ApiTenancyContactRolesBulkUpdateRequest
@@ -322,12 +321,12 @@ type TenancyAPI interface {
TenancyContactRolesBulkUpdateExecute(r ApiTenancyContactRolesBulkUpdateRequest) ([]ContactRole, *http.Response, error)
/*
- TenancyContactRolesCreate Method for TenancyContactRolesCreate
+ TenancyContactRolesCreate Method for TenancyContactRolesCreate
- Post a list of contact role objects.
+ Post a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesCreateRequest
*/
TenancyContactRolesCreate(ctx context.Context) ApiTenancyContactRolesCreateRequest
@@ -336,13 +335,13 @@ type TenancyAPI interface {
TenancyContactRolesCreateExecute(r ApiTenancyContactRolesCreateRequest) (*ContactRole, *http.Response, error)
/*
- TenancyContactRolesDestroy Method for TenancyContactRolesDestroy
+ TenancyContactRolesDestroy Method for TenancyContactRolesDestroy
- Delete a contact role object.
+ Delete a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesDestroyRequest
*/
TenancyContactRolesDestroy(ctx context.Context, id int32) ApiTenancyContactRolesDestroyRequest
@@ -350,12 +349,12 @@ type TenancyAPI interface {
TenancyContactRolesDestroyExecute(r ApiTenancyContactRolesDestroyRequest) (*http.Response, error)
/*
- TenancyContactRolesList Method for TenancyContactRolesList
+ TenancyContactRolesList Method for TenancyContactRolesList
- Get a list of contact role objects.
+ Get a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesListRequest
*/
TenancyContactRolesList(ctx context.Context) ApiTenancyContactRolesListRequest
@@ -364,13 +363,13 @@ type TenancyAPI interface {
TenancyContactRolesListExecute(r ApiTenancyContactRolesListRequest) (*PaginatedContactRoleList, *http.Response, error)
/*
- TenancyContactRolesPartialUpdate Method for TenancyContactRolesPartialUpdate
+ TenancyContactRolesPartialUpdate Method for TenancyContactRolesPartialUpdate
- Patch a contact role object.
+ Patch a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesPartialUpdateRequest
*/
TenancyContactRolesPartialUpdate(ctx context.Context, id int32) ApiTenancyContactRolesPartialUpdateRequest
@@ -379,13 +378,13 @@ type TenancyAPI interface {
TenancyContactRolesPartialUpdateExecute(r ApiTenancyContactRolesPartialUpdateRequest) (*ContactRole, *http.Response, error)
/*
- TenancyContactRolesRetrieve Method for TenancyContactRolesRetrieve
+ TenancyContactRolesRetrieve Method for TenancyContactRolesRetrieve
- Get a contact role object.
+ Get a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesRetrieveRequest
*/
TenancyContactRolesRetrieve(ctx context.Context, id int32) ApiTenancyContactRolesRetrieveRequest
@@ -394,13 +393,13 @@ type TenancyAPI interface {
TenancyContactRolesRetrieveExecute(r ApiTenancyContactRolesRetrieveRequest) (*ContactRole, *http.Response, error)
/*
- TenancyContactRolesUpdate Method for TenancyContactRolesUpdate
+ TenancyContactRolesUpdate Method for TenancyContactRolesUpdate
- Put a contact role object.
+ Put a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesUpdateRequest
*/
TenancyContactRolesUpdate(ctx context.Context, id int32) ApiTenancyContactRolesUpdateRequest
@@ -409,12 +408,12 @@ type TenancyAPI interface {
TenancyContactRolesUpdateExecute(r ApiTenancyContactRolesUpdateRequest) (*ContactRole, *http.Response, error)
/*
- TenancyContactsBulkDestroy Method for TenancyContactsBulkDestroy
+ TenancyContactsBulkDestroy Method for TenancyContactsBulkDestroy
- Delete a list of contact objects.
+ Delete a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkDestroyRequest
*/
TenancyContactsBulkDestroy(ctx context.Context) ApiTenancyContactsBulkDestroyRequest
@@ -422,12 +421,12 @@ type TenancyAPI interface {
TenancyContactsBulkDestroyExecute(r ApiTenancyContactsBulkDestroyRequest) (*http.Response, error)
/*
- TenancyContactsBulkPartialUpdate Method for TenancyContactsBulkPartialUpdate
+ TenancyContactsBulkPartialUpdate Method for TenancyContactsBulkPartialUpdate
- Patch a list of contact objects.
+ Patch a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkPartialUpdateRequest
*/
TenancyContactsBulkPartialUpdate(ctx context.Context) ApiTenancyContactsBulkPartialUpdateRequest
@@ -436,12 +435,12 @@ type TenancyAPI interface {
TenancyContactsBulkPartialUpdateExecute(r ApiTenancyContactsBulkPartialUpdateRequest) ([]Contact, *http.Response, error)
/*
- TenancyContactsBulkUpdate Method for TenancyContactsBulkUpdate
+ TenancyContactsBulkUpdate Method for TenancyContactsBulkUpdate
- Put a list of contact objects.
+ Put a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkUpdateRequest
*/
TenancyContactsBulkUpdate(ctx context.Context) ApiTenancyContactsBulkUpdateRequest
@@ -450,12 +449,12 @@ type TenancyAPI interface {
TenancyContactsBulkUpdateExecute(r ApiTenancyContactsBulkUpdateRequest) ([]Contact, *http.Response, error)
/*
- TenancyContactsCreate Method for TenancyContactsCreate
+ TenancyContactsCreate Method for TenancyContactsCreate
- Post a list of contact objects.
+ Post a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsCreateRequest
*/
TenancyContactsCreate(ctx context.Context) ApiTenancyContactsCreateRequest
@@ -464,13 +463,13 @@ type TenancyAPI interface {
TenancyContactsCreateExecute(r ApiTenancyContactsCreateRequest) (*Contact, *http.Response, error)
/*
- TenancyContactsDestroy Method for TenancyContactsDestroy
+ TenancyContactsDestroy Method for TenancyContactsDestroy
- Delete a contact object.
+ Delete a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsDestroyRequest
*/
TenancyContactsDestroy(ctx context.Context, id int32) ApiTenancyContactsDestroyRequest
@@ -478,12 +477,12 @@ type TenancyAPI interface {
TenancyContactsDestroyExecute(r ApiTenancyContactsDestroyRequest) (*http.Response, error)
/*
- TenancyContactsList Method for TenancyContactsList
+ TenancyContactsList Method for TenancyContactsList
- Get a list of contact objects.
+ Get a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsListRequest
*/
TenancyContactsList(ctx context.Context) ApiTenancyContactsListRequest
@@ -492,13 +491,13 @@ type TenancyAPI interface {
TenancyContactsListExecute(r ApiTenancyContactsListRequest) (*PaginatedContactList, *http.Response, error)
/*
- TenancyContactsPartialUpdate Method for TenancyContactsPartialUpdate
+ TenancyContactsPartialUpdate Method for TenancyContactsPartialUpdate
- Patch a contact object.
+ Patch a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsPartialUpdateRequest
*/
TenancyContactsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactsPartialUpdateRequest
@@ -507,13 +506,13 @@ type TenancyAPI interface {
TenancyContactsPartialUpdateExecute(r ApiTenancyContactsPartialUpdateRequest) (*Contact, *http.Response, error)
/*
- TenancyContactsRetrieve Method for TenancyContactsRetrieve
+ TenancyContactsRetrieve Method for TenancyContactsRetrieve
- Get a contact object.
+ Get a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsRetrieveRequest
*/
TenancyContactsRetrieve(ctx context.Context, id int32) ApiTenancyContactsRetrieveRequest
@@ -522,13 +521,13 @@ type TenancyAPI interface {
TenancyContactsRetrieveExecute(r ApiTenancyContactsRetrieveRequest) (*Contact, *http.Response, error)
/*
- TenancyContactsUpdate Method for TenancyContactsUpdate
+ TenancyContactsUpdate Method for TenancyContactsUpdate
- Put a contact object.
+ Put a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsUpdateRequest
*/
TenancyContactsUpdate(ctx context.Context, id int32) ApiTenancyContactsUpdateRequest
@@ -537,12 +536,12 @@ type TenancyAPI interface {
TenancyContactsUpdateExecute(r ApiTenancyContactsUpdateRequest) (*Contact, *http.Response, error)
/*
- TenancyTenantGroupsBulkDestroy Method for TenancyTenantGroupsBulkDestroy
+ TenancyTenantGroupsBulkDestroy Method for TenancyTenantGroupsBulkDestroy
- Delete a list of tenant group objects.
+ Delete a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkDestroyRequest
*/
TenancyTenantGroupsBulkDestroy(ctx context.Context) ApiTenancyTenantGroupsBulkDestroyRequest
@@ -550,12 +549,12 @@ type TenancyAPI interface {
TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTenantGroupsBulkDestroyRequest) (*http.Response, error)
/*
- TenancyTenantGroupsBulkPartialUpdate Method for TenancyTenantGroupsBulkPartialUpdate
+ TenancyTenantGroupsBulkPartialUpdate Method for TenancyTenantGroupsBulkPartialUpdate
- Patch a list of tenant group objects.
+ Patch a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkPartialUpdateRequest
*/
TenancyTenantGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkPartialUpdateRequest
@@ -564,12 +563,12 @@ type TenancyAPI interface {
TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTenancyTenantGroupsBulkPartialUpdateRequest) ([]TenantGroup, *http.Response, error)
/*
- TenancyTenantGroupsBulkUpdate Method for TenancyTenantGroupsBulkUpdate
+ TenancyTenantGroupsBulkUpdate Method for TenancyTenantGroupsBulkUpdate
- Put a list of tenant group objects.
+ Put a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkUpdateRequest
*/
TenancyTenantGroupsBulkUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkUpdateRequest
@@ -578,12 +577,12 @@ type TenancyAPI interface {
TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTenantGroupsBulkUpdateRequest) ([]TenantGroup, *http.Response, error)
/*
- TenancyTenantGroupsCreate Method for TenancyTenantGroupsCreate
+ TenancyTenantGroupsCreate Method for TenancyTenantGroupsCreate
- Post a list of tenant group objects.
+ Post a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsCreateRequest
*/
TenancyTenantGroupsCreate(ctx context.Context) ApiTenancyTenantGroupsCreateRequest
@@ -592,13 +591,13 @@ type TenancyAPI interface {
TenancyTenantGroupsCreateExecute(r ApiTenancyTenantGroupsCreateRequest) (*TenantGroup, *http.Response, error)
/*
- TenancyTenantGroupsDestroy Method for TenancyTenantGroupsDestroy
+ TenancyTenantGroupsDestroy Method for TenancyTenantGroupsDestroy
- Delete a tenant group object.
+ Delete a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsDestroyRequest
*/
TenancyTenantGroupsDestroy(ctx context.Context, id int32) ApiTenancyTenantGroupsDestroyRequest
@@ -606,12 +605,12 @@ type TenancyAPI interface {
TenancyTenantGroupsDestroyExecute(r ApiTenancyTenantGroupsDestroyRequest) (*http.Response, error)
/*
- TenancyTenantGroupsList Method for TenancyTenantGroupsList
+ TenancyTenantGroupsList Method for TenancyTenantGroupsList
- Get a list of tenant group objects.
+ Get a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsListRequest
*/
TenancyTenantGroupsList(ctx context.Context) ApiTenancyTenantGroupsListRequest
@@ -620,13 +619,13 @@ type TenancyAPI interface {
TenancyTenantGroupsListExecute(r ApiTenancyTenantGroupsListRequest) (*PaginatedTenantGroupList, *http.Response, error)
/*
- TenancyTenantGroupsPartialUpdate Method for TenancyTenantGroupsPartialUpdate
+ TenancyTenantGroupsPartialUpdate Method for TenancyTenantGroupsPartialUpdate
- Patch a tenant group object.
+ Patch a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsPartialUpdateRequest
*/
TenancyTenantGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsPartialUpdateRequest
@@ -635,13 +634,13 @@ type TenancyAPI interface {
TenancyTenantGroupsPartialUpdateExecute(r ApiTenancyTenantGroupsPartialUpdateRequest) (*TenantGroup, *http.Response, error)
/*
- TenancyTenantGroupsRetrieve Method for TenancyTenantGroupsRetrieve
+ TenancyTenantGroupsRetrieve Method for TenancyTenantGroupsRetrieve
- Get a tenant group object.
+ Get a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsRetrieveRequest
*/
TenancyTenantGroupsRetrieve(ctx context.Context, id int32) ApiTenancyTenantGroupsRetrieveRequest
@@ -650,13 +649,13 @@ type TenancyAPI interface {
TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenantGroupsRetrieveRequest) (*TenantGroup, *http.Response, error)
/*
- TenancyTenantGroupsUpdate Method for TenancyTenantGroupsUpdate
+ TenancyTenantGroupsUpdate Method for TenancyTenantGroupsUpdate
- Put a tenant group object.
+ Put a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsUpdateRequest
*/
TenancyTenantGroupsUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsUpdateRequest
@@ -665,12 +664,12 @@ type TenancyAPI interface {
TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantGroupsUpdateRequest) (*TenantGroup, *http.Response, error)
/*
- TenancyTenantsBulkDestroy Method for TenancyTenantsBulkDestroy
+ TenancyTenantsBulkDestroy Method for TenancyTenantsBulkDestroy
- Delete a list of tenant objects.
+ Delete a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkDestroyRequest
*/
TenancyTenantsBulkDestroy(ctx context.Context) ApiTenancyTenantsBulkDestroyRequest
@@ -678,12 +677,12 @@ type TenancyAPI interface {
TenancyTenantsBulkDestroyExecute(r ApiTenancyTenantsBulkDestroyRequest) (*http.Response, error)
/*
- TenancyTenantsBulkPartialUpdate Method for TenancyTenantsBulkPartialUpdate
+ TenancyTenantsBulkPartialUpdate Method for TenancyTenantsBulkPartialUpdate
- Patch a list of tenant objects.
+ Patch a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkPartialUpdateRequest
*/
TenancyTenantsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantsBulkPartialUpdateRequest
@@ -692,12 +691,12 @@ type TenancyAPI interface {
TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyTenantsBulkPartialUpdateRequest) ([]Tenant, *http.Response, error)
/*
- TenancyTenantsBulkUpdate Method for TenancyTenantsBulkUpdate
+ TenancyTenantsBulkUpdate Method for TenancyTenantsBulkUpdate
- Put a list of tenant objects.
+ Put a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkUpdateRequest
*/
TenancyTenantsBulkUpdate(ctx context.Context) ApiTenancyTenantsBulkUpdateRequest
@@ -706,12 +705,12 @@ type TenancyAPI interface {
TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsBulkUpdateRequest) ([]Tenant, *http.Response, error)
/*
- TenancyTenantsCreate Method for TenancyTenantsCreate
+ TenancyTenantsCreate Method for TenancyTenantsCreate
- Post a list of tenant objects.
+ Post a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsCreateRequest
*/
TenancyTenantsCreate(ctx context.Context) ApiTenancyTenantsCreateRequest
@@ -720,13 +719,13 @@ type TenancyAPI interface {
TenancyTenantsCreateExecute(r ApiTenancyTenantsCreateRequest) (*Tenant, *http.Response, error)
/*
- TenancyTenantsDestroy Method for TenancyTenantsDestroy
+ TenancyTenantsDestroy Method for TenancyTenantsDestroy
- Delete a tenant object.
+ Delete a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsDestroyRequest
*/
TenancyTenantsDestroy(ctx context.Context, id int32) ApiTenancyTenantsDestroyRequest
@@ -734,12 +733,12 @@ type TenancyAPI interface {
TenancyTenantsDestroyExecute(r ApiTenancyTenantsDestroyRequest) (*http.Response, error)
/*
- TenancyTenantsList Method for TenancyTenantsList
+ TenancyTenantsList Method for TenancyTenantsList
- Get a list of tenant objects.
+ Get a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsListRequest
*/
TenancyTenantsList(ctx context.Context) ApiTenancyTenantsListRequest
@@ -748,13 +747,13 @@ type TenancyAPI interface {
TenancyTenantsListExecute(r ApiTenancyTenantsListRequest) (*PaginatedTenantList, *http.Response, error)
/*
- TenancyTenantsPartialUpdate Method for TenancyTenantsPartialUpdate
+ TenancyTenantsPartialUpdate Method for TenancyTenantsPartialUpdate
- Patch a tenant object.
+ Patch a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsPartialUpdateRequest
*/
TenancyTenantsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantsPartialUpdateRequest
@@ -763,13 +762,13 @@ type TenancyAPI interface {
TenancyTenantsPartialUpdateExecute(r ApiTenancyTenantsPartialUpdateRequest) (*Tenant, *http.Response, error)
/*
- TenancyTenantsRetrieve Method for TenancyTenantsRetrieve
+ TenancyTenantsRetrieve Method for TenancyTenantsRetrieve
- Get a tenant object.
+ Get a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsRetrieveRequest
*/
TenancyTenantsRetrieve(ctx context.Context, id int32) ApiTenancyTenantsRetrieveRequest
@@ -778,13 +777,13 @@ type TenancyAPI interface {
TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRetrieveRequest) (*Tenant, *http.Response, error)
/*
- TenancyTenantsUpdate Method for TenancyTenantsUpdate
+ TenancyTenantsUpdate Method for TenancyTenantsUpdate
- Put a tenant object.
+ Put a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsUpdateRequest
*/
TenancyTenantsUpdate(ctx context.Context, id int32) ApiTenancyTenantsUpdateRequest
@@ -797,8 +796,8 @@ type TenancyAPI interface {
type TenancyAPIService service
type ApiTenancyContactAssignmentsBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactAssignmentRequest *[]ContactAssignmentRequest
}
@@ -816,22 +815,22 @@ TenancyContactAssignmentsBulkDestroy Method for TenancyContactAssignmentsBulkDes
Delete a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroy(ctx context.Context) ApiTenancyContactAssignmentsBulkDestroyRequest {
return ApiTenancyContactAssignmentsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTenancyContactAssignmentsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkDestroy")
@@ -910,8 +909,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTen
}
type ApiTenancyContactAssignmentsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactAssignmentRequest *[]ContactAssignmentRequest
}
@@ -929,24 +928,25 @@ TenancyContactAssignmentsBulkPartialUpdate Method for TenancyContactAssignmentsB
Patch a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkPartialUpdateRequest {
return ApiTenancyContactAssignmentsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactAssignment
+//
+// @return []ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdateExecute(r ApiTenancyContactAssignmentsBulkPartialUpdateRequest) ([]ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkPartialUpdate")
@@ -1034,8 +1034,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdateExecute(r
}
type ApiTenancyContactAssignmentsBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactAssignmentRequest *[]ContactAssignmentRequest
}
@@ -1053,24 +1053,25 @@ TenancyContactAssignmentsBulkUpdate Method for TenancyContactAssignmentsBulkUpda
Put a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkUpdateRequest {
return ApiTenancyContactAssignmentsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactAssignment
+//
+// @return []ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTenancyContactAssignmentsBulkUpdateRequest) ([]ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkUpdate")
@@ -1158,8 +1159,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTena
}
type ApiTenancyContactAssignmentsCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
writableContactAssignmentRequest *WritableContactAssignmentRequest
}
@@ -1177,24 +1178,25 @@ TenancyContactAssignmentsCreate Method for TenancyContactAssignmentsCreate
Post a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsCreateRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsCreate(ctx context.Context) ApiTenancyContactAssignmentsCreateRequest {
return ApiTenancyContactAssignmentsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ContactAssignment
+//
+// @return ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsCreateExecute(r ApiTenancyContactAssignmentsCreateRequest) (*ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactAssignment
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsCreate")
@@ -1282,9 +1284,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsCreateExecute(r ApiTenancyC
}
type ApiTenancyContactAssignmentsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactAssignmentsDestroyRequest) Execute() (*http.Response, error) {
@@ -1296,24 +1298,24 @@ TenancyContactAssignmentsDestroy Method for TenancyContactAssignmentsDestroy
Delete a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsDestroy(ctx context.Context, id int32) ApiTenancyContactAssignmentsDestroyRequest {
return ApiTenancyContactAssignmentsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactAssignmentsDestroyExecute(r ApiTenancyContactAssignmentsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsDestroy")
@@ -1388,60 +1390,62 @@ func (a *TenancyAPIService) TenancyContactAssignmentsDestroyExecute(r ApiTenancy
}
type ApiTenancyContactAssignmentsListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- contactId *[]int32
- contactIdN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- group *[]string
- groupN *[]string
- groupId *[]string
- groupIdN *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService TenancyAPI
+ contactId *[]int32
+ contactIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ group *[]string
+ groupN *[]string
+ groupId *[]string
+ groupIdN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- objectId *[]int32
- objectIdEmpty *bool
- objectIdGt *[]int32
- objectIdGte *[]int32
- objectIdLt *[]int32
- objectIdLte *[]int32
- objectIdN *[]int32
- objectType *string
- objectTypeN *string
- objectTypeId *int32
- objectTypeIdN *int32
- offset *int32
- ordering *string
- priority *CircuitsCircuitGroupAssignmentsListPriorityParameter
- q *string
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ objectId *[]int32
+ objectIdEmpty *bool
+ objectIdGt *[]int32
+ objectIdGte *[]int32
+ objectIdLt *[]int32
+ objectIdLte *[]int32
+ objectIdN *[]int32
+ objectType *string
+ objectTypeN *string
+ objectTypeId *int32
+ objectTypeIdN *int32
+ offset *int32
+ ordering *string
+ priority *CircuitsCircuitGroupAssignmentsListPriorityParameter
+ q *string
+ role *[]string
+ roleN *[]string
+ roleId *[]int32
+ roleIdN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// Contact (ID)
@@ -1710,6 +1714,16 @@ func (r ApiTenancyContactAssignmentsListRequest) TagN(tagN []string) ApiTenancyC
return r
}
+func (r ApiTenancyContactAssignmentsListRequest) TagId(tagId []int32) ApiTenancyContactAssignmentsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyContactAssignmentsListRequest) TagIdN(tagIdN []int32) ApiTenancyContactAssignmentsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyContactAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyContactAssignmentsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -1724,24 +1738,25 @@ TenancyContactAssignmentsList Method for TenancyContactAssignmentsList
Get a list of contact assignment objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactAssignmentsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactAssignmentsListRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsList(ctx context.Context) ApiTenancyContactAssignmentsListRequest {
return ApiTenancyContactAssignmentsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedContactAssignmentList
+//
+// @return PaginatedContactAssignmentList
func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyContactAssignmentsListRequest) (*PaginatedContactAssignmentList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedContactAssignmentList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedContactAssignmentList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsList")
@@ -2212,6 +2227,28 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -2284,9 +2321,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon
}
type ApiTenancyContactAssignmentsPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedWritableContactAssignmentRequest *PatchedWritableContactAssignmentRequest
}
@@ -2304,26 +2341,27 @@ TenancyContactAssignmentsPartialUpdate Method for TenancyContactAssignmentsParti
Patch a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsPartialUpdateRequest {
return ApiTenancyContactAssignmentsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactAssignment
+//
+// @return ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdateExecute(r ApiTenancyContactAssignmentsPartialUpdateRequest) (*ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactAssignment
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsPartialUpdate")
@@ -2409,9 +2447,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdateExecute(r ApiT
}
type ApiTenancyContactAssignmentsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactAssignmentsRetrieveRequest) Execute() (*ContactAssignment, *http.Response, error) {
@@ -2423,26 +2461,27 @@ TenancyContactAssignmentsRetrieve Method for TenancyContactAssignmentsRetrieve
Get a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsRetrieveRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsRetrieve(ctx context.Context, id int32) ApiTenancyContactAssignmentsRetrieveRequest {
return ApiTenancyContactAssignmentsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactAssignment
+//
+// @return ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsRetrieveExecute(r ApiTenancyContactAssignmentsRetrieveRequest) (*ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactAssignment
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsRetrieve")
@@ -2526,9 +2565,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsRetrieveExecute(r ApiTenanc
}
type ApiTenancyContactAssignmentsUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
writableContactAssignmentRequest *WritableContactAssignmentRequest
}
@@ -2546,26 +2585,27 @@ TenancyContactAssignmentsUpdate Method for TenancyContactAssignmentsUpdate
Put a contact assignment object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact assignment.
- @return ApiTenancyContactAssignmentsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact assignment.
+ @return ApiTenancyContactAssignmentsUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactAssignmentsUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsUpdateRequest {
return ApiTenancyContactAssignmentsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactAssignment
+//
+// @return ContactAssignment
func (a *TenancyAPIService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyContactAssignmentsUpdateRequest) (*ContactAssignment, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactAssignment
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactAssignment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsUpdate")
@@ -2654,8 +2694,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyC
}
type ApiTenancyContactGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactGroupRequest *[]ContactGroupRequest
}
@@ -2673,22 +2713,22 @@ TenancyContactGroupsBulkDestroy Method for TenancyContactGroupsBulkDestroy
Delete a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsBulkDestroy(ctx context.Context) ApiTenancyContactGroupsBulkDestroyRequest {
return ApiTenancyContactGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyContactGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkDestroy")
@@ -2767,8 +2807,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyC
}
type ApiTenancyContactGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactGroupRequest *[]ContactGroupRequest
}
@@ -2786,24 +2826,25 @@ TenancyContactGroupsBulkPartialUpdate Method for TenancyContactGroupsBulkPartial
Patch a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyContactGroupsBulkPartialUpdateRequest {
return ApiTenancyContactGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactGroup
+//
+// @return []ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTenancyContactGroupsBulkPartialUpdateRequest) ([]ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkPartialUpdate")
@@ -2891,8 +2932,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTe
}
type ApiTenancyContactGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactGroupRequest *[]ContactGroupRequest
}
@@ -2910,24 +2951,25 @@ TenancyContactGroupsBulkUpdate Method for TenancyContactGroupsBulkUpdate
Put a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsBulkUpdate(ctx context.Context) ApiTenancyContactGroupsBulkUpdateRequest {
return ApiTenancyContactGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactGroup
+//
+// @return []ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyContactGroupsBulkUpdateRequest) ([]ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkUpdate")
@@ -3015,8 +3057,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyCo
}
type ApiTenancyContactGroupsCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
writableContactGroupRequest *WritableContactGroupRequest
}
@@ -3034,24 +3076,25 @@ TenancyContactGroupsCreate Method for TenancyContactGroupsCreate
Post a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsCreateRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsCreate(ctx context.Context) ApiTenancyContactGroupsCreateRequest {
return ApiTenancyContactGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ContactGroup
+//
+// @return ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsCreateExecute(r ApiTenancyContactGroupsCreateRequest) (*ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsCreate")
@@ -3139,9 +3182,9 @@ func (a *TenancyAPIService) TenancyContactGroupsCreateExecute(r ApiTenancyContac
}
type ApiTenancyContactGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -3153,24 +3196,24 @@ TenancyContactGroupsDestroy Method for TenancyContactGroupsDestroy
Delete a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsDestroy(ctx context.Context, id int32) ApiTenancyContactGroupsDestroyRequest {
return ApiTenancyContactGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyContactGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsDestroy")
@@ -3245,79 +3288,83 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta
}
type ApiTenancyContactGroupsListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService TenancyAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ contactId *[]int32
+ contactIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest {
@@ -3340,6 +3387,18 @@ func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) Ap
return r
}
+// Contact (ID)
+func (r ApiTenancyContactGroupsListRequest) ContactId(contactId []int32) ApiTenancyContactGroupsListRequest {
+ r.contactId = &contactId
+ return r
+}
+
+// Contact (ID)
+func (r ApiTenancyContactGroupsListRequest) ContactIdN(contactIdN []int32) ApiTenancyContactGroupsListRequest {
+ r.contactIdN = &contactIdN
+ return r
+}
+
func (r ApiTenancyContactGroupsListRequest) Created(created []time.Time) ApiTenancyContactGroupsListRequest {
r.created = &created
return r
@@ -3678,6 +3737,16 @@ func (r ApiTenancyContactGroupsListRequest) TagN(tagN []string) ApiTenancyContac
return r
}
+func (r ApiTenancyContactGroupsListRequest) TagId(tagId []int32) ApiTenancyContactGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyContactGroupsListRequest) TagIdN(tagIdN []int32) ApiTenancyContactGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyContactGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyContactGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -3692,24 +3761,25 @@ TenancyContactGroupsList Method for TenancyContactGroupsList
Get a list of contact group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactGroupsListRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsList(ctx context.Context) ApiTenancyContactGroupsListRequest {
return ApiTenancyContactGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedContactGroupList
+//
+// @return PaginatedContactGroupList
func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactGroupsListRequest) (*PaginatedContactGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedContactGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedContactGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsList")
@@ -3767,6 +3837,28 @@ func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactG
parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi")
}
}
+ if r.contactId != nil {
+ t := *r.contactId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", t, "form", "multi")
+ }
+ }
+ if r.contactIdN != nil {
+ t := *r.contactIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4413,6 +4505,28 @@ func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactG
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -4485,9 +4599,9 @@ func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactG
}
type ApiTenancyContactGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedWritableContactGroupRequest *PatchedWritableContactGroupRequest
}
@@ -4505,26 +4619,27 @@ TenancyContactGroupsPartialUpdate Method for TenancyContactGroupsPartialUpdate
Patch a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsPartialUpdateRequest {
return ApiTenancyContactGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactGroup
+//
+// @return ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsPartialUpdateExecute(r ApiTenancyContactGroupsPartialUpdateRequest) (*ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsPartialUpdate")
@@ -4610,9 +4725,9 @@ func (a *TenancyAPIService) TenancyContactGroupsPartialUpdateExecute(r ApiTenanc
}
type ApiTenancyContactGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactGroupsRetrieveRequest) Execute() (*ContactGroup, *http.Response, error) {
@@ -4624,26 +4739,27 @@ TenancyContactGroupsRetrieve Method for TenancyContactGroupsRetrieve
Get a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsRetrieveRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsRetrieve(ctx context.Context, id int32) ApiTenancyContactGroupsRetrieveRequest {
return ApiTenancyContactGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactGroup
+//
+// @return ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsRetrieveExecute(r ApiTenancyContactGroupsRetrieveRequest) (*ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsRetrieve")
@@ -4727,9 +4843,9 @@ func (a *TenancyAPIService) TenancyContactGroupsRetrieveExecute(r ApiTenancyCont
}
type ApiTenancyContactGroupsUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
writableContactGroupRequest *WritableContactGroupRequest
}
@@ -4747,26 +4863,27 @@ TenancyContactGroupsUpdate Method for TenancyContactGroupsUpdate
Put a contact group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact group.
- @return ApiTenancyContactGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact group.
+ @return ApiTenancyContactGroupsUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactGroupsUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsUpdateRequest {
return ApiTenancyContactGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactGroup
+//
+// @return ContactGroup
func (a *TenancyAPIService) TenancyContactGroupsUpdateExecute(r ApiTenancyContactGroupsUpdateRequest) (*ContactGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsUpdate")
@@ -4855,8 +4972,8 @@ func (a *TenancyAPIService) TenancyContactGroupsUpdateExecute(r ApiTenancyContac
}
type ApiTenancyContactRolesBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRoleRequest *[]ContactRoleRequest
}
@@ -4874,22 +4991,22 @@ TenancyContactRolesBulkDestroy Method for TenancyContactRolesBulkDestroy
Delete a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactRolesBulkDestroy(ctx context.Context) ApiTenancyContactRolesBulkDestroyRequest {
return ApiTenancyContactRolesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyContactRolesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkDestroy")
@@ -4968,8 +5085,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyCo
}
type ApiTenancyContactRolesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRoleRequest *[]ContactRoleRequest
}
@@ -4987,24 +5104,25 @@ TenancyContactRolesBulkPartialUpdate Method for TenancyContactRolesBulkPartialUp
Patch a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdate(ctx context.Context) ApiTenancyContactRolesBulkPartialUpdateRequest {
return ApiTenancyContactRolesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactRole
+//
+// @return []ContactRole
func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTenancyContactRolesBulkPartialUpdateRequest) ([]ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkPartialUpdate")
@@ -5092,8 +5210,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTen
}
type ApiTenancyContactRolesBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRoleRequest *[]ContactRoleRequest
}
@@ -5111,24 +5229,25 @@ TenancyContactRolesBulkUpdate Method for TenancyContactRolesBulkUpdate
Put a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactRolesBulkUpdate(ctx context.Context) ApiTenancyContactRolesBulkUpdateRequest {
return ApiTenancyContactRolesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ContactRole
+//
+// @return []ContactRole
func (a *TenancyAPIService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyContactRolesBulkUpdateRequest) ([]ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ContactRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkUpdate")
@@ -5216,8 +5335,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyCon
}
type ApiTenancyContactRolesCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRoleRequest *ContactRoleRequest
}
@@ -5235,24 +5354,25 @@ TenancyContactRolesCreate Method for TenancyContactRolesCreate
Post a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesCreateRequest
*/
func (a *TenancyAPIService) TenancyContactRolesCreate(ctx context.Context) ApiTenancyContactRolesCreateRequest {
return ApiTenancyContactRolesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ContactRole
+//
+// @return ContactRole
func (a *TenancyAPIService) TenancyContactRolesCreateExecute(r ApiTenancyContactRolesCreateRequest) (*ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactRole
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesCreate")
@@ -5340,9 +5460,9 @@ func (a *TenancyAPIService) TenancyContactRolesCreateExecute(r ApiTenancyContact
}
type ApiTenancyContactRolesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactRolesDestroyRequest) Execute() (*http.Response, error) {
@@ -5354,24 +5474,24 @@ TenancyContactRolesDestroy Method for TenancyContactRolesDestroy
Delete a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactRolesDestroy(ctx context.Context, id int32) ApiTenancyContactRolesDestroyRequest {
return ApiTenancyContactRolesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactRolesDestroyExecute(r ApiTenancyContactRolesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesDestroy")
@@ -5446,71 +5566,73 @@ func (a *TenancyAPIService) TenancyContactRolesDestroyExecute(r ApiTenancyContac
}
type ApiTenancyContactRolesListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService TenancyAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiTenancyContactRolesListRequest) Created(created []time.Time) ApiTenancyContactRolesListRequest {
@@ -5827,6 +5949,16 @@ func (r ApiTenancyContactRolesListRequest) TagN(tagN []string) ApiTenancyContact
return r
}
+func (r ApiTenancyContactRolesListRequest) TagId(tagId []int32) ApiTenancyContactRolesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyContactRolesListRequest) TagIdN(tagIdN []int32) ApiTenancyContactRolesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyContactRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyContactRolesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -5841,24 +5973,25 @@ TenancyContactRolesList Method for TenancyContactRolesList
Get a list of contact role objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactRolesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactRolesListRequest
*/
func (a *TenancyAPIService) TenancyContactRolesList(ctx context.Context) ApiTenancyContactRolesListRequest {
return ApiTenancyContactRolesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedContactRoleList
+//
+// @return PaginatedContactRoleList
func (a *TenancyAPIService) TenancyContactRolesListExecute(r ApiTenancyContactRolesListRequest) (*PaginatedContactRoleList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedContactRoleList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedContactRoleList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesList")
@@ -6474,6 +6607,28 @@ func (a *TenancyAPIService) TenancyContactRolesListExecute(r ApiTenancyContactRo
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -6546,9 +6701,9 @@ func (a *TenancyAPIService) TenancyContactRolesListExecute(r ApiTenancyContactRo
}
type ApiTenancyContactRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedContactRoleRequest *PatchedContactRoleRequest
}
@@ -6566,26 +6721,27 @@ TenancyContactRolesPartialUpdate Method for TenancyContactRolesPartialUpdate
Patch a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactRolesPartialUpdate(ctx context.Context, id int32) ApiTenancyContactRolesPartialUpdateRequest {
return ApiTenancyContactRolesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactRole
+//
+// @return ContactRole
func (a *TenancyAPIService) TenancyContactRolesPartialUpdateExecute(r ApiTenancyContactRolesPartialUpdateRequest) (*ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactRole
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesPartialUpdate")
@@ -6671,9 +6827,9 @@ func (a *TenancyAPIService) TenancyContactRolesPartialUpdateExecute(r ApiTenancy
}
type ApiTenancyContactRolesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactRolesRetrieveRequest) Execute() (*ContactRole, *http.Response, error) {
@@ -6685,26 +6841,27 @@ TenancyContactRolesRetrieve Method for TenancyContactRolesRetrieve
Get a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesRetrieveRequest
*/
func (a *TenancyAPIService) TenancyContactRolesRetrieve(ctx context.Context, id int32) ApiTenancyContactRolesRetrieveRequest {
return ApiTenancyContactRolesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactRole
+//
+// @return ContactRole
func (a *TenancyAPIService) TenancyContactRolesRetrieveExecute(r ApiTenancyContactRolesRetrieveRequest) (*ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactRole
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesRetrieve")
@@ -6788,9 +6945,9 @@ func (a *TenancyAPIService) TenancyContactRolesRetrieveExecute(r ApiTenancyConta
}
type ApiTenancyContactRolesUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
contactRoleRequest *ContactRoleRequest
}
@@ -6808,26 +6965,27 @@ TenancyContactRolesUpdate Method for TenancyContactRolesUpdate
Put a contact role object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact role.
- @return ApiTenancyContactRolesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact role.
+ @return ApiTenancyContactRolesUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactRolesUpdate(ctx context.Context, id int32) ApiTenancyContactRolesUpdateRequest {
return ApiTenancyContactRolesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ContactRole
+//
+// @return ContactRole
func (a *TenancyAPIService) TenancyContactRolesUpdateExecute(r ApiTenancyContactRolesUpdateRequest) (*ContactRole, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContactRole
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ContactRole
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesUpdate")
@@ -6916,8 +7074,8 @@ func (a *TenancyAPIService) TenancyContactRolesUpdateExecute(r ApiTenancyContact
}
type ApiTenancyContactsBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRequest *[]ContactRequest
}
@@ -6935,22 +7093,22 @@ TenancyContactsBulkDestroy Method for TenancyContactsBulkDestroy
Delete a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactsBulkDestroy(ctx context.Context) ApiTenancyContactsBulkDestroyRequest {
return ApiTenancyContactsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactsBulkDestroyExecute(r ApiTenancyContactsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkDestroy")
@@ -7029,8 +7187,8 @@ func (a *TenancyAPIService) TenancyContactsBulkDestroyExecute(r ApiTenancyContac
}
type ApiTenancyContactsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRequest *[]ContactRequest
}
@@ -7048,24 +7206,25 @@ TenancyContactsBulkPartialUpdate Method for TenancyContactsBulkPartialUpdate
Patch a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactsBulkPartialUpdate(ctx context.Context) ApiTenancyContactsBulkPartialUpdateRequest {
return ApiTenancyContactsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Contact
+//
+// @return []Contact
func (a *TenancyAPIService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancyContactsBulkPartialUpdateRequest) ([]Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Contact
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkPartialUpdate")
@@ -7153,8 +7312,8 @@ func (a *TenancyAPIService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancy
}
type ApiTenancyContactsBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRequest *[]ContactRequest
}
@@ -7172,24 +7331,25 @@ TenancyContactsBulkUpdate Method for TenancyContactsBulkUpdate
Put a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactsBulkUpdate(ctx context.Context) ApiTenancyContactsBulkUpdateRequest {
return ApiTenancyContactsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Contact
+//
+// @return []Contact
func (a *TenancyAPIService) TenancyContactsBulkUpdateExecute(r ApiTenancyContactsBulkUpdateRequest) ([]Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Contact
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkUpdate")
@@ -7277,8 +7437,8 @@ func (a *TenancyAPIService) TenancyContactsBulkUpdateExecute(r ApiTenancyContact
}
type ApiTenancyContactsCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
contactRequest *ContactRequest
}
@@ -7296,24 +7456,25 @@ TenancyContactsCreate Method for TenancyContactsCreate
Post a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsCreateRequest
*/
func (a *TenancyAPIService) TenancyContactsCreate(ctx context.Context) ApiTenancyContactsCreateRequest {
return ApiTenancyContactsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Contact
+//
+// @return Contact
func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCreateRequest) (*Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Contact
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsCreate")
@@ -7401,9 +7562,9 @@ func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCre
}
type ApiTenancyContactsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactsDestroyRequest) Execute() (*http.Response, error) {
@@ -7415,24 +7576,24 @@ TenancyContactsDestroy Method for TenancyContactsDestroy
Delete a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsDestroyRequest
*/
func (a *TenancyAPIService) TenancyContactsDestroy(ctx context.Context, id int32) ApiTenancyContactsDestroyRequest {
return ApiTenancyContactsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyContactsDestroyExecute(r ApiTenancyContactsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsDestroy")
@@ -7507,119 +7668,121 @@ func (a *TenancyAPIService) TenancyContactsDestroyExecute(r ApiTenancyContactsDe
}
type ApiTenancyContactsListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- address *[]string
- addressEmpty *bool
- addressIc *[]string
- addressIe *[]string
- addressIew *[]string
- addressIsw *[]string
- addressN *[]string
- addressNic *[]string
- addressNie *[]string
- addressNiew *[]string
- addressNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- email *[]string
- emailEmpty *bool
- emailIc *[]string
- emailIe *[]string
- emailIew *[]string
- emailIsw *[]string
- emailN *[]string
- emailNic *[]string
- emailNie *[]string
- emailNiew *[]string
- emailNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]string
- groupIdN *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- link *[]string
- linkEmpty *bool
- linkIc *[]string
- linkIe *[]string
- linkIew *[]string
- linkIsw *[]string
- linkN *[]string
- linkNic *[]string
- linkNie *[]string
- linkNiew *[]string
- linkNisw *[]string
+ ctx context.Context
+ ApiService TenancyAPI
+ address *[]string
+ addressEmpty *bool
+ addressIc *[]string
+ addressIe *[]string
+ addressIew *[]string
+ addressIsw *[]string
+ addressN *[]string
+ addressNic *[]string
+ addressNie *[]string
+ addressNiew *[]string
+ addressNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ email *[]string
+ emailEmpty *bool
+ emailIc *[]string
+ emailIe *[]string
+ emailIew *[]string
+ emailIsw *[]string
+ emailN *[]string
+ emailNic *[]string
+ emailNie *[]string
+ emailNiew *[]string
+ emailNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]string
+ groupIdN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ link *[]string
+ linkEmpty *bool
+ linkIc *[]string
+ linkIe *[]string
+ linkIew *[]string
+ linkIsw *[]string
+ linkN *[]string
+ linkNic *[]string
+ linkNie *[]string
+ linkNiew *[]string
+ linkNisw *[]string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- phone *[]string
- phoneEmpty *bool
- phoneIc *[]string
- phoneIe *[]string
- phoneIew *[]string
- phoneIsw *[]string
- phoneN *[]string
- phoneNic *[]string
- phoneNie *[]string
- phoneNiew *[]string
- phoneNisw *[]string
- q *string
- tag *[]string
- tagN *[]string
- title *[]string
- titleEmpty *bool
- titleIc *[]string
- titleIe *[]string
- titleIew *[]string
- titleIsw *[]string
- titleN *[]string
- titleNic *[]string
- titleNie *[]string
- titleNiew *[]string
- titleNisw *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ phone *[]string
+ phoneEmpty *bool
+ phoneIc *[]string
+ phoneIe *[]string
+ phoneIew *[]string
+ phoneIsw *[]string
+ phoneN *[]string
+ phoneNic *[]string
+ phoneNie *[]string
+ phoneNiew *[]string
+ phoneNisw *[]string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ title *[]string
+ titleEmpty *bool
+ titleIc *[]string
+ titleIe *[]string
+ titleIew *[]string
+ titleIsw *[]string
+ titleN *[]string
+ titleNic *[]string
+ titleNie *[]string
+ titleNiew *[]string
+ titleNisw *[]string
+ updatedByRequest *string
}
func (r ApiTenancyContactsListRequest) Address(address []string) ApiTenancyContactsListRequest {
@@ -8121,6 +8284,16 @@ func (r ApiTenancyContactsListRequest) TagN(tagN []string) ApiTenancyContactsLis
return r
}
+func (r ApiTenancyContactsListRequest) TagId(tagId []int32) ApiTenancyContactsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyContactsListRequest) TagIdN(tagIdN []int32) ApiTenancyContactsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyContactsListRequest) Title(title []string) ApiTenancyContactsListRequest {
r.title = &title
return r
@@ -8190,24 +8363,25 @@ TenancyContactsList Method for TenancyContactsList
Get a list of contact objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyContactsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyContactsListRequest
*/
func (a *TenancyAPIService) TenancyContactsList(ctx context.Context) ApiTenancyContactsListRequest {
return ApiTenancyContactsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedContactList
+//
+// @return PaginatedContactList
func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListRequest) (*PaginatedContactList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedContactList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedContactList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsList")
@@ -9206,6 +9380,28 @@ func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListR
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.title != nil {
t := *r.title
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -9391,9 +9587,9 @@ func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListR
}
type ApiTenancyContactsPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedContactRequest *PatchedContactRequest
}
@@ -9411,26 +9607,27 @@ TenancyContactsPartialUpdate Method for TenancyContactsPartialUpdate
Patch a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactsPartialUpdateRequest {
return ApiTenancyContactsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Contact
+//
+// @return Contact
func (a *TenancyAPIService) TenancyContactsPartialUpdateExecute(r ApiTenancyContactsPartialUpdateRequest) (*Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Contact
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsPartialUpdate")
@@ -9516,9 +9713,9 @@ func (a *TenancyAPIService) TenancyContactsPartialUpdateExecute(r ApiTenancyCont
}
type ApiTenancyContactsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyContactsRetrieveRequest) Execute() (*Contact, *http.Response, error) {
@@ -9530,26 +9727,27 @@ TenancyContactsRetrieve Method for TenancyContactsRetrieve
Get a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsRetrieveRequest
*/
func (a *TenancyAPIService) TenancyContactsRetrieve(ctx context.Context, id int32) ApiTenancyContactsRetrieveRequest {
return ApiTenancyContactsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Contact
+//
+// @return Contact
func (a *TenancyAPIService) TenancyContactsRetrieveExecute(r ApiTenancyContactsRetrieveRequest) (*Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Contact
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsRetrieve")
@@ -9633,9 +9831,9 @@ func (a *TenancyAPIService) TenancyContactsRetrieveExecute(r ApiTenancyContactsR
}
type ApiTenancyContactsUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
contactRequest *ContactRequest
}
@@ -9653,26 +9851,27 @@ TenancyContactsUpdate Method for TenancyContactsUpdate
Put a contact object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this contact.
- @return ApiTenancyContactsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this contact.
+ @return ApiTenancyContactsUpdateRequest
*/
func (a *TenancyAPIService) TenancyContactsUpdate(ctx context.Context, id int32) ApiTenancyContactsUpdateRequest {
return ApiTenancyContactsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Contact
+//
+// @return Contact
func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpdateRequest) (*Contact, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Contact
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Contact
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsUpdate")
@@ -9761,8 +9960,8 @@ func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpd
}
type ApiTenancyTenantGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantGroupRequest *[]TenantGroupRequest
}
@@ -9780,22 +9979,22 @@ TenancyTenantGroupsBulkDestroy Method for TenancyTenantGroupsBulkDestroy
Delete a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroy(ctx context.Context) ApiTenancyTenantGroupsBulkDestroyRequest {
return ApiTenancyTenantGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTenantGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkDestroy")
@@ -9874,8 +10073,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTe
}
type ApiTenancyTenantGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantGroupRequest *[]TenantGroupRequest
}
@@ -9893,24 +10092,25 @@ TenancyTenantGroupsBulkPartialUpdate Method for TenancyTenantGroupsBulkPartialUp
Patch a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkPartialUpdateRequest {
return ApiTenancyTenantGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TenantGroup
+//
+// @return []TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTenancyTenantGroupsBulkPartialUpdateRequest) ([]TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TenantGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkPartialUpdate")
@@ -9998,8 +10198,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTen
}
type ApiTenancyTenantGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantGroupRequest *[]TenantGroupRequest
}
@@ -10017,24 +10217,25 @@ TenancyTenantGroupsBulkUpdate Method for TenancyTenantGroupsBulkUpdate
Put a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkUpdateRequest {
return ApiTenancyTenantGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TenantGroup
+//
+// @return []TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTenantGroupsBulkUpdateRequest) ([]TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TenantGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkUpdate")
@@ -10122,8 +10323,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTen
}
type ApiTenancyTenantGroupsCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
writableTenantGroupRequest *WritableTenantGroupRequest
}
@@ -10141,24 +10342,25 @@ TenancyTenantGroupsCreate Method for TenancyTenantGroupsCreate
Post a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsCreateRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsCreate(ctx context.Context) ApiTenancyTenantGroupsCreateRequest {
return ApiTenancyTenantGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return TenantGroup
+//
+// @return TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantGroupsCreateRequest) (*TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TenantGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsCreate")
@@ -10246,9 +10448,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantG
}
type ApiTenancyTenantGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyTenantGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -10260,24 +10462,24 @@ TenancyTenantGroupsDestroy Method for TenancyTenantGroupsDestroy
Delete a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsDestroyRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsDestroy(ctx context.Context, id int32) ApiTenancyTenantGroupsDestroyRequest {
return ApiTenancyTenantGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenantGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsDestroy")
@@ -10352,79 +10554,81 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant
}
type ApiTenancyTenantGroupsListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService TenancyAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest {
@@ -10785,6 +10989,16 @@ func (r ApiTenancyTenantGroupsListRequest) TagN(tagN []string) ApiTenancyTenantG
return r
}
+func (r ApiTenancyTenantGroupsListRequest) TagId(tagId []int32) ApiTenancyTenantGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyTenantGroupsListRequest) TagIdN(tagIdN []int32) ApiTenancyTenantGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyTenantGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyTenantGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -10799,24 +11013,25 @@ TenancyTenantGroupsList Method for TenancyTenantGroupsList
Get a list of tenant group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantGroupsListRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsList(ctx context.Context) ApiTenancyTenantGroupsListRequest {
return ApiTenancyTenantGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTenantGroupList
+//
+// @return PaginatedTenantGroupList
func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGroupsListRequest) (*PaginatedTenantGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTenantGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTenantGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsList")
@@ -11520,6 +11735,28 @@ func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -11592,9 +11829,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro
}
type ApiTenancyTenantGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedWritableTenantGroupRequest *PatchedWritableTenantGroupRequest
}
@@ -11612,26 +11849,27 @@ TenancyTenantGroupsPartialUpdate Method for TenancyTenantGroupsPartialUpdate
Patch a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsPartialUpdateRequest {
return ApiTenancyTenantGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TenantGroup
+//
+// @return TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancyTenantGroupsPartialUpdateRequest) (*TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TenantGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsPartialUpdate")
@@ -11717,9 +11955,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancy
}
type ApiTenancyTenantGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyTenantGroupsRetrieveRequest) Execute() (*TenantGroup, *http.Response, error) {
@@ -11731,26 +11969,27 @@ TenancyTenantGroupsRetrieve Method for TenancyTenantGroupsRetrieve
Get a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsRetrieveRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsRetrieve(ctx context.Context, id int32) ApiTenancyTenantGroupsRetrieveRequest {
return ApiTenancyTenantGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TenantGroup
+//
+// @return TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenantGroupsRetrieveRequest) (*TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TenantGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsRetrieve")
@@ -11834,9 +12073,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenan
}
type ApiTenancyTenantGroupsUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
writableTenantGroupRequest *WritableTenantGroupRequest
}
@@ -11854,26 +12093,27 @@ TenancyTenantGroupsUpdate Method for TenancyTenantGroupsUpdate
Put a tenant group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant group.
- @return ApiTenancyTenantGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant group.
+ @return ApiTenancyTenantGroupsUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantGroupsUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsUpdateRequest {
return ApiTenancyTenantGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TenantGroup
+//
+// @return TenantGroup
func (a *TenancyAPIService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantGroupsUpdateRequest) (*TenantGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TenantGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TenantGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsUpdate")
@@ -11962,8 +12202,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantG
}
type ApiTenancyTenantsBulkDestroyRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantRequest *[]TenantRequest
}
@@ -11981,22 +12221,22 @@ TenancyTenantsBulkDestroy Method for TenancyTenantsBulkDestroy
Delete a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkDestroyRequest
*/
func (a *TenancyAPIService) TenancyTenantsBulkDestroy(ctx context.Context) ApiTenancyTenantsBulkDestroyRequest {
return ApiTenancyTenantsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenantsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkDestroy")
@@ -12075,8 +12315,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenants
}
type ApiTenancyTenantsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantRequest *[]TenantRequest
}
@@ -12094,24 +12334,25 @@ TenancyTenantsBulkPartialUpdate Method for TenancyTenantsBulkPartialUpdate
Patch a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantsBulkPartialUpdateRequest {
return ApiTenancyTenantsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tenant
+//
+// @return []Tenant
func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyTenantsBulkPartialUpdateRequest) ([]Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tenant
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkPartialUpdate")
@@ -12199,8 +12440,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyT
}
type ApiTenancyTenantsBulkUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantRequest *[]TenantRequest
}
@@ -12218,24 +12459,25 @@ TenancyTenantsBulkUpdate Method for TenancyTenantsBulkUpdate
Put a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsBulkUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantsBulkUpdate(ctx context.Context) ApiTenancyTenantsBulkUpdateRequest {
return ApiTenancyTenantsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tenant
+//
+// @return []Tenant
func (a *TenancyAPIService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsBulkUpdateRequest) ([]Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tenant
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkUpdate")
@@ -12323,8 +12565,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsB
}
type ApiTenancyTenantsCreateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
+ ctx context.Context
+ ApiService TenancyAPI
tenantRequest *TenantRequest
}
@@ -12342,24 +12584,25 @@ TenancyTenantsCreate Method for TenancyTenantsCreate
Post a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsCreateRequest
*/
func (a *TenancyAPIService) TenancyTenantsCreate(ctx context.Context) ApiTenancyTenantsCreateRequest {
return ApiTenancyTenantsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Tenant
+//
+// @return Tenant
func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreateRequest) (*Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tenant
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsCreate")
@@ -12447,9 +12690,9 @@ func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreat
}
type ApiTenancyTenantsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyTenantsDestroyRequest) Execute() (*http.Response, error) {
@@ -12461,24 +12704,24 @@ TenancyTenantsDestroy Method for TenancyTenantsDestroy
Delete a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsDestroyRequest
*/
func (a *TenancyAPIService) TenancyTenantsDestroy(ctx context.Context, id int32) ApiTenancyTenantsDestroyRequest {
return ApiTenancyTenantsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *TenancyAPIService) TenancyTenantsDestroyExecute(r ApiTenancyTenantsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsDestroy")
@@ -12553,81 +12796,83 @@ func (a *TenancyAPIService) TenancyTenantsDestroyExecute(r ApiTenancyTenantsDest
}
type ApiTenancyTenantsListRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]string
- groupIdN *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService TenancyAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]string
+ groupIdN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// Contact
@@ -12998,6 +13243,16 @@ func (r ApiTenancyTenantsListRequest) TagN(tagN []string) ApiTenancyTenantsListR
return r
}
+func (r ApiTenancyTenantsListRequest) TagId(tagId []int32) ApiTenancyTenantsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiTenancyTenantsListRequest) TagIdN(tagIdN []int32) ApiTenancyTenantsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiTenancyTenantsListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyTenantsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -13012,24 +13267,25 @@ TenancyTenantsList Method for TenancyTenantsList
Get a list of tenant objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTenancyTenantsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiTenancyTenantsListRequest
*/
func (a *TenancyAPIService) TenancyTenantsList(ctx context.Context) ApiTenancyTenantsListRequest {
return ApiTenancyTenantsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTenantList
+//
+// @return PaginatedTenantList
func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListRequest) (*PaginatedTenantList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTenantList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTenantList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsList")
@@ -13755,6 +14011,28 @@ func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -13827,9 +14105,9 @@ func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq
}
type ApiTenancyTenantsPartialUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
patchedTenantRequest *PatchedTenantRequest
}
@@ -13847,26 +14125,27 @@ TenancyTenantsPartialUpdate Method for TenancyTenantsPartialUpdate
Patch a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsPartialUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantsPartialUpdateRequest {
return ApiTenancyTenantsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tenant
+//
+// @return Tenant
func (a *TenancyAPIService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenantsPartialUpdateRequest) (*Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tenant
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsPartialUpdate")
@@ -13952,9 +14231,9 @@ func (a *TenancyAPIService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenan
}
type ApiTenancyTenantsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService TenancyAPI
- id int32
+ id int32
}
func (r ApiTenancyTenantsRetrieveRequest) Execute() (*Tenant, *http.Response, error) {
@@ -13966,26 +14245,27 @@ TenancyTenantsRetrieve Method for TenancyTenantsRetrieve
Get a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsRetrieveRequest
*/
func (a *TenancyAPIService) TenancyTenantsRetrieve(ctx context.Context, id int32) ApiTenancyTenantsRetrieveRequest {
return ApiTenancyTenantsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tenant
+//
+// @return Tenant
func (a *TenancyAPIService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRetrieveRequest) (*Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tenant
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsRetrieve")
@@ -14069,9 +14349,9 @@ func (a *TenancyAPIService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRet
}
type ApiTenancyTenantsUpdateRequest struct {
- ctx context.Context
- ApiService TenancyAPI
- id int32
+ ctx context.Context
+ ApiService TenancyAPI
+ id int32
tenantRequest *TenantRequest
}
@@ -14089,26 +14369,27 @@ TenancyTenantsUpdate Method for TenancyTenantsUpdate
Put a tenant object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tenant.
- @return ApiTenancyTenantsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tenant.
+ @return ApiTenancyTenantsUpdateRequest
*/
func (a *TenancyAPIService) TenancyTenantsUpdate(ctx context.Context, id int32) ApiTenancyTenantsUpdateRequest {
return ApiTenancyTenantsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tenant
+//
+// @return Tenant
func (a *TenancyAPIService) TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdateRequest) (*Tenant, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tenant
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tenant
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsUpdate")
diff --git a/api_users.go b/api_users.go
index 7a24b31dd..239952750 100644
--- a/api_users.go
+++ b/api_users.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type UsersAPI interface {
/*
- UsersConfigRetrieve Method for UsersConfigRetrieve
+ UsersConfigRetrieve Method for UsersConfigRetrieve
- An API endpoint via which a user can update his or her own UserConfig data (but no one else's).
+ An API endpoint via which a user can update his or her own UserConfig data (but no one else's).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersConfigRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersConfigRetrieveRequest
*/
UsersConfigRetrieve(ctx context.Context) ApiUsersConfigRetrieveRequest
@@ -39,12 +38,12 @@ type UsersAPI interface {
UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveRequest) (map[string]interface{}, *http.Response, error)
/*
- UsersGroupsBulkDestroy Method for UsersGroupsBulkDestroy
+ UsersGroupsBulkDestroy Method for UsersGroupsBulkDestroy
- Delete a list of group objects.
+ Delete a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkDestroyRequest
*/
UsersGroupsBulkDestroy(ctx context.Context) ApiUsersGroupsBulkDestroyRequest
@@ -52,12 +51,12 @@ type UsersAPI interface {
UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDestroyRequest) (*http.Response, error)
/*
- UsersGroupsBulkPartialUpdate Method for UsersGroupsBulkPartialUpdate
+ UsersGroupsBulkPartialUpdate Method for UsersGroupsBulkPartialUpdate
- Patch a list of group objects.
+ Patch a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkPartialUpdateRequest
*/
UsersGroupsBulkPartialUpdate(ctx context.Context) ApiUsersGroupsBulkPartialUpdateRequest
@@ -66,12 +65,12 @@ type UsersAPI interface {
UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBulkPartialUpdateRequest) ([]Group, *http.Response, error)
/*
- UsersGroupsBulkUpdate Method for UsersGroupsBulkUpdate
+ UsersGroupsBulkUpdate Method for UsersGroupsBulkUpdate
- Put a list of group objects.
+ Put a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkUpdateRequest
*/
UsersGroupsBulkUpdate(ctx context.Context) ApiUsersGroupsBulkUpdateRequest
@@ -80,12 +79,12 @@ type UsersAPI interface {
UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdateRequest) ([]Group, *http.Response, error)
/*
- UsersGroupsCreate Method for UsersGroupsCreate
+ UsersGroupsCreate Method for UsersGroupsCreate
- Post a list of group objects.
+ Post a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsCreateRequest
*/
UsersGroupsCreate(ctx context.Context) ApiUsersGroupsCreateRequest
@@ -94,13 +93,13 @@ type UsersAPI interface {
UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest) (*Group, *http.Response, error)
/*
- UsersGroupsDestroy Method for UsersGroupsDestroy
+ UsersGroupsDestroy Method for UsersGroupsDestroy
- Delete a group object.
+ Delete a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsDestroyRequest
*/
UsersGroupsDestroy(ctx context.Context, id int32) ApiUsersGroupsDestroyRequest
@@ -108,12 +107,12 @@ type UsersAPI interface {
UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyRequest) (*http.Response, error)
/*
- UsersGroupsList Method for UsersGroupsList
+ UsersGroupsList Method for UsersGroupsList
- Get a list of group objects.
+ Get a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsListRequest
*/
UsersGroupsList(ctx context.Context) ApiUsersGroupsListRequest
@@ -122,13 +121,13 @@ type UsersAPI interface {
UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*PaginatedGroupList, *http.Response, error)
/*
- UsersGroupsPartialUpdate Method for UsersGroupsPartialUpdate
+ UsersGroupsPartialUpdate Method for UsersGroupsPartialUpdate
- Patch a group object.
+ Patch a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsPartialUpdateRequest
*/
UsersGroupsPartialUpdate(ctx context.Context, id int32) ApiUsersGroupsPartialUpdateRequest
@@ -137,13 +136,13 @@ type UsersAPI interface {
UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartialUpdateRequest) (*Group, *http.Response, error)
/*
- UsersGroupsRetrieve Method for UsersGroupsRetrieve
+ UsersGroupsRetrieve Method for UsersGroupsRetrieve
- Get a group object.
+ Get a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsRetrieveRequest
*/
UsersGroupsRetrieve(ctx context.Context, id int32) ApiUsersGroupsRetrieveRequest
@@ -152,13 +151,13 @@ type UsersAPI interface {
UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveRequest) (*Group, *http.Response, error)
/*
- UsersGroupsUpdate Method for UsersGroupsUpdate
+ UsersGroupsUpdate Method for UsersGroupsUpdate
- Put a group object.
+ Put a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsUpdateRequest
*/
UsersGroupsUpdate(ctx context.Context, id int32) ApiUsersGroupsUpdateRequest
@@ -167,12 +166,12 @@ type UsersAPI interface {
UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest) (*Group, *http.Response, error)
/*
- UsersPermissionsBulkDestroy Method for UsersPermissionsBulkDestroy
+ UsersPermissionsBulkDestroy Method for UsersPermissionsBulkDestroy
- Delete a list of permission objects.
+ Delete a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkDestroyRequest
*/
UsersPermissionsBulkDestroy(ctx context.Context) ApiUsersPermissionsBulkDestroyRequest
@@ -180,12 +179,12 @@ type UsersAPI interface {
UsersPermissionsBulkDestroyExecute(r ApiUsersPermissionsBulkDestroyRequest) (*http.Response, error)
/*
- UsersPermissionsBulkPartialUpdate Method for UsersPermissionsBulkPartialUpdate
+ UsersPermissionsBulkPartialUpdate Method for UsersPermissionsBulkPartialUpdate
- Patch a list of permission objects.
+ Patch a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkPartialUpdateRequest
*/
UsersPermissionsBulkPartialUpdate(ctx context.Context) ApiUsersPermissionsBulkPartialUpdateRequest
@@ -194,12 +193,12 @@ type UsersAPI interface {
UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPermissionsBulkPartialUpdateRequest) ([]ObjectPermission, *http.Response, error)
/*
- UsersPermissionsBulkUpdate Method for UsersPermissionsBulkUpdate
+ UsersPermissionsBulkUpdate Method for UsersPermissionsBulkUpdate
- Put a list of permission objects.
+ Put a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkUpdateRequest
*/
UsersPermissionsBulkUpdate(ctx context.Context) ApiUsersPermissionsBulkUpdateRequest
@@ -208,12 +207,12 @@ type UsersAPI interface {
UsersPermissionsBulkUpdateExecute(r ApiUsersPermissionsBulkUpdateRequest) ([]ObjectPermission, *http.Response, error)
/*
- UsersPermissionsCreate Method for UsersPermissionsCreate
+ UsersPermissionsCreate Method for UsersPermissionsCreate
- Post a list of permission objects.
+ Post a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsCreateRequest
*/
UsersPermissionsCreate(ctx context.Context) ApiUsersPermissionsCreateRequest
@@ -222,13 +221,13 @@ type UsersAPI interface {
UsersPermissionsCreateExecute(r ApiUsersPermissionsCreateRequest) (*ObjectPermission, *http.Response, error)
/*
- UsersPermissionsDestroy Method for UsersPermissionsDestroy
+ UsersPermissionsDestroy Method for UsersPermissionsDestroy
- Delete a permission object.
+ Delete a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsDestroyRequest
*/
UsersPermissionsDestroy(ctx context.Context, id int32) ApiUsersPermissionsDestroyRequest
@@ -236,12 +235,12 @@ type UsersAPI interface {
UsersPermissionsDestroyExecute(r ApiUsersPermissionsDestroyRequest) (*http.Response, error)
/*
- UsersPermissionsList Method for UsersPermissionsList
+ UsersPermissionsList Method for UsersPermissionsList
- Get a list of permission objects.
+ Get a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsListRequest
*/
UsersPermissionsList(ctx context.Context) ApiUsersPermissionsListRequest
@@ -250,13 +249,13 @@ type UsersAPI interface {
UsersPermissionsListExecute(r ApiUsersPermissionsListRequest) (*PaginatedObjectPermissionList, *http.Response, error)
/*
- UsersPermissionsPartialUpdate Method for UsersPermissionsPartialUpdate
+ UsersPermissionsPartialUpdate Method for UsersPermissionsPartialUpdate
- Patch a permission object.
+ Patch a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsPartialUpdateRequest
*/
UsersPermissionsPartialUpdate(ctx context.Context, id int32) ApiUsersPermissionsPartialUpdateRequest
@@ -265,13 +264,13 @@ type UsersAPI interface {
UsersPermissionsPartialUpdateExecute(r ApiUsersPermissionsPartialUpdateRequest) (*ObjectPermission, *http.Response, error)
/*
- UsersPermissionsRetrieve Method for UsersPermissionsRetrieve
+ UsersPermissionsRetrieve Method for UsersPermissionsRetrieve
- Get a permission object.
+ Get a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsRetrieveRequest
*/
UsersPermissionsRetrieve(ctx context.Context, id int32) ApiUsersPermissionsRetrieveRequest
@@ -280,13 +279,13 @@ type UsersAPI interface {
UsersPermissionsRetrieveExecute(r ApiUsersPermissionsRetrieveRequest) (*ObjectPermission, *http.Response, error)
/*
- UsersPermissionsUpdate Method for UsersPermissionsUpdate
+ UsersPermissionsUpdate Method for UsersPermissionsUpdate
- Put a permission object.
+ Put a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsUpdateRequest
*/
UsersPermissionsUpdate(ctx context.Context, id int32) ApiUsersPermissionsUpdateRequest
@@ -295,12 +294,12 @@ type UsersAPI interface {
UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpdateRequest) (*ObjectPermission, *http.Response, error)
/*
- UsersTokensBulkDestroy Method for UsersTokensBulkDestroy
+ UsersTokensBulkDestroy Method for UsersTokensBulkDestroy
- Delete a list of token objects.
+ Delete a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkDestroyRequest
*/
UsersTokensBulkDestroy(ctx context.Context) ApiUsersTokensBulkDestroyRequest
@@ -308,12 +307,12 @@ type UsersAPI interface {
UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDestroyRequest) (*http.Response, error)
/*
- UsersTokensBulkPartialUpdate Method for UsersTokensBulkPartialUpdate
+ UsersTokensBulkPartialUpdate Method for UsersTokensBulkPartialUpdate
- Patch a list of token objects.
+ Patch a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkPartialUpdateRequest
*/
UsersTokensBulkPartialUpdate(ctx context.Context) ApiUsersTokensBulkPartialUpdateRequest
@@ -322,12 +321,12 @@ type UsersAPI interface {
UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBulkPartialUpdateRequest) ([]Token, *http.Response, error)
/*
- UsersTokensBulkUpdate Method for UsersTokensBulkUpdate
+ UsersTokensBulkUpdate Method for UsersTokensBulkUpdate
- Put a list of token objects.
+ Put a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkUpdateRequest
*/
UsersTokensBulkUpdate(ctx context.Context) ApiUsersTokensBulkUpdateRequest
@@ -336,12 +335,12 @@ type UsersAPI interface {
UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdateRequest) ([]Token, *http.Response, error)
/*
- UsersTokensCreate Method for UsersTokensCreate
+ UsersTokensCreate Method for UsersTokensCreate
- Post a list of token objects.
+ Post a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensCreateRequest
*/
UsersTokensCreate(ctx context.Context) ApiUsersTokensCreateRequest
@@ -350,13 +349,13 @@ type UsersAPI interface {
UsersTokensCreateExecute(r ApiUsersTokensCreateRequest) (*Token, *http.Response, error)
/*
- UsersTokensDestroy Method for UsersTokensDestroy
+ UsersTokensDestroy Method for UsersTokensDestroy
- Delete a token object.
+ Delete a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensDestroyRequest
*/
UsersTokensDestroy(ctx context.Context, id int32) ApiUsersTokensDestroyRequest
@@ -364,12 +363,12 @@ type UsersAPI interface {
UsersTokensDestroyExecute(r ApiUsersTokensDestroyRequest) (*http.Response, error)
/*
- UsersTokensList Method for UsersTokensList
+ UsersTokensList Method for UsersTokensList
- Get a list of token objects.
+ Get a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensListRequest
*/
UsersTokensList(ctx context.Context) ApiUsersTokensListRequest
@@ -378,13 +377,13 @@ type UsersAPI interface {
UsersTokensListExecute(r ApiUsersTokensListRequest) (*PaginatedTokenList, *http.Response, error)
/*
- UsersTokensPartialUpdate Method for UsersTokensPartialUpdate
+ UsersTokensPartialUpdate Method for UsersTokensPartialUpdate
- Patch a token object.
+ Patch a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensPartialUpdateRequest
*/
UsersTokensPartialUpdate(ctx context.Context, id int32) ApiUsersTokensPartialUpdateRequest
@@ -393,12 +392,12 @@ type UsersAPI interface {
UsersTokensPartialUpdateExecute(r ApiUsersTokensPartialUpdateRequest) (*Token, *http.Response, error)
/*
- UsersTokensProvisionCreate Method for UsersTokensProvisionCreate
+ UsersTokensProvisionCreate Method for UsersTokensProvisionCreate
- Non-authenticated REST API endpoint via which a user may create a Token.
+ Non-authenticated REST API endpoint via which a user may create a Token.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensProvisionCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensProvisionCreateRequest
*/
UsersTokensProvisionCreate(ctx context.Context) ApiUsersTokensProvisionCreateRequest
@@ -407,13 +406,13 @@ type UsersAPI interface {
UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*TokenProvision, *http.Response, error)
/*
- UsersTokensRetrieve Method for UsersTokensRetrieve
+ UsersTokensRetrieve Method for UsersTokensRetrieve
- Get a token object.
+ Get a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensRetrieveRequest
*/
UsersTokensRetrieve(ctx context.Context, id int32) ApiUsersTokensRetrieveRequest
@@ -422,13 +421,13 @@ type UsersAPI interface {
UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveRequest) (*Token, *http.Response, error)
/*
- UsersTokensUpdate Method for UsersTokensUpdate
+ UsersTokensUpdate Method for UsersTokensUpdate
- Put a token object.
+ Put a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensUpdateRequest
*/
UsersTokensUpdate(ctx context.Context, id int32) ApiUsersTokensUpdateRequest
@@ -437,12 +436,12 @@ type UsersAPI interface {
UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest) (*Token, *http.Response, error)
/*
- UsersUsersBulkDestroy Method for UsersUsersBulkDestroy
+ UsersUsersBulkDestroy Method for UsersUsersBulkDestroy
- Delete a list of user objects.
+ Delete a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkDestroyRequest
*/
UsersUsersBulkDestroy(ctx context.Context) ApiUsersUsersBulkDestroyRequest
@@ -450,12 +449,12 @@ type UsersAPI interface {
UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestroyRequest) (*http.Response, error)
/*
- UsersUsersBulkPartialUpdate Method for UsersUsersBulkPartialUpdate
+ UsersUsersBulkPartialUpdate Method for UsersUsersBulkPartialUpdate
- Patch a list of user objects.
+ Patch a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkPartialUpdateRequest
*/
UsersUsersBulkPartialUpdate(ctx context.Context) ApiUsersUsersBulkPartialUpdateRequest
@@ -464,12 +463,12 @@ type UsersAPI interface {
UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulkPartialUpdateRequest) ([]User, *http.Response, error)
/*
- UsersUsersBulkUpdate Method for UsersUsersBulkUpdate
+ UsersUsersBulkUpdate Method for UsersUsersBulkUpdate
- Put a list of user objects.
+ Put a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkUpdateRequest
*/
UsersUsersBulkUpdate(ctx context.Context) ApiUsersUsersBulkUpdateRequest
@@ -478,12 +477,12 @@ type UsersAPI interface {
UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateRequest) ([]User, *http.Response, error)
/*
- UsersUsersCreate Method for UsersUsersCreate
+ UsersUsersCreate Method for UsersUsersCreate
- Post a list of user objects.
+ Post a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersCreateRequest
*/
UsersUsersCreate(ctx context.Context) ApiUsersUsersCreateRequest
@@ -492,13 +491,13 @@ type UsersAPI interface {
UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) (*User, *http.Response, error)
/*
- UsersUsersDestroy Method for UsersUsersDestroy
+ UsersUsersDestroy Method for UsersUsersDestroy
- Delete a user object.
+ Delete a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersDestroyRequest
*/
UsersUsersDestroy(ctx context.Context, id int32) ApiUsersUsersDestroyRequest
@@ -506,12 +505,12 @@ type UsersAPI interface {
UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest) (*http.Response, error)
/*
- UsersUsersList Method for UsersUsersList
+ UsersUsersList Method for UsersUsersList
- Get a list of user objects.
+ Get a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersListRequest
*/
UsersUsersList(ctx context.Context) ApiUsersUsersListRequest
@@ -520,13 +519,13 @@ type UsersAPI interface {
UsersUsersListExecute(r ApiUsersUsersListRequest) (*PaginatedUserList, *http.Response, error)
/*
- UsersUsersPartialUpdate Method for UsersUsersPartialUpdate
+ UsersUsersPartialUpdate Method for UsersUsersPartialUpdate
- Patch a user object.
+ Patch a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersPartialUpdateRequest
*/
UsersUsersPartialUpdate(ctx context.Context, id int32) ApiUsersUsersPartialUpdateRequest
@@ -535,13 +534,13 @@ type UsersAPI interface {
UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialUpdateRequest) (*User, *http.Response, error)
/*
- UsersUsersRetrieve Method for UsersUsersRetrieve
+ UsersUsersRetrieve Method for UsersUsersRetrieve
- Get a user object.
+ Get a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersRetrieveRequest
*/
UsersUsersRetrieve(ctx context.Context, id int32) ApiUsersUsersRetrieveRequest
@@ -550,13 +549,13 @@ type UsersAPI interface {
UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveRequest) (*User, *http.Response, error)
/*
- UsersUsersUpdate Method for UsersUsersUpdate
+ UsersUsersUpdate Method for UsersUsersUpdate
- Put a user object.
+ Put a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersUpdateRequest
*/
UsersUsersUpdate(ctx context.Context, id int32) ApiUsersUsersUpdateRequest
@@ -569,7 +568,7 @@ type UsersAPI interface {
type UsersAPIService service
type ApiUsersConfigRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
}
@@ -582,24 +581,25 @@ UsersConfigRetrieve Method for UsersConfigRetrieve
An API endpoint via which a user can update his or her own UserConfig data (but no one else's).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersConfigRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersConfigRetrieveRequest
*/
func (a *UsersAPIService) UsersConfigRetrieve(ctx context.Context) ApiUsersConfigRetrieveRequest {
return ApiUsersConfigRetrieveRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return map[string]interface{}
+//
+// @return map[string]interface{}
func (a *UsersAPIService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveRequest) (map[string]interface{}, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue map[string]interface{}
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersConfigRetrieve")
@@ -682,8 +682,8 @@ func (a *UsersAPIService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveReq
}
type ApiUsersGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
groupRequest *[]GroupRequest
}
@@ -701,22 +701,22 @@ UsersGroupsBulkDestroy Method for UsersGroupsBulkDestroy
Delete a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkDestroyRequest
*/
func (a *UsersAPIService) UsersGroupsBulkDestroy(ctx context.Context) ApiUsersGroupsBulkDestroyRequest {
return ApiUsersGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkDestroy")
@@ -795,8 +795,8 @@ func (a *UsersAPIService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDest
}
type ApiUsersGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
groupRequest *[]GroupRequest
}
@@ -814,24 +814,25 @@ UsersGroupsBulkPartialUpdate Method for UsersGroupsBulkPartialUpdate
Patch a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkPartialUpdateRequest
*/
func (a *UsersAPIService) UsersGroupsBulkPartialUpdate(ctx context.Context) ApiUsersGroupsBulkPartialUpdateRequest {
return ApiUsersGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Group
+//
+// @return []Group
func (a *UsersAPIService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBulkPartialUpdateRequest) ([]Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Group
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkPartialUpdate")
@@ -919,8 +920,8 @@ func (a *UsersAPIService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBu
}
type ApiUsersGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
groupRequest *[]GroupRequest
}
@@ -938,24 +939,25 @@ UsersGroupsBulkUpdate Method for UsersGroupsBulkUpdate
Put a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsBulkUpdateRequest
*/
func (a *UsersAPIService) UsersGroupsBulkUpdate(ctx context.Context) ApiUsersGroupsBulkUpdateRequest {
return ApiUsersGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Group
+//
+// @return []Group
func (a *UsersAPIService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdateRequest) ([]Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Group
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkUpdate")
@@ -1043,8 +1045,8 @@ func (a *UsersAPIService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdat
}
type ApiUsersGroupsCreateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
groupRequest *GroupRequest
}
@@ -1062,24 +1064,25 @@ UsersGroupsCreate Method for UsersGroupsCreate
Post a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsCreateRequest
*/
func (a *UsersAPIService) UsersGroupsCreate(ctx context.Context) ApiUsersGroupsCreateRequest {
return ApiUsersGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Group
+//
+// @return Group
func (a *UsersAPIService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest) (*Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Group
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsCreate")
@@ -1167,9 +1170,9 @@ func (a *UsersAPIService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest
}
type ApiUsersGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -1181,24 +1184,24 @@ UsersGroupsDestroy Method for UsersGroupsDestroy
Delete a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsDestroyRequest
*/
func (a *UsersAPIService) UsersGroupsDestroy(ctx context.Context, id int32) ApiUsersGroupsDestroyRequest {
return ApiUsersGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsDestroy")
@@ -1273,47 +1276,47 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque
}
type ApiUsersGroupsListRequest struct {
- ctx context.Context
- ApiService UsersAPI
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- notificationGroupId *[]int32
+ ctx context.Context
+ ApiService UsersAPI
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ limit *int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ notificationGroupId *[]int32
notificationGroupIdN *[]int32
- offset *int32
- ordering *string
- permissionId *[]int32
- permissionIdN *[]int32
- q *string
- userId *[]int32
- userIdN *[]int32
+ offset *int32
+ ordering *string
+ permissionId *[]int32
+ permissionIdN *[]int32
+ q *string
+ userId *[]int32
+ userIdN *[]int32
}
func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest {
@@ -1530,24 +1533,25 @@ UsersGroupsList Method for UsersGroupsList
Get a list of group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersGroupsListRequest
*/
func (a *UsersAPIService) UsersGroupsList(ctx context.Context) ApiUsersGroupsListRequest {
return ApiUsersGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedGroupList
+//
+// @return PaginatedGroupList
func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*PaginatedGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsList")
@@ -2003,9 +2007,9 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*
}
type ApiUsersGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
patchedGroupRequest *PatchedGroupRequest
}
@@ -2023,26 +2027,27 @@ UsersGroupsPartialUpdate Method for UsersGroupsPartialUpdate
Patch a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsPartialUpdateRequest
*/
func (a *UsersAPIService) UsersGroupsPartialUpdate(ctx context.Context, id int32) ApiUsersGroupsPartialUpdateRequest {
return ApiUsersGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Group
+//
+// @return Group
func (a *UsersAPIService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartialUpdateRequest) (*Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Group
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsPartialUpdate")
@@ -2128,9 +2133,9 @@ func (a *UsersAPIService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartia
}
type ApiUsersGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersGroupsRetrieveRequest) Execute() (*Group, *http.Response, error) {
@@ -2142,26 +2147,27 @@ UsersGroupsRetrieve Method for UsersGroupsRetrieve
Get a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsRetrieveRequest
*/
func (a *UsersAPIService) UsersGroupsRetrieve(ctx context.Context, id int32) ApiUsersGroupsRetrieveRequest {
return ApiUsersGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Group
+//
+// @return Group
func (a *UsersAPIService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveRequest) (*Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Group
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsRetrieve")
@@ -2245,9 +2251,9 @@ func (a *UsersAPIService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveReq
}
type ApiUsersGroupsUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
groupRequest *GroupRequest
}
@@ -2265,26 +2271,27 @@ UsersGroupsUpdate Method for UsersGroupsUpdate
Put a group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this group.
- @return ApiUsersGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this group.
+ @return ApiUsersGroupsUpdateRequest
*/
func (a *UsersAPIService) UsersGroupsUpdate(ctx context.Context, id int32) ApiUsersGroupsUpdateRequest {
return ApiUsersGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Group
+//
+// @return Group
func (a *UsersAPIService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest) (*Group, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Group
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Group
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsUpdate")
@@ -2373,8 +2380,8 @@ func (a *UsersAPIService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest
}
type ApiUsersPermissionsBulkDestroyRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
objectPermissionRequest *[]ObjectPermissionRequest
}
@@ -2392,22 +2399,22 @@ UsersPermissionsBulkDestroy Method for UsersPermissionsBulkDestroy
Delete a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkDestroyRequest
*/
func (a *UsersAPIService) UsersPermissionsBulkDestroy(ctx context.Context) ApiUsersPermissionsBulkDestroyRequest {
return ApiUsersPermissionsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissionsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkDestroy")
@@ -2486,8 +2493,8 @@ func (a *UsersAPIService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissio
}
type ApiUsersPermissionsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
objectPermissionRequest *[]ObjectPermissionRequest
}
@@ -2505,24 +2512,25 @@ UsersPermissionsBulkPartialUpdate Method for UsersPermissionsBulkPartialUpdate
Patch a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkPartialUpdateRequest
*/
func (a *UsersAPIService) UsersPermissionsBulkPartialUpdate(ctx context.Context) ApiUsersPermissionsBulkPartialUpdateRequest {
return ApiUsersPermissionsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ObjectPermission
+//
+// @return []ObjectPermission
func (a *UsersAPIService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPermissionsBulkPartialUpdateRequest) ([]ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ObjectPermission
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkPartialUpdate")
@@ -2610,8 +2618,8 @@ func (a *UsersAPIService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPer
}
type ApiUsersPermissionsBulkUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
objectPermissionRequest *[]ObjectPermissionRequest
}
@@ -2629,24 +2637,25 @@ UsersPermissionsBulkUpdate Method for UsersPermissionsBulkUpdate
Put a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsBulkUpdateRequest
*/
func (a *UsersAPIService) UsersPermissionsBulkUpdate(ctx context.Context) ApiUsersPermissionsBulkUpdateRequest {
return ApiUsersPermissionsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ObjectPermission
+//
+// @return []ObjectPermission
func (a *UsersAPIService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermissionsBulkUpdateRequest) ([]ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ObjectPermission
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkUpdate")
@@ -2734,8 +2743,8 @@ func (a *UsersAPIService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermission
}
type ApiUsersPermissionsCreateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
objectPermissionRequest *ObjectPermissionRequest
}
@@ -2753,24 +2762,25 @@ UsersPermissionsCreate Method for UsersPermissionsCreate
Post a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsCreateRequest
*/
func (a *UsersAPIService) UsersPermissionsCreate(ctx context.Context) ApiUsersPermissionsCreateRequest {
return ApiUsersPermissionsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ObjectPermission
+//
+// @return ObjectPermission
func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCreateRequest) (*ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectPermission
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsCreate")
@@ -2858,9 +2868,9 @@ func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCre
}
type ApiUsersPermissionsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersPermissionsDestroyRequest) Execute() (*http.Response, error) {
@@ -2872,24 +2882,24 @@ UsersPermissionsDestroy Method for UsersPermissionsDestroy
Delete a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsDestroyRequest
*/
func (a *UsersAPIService) UsersPermissionsDestroy(ctx context.Context, id int32) ApiUsersPermissionsDestroyRequest {
return ApiUsersPermissionsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsDestroy")
@@ -2964,68 +2974,68 @@ func (a *UsersAPIService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDe
}
type ApiUsersPermissionsListRequest struct {
- ctx context.Context
- ApiService UsersAPI
- canAdd *bool
- canChange *bool
- canDelete *bool
- canView *bool
- description *[]string
+ ctx context.Context
+ ApiService UsersAPI
+ canAdd *bool
+ canChange *bool
+ canDelete *bool
+ canView *bool
+ description *[]string
descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enabled *bool
- group *[]string
- groupN *[]string
- groupId *[]int32
- groupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectType *string
- objectTypeIc *string
- objectTypeIe *string
- objectTypeIew *string
- objectTypeIsw *string
- objectTypeN *string
- objectTypeNic *string
- objectTypeNie *string
- objectTypeNiew *string
- objectTypeNisw *string
- objectTypeId *[]int32
- objectTypeIdN *[]int32
- objectTypes *[]int32
- objectTypesN *[]int32
- offset *int32
- ordering *string
- q *string
- user *[]string
- userN *[]string
- userId *[]int32
- userIdN *[]int32
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ group *[]string
+ groupN *[]string
+ groupId *[]int32
+ groupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ limit *int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ objectType *string
+ objectTypeIc *string
+ objectTypeIe *string
+ objectTypeIew *string
+ objectTypeIsw *string
+ objectTypeN *string
+ objectTypeNic *string
+ objectTypeNie *string
+ objectTypeNiew *string
+ objectTypeNisw *string
+ objectTypeId *[]int32
+ objectTypeIdN *[]int32
+ objectTypes *[]int32
+ objectTypesN *[]int32
+ offset *int32
+ ordering *string
+ q *string
+ user *[]string
+ userN *[]string
+ userId *[]int32
+ userIdN *[]int32
}
func (r ApiUsersPermissionsListRequest) CanAdd(canAdd bool) ApiUsersPermissionsListRequest {
@@ -3349,24 +3359,25 @@ UsersPermissionsList Method for UsersPermissionsList
Get a list of permission objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersPermissionsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersPermissionsListRequest
*/
func (a *UsersAPIService) UsersPermissionsList(ctx context.Context) ApiUsersPermissionsListRequest {
return ApiUsersPermissionsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedObjectPermissionList
+//
+// @return PaginatedObjectPermissionList
func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListRequest) (*PaginatedObjectPermissionList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedObjectPermissionList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedObjectPermissionList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsList")
@@ -3933,9 +3944,9 @@ func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListR
}
type ApiUsersPermissionsPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
patchedObjectPermissionRequest *PatchedObjectPermissionRequest
}
@@ -3953,26 +3964,27 @@ UsersPermissionsPartialUpdate Method for UsersPermissionsPartialUpdate
Patch a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsPartialUpdateRequest
*/
func (a *UsersAPIService) UsersPermissionsPartialUpdate(ctx context.Context, id int32) ApiUsersPermissionsPartialUpdateRequest {
return ApiUsersPermissionsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ObjectPermission
+//
+// @return ObjectPermission
func (a *UsersAPIService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermissionsPartialUpdateRequest) (*ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectPermission
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsPartialUpdate")
@@ -4058,9 +4070,9 @@ func (a *UsersAPIService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermiss
}
type ApiUsersPermissionsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersPermissionsRetrieveRequest) Execute() (*ObjectPermission, *http.Response, error) {
@@ -4072,26 +4084,27 @@ UsersPermissionsRetrieve Method for UsersPermissionsRetrieve
Get a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsRetrieveRequest
*/
func (a *UsersAPIService) UsersPermissionsRetrieve(ctx context.Context, id int32) ApiUsersPermissionsRetrieveRequest {
return ApiUsersPermissionsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ObjectPermission
+//
+// @return ObjectPermission
func (a *UsersAPIService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsRetrieveRequest) (*ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectPermission
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsRetrieve")
@@ -4175,9 +4188,9 @@ func (a *UsersAPIService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsR
}
type ApiUsersPermissionsUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
objectPermissionRequest *ObjectPermissionRequest
}
@@ -4195,26 +4208,27 @@ UsersPermissionsUpdate Method for UsersPermissionsUpdate
Put a permission object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this permission.
- @return ApiUsersPermissionsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this permission.
+ @return ApiUsersPermissionsUpdateRequest
*/
func (a *UsersAPIService) UsersPermissionsUpdate(ctx context.Context, id int32) ApiUsersPermissionsUpdateRequest {
return ApiUsersPermissionsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ObjectPermission
+//
+// @return ObjectPermission
func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpdateRequest) (*ObjectPermission, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ObjectPermission
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ObjectPermission
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsUpdate")
@@ -4303,8 +4317,8 @@ func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpd
}
type ApiUsersTokensBulkDestroyRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
tokenRequest *[]TokenRequest
}
@@ -4322,22 +4336,22 @@ UsersTokensBulkDestroy Method for UsersTokensBulkDestroy
Delete a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkDestroyRequest
*/
func (a *UsersAPIService) UsersTokensBulkDestroy(ctx context.Context) ApiUsersTokensBulkDestroyRequest {
return ApiUsersTokensBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkDestroy")
@@ -4416,8 +4430,8 @@ func (a *UsersAPIService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDest
}
type ApiUsersTokensBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
tokenRequest *[]TokenRequest
}
@@ -4435,24 +4449,25 @@ UsersTokensBulkPartialUpdate Method for UsersTokensBulkPartialUpdate
Patch a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkPartialUpdateRequest
*/
func (a *UsersAPIService) UsersTokensBulkPartialUpdate(ctx context.Context) ApiUsersTokensBulkPartialUpdateRequest {
return ApiUsersTokensBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Token
+//
+// @return []Token
func (a *UsersAPIService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBulkPartialUpdateRequest) ([]Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Token
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkPartialUpdate")
@@ -4540,8 +4555,8 @@ func (a *UsersAPIService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBu
}
type ApiUsersTokensBulkUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
tokenRequest *[]TokenRequest
}
@@ -4559,24 +4574,25 @@ UsersTokensBulkUpdate Method for UsersTokensBulkUpdate
Put a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensBulkUpdateRequest
*/
func (a *UsersAPIService) UsersTokensBulkUpdate(ctx context.Context) ApiUsersTokensBulkUpdateRequest {
return ApiUsersTokensBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Token
+//
+// @return []Token
func (a *UsersAPIService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdateRequest) ([]Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Token
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkUpdate")
@@ -4664,8 +4680,8 @@ func (a *UsersAPIService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdat
}
type ApiUsersTokensCreateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
tokenRequest *TokenRequest
}
@@ -4683,24 +4699,25 @@ UsersTokensCreate Method for UsersTokensCreate
Post a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensCreateRequest
*/
func (a *UsersAPIService) UsersTokensCreate(ctx context.Context) ApiUsersTokensCreateRequest {
return ApiUsersTokensCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Token
+//
+// @return Token
func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest) (*Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Token
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensCreate")
@@ -4788,9 +4805,9 @@ func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest
}
type ApiUsersTokensDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersTokensDestroyRequest) Execute() (*http.Response, error) {
@@ -4802,24 +4819,24 @@ UsersTokensDestroy Method for UsersTokensDestroy
Delete a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensDestroyRequest
*/
func (a *UsersAPIService) UsersTokensDestroy(ctx context.Context, id int32) ApiUsersTokensDestroyRequest {
return ApiUsersTokensDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersTokensDestroyExecute(r ApiUsersTokensDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensDestroy")
@@ -4894,59 +4911,59 @@ func (a *UsersAPIService) UsersTokensDestroyExecute(r ApiUsersTokensDestroyReque
}
type ApiUsersTokensListRequest struct {
- ctx context.Context
- ApiService UsersAPI
- created *time.Time
- createdGte *time.Time
- createdLte *time.Time
- description *[]string
+ ctx context.Context
+ ApiService UsersAPI
+ created *time.Time
+ createdGte *time.Time
+ createdLte *time.Time
+ description *[]string
descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- expires *time.Time
- expiresGte *time.Time
- expiresLte *time.Time
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- key *[]string
- keyEmpty *bool
- keyIc *[]string
- keyIe *[]string
- keyIew *[]string
- keyIsw *[]string
- keyN *[]string
- keyNic *[]string
- keyNie *[]string
- keyNiew *[]string
- keyNisw *[]string
- lastUsed *[]time.Time
- lastUsedEmpty *bool
- lastUsedGt *[]time.Time
- lastUsedGte *[]time.Time
- lastUsedLt *[]time.Time
- lastUsedLte *[]time.Time
- lastUsedN *[]time.Time
- limit *int32
- offset *int32
- ordering *string
- q *string
- user *[]string
- userN *[]string
- userId *[]int32
- userIdN *[]int32
- writeEnabled *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ expires *time.Time
+ expiresGte *time.Time
+ expiresLte *time.Time
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ key *[]string
+ keyEmpty *bool
+ keyIc *[]string
+ keyIe *[]string
+ keyIew *[]string
+ keyIsw *[]string
+ keyN *[]string
+ keyNic *[]string
+ keyNie *[]string
+ keyNiew *[]string
+ keyNisw *[]string
+ lastUsed *[]time.Time
+ lastUsedEmpty *bool
+ lastUsedGt *[]time.Time
+ lastUsedGte *[]time.Time
+ lastUsedLt *[]time.Time
+ lastUsedLte *[]time.Time
+ lastUsedN *[]time.Time
+ limit *int32
+ offset *int32
+ ordering *string
+ q *string
+ user *[]string
+ userN *[]string
+ userId *[]int32
+ userIdN *[]int32
+ writeEnabled *bool
}
func (r ApiUsersTokensListRequest) Created(created time.Time) ApiUsersTokensListRequest {
@@ -5221,24 +5238,25 @@ UsersTokensList Method for UsersTokensList
Get a list of token objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensListRequest
*/
func (a *UsersAPIService) UsersTokensList(ctx context.Context) ApiUsersTokensListRequest {
return ApiUsersTokensListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTokenList
+//
+// @return PaginatedTokenList
func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*PaginatedTokenList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTokenList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTokenList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensList")
@@ -5762,9 +5780,9 @@ func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*
}
type ApiUsersTokensPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
patchedTokenRequest *PatchedTokenRequest
}
@@ -5782,26 +5800,27 @@ UsersTokensPartialUpdate Method for UsersTokensPartialUpdate
Patch a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensPartialUpdateRequest
*/
func (a *UsersAPIService) UsersTokensPartialUpdate(ctx context.Context, id int32) ApiUsersTokensPartialUpdateRequest {
return ApiUsersTokensPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Token
+//
+// @return Token
func (a *UsersAPIService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartialUpdateRequest) (*Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Token
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensPartialUpdate")
@@ -5887,8 +5906,8 @@ func (a *UsersAPIService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartia
}
type ApiUsersTokensProvisionCreateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
tokenProvisionRequest *TokenProvisionRequest
}
@@ -5906,24 +5925,25 @@ UsersTokensProvisionCreate Method for UsersTokensProvisionCreate
Non-authenticated REST API endpoint via which a user may create a Token.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersTokensProvisionCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersTokensProvisionCreateRequest
*/
func (a *UsersAPIService) UsersTokensProvisionCreate(ctx context.Context) ApiUsersTokensProvisionCreateRequest {
return ApiUsersTokensProvisionCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return TokenProvision
+//
+// @return TokenProvision
func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*TokenProvision, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TokenProvision
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TokenProvision
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensProvisionCreate")
@@ -6002,8 +6022,8 @@ func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
- newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
- newErr.model = v
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
@@ -6021,9 +6041,9 @@ func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv
}
type ApiUsersTokensRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersTokensRetrieveRequest) Execute() (*Token, *http.Response, error) {
@@ -6035,26 +6055,27 @@ UsersTokensRetrieve Method for UsersTokensRetrieve
Get a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensRetrieveRequest
*/
func (a *UsersAPIService) UsersTokensRetrieve(ctx context.Context, id int32) ApiUsersTokensRetrieveRequest {
return ApiUsersTokensRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Token
+//
+// @return Token
func (a *UsersAPIService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveRequest) (*Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Token
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensRetrieve")
@@ -6138,9 +6159,9 @@ func (a *UsersAPIService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveReq
}
type ApiUsersTokensUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
tokenRequest *TokenRequest
}
@@ -6158,26 +6179,27 @@ UsersTokensUpdate Method for UsersTokensUpdate
Put a token object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this token.
- @return ApiUsersTokensUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this token.
+ @return ApiUsersTokensUpdateRequest
*/
func (a *UsersAPIService) UsersTokensUpdate(ctx context.Context, id int32) ApiUsersTokensUpdateRequest {
return ApiUsersTokensUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Token
+//
+// @return Token
func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest) (*Token, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Token
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Token
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensUpdate")
@@ -6266,8 +6288,8 @@ func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest
}
type ApiUsersUsersBulkDestroyRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
userRequest *[]UserRequest
}
@@ -6285,22 +6307,22 @@ UsersUsersBulkDestroy Method for UsersUsersBulkDestroy
Delete a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkDestroyRequest
*/
func (a *UsersAPIService) UsersUsersBulkDestroy(ctx context.Context) ApiUsersUsersBulkDestroyRequest {
return ApiUsersUsersBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkDestroy")
@@ -6379,8 +6401,8 @@ func (a *UsersAPIService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestro
}
type ApiUsersUsersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
userRequest *[]UserRequest
}
@@ -6398,24 +6420,25 @@ UsersUsersBulkPartialUpdate Method for UsersUsersBulkPartialUpdate
Patch a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkPartialUpdateRequest
*/
func (a *UsersAPIService) UsersUsersBulkPartialUpdate(ctx context.Context) ApiUsersUsersBulkPartialUpdateRequest {
return ApiUsersUsersBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []User
+//
+// @return []User
func (a *UsersAPIService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulkPartialUpdateRequest) ([]User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []User
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkPartialUpdate")
@@ -6503,8 +6526,8 @@ func (a *UsersAPIService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulk
}
type ApiUsersUsersBulkUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
userRequest *[]UserRequest
}
@@ -6522,24 +6545,25 @@ UsersUsersBulkUpdate Method for UsersUsersBulkUpdate
Put a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersBulkUpdateRequest
*/
func (a *UsersAPIService) UsersUsersBulkUpdate(ctx context.Context) ApiUsersUsersBulkUpdateRequest {
return ApiUsersUsersBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []User
+//
+// @return []User
func (a *UsersAPIService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateRequest) ([]User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []User
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkUpdate")
@@ -6627,8 +6651,8 @@ func (a *UsersAPIService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateR
}
type ApiUsersUsersCreateRequest struct {
- ctx context.Context
- ApiService UsersAPI
+ ctx context.Context
+ ApiService UsersAPI
userRequest *UserRequest
}
@@ -6646,24 +6670,25 @@ UsersUsersCreate Method for UsersUsersCreate
Post a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersCreateRequest
*/
func (a *UsersAPIService) UsersUsersCreate(ctx context.Context) ApiUsersUsersCreateRequest {
return ApiUsersUsersCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return User
+//
+// @return User
func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) (*User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *User
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersCreate")
@@ -6751,9 +6776,9 @@ func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest)
}
type ApiUsersUsersDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersUsersDestroyRequest) Execute() (*http.Response, error) {
@@ -6765,24 +6790,24 @@ UsersUsersDestroy Method for UsersUsersDestroy
Delete a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersDestroyRequest
*/
func (a *UsersAPIService) UsersUsersDestroy(ctx context.Context, id int32) ApiUsersUsersDestroyRequest {
return ApiUsersUsersDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersDestroy")
@@ -6857,88 +6882,88 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest
}
type ApiUsersUsersListRequest struct {
- ctx context.Context
- ApiService UsersAPI
- dateJoined *[]time.Time
- dateJoinedEmpty *bool
- dateJoinedGt *[]time.Time
- dateJoinedGte *[]time.Time
- dateJoinedLt *[]time.Time
- dateJoinedLte *[]time.Time
- dateJoinedN *[]time.Time
- email *[]string
- emailEmpty *bool
- emailIc *[]string
- emailIe *[]string
- emailIew *[]string
- emailIsw *[]string
- emailN *[]string
- emailNic *[]string
- emailNie *[]string
- emailNiew *[]string
- emailNisw *[]string
- firstName *[]string
- firstNameEmpty *bool
- firstNameIc *[]string
- firstNameIe *[]string
- firstNameIew *[]string
- firstNameIsw *[]string
- firstNameN *[]string
- firstNameNic *[]string
- firstNameNie *[]string
- firstNameNiew *[]string
- firstNameNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]int32
- groupIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isActive *bool
- isStaff *bool
- isSuperuser *bool
- lastLogin *[]time.Time
- lastLoginEmpty *bool
- lastLoginGt *[]time.Time
- lastLoginGte *[]time.Time
- lastLoginLt *[]time.Time
- lastLoginLte *[]time.Time
- lastLoginN *[]time.Time
- lastName *[]string
- lastNameEmpty *bool
- lastNameIc *[]string
- lastNameIe *[]string
- lastNameIew *[]string
- lastNameIsw *[]string
- lastNameN *[]string
- lastNameNic *[]string
- lastNameNie *[]string
- lastNameNiew *[]string
- lastNameNisw *[]string
- limit *int32
- notificationGroupId *[]int32
+ ctx context.Context
+ ApiService UsersAPI
+ dateJoined *[]time.Time
+ dateJoinedEmpty *bool
+ dateJoinedGt *[]time.Time
+ dateJoinedGte *[]time.Time
+ dateJoinedLt *[]time.Time
+ dateJoinedLte *[]time.Time
+ dateJoinedN *[]time.Time
+ email *[]string
+ emailEmpty *bool
+ emailIc *[]string
+ emailIe *[]string
+ emailIew *[]string
+ emailIsw *[]string
+ emailN *[]string
+ emailNic *[]string
+ emailNie *[]string
+ emailNiew *[]string
+ emailNisw *[]string
+ firstName *[]string
+ firstNameEmpty *bool
+ firstNameIc *[]string
+ firstNameIe *[]string
+ firstNameIew *[]string
+ firstNameIsw *[]string
+ firstNameN *[]string
+ firstNameNic *[]string
+ firstNameNie *[]string
+ firstNameNiew *[]string
+ firstNameNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]int32
+ groupIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ isActive *bool
+ isStaff *bool
+ isSuperuser *bool
+ lastLogin *[]time.Time
+ lastLoginEmpty *bool
+ lastLoginGt *[]time.Time
+ lastLoginGte *[]time.Time
+ lastLoginLt *[]time.Time
+ lastLoginLte *[]time.Time
+ lastLoginN *[]time.Time
+ lastName *[]string
+ lastNameEmpty *bool
+ lastNameIc *[]string
+ lastNameIe *[]string
+ lastNameIew *[]string
+ lastNameIsw *[]string
+ lastNameN *[]string
+ lastNameNic *[]string
+ lastNameNie *[]string
+ lastNameNiew *[]string
+ lastNameNisw *[]string
+ limit *int32
+ notificationGroupId *[]int32
notificationGroupIdN *[]int32
- offset *int32
- ordering *string
- permissionId *[]int32
- permissionIdN *[]int32
- q *string
- username *[]string
- usernameEmpty *bool
- usernameIc *[]string
- usernameIe *[]string
- usernameIew *[]string
- usernameIsw *[]string
- usernameN *[]string
- usernameNic *[]string
- usernameNie *[]string
- usernameNiew *[]string
- usernameNisw *[]string
+ offset *int32
+ ordering *string
+ permissionId *[]int32
+ permissionIdN *[]int32
+ q *string
+ username *[]string
+ usernameEmpty *bool
+ usernameIc *[]string
+ usernameIe *[]string
+ usernameIew *[]string
+ usernameIsw *[]string
+ usernameN *[]string
+ usernameNic *[]string
+ usernameNie *[]string
+ usernameNiew *[]string
+ usernameNisw *[]string
}
func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest {
@@ -7362,24 +7387,25 @@ UsersUsersList Method for UsersUsersList
Get a list of user objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiUsersUsersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiUsersUsersListRequest
*/
func (a *UsersAPIService) UsersUsersList(ctx context.Context) ApiUsersUsersListRequest {
return ApiUsersUsersListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedUserList
+//
+// @return PaginatedUserList
func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*PaginatedUserList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedUserList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedUserList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersList")
@@ -8230,9 +8256,9 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa
}
type ApiUsersUsersPartialUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
patchedUserRequest *PatchedUserRequest
}
@@ -8250,26 +8276,27 @@ UsersUsersPartialUpdate Method for UsersUsersPartialUpdate
Patch a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersPartialUpdateRequest
*/
func (a *UsersAPIService) UsersUsersPartialUpdate(ctx context.Context, id int32) ApiUsersUsersPartialUpdateRequest {
return ApiUsersUsersPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return User
+//
+// @return User
func (a *UsersAPIService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialUpdateRequest) (*User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *User
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersPartialUpdate")
@@ -8355,9 +8382,9 @@ func (a *UsersAPIService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialU
}
type ApiUsersUsersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService UsersAPI
- id int32
+ id int32
}
func (r ApiUsersUsersRetrieveRequest) Execute() (*User, *http.Response, error) {
@@ -8369,26 +8396,27 @@ UsersUsersRetrieve Method for UsersUsersRetrieve
Get a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersRetrieveRequest
*/
func (a *UsersAPIService) UsersUsersRetrieve(ctx context.Context, id int32) ApiUsersUsersRetrieveRequest {
return ApiUsersUsersRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return User
+//
+// @return User
func (a *UsersAPIService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveRequest) (*User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *User
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersRetrieve")
@@ -8472,9 +8500,9 @@ func (a *UsersAPIService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveReque
}
type ApiUsersUsersUpdateRequest struct {
- ctx context.Context
- ApiService UsersAPI
- id int32
+ ctx context.Context
+ ApiService UsersAPI
+ id int32
userRequest *UserRequest
}
@@ -8492,26 +8520,27 @@ UsersUsersUpdate Method for UsersUsersUpdate
Put a user object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this user.
- @return ApiUsersUsersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this user.
+ @return ApiUsersUsersUpdateRequest
*/
func (a *UsersAPIService) UsersUsersUpdate(ctx context.Context, id int32) ApiUsersUsersUpdateRequest {
return ApiUsersUsersUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return User
+//
+// @return User
func (a *UsersAPIService) UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest) (*User, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *User
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *User
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersUpdate")
diff --git a/api_virtualization.go b/api_virtualization.go
index 96d80278b..89d89a797 100644
--- a/api_virtualization.go
+++ b/api_virtualization.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type VirtualizationAPI interface {
/*
- VirtualizationClusterGroupsBulkDestroy Method for VirtualizationClusterGroupsBulkDestroy
+ VirtualizationClusterGroupsBulkDestroy Method for VirtualizationClusterGroupsBulkDestroy
- Delete a list of cluster group objects.
+ Delete a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkDestroyRequest
*/
VirtualizationClusterGroupsBulkDestroy(ctx context.Context) ApiVirtualizationClusterGroupsBulkDestroyRequest
@@ -38,12 +37,12 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsBulkDestroyExecute(r ApiVirtualizationClusterGroupsBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationClusterGroupsBulkPartialUpdate Method for VirtualizationClusterGroupsBulkPartialUpdate
+ VirtualizationClusterGroupsBulkPartialUpdate Method for VirtualizationClusterGroupsBulkPartialUpdate
- Patch a list of cluster group objects.
+ Patch a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest
*/
VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsBulkPartialUpdateExecute(r ApiVirtualizationClusterGroupsBulkPartialUpdateRequest) ([]ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterGroupsBulkUpdate Method for VirtualizationClusterGroupsBulkUpdate
+ VirtualizationClusterGroupsBulkUpdate Method for VirtualizationClusterGroupsBulkUpdate
- Put a list of cluster group objects.
+ Put a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkUpdateRequest
*/
VirtualizationClusterGroupsBulkUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkUpdateRequest
@@ -66,12 +65,12 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsBulkUpdateExecute(r ApiVirtualizationClusterGroupsBulkUpdateRequest) ([]ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterGroupsCreate Method for VirtualizationClusterGroupsCreate
+ VirtualizationClusterGroupsCreate Method for VirtualizationClusterGroupsCreate
- Post a list of cluster group objects.
+ Post a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsCreateRequest
*/
VirtualizationClusterGroupsCreate(ctx context.Context) ApiVirtualizationClusterGroupsCreateRequest
@@ -80,13 +79,13 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsCreateExecute(r ApiVirtualizationClusterGroupsCreateRequest) (*ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterGroupsDestroy Method for VirtualizationClusterGroupsDestroy
+ VirtualizationClusterGroupsDestroy Method for VirtualizationClusterGroupsDestroy
- Delete a cluster group object.
+ Delete a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsDestroyRequest
*/
VirtualizationClusterGroupsDestroy(ctx context.Context, id int32) ApiVirtualizationClusterGroupsDestroyRequest
@@ -94,12 +93,12 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsDestroyExecute(r ApiVirtualizationClusterGroupsDestroyRequest) (*http.Response, error)
/*
- VirtualizationClusterGroupsList Method for VirtualizationClusterGroupsList
+ VirtualizationClusterGroupsList Method for VirtualizationClusterGroupsList
- Get a list of cluster group objects.
+ Get a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsListRequest
*/
VirtualizationClusterGroupsList(ctx context.Context) ApiVirtualizationClusterGroupsListRequest
@@ -108,13 +107,13 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsListExecute(r ApiVirtualizationClusterGroupsListRequest) (*PaginatedClusterGroupList, *http.Response, error)
/*
- VirtualizationClusterGroupsPartialUpdate Method for VirtualizationClusterGroupsPartialUpdate
+ VirtualizationClusterGroupsPartialUpdate Method for VirtualizationClusterGroupsPartialUpdate
- Patch a cluster group object.
+ Patch a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsPartialUpdateRequest
*/
VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsPartialUpdateRequest
@@ -123,13 +122,13 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsPartialUpdateExecute(r ApiVirtualizationClusterGroupsPartialUpdateRequest) (*ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterGroupsRetrieve Method for VirtualizationClusterGroupsRetrieve
+ VirtualizationClusterGroupsRetrieve Method for VirtualizationClusterGroupsRetrieve
- Get a cluster group object.
+ Get a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsRetrieveRequest
*/
VirtualizationClusterGroupsRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterGroupsRetrieveRequest
@@ -138,13 +137,13 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsRetrieveExecute(r ApiVirtualizationClusterGroupsRetrieveRequest) (*ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterGroupsUpdate Method for VirtualizationClusterGroupsUpdate
+ VirtualizationClusterGroupsUpdate Method for VirtualizationClusterGroupsUpdate
- Put a cluster group object.
+ Put a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsUpdateRequest
*/
VirtualizationClusterGroupsUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsUpdateRequest
@@ -153,12 +152,12 @@ type VirtualizationAPI interface {
VirtualizationClusterGroupsUpdateExecute(r ApiVirtualizationClusterGroupsUpdateRequest) (*ClusterGroup, *http.Response, error)
/*
- VirtualizationClusterTypesBulkDestroy Method for VirtualizationClusterTypesBulkDestroy
+ VirtualizationClusterTypesBulkDestroy Method for VirtualizationClusterTypesBulkDestroy
- Delete a list of cluster type objects.
+ Delete a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkDestroyRequest
*/
VirtualizationClusterTypesBulkDestroy(ctx context.Context) ApiVirtualizationClusterTypesBulkDestroyRequest
@@ -166,12 +165,12 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesBulkDestroyExecute(r ApiVirtualizationClusterTypesBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationClusterTypesBulkPartialUpdate Method for VirtualizationClusterTypesBulkPartialUpdate
+ VirtualizationClusterTypesBulkPartialUpdate Method for VirtualizationClusterTypesBulkPartialUpdate
- Patch a list of cluster type objects.
+ Patch a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest
*/
VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesBulkPartialUpdateExecute(r ApiVirtualizationClusterTypesBulkPartialUpdateRequest) ([]ClusterType, *http.Response, error)
/*
- VirtualizationClusterTypesBulkUpdate Method for VirtualizationClusterTypesBulkUpdate
+ VirtualizationClusterTypesBulkUpdate Method for VirtualizationClusterTypesBulkUpdate
- Put a list of cluster type objects.
+ Put a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkUpdateRequest
*/
VirtualizationClusterTypesBulkUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkUpdateRequest
@@ -194,12 +193,12 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesBulkUpdateExecute(r ApiVirtualizationClusterTypesBulkUpdateRequest) ([]ClusterType, *http.Response, error)
/*
- VirtualizationClusterTypesCreate Method for VirtualizationClusterTypesCreate
+ VirtualizationClusterTypesCreate Method for VirtualizationClusterTypesCreate
- Post a list of cluster type objects.
+ Post a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesCreateRequest
*/
VirtualizationClusterTypesCreate(ctx context.Context) ApiVirtualizationClusterTypesCreateRequest
@@ -208,13 +207,13 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesCreateExecute(r ApiVirtualizationClusterTypesCreateRequest) (*ClusterType, *http.Response, error)
/*
- VirtualizationClusterTypesDestroy Method for VirtualizationClusterTypesDestroy
+ VirtualizationClusterTypesDestroy Method for VirtualizationClusterTypesDestroy
- Delete a cluster type object.
+ Delete a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesDestroyRequest
*/
VirtualizationClusterTypesDestroy(ctx context.Context, id int32) ApiVirtualizationClusterTypesDestroyRequest
@@ -222,12 +221,12 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesDestroyExecute(r ApiVirtualizationClusterTypesDestroyRequest) (*http.Response, error)
/*
- VirtualizationClusterTypesList Method for VirtualizationClusterTypesList
+ VirtualizationClusterTypesList Method for VirtualizationClusterTypesList
- Get a list of cluster type objects.
+ Get a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesListRequest
*/
VirtualizationClusterTypesList(ctx context.Context) ApiVirtualizationClusterTypesListRequest
@@ -236,13 +235,13 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesListExecute(r ApiVirtualizationClusterTypesListRequest) (*PaginatedClusterTypeList, *http.Response, error)
/*
- VirtualizationClusterTypesPartialUpdate Method for VirtualizationClusterTypesPartialUpdate
+ VirtualizationClusterTypesPartialUpdate Method for VirtualizationClusterTypesPartialUpdate
- Patch a cluster type object.
+ Patch a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesPartialUpdateRequest
*/
VirtualizationClusterTypesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesPartialUpdateRequest
@@ -251,13 +250,13 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesPartialUpdateExecute(r ApiVirtualizationClusterTypesPartialUpdateRequest) (*ClusterType, *http.Response, error)
/*
- VirtualizationClusterTypesRetrieve Method for VirtualizationClusterTypesRetrieve
+ VirtualizationClusterTypesRetrieve Method for VirtualizationClusterTypesRetrieve
- Get a cluster type object.
+ Get a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesRetrieveRequest
*/
VirtualizationClusterTypesRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterTypesRetrieveRequest
@@ -266,13 +265,13 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesRetrieveExecute(r ApiVirtualizationClusterTypesRetrieveRequest) (*ClusterType, *http.Response, error)
/*
- VirtualizationClusterTypesUpdate Method for VirtualizationClusterTypesUpdate
+ VirtualizationClusterTypesUpdate Method for VirtualizationClusterTypesUpdate
- Put a cluster type object.
+ Put a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesUpdateRequest
*/
VirtualizationClusterTypesUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesUpdateRequest
@@ -281,12 +280,12 @@ type VirtualizationAPI interface {
VirtualizationClusterTypesUpdateExecute(r ApiVirtualizationClusterTypesUpdateRequest) (*ClusterType, *http.Response, error)
/*
- VirtualizationClustersBulkDestroy Method for VirtualizationClustersBulkDestroy
+ VirtualizationClustersBulkDestroy Method for VirtualizationClustersBulkDestroy
- Delete a list of cluster objects.
+ Delete a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkDestroyRequest
*/
VirtualizationClustersBulkDestroy(ctx context.Context) ApiVirtualizationClustersBulkDestroyRequest
@@ -294,12 +293,12 @@ type VirtualizationAPI interface {
VirtualizationClustersBulkDestroyExecute(r ApiVirtualizationClustersBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationClustersBulkPartialUpdate Method for VirtualizationClustersBulkPartialUpdate
+ VirtualizationClustersBulkPartialUpdate Method for VirtualizationClustersBulkPartialUpdate
- Patch a list of cluster objects.
+ Patch a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkPartialUpdateRequest
*/
VirtualizationClustersBulkPartialUpdate(ctx context.Context) ApiVirtualizationClustersBulkPartialUpdateRequest
@@ -308,12 +307,12 @@ type VirtualizationAPI interface {
VirtualizationClustersBulkPartialUpdateExecute(r ApiVirtualizationClustersBulkPartialUpdateRequest) ([]Cluster, *http.Response, error)
/*
- VirtualizationClustersBulkUpdate Method for VirtualizationClustersBulkUpdate
+ VirtualizationClustersBulkUpdate Method for VirtualizationClustersBulkUpdate
- Put a list of cluster objects.
+ Put a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkUpdateRequest
*/
VirtualizationClustersBulkUpdate(ctx context.Context) ApiVirtualizationClustersBulkUpdateRequest
@@ -322,12 +321,12 @@ type VirtualizationAPI interface {
VirtualizationClustersBulkUpdateExecute(r ApiVirtualizationClustersBulkUpdateRequest) ([]Cluster, *http.Response, error)
/*
- VirtualizationClustersCreate Method for VirtualizationClustersCreate
+ VirtualizationClustersCreate Method for VirtualizationClustersCreate
- Post a list of cluster objects.
+ Post a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersCreateRequest
*/
VirtualizationClustersCreate(ctx context.Context) ApiVirtualizationClustersCreateRequest
@@ -336,13 +335,13 @@ type VirtualizationAPI interface {
VirtualizationClustersCreateExecute(r ApiVirtualizationClustersCreateRequest) (*Cluster, *http.Response, error)
/*
- VirtualizationClustersDestroy Method for VirtualizationClustersDestroy
+ VirtualizationClustersDestroy Method for VirtualizationClustersDestroy
- Delete a cluster object.
+ Delete a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersDestroyRequest
*/
VirtualizationClustersDestroy(ctx context.Context, id int32) ApiVirtualizationClustersDestroyRequest
@@ -350,12 +349,12 @@ type VirtualizationAPI interface {
VirtualizationClustersDestroyExecute(r ApiVirtualizationClustersDestroyRequest) (*http.Response, error)
/*
- VirtualizationClustersList Method for VirtualizationClustersList
+ VirtualizationClustersList Method for VirtualizationClustersList
- Get a list of cluster objects.
+ Get a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersListRequest
*/
VirtualizationClustersList(ctx context.Context) ApiVirtualizationClustersListRequest
@@ -364,13 +363,13 @@ type VirtualizationAPI interface {
VirtualizationClustersListExecute(r ApiVirtualizationClustersListRequest) (*PaginatedClusterList, *http.Response, error)
/*
- VirtualizationClustersPartialUpdate Method for VirtualizationClustersPartialUpdate
+ VirtualizationClustersPartialUpdate Method for VirtualizationClustersPartialUpdate
- Patch a cluster object.
+ Patch a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersPartialUpdateRequest
*/
VirtualizationClustersPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClustersPartialUpdateRequest
@@ -379,13 +378,13 @@ type VirtualizationAPI interface {
VirtualizationClustersPartialUpdateExecute(r ApiVirtualizationClustersPartialUpdateRequest) (*Cluster, *http.Response, error)
/*
- VirtualizationClustersRetrieve Method for VirtualizationClustersRetrieve
+ VirtualizationClustersRetrieve Method for VirtualizationClustersRetrieve
- Get a cluster object.
+ Get a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersRetrieveRequest
*/
VirtualizationClustersRetrieve(ctx context.Context, id int32) ApiVirtualizationClustersRetrieveRequest
@@ -394,13 +393,13 @@ type VirtualizationAPI interface {
VirtualizationClustersRetrieveExecute(r ApiVirtualizationClustersRetrieveRequest) (*Cluster, *http.Response, error)
/*
- VirtualizationClustersUpdate Method for VirtualizationClustersUpdate
+ VirtualizationClustersUpdate Method for VirtualizationClustersUpdate
- Put a cluster object.
+ Put a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersUpdateRequest
*/
VirtualizationClustersUpdate(ctx context.Context, id int32) ApiVirtualizationClustersUpdateRequest
@@ -409,12 +408,12 @@ type VirtualizationAPI interface {
VirtualizationClustersUpdateExecute(r ApiVirtualizationClustersUpdateRequest) (*Cluster, *http.Response, error)
/*
- VirtualizationInterfacesBulkDestroy Method for VirtualizationInterfacesBulkDestroy
+ VirtualizationInterfacesBulkDestroy Method for VirtualizationInterfacesBulkDestroy
- Delete a list of interface objects.
+ Delete a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkDestroyRequest
*/
VirtualizationInterfacesBulkDestroy(ctx context.Context) ApiVirtualizationInterfacesBulkDestroyRequest
@@ -422,12 +421,12 @@ type VirtualizationAPI interface {
VirtualizationInterfacesBulkDestroyExecute(r ApiVirtualizationInterfacesBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationInterfacesBulkPartialUpdate Method for VirtualizationInterfacesBulkPartialUpdate
+ VirtualizationInterfacesBulkPartialUpdate Method for VirtualizationInterfacesBulkPartialUpdate
- Patch a list of interface objects.
+ Patch a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkPartialUpdateRequest
*/
VirtualizationInterfacesBulkPartialUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkPartialUpdateRequest
@@ -436,12 +435,12 @@ type VirtualizationAPI interface {
VirtualizationInterfacesBulkPartialUpdateExecute(r ApiVirtualizationInterfacesBulkPartialUpdateRequest) ([]VMInterface, *http.Response, error)
/*
- VirtualizationInterfacesBulkUpdate Method for VirtualizationInterfacesBulkUpdate
+ VirtualizationInterfacesBulkUpdate Method for VirtualizationInterfacesBulkUpdate
- Put a list of interface objects.
+ Put a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkUpdateRequest
*/
VirtualizationInterfacesBulkUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkUpdateRequest
@@ -450,12 +449,12 @@ type VirtualizationAPI interface {
VirtualizationInterfacesBulkUpdateExecute(r ApiVirtualizationInterfacesBulkUpdateRequest) ([]VMInterface, *http.Response, error)
/*
- VirtualizationInterfacesCreate Method for VirtualizationInterfacesCreate
+ VirtualizationInterfacesCreate Method for VirtualizationInterfacesCreate
- Post a list of interface objects.
+ Post a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesCreateRequest
*/
VirtualizationInterfacesCreate(ctx context.Context) ApiVirtualizationInterfacesCreateRequest
@@ -464,13 +463,13 @@ type VirtualizationAPI interface {
VirtualizationInterfacesCreateExecute(r ApiVirtualizationInterfacesCreateRequest) (*VMInterface, *http.Response, error)
/*
- VirtualizationInterfacesDestroy Method for VirtualizationInterfacesDestroy
+ VirtualizationInterfacesDestroy Method for VirtualizationInterfacesDestroy
- Delete a interface object.
+ Delete a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesDestroyRequest
*/
VirtualizationInterfacesDestroy(ctx context.Context, id int32) ApiVirtualizationInterfacesDestroyRequest
@@ -478,12 +477,12 @@ type VirtualizationAPI interface {
VirtualizationInterfacesDestroyExecute(r ApiVirtualizationInterfacesDestroyRequest) (*http.Response, error)
/*
- VirtualizationInterfacesList Method for VirtualizationInterfacesList
+ VirtualizationInterfacesList Method for VirtualizationInterfacesList
- Get a list of interface objects.
+ Get a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesListRequest
*/
VirtualizationInterfacesList(ctx context.Context) ApiVirtualizationInterfacesListRequest
@@ -492,13 +491,13 @@ type VirtualizationAPI interface {
VirtualizationInterfacesListExecute(r ApiVirtualizationInterfacesListRequest) (*PaginatedVMInterfaceList, *http.Response, error)
/*
- VirtualizationInterfacesPartialUpdate Method for VirtualizationInterfacesPartialUpdate
+ VirtualizationInterfacesPartialUpdate Method for VirtualizationInterfacesPartialUpdate
- Patch a interface object.
+ Patch a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesPartialUpdateRequest
*/
VirtualizationInterfacesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesPartialUpdateRequest
@@ -507,13 +506,13 @@ type VirtualizationAPI interface {
VirtualizationInterfacesPartialUpdateExecute(r ApiVirtualizationInterfacesPartialUpdateRequest) (*VMInterface, *http.Response, error)
/*
- VirtualizationInterfacesRetrieve Method for VirtualizationInterfacesRetrieve
+ VirtualizationInterfacesRetrieve Method for VirtualizationInterfacesRetrieve
- Get a interface object.
+ Get a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesRetrieveRequest
*/
VirtualizationInterfacesRetrieve(ctx context.Context, id int32) ApiVirtualizationInterfacesRetrieveRequest
@@ -522,13 +521,13 @@ type VirtualizationAPI interface {
VirtualizationInterfacesRetrieveExecute(r ApiVirtualizationInterfacesRetrieveRequest) (*VMInterface, *http.Response, error)
/*
- VirtualizationInterfacesUpdate Method for VirtualizationInterfacesUpdate
+ VirtualizationInterfacesUpdate Method for VirtualizationInterfacesUpdate
- Put a interface object.
+ Put a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesUpdateRequest
*/
VirtualizationInterfacesUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesUpdateRequest
@@ -537,12 +536,12 @@ type VirtualizationAPI interface {
VirtualizationInterfacesUpdateExecute(r ApiVirtualizationInterfacesUpdateRequest) (*VMInterface, *http.Response, error)
/*
- VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkDestroy
+ VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkDestroy
- Delete a list of virtual disk 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 ApiVirtualizationVirtualDisksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkDestroyRequest
*/
VirtualizationVirtualDisksBulkDestroy(ctx context.Context) ApiVirtualizationVirtualDisksBulkDestroyRequest
@@ -550,12 +549,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksBulkDestroyExecute(r ApiVirtualizationVirtualDisksBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisksBulkPartialUpdate
+ VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisksBulkPartialUpdate
- Patch a list of virtual disk 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 ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
*/
VirtualizationVirtualDisksBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
@@ -564,12 +563,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksBulkPartialUpdateExecute(r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) ([]VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUpdate
+ VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUpdate
- Put a list of virtual disk 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 ApiVirtualizationVirtualDisksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkUpdateRequest
*/
VirtualizationVirtualDisksBulkUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkUpdateRequest
@@ -578,12 +577,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksBulkUpdateExecute(r ApiVirtualizationVirtualDisksBulkUpdateRequest) ([]VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate
+ VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate
- Post a list of virtual disk 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 ApiVirtualizationVirtualDisksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksCreateRequest
*/
VirtualizationVirtualDisksCreate(ctx context.Context) ApiVirtualizationVirtualDisksCreateRequest
@@ -592,13 +591,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksCreateExecute(r ApiVirtualizationVirtualDisksCreateRequest) (*VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy
+ VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy
- Delete a virtual disk object.
+ Delete a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksDestroyRequest
*/
VirtualizationVirtualDisksDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualDisksDestroyRequest
@@ -606,12 +605,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksDestroyExecute(r ApiVirtualizationVirtualDisksDestroyRequest) (*http.Response, error)
/*
- VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList
+ VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList
- Get a list of virtual disk objects.
+ Get a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksListRequest
*/
VirtualizationVirtualDisksList(ctx context.Context) ApiVirtualizationVirtualDisksListRequest
@@ -620,13 +619,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksListExecute(r ApiVirtualizationVirtualDisksListRequest) (*PaginatedVirtualDiskList, *http.Response, error)
/*
- VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPartialUpdate
+ VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPartialUpdate
- Patch a virtual disk object.
+ Patch a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksPartialUpdateRequest
*/
VirtualizationVirtualDisksPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksPartialUpdateRequest
@@ -635,13 +634,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksPartialUpdateExecute(r ApiVirtualizationVirtualDisksPartialUpdateRequest) (*VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve
+ VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve
- Get a virtual disk object.
+ Get a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksRetrieveRequest
*/
VirtualizationVirtualDisksRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualDisksRetrieveRequest
@@ -650,13 +649,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksRetrieveExecute(r ApiVirtualizationVirtualDisksRetrieveRequest) (*VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate
+ VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate
- Put a virtual disk object.
+ Put a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksUpdateRequest
*/
VirtualizationVirtualDisksUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksUpdateRequest
@@ -665,12 +664,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualDisksUpdateExecute(r ApiVirtualizationVirtualDisksUpdateRequest) (*VirtualDisk, *http.Response, error)
/*
- VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachinesBulkDestroy
+ VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachinesBulkDestroy
- Delete a list of virtual machine objects.
+ Delete a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
*/
VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest
@@ -678,12 +677,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error)
/*
- VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualMachinesBulkPartialUpdate
+ VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualMachinesBulkPartialUpdate
- Patch a list of virtual machine objects.
+ Patch a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
*/
VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
@@ -692,12 +691,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachinesBulkUpdate
+ VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachinesBulkUpdate
- Put a list of virtual machine objects.
+ Put a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
*/
VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest
@@ -706,12 +705,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCreate
+ VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCreate
- Post a list of virtual machine objects.
+ Post a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesCreateRequest
*/
VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest
@@ -720,13 +719,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesDestroy Method for VirtualizationVirtualMachinesDestroy
+ VirtualizationVirtualMachinesDestroy Method for VirtualizationVirtualMachinesDestroy
- Delete a virtual machine object.
+ Delete a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesDestroyRequest
*/
VirtualizationVirtualMachinesDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesDestroyRequest
@@ -734,12 +733,12 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesDestroyExecute(r ApiVirtualizationVirtualMachinesDestroyRequest) (*http.Response, error)
/*
- VirtualizationVirtualMachinesList Method for VirtualizationVirtualMachinesList
+ VirtualizationVirtualMachinesList Method for VirtualizationVirtualMachinesList
- Get a list of virtual machine objects.
+ Get a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesListRequest
*/
VirtualizationVirtualMachinesList(ctx context.Context) ApiVirtualizationVirtualMachinesListRequest
@@ -748,13 +747,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesListExecute(r ApiVirtualizationVirtualMachinesListRequest) (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error)
/*
- VirtualizationVirtualMachinesPartialUpdate Method for VirtualizationVirtualMachinesPartialUpdate
+ VirtualizationVirtualMachinesPartialUpdate Method for VirtualizationVirtualMachinesPartialUpdate
- Patch a virtual machine object.
+ Patch a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesPartialUpdateRequest
*/
VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesPartialUpdateRequest
@@ -763,13 +762,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesPartialUpdateExecute(r ApiVirtualizationVirtualMachinesPartialUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtualMachinesRenderConfigCreate
+ VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtualMachinesRenderConfigCreate
- Resolve and render the preferred ConfigTemplate for this Device.
+ Resolve and render the preferred ConfigTemplate for this Device.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
*/
VirtualizationVirtualMachinesRenderConfigCreate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
@@ -778,13 +777,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesRenderConfigCreateExecute(r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesRetrieve Method for VirtualizationVirtualMachinesRetrieve
+ VirtualizationVirtualMachinesRetrieve Method for VirtualizationVirtualMachinesRetrieve
- Get a virtual machine object.
+ Get a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesRetrieveRequest
*/
VirtualizationVirtualMachinesRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRetrieveRequest
@@ -793,13 +792,13 @@ type VirtualizationAPI interface {
VirtualizationVirtualMachinesRetrieveExecute(r ApiVirtualizationVirtualMachinesRetrieveRequest) (*VirtualMachineWithConfigContext, *http.Response, error)
/*
- VirtualizationVirtualMachinesUpdate Method for VirtualizationVirtualMachinesUpdate
+ VirtualizationVirtualMachinesUpdate Method for VirtualizationVirtualMachinesUpdate
- Put a virtual machine object.
+ Put a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesUpdateRequest
*/
VirtualizationVirtualMachinesUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesUpdateRequest
@@ -812,8 +811,8 @@ type VirtualizationAPI interface {
type VirtualizationAPIService service
type ApiVirtualizationClusterGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterGroupRequest *[]ClusterGroupRequest
}
@@ -831,22 +830,22 @@ VirtualizationClusterGroupsBulkDestroy Method for VirtualizationClusterGroupsBul
Delete a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroy(ctx context.Context) ApiVirtualizationClusterGroupsBulkDestroyRequest {
return ApiVirtualizationClusterGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroyExecute(r ApiVirtualizationClusterGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkDestroy")
@@ -925,8 +924,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroyExecute
}
type ApiVirtualizationClusterGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterGroupRequest *[]ClusterGroupRequest
}
@@ -944,24 +943,25 @@ VirtualizationClusterGroupsBulkPartialUpdate Method for VirtualizationClusterGro
Patch a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkPartialUpdateRequest {
return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ClusterGroup
+//
+// @return []ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdateExecute(r ApiVirtualizationClusterGroupsBulkPartialUpdateRequest) ([]ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ClusterGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkPartialUpdate")
@@ -1049,8 +1049,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdateE
}
type ApiVirtualizationClusterGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterGroupRequest *[]ClusterGroupRequest
}
@@ -1068,24 +1068,25 @@ VirtualizationClusterGroupsBulkUpdate Method for VirtualizationClusterGroupsBulk
Put a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkUpdateRequest {
return ApiVirtualizationClusterGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ClusterGroup
+//
+// @return []ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdateExecute(r ApiVirtualizationClusterGroupsBulkUpdateRequest) ([]ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ClusterGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkUpdate")
@@ -1173,8 +1174,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdateExecute(
}
type ApiVirtualizationClusterGroupsCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterGroupRequest *ClusterGroupRequest
}
@@ -1192,24 +1193,25 @@ VirtualizationClusterGroupsCreate Method for VirtualizationClusterGroupsCreate
Post a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreate(ctx context.Context) ApiVirtualizationClusterGroupsCreateRequest {
return ApiVirtualizationClusterGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ClusterGroup
+//
+// @return ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreateExecute(r ApiVirtualizationClusterGroupsCreateRequest) (*ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsCreate")
@@ -1297,9 +1299,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreateExecute(r Ap
}
type ApiVirtualizationClusterGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClusterGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -1311,24 +1313,24 @@ VirtualizationClusterGroupsDestroy Method for VirtualizationClusterGroupsDestroy
Delete a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsDestroy(ctx context.Context, id int32) ApiVirtualizationClusterGroupsDestroyRequest {
return ApiVirtualizationClusterGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClusterGroupsDestroyExecute(r ApiVirtualizationClusterGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsDestroy")
@@ -1403,77 +1405,79 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsDestroyExecute(r A
}
type ApiVirtualizationClusterGroupsListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
// Contact
@@ -1824,6 +1828,16 @@ func (r ApiVirtualizationClusterGroupsListRequest) TagN(tagN []string) ApiVirtua
return r
}
+func (r ApiVirtualizationClusterGroupsListRequest) TagId(tagId []int32) ApiVirtualizationClusterGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationClusterGroupsListRequest) TagIdN(tagIdN []int32) ApiVirtualizationClusterGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVirtualizationClusterGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiVirtualizationClusterGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -1838,24 +1852,25 @@ VirtualizationClusterGroupsList Method for VirtualizationClusterGroupsList
Get a list of cluster group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterGroupsListRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsList(ctx context.Context) ApiVirtualizationClusterGroupsListRequest {
return ApiVirtualizationClusterGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedClusterGroupList
+//
+// @return PaginatedClusterGroupList
func (a *VirtualizationAPIService) VirtualizationClusterGroupsListExecute(r ApiVirtualizationClusterGroupsListRequest) (*PaginatedClusterGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedClusterGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedClusterGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsList")
@@ -2537,6 +2552,28 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsListExecute(r ApiV
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -2609,9 +2646,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsListExecute(r ApiV
}
type ApiVirtualizationClusterGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedClusterGroupRequest *PatchedClusterGroupRequest
}
@@ -2629,26 +2666,27 @@ VirtualizationClusterGroupsPartialUpdate Method for VirtualizationClusterGroupsP
Patch a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsPartialUpdateRequest {
return ApiVirtualizationClusterGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterGroup
+//
+// @return ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdateExecute(r ApiVirtualizationClusterGroupsPartialUpdateRequest) (*ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsPartialUpdate")
@@ -2734,9 +2772,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdateExecu
}
type ApiVirtualizationClusterGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClusterGroupsRetrieveRequest) Execute() (*ClusterGroup, *http.Response, error) {
@@ -2748,26 +2786,27 @@ VirtualizationClusterGroupsRetrieve Method for VirtualizationClusterGroupsRetrie
Get a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterGroupsRetrieveRequest {
return ApiVirtualizationClusterGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterGroup
+//
+// @return ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieveExecute(r ApiVirtualizationClusterGroupsRetrieveRequest) (*ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsRetrieve")
@@ -2851,9 +2890,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieveExecute(r
}
type ApiVirtualizationClusterGroupsUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
clusterGroupRequest *ClusterGroupRequest
}
@@ -2871,26 +2910,27 @@ VirtualizationClusterGroupsUpdate Method for VirtualizationClusterGroupsUpdate
Put a cluster group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster group.
- @return ApiVirtualizationClusterGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster group.
+ @return ApiVirtualizationClusterGroupsUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsUpdateRequest {
return ApiVirtualizationClusterGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterGroup
+//
+// @return ClusterGroup
func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdateExecute(r ApiVirtualizationClusterGroupsUpdateRequest) (*ClusterGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsUpdate")
@@ -2979,8 +3019,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdateExecute(r Ap
}
type ApiVirtualizationClusterTypesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterTypeRequest *[]ClusterTypeRequest
}
@@ -2998,22 +3038,22 @@ VirtualizationClusterTypesBulkDestroy Method for VirtualizationClusterTypesBulkD
Delete a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroy(ctx context.Context) ApiVirtualizationClusterTypesBulkDestroyRequest {
return ApiVirtualizationClusterTypesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroyExecute(r ApiVirtualizationClusterTypesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkDestroy")
@@ -3092,8 +3132,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroyExecute(
}
type ApiVirtualizationClusterTypesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterTypeRequest *[]ClusterTypeRequest
}
@@ -3111,24 +3151,25 @@ VirtualizationClusterTypesBulkPartialUpdate Method for VirtualizationClusterType
Patch a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkPartialUpdateRequest {
return ApiVirtualizationClusterTypesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ClusterType
+//
+// @return []ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdateExecute(r ApiVirtualizationClusterTypesBulkPartialUpdateRequest) ([]ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ClusterType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkPartialUpdate")
@@ -3216,8 +3257,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdateEx
}
type ApiVirtualizationClusterTypesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterTypeRequest *[]ClusterTypeRequest
}
@@ -3235,24 +3276,25 @@ VirtualizationClusterTypesBulkUpdate Method for VirtualizationClusterTypesBulkUp
Put a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkUpdateRequest {
return ApiVirtualizationClusterTypesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []ClusterType
+//
+// @return []ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdateExecute(r ApiVirtualizationClusterTypesBulkUpdateRequest) ([]ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []ClusterType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkUpdate")
@@ -3340,8 +3382,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdateExecute(r
}
type ApiVirtualizationClusterTypesCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterTypeRequest *ClusterTypeRequest
}
@@ -3359,24 +3401,25 @@ VirtualizationClusterTypesCreate Method for VirtualizationClusterTypesCreate
Post a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesCreate(ctx context.Context) ApiVirtualizationClusterTypesCreateRequest {
return ApiVirtualizationClusterTypesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return ClusterType
+//
+// @return ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesCreateExecute(r ApiVirtualizationClusterTypesCreateRequest) (*ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterType
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesCreate")
@@ -3464,9 +3507,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesCreateExecute(r Api
}
type ApiVirtualizationClusterTypesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClusterTypesDestroyRequest) Execute() (*http.Response, error) {
@@ -3478,24 +3521,24 @@ VirtualizationClusterTypesDestroy Method for VirtualizationClusterTypesDestroy
Delete a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroy(ctx context.Context, id int32) ApiVirtualizationClusterTypesDestroyRequest {
return ApiVirtualizationClusterTypesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroyExecute(r ApiVirtualizationClusterTypesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesDestroy")
@@ -3570,71 +3613,73 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroyExecute(r Ap
}
type ApiVirtualizationClusterTypesListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiVirtualizationClusterTypesListRequest) Created(created []time.Time) ApiVirtualizationClusterTypesListRequest {
@@ -3951,6 +3996,16 @@ func (r ApiVirtualizationClusterTypesListRequest) TagN(tagN []string) ApiVirtual
return r
}
+func (r ApiVirtualizationClusterTypesListRequest) TagId(tagId []int32) ApiVirtualizationClusterTypesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationClusterTypesListRequest) TagIdN(tagIdN []int32) ApiVirtualizationClusterTypesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVirtualizationClusterTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiVirtualizationClusterTypesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -3965,24 +4020,25 @@ VirtualizationClusterTypesList Method for VirtualizationClusterTypesList
Get a list of cluster type objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClusterTypesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClusterTypesListRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesList(ctx context.Context) ApiVirtualizationClusterTypesListRequest {
return ApiVirtualizationClusterTypesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedClusterTypeList
+//
+// @return PaginatedClusterTypeList
func (a *VirtualizationAPIService) VirtualizationClusterTypesListExecute(r ApiVirtualizationClusterTypesListRequest) (*PaginatedClusterTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedClusterTypeList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedClusterTypeList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesList")
@@ -4598,6 +4654,28 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesListExecute(r ApiVi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -4670,9 +4748,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesListExecute(r ApiVi
}
type ApiVirtualizationClusterTypesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedClusterTypeRequest *PatchedClusterTypeRequest
}
@@ -4690,26 +4768,27 @@ VirtualizationClusterTypesPartialUpdate Method for VirtualizationClusterTypesPar
Patch a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesPartialUpdateRequest {
return ApiVirtualizationClusterTypesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterType
+//
+// @return ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdateExecute(r ApiVirtualizationClusterTypesPartialUpdateRequest) (*ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterType
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesPartialUpdate")
@@ -4795,9 +4874,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdateExecut
}
type ApiVirtualizationClusterTypesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClusterTypesRetrieveRequest) Execute() (*ClusterType, *http.Response, error) {
@@ -4809,26 +4888,27 @@ VirtualizationClusterTypesRetrieve Method for VirtualizationClusterTypesRetrieve
Get a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterTypesRetrieveRequest {
return ApiVirtualizationClusterTypesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterType
+//
+// @return ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieveExecute(r ApiVirtualizationClusterTypesRetrieveRequest) (*ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterType
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesRetrieve")
@@ -4912,9 +4992,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieveExecute(r A
}
type ApiVirtualizationClusterTypesUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
clusterTypeRequest *ClusterTypeRequest
}
@@ -4932,26 +5012,27 @@ VirtualizationClusterTypesUpdate Method for VirtualizationClusterTypesUpdate
Put a cluster type object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster type.
- @return ApiVirtualizationClusterTypesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster type.
+ @return ApiVirtualizationClusterTypesUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesUpdateRequest {
return ApiVirtualizationClusterTypesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return ClusterType
+//
+// @return ClusterType
func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdateExecute(r ApiVirtualizationClusterTypesUpdateRequest) (*ClusterType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ClusterType
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ClusterType
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesUpdate")
@@ -5040,8 +5121,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdateExecute(r Api
}
type ApiVirtualizationClustersBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterRequest *[]ClusterRequest
}
@@ -5059,22 +5140,22 @@ VirtualizationClustersBulkDestroy Method for VirtualizationClustersBulkDestroy
Delete a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroy(ctx context.Context) ApiVirtualizationClustersBulkDestroyRequest {
return ApiVirtualizationClustersBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroyExecute(r ApiVirtualizationClustersBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkDestroy")
@@ -5153,8 +5234,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroyExecute(r Ap
}
type ApiVirtualizationClustersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterRequest *[]ClusterRequest
}
@@ -5172,24 +5253,25 @@ VirtualizationClustersBulkPartialUpdate Method for VirtualizationClustersBulkPar
Patch a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdate(ctx context.Context) ApiVirtualizationClustersBulkPartialUpdateRequest {
return ApiVirtualizationClustersBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Cluster
+//
+// @return []Cluster
func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdateExecute(r ApiVirtualizationClustersBulkPartialUpdateRequest) ([]Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Cluster
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkPartialUpdate")
@@ -5277,8 +5359,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdateExecut
}
type ApiVirtualizationClustersBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
clusterRequest *[]ClusterRequest
}
@@ -5296,24 +5378,25 @@ VirtualizationClustersBulkUpdate Method for VirtualizationClustersBulkUpdate
Put a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdate(ctx context.Context) ApiVirtualizationClustersBulkUpdateRequest {
return ApiVirtualizationClustersBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Cluster
+//
+// @return []Cluster
func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdateExecute(r ApiVirtualizationClustersBulkUpdateRequest) ([]Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Cluster
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkUpdate")
@@ -5401,8 +5484,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdateExecute(r Api
}
type ApiVirtualizationClustersCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
writableClusterRequest *WritableClusterRequest
}
@@ -5420,24 +5503,25 @@ VirtualizationClustersCreate Method for VirtualizationClustersCreate
Post a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersCreate(ctx context.Context) ApiVirtualizationClustersCreateRequest {
return ApiVirtualizationClustersCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Cluster
+//
+// @return Cluster
func (a *VirtualizationAPIService) VirtualizationClustersCreateExecute(r ApiVirtualizationClustersCreateRequest) (*Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cluster
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersCreate")
@@ -5525,9 +5609,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersCreateExecute(r ApiVirt
}
type ApiVirtualizationClustersDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClustersDestroyRequest) Execute() (*http.Response, error) {
@@ -5539,24 +5623,24 @@ VirtualizationClustersDestroy Method for VirtualizationClustersDestroy
Delete a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersDestroy(ctx context.Context, id int32) ApiVirtualizationClustersDestroyRequest {
return ApiVirtualizationClustersDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationClustersDestroyExecute(r ApiVirtualizationClustersDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersDestroy")
@@ -5631,118 +5715,120 @@ func (a *VirtualizationAPIService) VirtualizationClustersDestroyExecute(r ApiVir
}
type ApiVirtualizationClustersListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]*int32
- groupIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
+ ctx context.Context
+ ApiService VirtualizationAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]*int32
+ groupIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- scopeId *[]int32
- scopeIdEmpty *bool
- scopeIdGt *[]int32
- scopeIdGte *[]int32
- scopeIdLt *[]int32
- scopeIdLte *[]int32
- scopeIdN *[]int32
- scopeType *string
- scopeTypeN *string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- type_ *[]string
- typeN *[]string
- typeId *[]int32
- typeIdN *[]int32
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ scopeId *[]int32
+ scopeIdEmpty *bool
+ scopeIdGt *[]int32
+ scopeIdGte *[]int32
+ scopeIdLt *[]int32
+ scopeIdLte *[]int32
+ scopeIdN *[]int32
+ scopeType *string
+ scopeTypeN *string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ type_ *[]string
+ typeN *[]string
+ typeId *[]int32
+ typeIdN *[]int32
+ updatedByRequest *string
}
// Contact
@@ -6246,6 +6332,16 @@ func (r ApiVirtualizationClustersListRequest) TagN(tagN []string) ApiVirtualizat
return r
}
+func (r ApiVirtualizationClustersListRequest) TagId(tagId []int32) ApiVirtualizationClustersListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationClustersListRequest) TagIdN(tagIdN []int32) ApiVirtualizationClustersListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiVirtualizationClustersListRequest) Tenant(tenant []string) ApiVirtualizationClustersListRequest {
r.tenant = &tenant
@@ -6328,24 +6424,25 @@ VirtualizationClustersList Method for VirtualizationClustersList
Get a list of cluster objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationClustersListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationClustersListRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersList(ctx context.Context) ApiVirtualizationClustersListRequest {
return ApiVirtualizationClustersListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedClusterList
+//
+// @return PaginatedClusterList
func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtualizationClustersListRequest) (*PaginatedClusterList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedClusterList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedClusterList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersList")
@@ -7322,6 +7419,28 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -7526,9 +7645,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua
}
type ApiVirtualizationClustersPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedWritableClusterRequest *PatchedWritableClusterRequest
}
@@ -7546,26 +7665,27 @@ VirtualizationClustersPartialUpdate Method for VirtualizationClustersPartialUpda
Patch a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClustersPartialUpdateRequest {
return ApiVirtualizationClustersPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cluster
+//
+// @return Cluster
func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdateExecute(r ApiVirtualizationClustersPartialUpdateRequest) (*Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cluster
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersPartialUpdate")
@@ -7651,9 +7771,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdateExecute(r
}
type ApiVirtualizationClustersRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationClustersRetrieveRequest) Execute() (*Cluster, *http.Response, error) {
@@ -7665,26 +7785,27 @@ VirtualizationClustersRetrieve Method for VirtualizationClustersRetrieve
Get a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersRetrieve(ctx context.Context, id int32) ApiVirtualizationClustersRetrieveRequest {
return ApiVirtualizationClustersRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cluster
+//
+// @return Cluster
func (a *VirtualizationAPIService) VirtualizationClustersRetrieveExecute(r ApiVirtualizationClustersRetrieveRequest) (*Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cluster
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersRetrieve")
@@ -7768,9 +7889,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersRetrieveExecute(r ApiVi
}
type ApiVirtualizationClustersUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
writableClusterRequest *WritableClusterRequest
}
@@ -7788,26 +7909,27 @@ VirtualizationClustersUpdate Method for VirtualizationClustersUpdate
Put a cluster object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this cluster.
- @return ApiVirtualizationClustersUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this cluster.
+ @return ApiVirtualizationClustersUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationClustersUpdate(ctx context.Context, id int32) ApiVirtualizationClustersUpdateRequest {
return ApiVirtualizationClustersUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Cluster
+//
+// @return Cluster
func (a *VirtualizationAPIService) VirtualizationClustersUpdateExecute(r ApiVirtualizationClustersUpdateRequest) (*Cluster, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Cluster
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Cluster
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersUpdate")
@@ -7896,8 +8018,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersUpdateExecute(r ApiVirt
}
type ApiVirtualizationInterfacesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
vMInterfaceRequest *[]VMInterfaceRequest
}
@@ -7915,22 +8037,22 @@ VirtualizationInterfacesBulkDestroy Method for VirtualizationInterfacesBulkDestr
Delete a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroy(ctx context.Context) ApiVirtualizationInterfacesBulkDestroyRequest {
return ApiVirtualizationInterfacesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroyExecute(r ApiVirtualizationInterfacesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkDestroy")
@@ -8009,8 +8131,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroyExecute(r
}
type ApiVirtualizationInterfacesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
vMInterfaceRequest *[]VMInterfaceRequest
}
@@ -8028,24 +8150,25 @@ VirtualizationInterfacesBulkPartialUpdate Method for VirtualizationInterfacesBul
Patch a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkPartialUpdateRequest {
return ApiVirtualizationInterfacesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VMInterface
+//
+// @return []VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdateExecute(r ApiVirtualizationInterfacesBulkPartialUpdateRequest) ([]VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VMInterface
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkPartialUpdate")
@@ -8133,8 +8256,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdateExec
}
type ApiVirtualizationInterfacesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
vMInterfaceRequest *[]VMInterfaceRequest
}
@@ -8152,24 +8275,25 @@ VirtualizationInterfacesBulkUpdate Method for VirtualizationInterfacesBulkUpdate
Put a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkUpdateRequest {
return ApiVirtualizationInterfacesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VMInterface
+//
+// @return []VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdateExecute(r ApiVirtualizationInterfacesBulkUpdateRequest) ([]VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VMInterface
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkUpdate")
@@ -8257,8 +8381,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdateExecute(r A
}
type ApiVirtualizationInterfacesCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
writableVMInterfaceRequest *WritableVMInterfaceRequest
}
@@ -8276,24 +8400,25 @@ VirtualizationInterfacesCreate Method for VirtualizationInterfacesCreate
Post a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesCreate(ctx context.Context) ApiVirtualizationInterfacesCreateRequest {
return ApiVirtualizationInterfacesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VMInterface
+//
+// @return VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesCreateExecute(r ApiVirtualizationInterfacesCreateRequest) (*VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VMInterface
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesCreate")
@@ -8381,9 +8506,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesCreateExecute(r ApiVi
}
type ApiVirtualizationInterfacesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationInterfacesDestroyRequest) Execute() (*http.Response, error) {
@@ -8395,24 +8520,24 @@ VirtualizationInterfacesDestroy Method for VirtualizationInterfacesDestroy
Delete a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesDestroy(ctx context.Context, id int32) ApiVirtualizationInterfacesDestroyRequest {
return ApiVirtualizationInterfacesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationInterfacesDestroyExecute(r ApiVirtualizationInterfacesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesDestroy")
@@ -8487,109 +8612,121 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesDestroyExecute(r ApiV
}
type ApiVirtualizationInterfacesListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- bridgeId *[]int32
- bridgeIdN *[]int32
- cluster *[]string
- clusterN *[]string
- clusterId *[]int32
- clusterIdN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- enabled *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- l2vpn *[]*int64
- l2vpnN *[]*int64
- l2vpnId *[]int32
- l2vpnIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- mode *DcimInterfacesListModeParameter
- modifiedByRequest *string
- mtu *[]int32
- mtuEmpty *bool
- mtuGt *[]int32
- mtuGte *[]int32
- mtuLt *[]int32
- mtuLte *[]int32
- mtuN *[]int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parentId *[]int32
- parentIdN *[]int32
- primaryMacAddress *[]string
- primaryMacAddressN *[]string
- primaryMacAddressId *[]int32
- primaryMacAddressIdN *[]int32
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineN *[]string
- virtualMachineId *[]int32
- virtualMachineIdN *[]int32
- vlan *string
- vlanId *string
- vlanTranslationPolicy *[]string
- vlanTranslationPolicyN *[]string
- vlanTranslationPolicyId *[]int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ bridgeId *[]int32
+ bridgeIdN *[]int32
+ cluster *[]string
+ clusterN *[]string
+ clusterId *[]int32
+ clusterIdN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ enabled *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ l2vpn *[]*int64
+ l2vpnN *[]*int64
+ l2vpnId *[]int32
+ l2vpnIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ macAddress *[]string
+ macAddressIc *[]string
+ macAddressIe *[]string
+ macAddressIew *[]string
+ macAddressIsw *[]string
+ macAddressN *[]string
+ macAddressNic *[]string
+ macAddressNie *[]string
+ macAddressNiew *[]string
+ macAddressNisw *[]string
+ mode *[]*string
+ modeEmpty *bool
+ modeIc *[]*string
+ modeIe *[]*string
+ modeIew *[]*string
+ modeIsw *[]*string
+ modeN *[]*string
+ modeNic *[]*string
+ modeNie *[]*string
+ modeNiew *[]*string
+ modeNisw *[]*string
+ modifiedByRequest *string
+ mtu *[]int32
+ mtuEmpty *bool
+ mtuGt *[]int32
+ mtuGte *[]int32
+ mtuLt *[]int32
+ mtuLte *[]int32
+ mtuN *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parentId *[]int32
+ parentIdN *[]int32
+ primaryMacAddress *[]string
+ primaryMacAddressN *[]string
+ primaryMacAddressId *[]int32
+ primaryMacAddressIdN *[]int32
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineN *[]string
+ virtualMachineId *[]int32
+ virtualMachineIdN *[]int32
+ vlan *string
+ vlanId *string
+ vlanTranslationPolicy *[]string
+ vlanTranslationPolicyN *[]string
+ vlanTranslationPolicyId *[]int32
vlanTranslationPolicyIdN *[]int32
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]int32
- vrfIdN *[]int32
+ vrf *[]*string
+ vrfN *[]*string
+ vrfId *[]int32
+ vrfIdN *[]int32
}
// Bridged interface (ID)
@@ -8858,29 +8995,89 @@ func (r ApiVirtualizationInterfacesListRequest) MacAddressN(macAddressN []string
return r
}
-func (r ApiVirtualizationInterfacesListRequest) MacAddressNic(macAddressNic []string) ApiVirtualizationInterfacesListRequest {
- r.macAddressNic = &macAddressNic
+func (r ApiVirtualizationInterfacesListRequest) MacAddressNic(macAddressNic []string) ApiVirtualizationInterfacesListRequest {
+ r.macAddressNic = &macAddressNic
+ return r
+}
+
+func (r ApiVirtualizationInterfacesListRequest) MacAddressNie(macAddressNie []string) ApiVirtualizationInterfacesListRequest {
+ r.macAddressNie = &macAddressNie
+ return r
+}
+
+func (r ApiVirtualizationInterfacesListRequest) MacAddressNiew(macAddressNiew []string) ApiVirtualizationInterfacesListRequest {
+ r.macAddressNiew = &macAddressNiew
+ return r
+}
+
+func (r ApiVirtualizationInterfacesListRequest) MacAddressNisw(macAddressNisw []string) ApiVirtualizationInterfacesListRequest {
+ r.macAddressNisw = &macAddressNisw
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) Mode(mode []*string) ApiVirtualizationInterfacesListRequest {
+ r.mode = &mode
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeEmpty(modeEmpty bool) ApiVirtualizationInterfacesListRequest {
+ r.modeEmpty = &modeEmpty
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeIc(modeIc []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeIc = &modeIc
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeIe(modeIe []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeIe = &modeIe
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeIew(modeIew []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeIew = &modeIew
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeIsw(modeIsw []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeIsw = &modeIsw
+ return r
+}
+
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeN(modeN []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeN = &modeN
return r
}
-func (r ApiVirtualizationInterfacesListRequest) MacAddressNie(macAddressNie []string) ApiVirtualizationInterfacesListRequest {
- r.macAddressNie = &macAddressNie
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeNic(modeNic []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeNic = &modeNic
return r
}
-func (r ApiVirtualizationInterfacesListRequest) MacAddressNiew(macAddressNiew []string) ApiVirtualizationInterfacesListRequest {
- r.macAddressNiew = &macAddressNiew
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeNie(modeNie []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeNie = &modeNie
return r
}
-func (r ApiVirtualizationInterfacesListRequest) MacAddressNisw(macAddressNisw []string) ApiVirtualizationInterfacesListRequest {
- r.macAddressNisw = &macAddressNisw
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeNiew(modeNiew []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeNiew = &modeNiew
return r
}
-// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad)
-func (r ApiVirtualizationInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) ApiVirtualizationInterfacesListRequest {
- r.mode = &mode
+// 802.1Q Mode
+func (r ApiVirtualizationInterfacesListRequest) ModeNisw(modeNisw []*string) ApiVirtualizationInterfacesListRequest {
+ r.modeNisw = &modeNisw
return r
}
@@ -9043,6 +9240,16 @@ func (r ApiVirtualizationInterfacesListRequest) TagN(tagN []string) ApiVirtualiz
return r
}
+func (r ApiVirtualizationInterfacesListRequest) TagId(tagId []int32) ApiVirtualizationInterfacesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationInterfacesListRequest) TagIdN(tagIdN []int32) ApiVirtualizationInterfacesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVirtualizationInterfacesListRequest) UpdatedByRequest(updatedByRequest string) ApiVirtualizationInterfacesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -9141,24 +9348,25 @@ VirtualizationInterfacesList Method for VirtualizationInterfacesList
Get a list of interface objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationInterfacesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationInterfacesListRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesList(ctx context.Context) ApiVirtualizationInterfacesListRequest {
return ApiVirtualizationInterfacesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVMInterfaceList
+//
+// @return PaginatedVMInterfaceList
func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirtualizationInterfacesListRequest) (*PaginatedVMInterfaceList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVMInterfaceList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVMInterfaceList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesList")
@@ -9738,7 +9946,117 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt
}
}
if r.mode != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "form", "")
+ 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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "form", "multi")
+ }
+ }
+ if r.modeEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "form", "")
+ }
+ if r.modeIc != nil {
+ t := *r.modeIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "form", "multi")
+ }
+ }
+ if r.modeIe != nil {
+ t := *r.modeIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "form", "multi")
+ }
+ }
+ if r.modeIew != nil {
+ t := *r.modeIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "form", "multi")
+ }
+ }
+ if r.modeIsw != nil {
+ t := *r.modeIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "form", "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(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "form", "multi")
+ }
+ }
+ if r.modeNic != nil {
+ t := *r.modeNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "form", "multi")
+ }
+ }
+ if r.modeNie != nil {
+ t := *r.modeNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "form", "multi")
+ }
+ }
+ if r.modeNiew != nil {
+ t := *r.modeNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "form", "multi")
+ }
+ }
+ if r.modeNisw != nil {
+ t := *r.modeNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "form", "multi")
+ }
}
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "")
@@ -10022,6 +10340,28 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -10232,9 +10572,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt
}
type ApiVirtualizationInterfacesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedWritableVMInterfaceRequest *PatchedWritableVMInterfaceRequest
}
@@ -10252,26 +10592,27 @@ VirtualizationInterfacesPartialUpdate Method for VirtualizationInterfacesPartial
Patch a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesPartialUpdateRequest {
return ApiVirtualizationInterfacesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VMInterface
+//
+// @return VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdateExecute(r ApiVirtualizationInterfacesPartialUpdateRequest) (*VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VMInterface
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesPartialUpdate")
@@ -10357,9 +10698,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdateExecute(
}
type ApiVirtualizationInterfacesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationInterfacesRetrieveRequest) Execute() (*VMInterface, *http.Response, error) {
@@ -10371,26 +10712,27 @@ VirtualizationInterfacesRetrieve Method for VirtualizationInterfacesRetrieve
Get a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieve(ctx context.Context, id int32) ApiVirtualizationInterfacesRetrieveRequest {
return ApiVirtualizationInterfacesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VMInterface
+//
+// @return VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieveExecute(r ApiVirtualizationInterfacesRetrieveRequest) (*VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VMInterface
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesRetrieve")
@@ -10474,9 +10816,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieveExecute(r Api
}
type ApiVirtualizationInterfacesUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
writableVMInterfaceRequest *WritableVMInterfaceRequest
}
@@ -10494,26 +10836,27 @@ VirtualizationInterfacesUpdate Method for VirtualizationInterfacesUpdate
Put a interface object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this interface.
- @return ApiVirtualizationInterfacesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this interface.
+ @return ApiVirtualizationInterfacesUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationInterfacesUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesUpdateRequest {
return ApiVirtualizationInterfacesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VMInterface
+//
+// @return VMInterface
func (a *VirtualizationAPIService) VirtualizationInterfacesUpdateExecute(r ApiVirtualizationInterfacesUpdateRequest) (*VMInterface, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VMInterface
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VMInterface
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesUpdate")
@@ -10602,8 +10945,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesUpdateExecute(r ApiVi
}
type ApiVirtualizationVirtualDisksBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualDiskRequest *[]VirtualDiskRequest
}
@@ -10621,22 +10964,22 @@ VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkD
Delete a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroy(ctx context.Context) ApiVirtualizationVirtualDisksBulkDestroyRequest {
return ApiVirtualizationVirtualDisksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroyExecute(r ApiVirtualizationVirtualDisksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkDestroy")
@@ -10715,8 +11058,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroyExecute(
}
type ApiVirtualizationVirtualDisksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualDiskRequest *[]VirtualDiskRequest
}
@@ -10734,24 +11077,25 @@ VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisk
Patch a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest {
return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualDisk
+//
+// @return []VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdateExecute(r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) ([]VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualDisk
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkPartialUpdate")
@@ -10839,8 +11183,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdateEx
}
type ApiVirtualizationVirtualDisksBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualDiskRequest *[]VirtualDiskRequest
}
@@ -10858,24 +11202,25 @@ VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUp
Put a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkUpdateRequest {
return ApiVirtualizationVirtualDisksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualDisk
+//
+// @return []VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r ApiVirtualizationVirtualDisksBulkUpdateRequest) ([]VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualDisk
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkUpdate")
@@ -10963,8 +11308,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r
}
type ApiVirtualizationVirtualDisksCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualDiskRequest *VirtualDiskRequest
}
@@ -10982,24 +11327,25 @@ VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate
Post a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreate(ctx context.Context) ApiVirtualizationVirtualDisksCreateRequest {
return ApiVirtualizationVirtualDisksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualDisk
+//
+// @return VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r ApiVirtualizationVirtualDisksCreateRequest) (*VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDisk
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksCreate")
@@ -11087,9 +11433,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r Api
}
type ApiVirtualizationVirtualDisksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationVirtualDisksDestroyRequest) Execute() (*http.Response, error) {
@@ -11101,24 +11447,24 @@ VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy
Delete a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualDisksDestroyRequest {
return ApiVirtualizationVirtualDisksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroyExecute(r ApiVirtualizationVirtualDisksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksDestroy")
@@ -11193,70 +11539,72 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroyExecute(r Ap
}
type ApiVirtualizationVirtualDisksListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- size *[]int32
- sizeEmpty *bool
- sizeGt *[]int32
- sizeGte *[]int32
- sizeLt *[]int32
- sizeLte *[]int32
- sizeN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineN *[]string
- virtualMachineId *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ size *[]int32
+ sizeEmpty *bool
+ sizeGt *[]int32
+ sizeGte *[]int32
+ sizeLt *[]int32
+ sizeLte *[]int32
+ sizeN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineN *[]string
+ virtualMachineId *[]int32
virtualMachineIdN *[]int32
}
@@ -11554,6 +11902,16 @@ func (r ApiVirtualizationVirtualDisksListRequest) TagN(tagN []string) ApiVirtual
return r
}
+func (r ApiVirtualizationVirtualDisksListRequest) TagId(tagId []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationVirtualDisksListRequest) TagIdN(tagIdN []int32) ApiVirtualizationVirtualDisksListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVirtualizationVirtualDisksListRequest) UpdatedByRequest(updatedByRequest string) ApiVirtualizationVirtualDisksListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -11592,24 +11950,25 @@ VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList
Get a list of virtual disk objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualDisksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualDisksListRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksList(ctx context.Context) ApiVirtualizationVirtualDisksListRequest {
return ApiVirtualizationVirtualDisksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualDiskList
+//
+// @return PaginatedVirtualDiskList
func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVirtualizationVirtualDisksListRequest) (*PaginatedVirtualDiskList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualDiskList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualDiskList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksList")
@@ -12181,6 +12540,28 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -12297,9 +12678,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi
}
type ApiVirtualizationVirtualDisksPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedVirtualDiskRequest *PatchedVirtualDiskRequest
}
@@ -12317,26 +12698,27 @@ VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPar
Patch a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksPartialUpdateRequest {
return ApiVirtualizationVirtualDisksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDisk
+//
+// @return VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecute(r ApiVirtualizationVirtualDisksPartialUpdateRequest) (*VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDisk
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksPartialUpdate")
@@ -12422,9 +12804,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecut
}
type ApiVirtualizationVirtualDisksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationVirtualDisksRetrieveRequest) Execute() (*VirtualDisk, *http.Response, error) {
@@ -12436,26 +12818,27 @@ VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve
Get a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualDisksRetrieveRequest {
return ApiVirtualizationVirtualDisksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDisk
+//
+// @return VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r ApiVirtualizationVirtualDisksRetrieveRequest) (*VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDisk
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksRetrieve")
@@ -12539,9 +12922,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r A
}
type ApiVirtualizationVirtualDisksUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
virtualDiskRequest *VirtualDiskRequest
}
@@ -12559,26 +12942,27 @@ VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate
Put a virtual disk object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual disk.
- @return ApiVirtualizationVirtualDisksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual disk.
+ @return ApiVirtualizationVirtualDisksUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksUpdateRequest {
return ApiVirtualizationVirtualDisksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualDisk
+//
+// @return VirtualDisk
func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r ApiVirtualizationVirtualDisksUpdateRequest) (*VirtualDisk, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualDisk
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualDisk
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksUpdate")
@@ -12667,8 +13051,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r Api
}
type ApiVirtualizationVirtualMachinesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
}
@@ -12686,22 +13070,22 @@ VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachine
Delete a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest {
return ApiVirtualizationVirtualMachinesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkDestroy")
@@ -12780,8 +13164,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecu
}
type ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
}
@@ -12799,24 +13183,25 @@ VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualM
Patch a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest {
return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualMachineWithConfigContext
+//
+// @return []VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkPartialUpdate")
@@ -12904,8 +13289,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdat
}
type ApiVirtualizationVirtualMachinesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest
}
@@ -12923,24 +13308,25 @@ VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachines
Put a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesBulkUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest {
return ApiVirtualizationVirtualMachinesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []VirtualMachineWithConfigContext
+//
+// @return []VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkUpdate")
@@ -13028,8 +13414,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecut
}
type ApiVirtualizationVirtualMachinesCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
+ ctx context.Context
+ ApiService VirtualizationAPI
writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
}
@@ -13047,24 +13433,25 @@ VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCrea
Post a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest {
return ApiVirtualizationVirtualMachinesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return VirtualMachineWithConfigContext
+//
+// @return VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesCreate")
@@ -13152,9 +13539,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r
}
type ApiVirtualizationVirtualMachinesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationVirtualMachinesDestroyRequest) Execute() (*http.Response, error) {
@@ -13166,24 +13553,24 @@ VirtualizationVirtualMachinesDestroy Method for VirtualizationVirtualMachinesDes
Delete a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesDestroyRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesDestroyRequest {
return ApiVirtualizationVirtualMachinesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesDestroyExecute(r ApiVirtualizationVirtualMachinesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesDestroy")
@@ -13258,185 +13645,191 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesDestroyExecute(r
}
type ApiVirtualizationVirtualMachinesListRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- cluster *[]string
- clusterN *[]string
- clusterGroup *[]string
- clusterGroupN *[]string
- clusterGroupId *[]int32
- clusterGroupIdN *[]int32
- clusterId *[]*int32
- clusterIdN *[]*int32
- clusterType *[]string
- clusterTypeN *[]string
- clusterTypeId *[]int32
- clusterTypeIdN *[]int32
- configTemplateId *[]*int32
- configTemplateIdN *[]*int32
- contact *[]int32
- contactN *[]int32
- contactGroup *[]string
- contactGroupN *[]string
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]*int32
- deviceIdN *[]*int32
- disk *[]int32
- diskEmpty *bool
- diskGt *[]int32
- diskGte *[]int32
- diskLt *[]int32
- diskLte *[]int32
- diskN *[]int32
- hasPrimaryIp *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceCount *[]int32
- interfaceCountEmpty *bool
- interfaceCountGt *[]int32
- interfaceCountGte *[]int32
- interfaceCountLt *[]int32
- interfaceCountLte *[]int32
- interfaceCountN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- localContextData *bool
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- memory *[]int32
- memoryEmpty *bool
- memoryGt *[]int32
- memoryGte *[]int32
- memoryLt *[]int32
- memoryLte *[]int32
- memoryN *[]int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- platform *[]string
- platformN *[]string
- platformId *[]*int32
- platformIdN *[]*int32
- primaryIp4Id *[]int32
- primaryIp4IdN *[]int32
- primaryIp6Id *[]int32
- primaryIp6IdN *[]int32
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- role *[]string
- roleN *[]string
- roleId *[]*int32
- roleIdN *[]*int32
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]*int32
- siteIdN *[]*int32
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vcpus *[]float64
- vcpusEmpty *bool
- vcpusGt *[]float64
- vcpusGte *[]float64
- vcpusLt *[]float64
- vcpusLte *[]float64
- vcpusN *[]float64
- virtualDiskCount *[]int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ cluster *[]string
+ clusterN *[]string
+ clusterGroup *[]string
+ clusterGroupN *[]string
+ clusterGroupId *[]int32
+ clusterGroupIdN *[]int32
+ clusterId *[]*int32
+ clusterIdN *[]*int32
+ clusterType *[]string
+ clusterTypeN *[]string
+ clusterTypeId *[]int32
+ clusterTypeIdN *[]int32
+ configTemplateId *[]*int32
+ configTemplateIdN *[]*int32
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]*int32
+ deviceIdN *[]*int32
+ disk *[]int32
+ diskEmpty *bool
+ diskGt *[]int32
+ diskGte *[]int32
+ diskLt *[]int32
+ diskLte *[]int32
+ diskN *[]int32
+ hasPrimaryIp *bool
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceCount *[]int32
+ interfaceCountEmpty *bool
+ interfaceCountGt *[]int32
+ interfaceCountGte *[]int32
+ interfaceCountLt *[]int32
+ interfaceCountLte *[]int32
+ interfaceCountN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ localContextData *bool
+ macAddress *[]string
+ macAddressIc *[]string
+ macAddressIe *[]string
+ macAddressIew *[]string
+ macAddressIsw *[]string
+ macAddressN *[]string
+ macAddressNic *[]string
+ macAddressNie *[]string
+ macAddressNiew *[]string
+ macAddressNisw *[]string
+ memory *[]int32
+ memoryEmpty *bool
+ memoryGt *[]int32
+ memoryGte *[]int32
+ memoryLt *[]int32
+ memoryLte *[]int32
+ memoryN *[]int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ platform *[]string
+ platformN *[]string
+ platformId *[]*int32
+ platformIdN *[]*int32
+ primaryIp4 *[]string
+ primaryIp4N *[]string
+ primaryIp4Id *[]int32
+ primaryIp4IdN *[]int32
+ primaryIp6 *[]string
+ primaryIp6N *[]string
+ primaryIp6Id *[]int32
+ primaryIp6IdN *[]int32
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ role *[]string
+ roleN *[]string
+ roleId *[]string
+ roleIdN *[]string
+ serial *[]string
+ serialEmpty *bool
+ serialIc *[]string
+ serialIe *[]string
+ serialIew *[]string
+ serialIsw *[]string
+ serialN *[]string
+ serialNic *[]string
+ serialNie *[]string
+ serialNiew *[]string
+ serialNisw *[]string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]*int32
+ siteIdN *[]*int32
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vcpus *[]float64
+ vcpusEmpty *bool
+ vcpusGt *[]float64
+ vcpusGte *[]float64
+ vcpusLt *[]float64
+ vcpusLte *[]float64
+ vcpusN *[]float64
+ virtualDiskCount *[]int32
virtualDiskCountEmpty *bool
- virtualDiskCountGt *[]int32
- virtualDiskCountGte *[]int32
- virtualDiskCountLt *[]int32
- virtualDiskCountLte *[]int32
- virtualDiskCountN *[]int32
+ virtualDiskCountGt *[]int32
+ virtualDiskCountGte *[]int32
+ virtualDiskCountLt *[]int32
+ virtualDiskCountLte *[]int32
+ virtualDiskCountN *[]int32
}
// Cluster
@@ -14015,6 +14408,18 @@ func (r ApiVirtualizationVirtualMachinesListRequest) PlatformIdN(platformIdN []*
return r
}
+// Primary IPv4 (address)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4(primaryIp4 []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp4 = &primaryIp4
+ return r
+}
+
+// Primary IPv4 (address)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4N(primaryIp4N []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp4N = &primaryIp4N
+ return r
+}
+
// Primary IPv4 (ID)
func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiVirtualizationVirtualMachinesListRequest {
r.primaryIp4Id = &primaryIp4Id
@@ -14027,6 +14432,18 @@ func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp4IdN(primaryIp4IdN
return r
}
+// Primary IPv6 (address)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp6(primaryIp6 []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp6 = &primaryIp6
+ return r
+}
+
+// Primary IPv6 (address)
+func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp6N(primaryIp6N []string) ApiVirtualizationVirtualMachinesListRequest {
+ r.primaryIp6N = &primaryIp6N
+ return r
+}
+
// Primary IPv6 (ID)
func (r ApiVirtualizationVirtualMachinesListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiVirtualizationVirtualMachinesListRequest {
r.primaryIp6Id = &primaryIp6Id
@@ -14065,26 +14482,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []strin
return r
}
-// Role (slug)
func (r ApiVirtualizationVirtualMachinesListRequest) Role(role []string) ApiVirtualizationVirtualMachinesListRequest {
r.role = &role
return r
}
-// Role (slug)
func (r ApiVirtualizationVirtualMachinesListRequest) RoleN(roleN []string) ApiVirtualizationVirtualMachinesListRequest {
r.roleN = &roleN
return r
}
-// Role (ID)
-func (r ApiVirtualizationVirtualMachinesListRequest) RoleId(roleId []*int32) ApiVirtualizationVirtualMachinesListRequest {
+func (r ApiVirtualizationVirtualMachinesListRequest) RoleId(roleId []string) ApiVirtualizationVirtualMachinesListRequest {
r.roleId = &roleId
return r
}
-// Role (ID)
-func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) ApiVirtualizationVirtualMachinesListRequest {
+func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []string) ApiVirtualizationVirtualMachinesListRequest {
r.roleIdN = &roleIdN
return r
}
@@ -14253,6 +14666,16 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TagN(tagN []string) ApiVirt
return r
}
+func (r ApiVirtualizationVirtualMachinesListRequest) TagId(tagId []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) TagIdN(tagIdN []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiVirtualizationVirtualMachinesListRequest) Tenant(tenant []string) ApiVirtualizationVirtualMachinesListRequest {
r.tenant = &tenant
@@ -14381,24 +14804,25 @@ VirtualizationVirtualMachinesList Method for VirtualizationVirtualMachinesList
Get a list of virtual machine objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVirtualizationVirtualMachinesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVirtualizationVirtualMachinesListRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesList(ctx context.Context) ApiVirtualizationVirtualMachinesListRequest {
return ApiVirtualizationVirtualMachinesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedVirtualMachineWithConfigContextList
+//
+// @return PaginatedVirtualMachineWithConfigContextList
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r ApiVirtualizationVirtualMachinesListRequest) (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedVirtualMachineWithConfigContextList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedVirtualMachineWithConfigContextList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesList")
@@ -15507,6 +15931,28 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "form", "multi")
}
}
+ if r.primaryIp4 != nil {
+ t := *r.primaryIp4
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4", t, "form", "multi")
+ }
+ }
+ if r.primaryIp4N != nil {
+ t := *r.primaryIp4N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4__n", t, "form", "multi")
+ }
+ }
if r.primaryIp4Id != nil {
t := *r.primaryIp4Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15529,6 +15975,28 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi")
}
}
+ if r.primaryIp6 != nil {
+ t := *r.primaryIp6
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6", t, "form", "multi")
+ }
+ }
+ if r.primaryIp6N != nil {
+ t := *r.primaryIp6N
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6__n", t, "form", "multi")
+ }
+ }
if r.primaryIp6Id != nil {
t := *r.primaryIp6Id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15978,6 +16446,28 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -16276,9 +16766,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
}
type ApiVirtualizationVirtualMachinesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
patchedWritableVirtualMachineWithConfigContextRequest *PatchedWritableVirtualMachineWithConfigContextRequest
}
@@ -16296,26 +16786,27 @@ VirtualizationVirtualMachinesPartialUpdate Method for VirtualizationVirtualMachi
Patch a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesPartialUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesPartialUpdateRequest {
return ApiVirtualizationVirtualMachinesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualMachineWithConfigContext
+//
+// @return VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdateExecute(r ApiVirtualizationVirtualMachinesPartialUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesPartialUpdate")
@@ -16401,11 +16892,11 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdateExe
}
type ApiVirtualizationVirtualMachinesRenderConfigCreateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
- format *DcimDevicesRenderConfigCreateFormatParameter
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
func (r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest WritableVirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest {
@@ -16427,26 +16918,27 @@ VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtual
Resolve and render the preferred ConfigTemplate for this Device.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest {
return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualMachineWithConfigContext
+//
+// @return VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreateExecute(r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesRenderConfigCreate")
@@ -16538,9 +17030,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCrea
}
type ApiVirtualizationVirtualMachinesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VirtualizationAPI
- id int32
+ id int32
}
func (r ApiVirtualizationVirtualMachinesRetrieveRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) {
@@ -16552,26 +17044,27 @@ VirtualizationVirtualMachinesRetrieve Method for VirtualizationVirtualMachinesRe
Get a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesRetrieveRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRetrieveRequest {
return ApiVirtualizationVirtualMachinesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualMachineWithConfigContext
+//
+// @return VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieveExecute(r ApiVirtualizationVirtualMachinesRetrieveRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesRetrieve")
@@ -16655,9 +17148,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieveExecute(
}
type ApiVirtualizationVirtualMachinesUpdateRequest struct {
- ctx context.Context
- ApiService VirtualizationAPI
- id int32
+ ctx context.Context
+ ApiService VirtualizationAPI
+ id int32
writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest
}
@@ -16675,26 +17168,27 @@ VirtualizationVirtualMachinesUpdate Method for VirtualizationVirtualMachinesUpda
Put a virtual machine object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this virtual machine.
- @return ApiVirtualizationVirtualMachinesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this virtual machine.
+ @return ApiVirtualizationVirtualMachinesUpdateRequest
*/
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesUpdateRequest {
return ApiVirtualizationVirtualMachinesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return VirtualMachineWithConfigContext
+//
+// @return VirtualMachineWithConfigContext
func (a *VirtualizationAPIService) VirtualizationVirtualMachinesUpdateExecute(r ApiVirtualizationVirtualMachinesUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *VirtualMachineWithConfigContext
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *VirtualMachineWithConfigContext
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesUpdate")
diff --git a/api_vpn.go b/api_vpn.go
index b10461912..76d248dc0 100644
--- a/api_vpn.go
+++ b/api_vpn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type VpnAPI interface {
/*
- VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy
+ VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy
- Delete a list of IKE policy objects.
+ Delete a list of IKE policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkePoliciesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkDestroyRequest
*/
VpnIkePoliciesBulkDestroy(ctx context.Context) ApiVpnIkePoliciesBulkDestroyRequest
@@ -38,12 +37,12 @@ type VpnAPI interface {
VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error)
/*
- VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate
+ VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate
- Patch a list of IKE policy objects.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkPartialUpdateRequest
*/
VpnIkePoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIkePoliciesBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type VpnAPI interface {
VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error)
/*
- VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate
+ VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate
- Put a list of IKE policy objects.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesBulkUpdateRequest
*/
VpnIkePoliciesBulkUpdate(ctx context.Context) ApiVpnIkePoliciesBulkUpdateRequest
@@ -66,12 +65,12 @@ type VpnAPI interface {
VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error)
/*
- VpnIkePoliciesCreate Method for VpnIkePoliciesCreate
+ VpnIkePoliciesCreate Method for VpnIkePoliciesCreate
- Post a list of IKE policy objects.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesCreateRequest
*/
VpnIkePoliciesCreate(ctx context.Context) ApiVpnIkePoliciesCreateRequest
@@ -80,13 +79,13 @@ type VpnAPI interface {
VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error)
/*
- VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy
+ VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy
- Delete a IKE policy object.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesDestroyRequest
*/
VpnIkePoliciesDestroy(ctx context.Context, id int32) ApiVpnIkePoliciesDestroyRequest
@@ -94,12 +93,12 @@ type VpnAPI interface {
VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyRequest) (*http.Response, error)
/*
- VpnIkePoliciesList Method for VpnIkePoliciesList
+ VpnIkePoliciesList Method for VpnIkePoliciesList
- Get a list of IKE policy objects.
+ 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
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkePoliciesListRequest
*/
VpnIkePoliciesList(ctx context.Context) ApiVpnIkePoliciesListRequest
@@ -108,13 +107,13 @@ type VpnAPI interface {
VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error)
/*
- VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate
+ VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate
- Patch a IKE policy object.
+ Patch a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesPartialUpdateRequest
*/
VpnIkePoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesPartialUpdateRequest
@@ -123,13 +122,13 @@ type VpnAPI interface {
VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPartialUpdateRequest) (*IKEPolicy, *http.Response, error)
/*
- VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve
+ VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve
- Get a IKE policy object.
+ Get a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesRetrieveRequest
*/
VpnIkePoliciesRetrieve(ctx context.Context, id int32) ApiVpnIkePoliciesRetrieveRequest
@@ -138,13 +137,13 @@ type VpnAPI interface {
VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetrieveRequest) (*IKEPolicy, *http.Response, error)
/*
- VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate
+ VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate
- Put a IKE policy object.
+ Put a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesUpdateRequest
*/
VpnIkePoliciesUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesUpdateRequest
@@ -153,12 +152,12 @@ type VpnAPI interface {
VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateRequest) (*IKEPolicy, *http.Response, error)
/*
- VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy
+ VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy
- Delete a list of IKE proposal objects.
+ Delete a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkDestroyRequest
*/
VpnIkeProposalsBulkDestroy(ctx context.Context) ApiVpnIkeProposalsBulkDestroyRequest
@@ -166,12 +165,12 @@ type VpnAPI interface {
VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBulkDestroyRequest) (*http.Response, error)
/*
- VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate
+ VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate
- Patch a list of IKE proposal objects.
+ Patch a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkPartialUpdateRequest
*/
VpnIkeProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIkeProposalsBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type VpnAPI interface {
VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkeProposalsBulkPartialUpdateRequest) ([]IKEProposal, *http.Response, error)
/*
- VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate
+ VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate
- Put a list of IKE proposal objects.
+ Put a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkUpdateRequest
*/
VpnIkeProposalsBulkUpdate(ctx context.Context) ApiVpnIkeProposalsBulkUpdateRequest
@@ -194,12 +193,12 @@ type VpnAPI interface {
VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBulkUpdateRequest) ([]IKEProposal, *http.Response, error)
/*
- VpnIkeProposalsCreate Method for VpnIkeProposalsCreate
+ VpnIkeProposalsCreate Method for VpnIkeProposalsCreate
- Post a list of IKE proposal objects.
+ Post a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsCreateRequest
*/
VpnIkeProposalsCreate(ctx context.Context) ApiVpnIkeProposalsCreateRequest
@@ -208,13 +207,13 @@ type VpnAPI interface {
VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateRequest) (*IKEProposal, *http.Response, error)
/*
- VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy
+ VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy
- Delete a IKE proposal object.
+ Delete a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsDestroyRequest
*/
VpnIkeProposalsDestroy(ctx context.Context, id int32) ApiVpnIkeProposalsDestroyRequest
@@ -222,12 +221,12 @@ type VpnAPI interface {
VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestroyRequest) (*http.Response, error)
/*
- VpnIkeProposalsList Method for VpnIkeProposalsList
+ VpnIkeProposalsList Method for VpnIkeProposalsList
- Get a list of IKE proposal objects.
+ Get a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsListRequest
*/
VpnIkeProposalsList(ctx context.Context) ApiVpnIkeProposalsListRequest
@@ -236,13 +235,13 @@ type VpnAPI interface {
VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error)
/*
- VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate
+ VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate
- Patch a IKE proposal object.
+ Patch a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsPartialUpdateRequest
*/
VpnIkeProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsPartialUpdateRequest
@@ -251,13 +250,13 @@ type VpnAPI interface {
VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposalsPartialUpdateRequest) (*IKEProposal, *http.Response, error)
/*
- VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve
+ VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve
- Get a IKE proposal object.
+ Get a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsRetrieveRequest
*/
VpnIkeProposalsRetrieve(ctx context.Context, id int32) ApiVpnIkeProposalsRetrieveRequest
@@ -266,13 +265,13 @@ type VpnAPI interface {
VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetrieveRequest) (*IKEProposal, *http.Response, error)
/*
- VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate
+ VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate
- Put a IKE proposal object.
+ Put a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsUpdateRequest
*/
VpnIkeProposalsUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsUpdateRequest
@@ -281,12 +280,12 @@ type VpnAPI interface {
VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateRequest) (*IKEProposal, *http.Response, error)
/*
- VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy
+ VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy
- Delete a list of IPSec policy objects.
+ Delete a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkDestroyRequest
*/
VpnIpsecPoliciesBulkDestroy(ctx context.Context) ApiVpnIpsecPoliciesBulkDestroyRequest
@@ -294,12 +293,12 @@ type VpnAPI interface {
VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPoliciesBulkDestroyRequest) (*http.Response, error)
/*
- VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate
+ VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate
- Patch a list of IPSec policy objects.
+ Patch a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest
*/
VpnIpsecPoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkPartialUpdateRequest
@@ -308,12 +307,12 @@ type VpnAPI interface {
VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) ([]IPSecPolicy, *http.Response, error)
/*
- VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate
+ VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate
- Put a list of IPSec policy objects.
+ Put a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkUpdateRequest
*/
VpnIpsecPoliciesBulkUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkUpdateRequest
@@ -322,12 +321,12 @@ type VpnAPI interface {
VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesBulkUpdateRequest) ([]IPSecPolicy, *http.Response, error)
/*
- VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate
+ VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate
- Post a list of IPSec policy objects.
+ Post a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesCreateRequest
*/
VpnIpsecPoliciesCreate(ctx context.Context) ApiVpnIpsecPoliciesCreateRequest
@@ -336,13 +335,13 @@ type VpnAPI interface {
VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreateRequest) (*IPSecPolicy, *http.Response, error)
/*
- VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy
+ VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy
- Delete a IPSec policy object.
+ Delete a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesDestroyRequest
*/
VpnIpsecPoliciesDestroy(ctx context.Context, id int32) ApiVpnIpsecPoliciesDestroyRequest
@@ -350,12 +349,12 @@ type VpnAPI interface {
VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDestroyRequest) (*http.Response, error)
/*
- VpnIpsecPoliciesList Method for VpnIpsecPoliciesList
+ VpnIpsecPoliciesList Method for VpnIpsecPoliciesList
- Get a list of IPSec policy objects.
+ Get a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesListRequest
*/
VpnIpsecPoliciesList(ctx context.Context) ApiVpnIpsecPoliciesListRequest
@@ -364,13 +363,13 @@ type VpnAPI interface {
VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListRequest) (*PaginatedIPSecPolicyList, *http.Response, error)
/*
- VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate
+ VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate
- Patch a IPSec policy object.
+ Patch a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesPartialUpdateRequest
*/
VpnIpsecPoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesPartialUpdateRequest
@@ -379,13 +378,13 @@ type VpnAPI interface {
VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPoliciesPartialUpdateRequest) (*IPSecPolicy, *http.Response, error)
/*
- VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve
+ VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve
- Get a IPSec policy object.
+ Get a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesRetrieveRequest
*/
VpnIpsecPoliciesRetrieve(ctx context.Context, id int32) ApiVpnIpsecPoliciesRetrieveRequest
@@ -394,13 +393,13 @@ type VpnAPI interface {
VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRetrieveRequest) (*IPSecPolicy, *http.Response, error)
/*
- VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate
+ VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate
- Put a IPSec policy object.
+ Put a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesUpdateRequest
*/
VpnIpsecPoliciesUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesUpdateRequest
@@ -409,12 +408,12 @@ type VpnAPI interface {
VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdateRequest) (*IPSecPolicy, *http.Response, error)
/*
- VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy
+ VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy
- Delete a list of IPSec profile objects.
+ Delete a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkDestroyRequest
*/
VpnIpsecProfilesBulkDestroy(ctx context.Context) ApiVpnIpsecProfilesBulkDestroyRequest
@@ -422,12 +421,12 @@ type VpnAPI interface {
VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfilesBulkDestroyRequest) (*http.Response, error)
/*
- VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate
+ VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate
- Patch a list of IPSec profile objects.
+ Patch a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkPartialUpdateRequest
*/
VpnIpsecProfilesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkPartialUpdateRequest
@@ -436,12 +435,12 @@ type VpnAPI interface {
VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecProfilesBulkPartialUpdateRequest) ([]IPSecProfile, *http.Response, error)
/*
- VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate
+ VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate
- Put a list of IPSec profile objects.
+ Put a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkUpdateRequest
*/
VpnIpsecProfilesBulkUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkUpdateRequest
@@ -450,12 +449,12 @@ type VpnAPI interface {
VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesBulkUpdateRequest) ([]IPSecProfile, *http.Response, error)
/*
- VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate
+ VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate
- Post a list of IPSec profile objects.
+ Post a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesCreateRequest
*/
VpnIpsecProfilesCreate(ctx context.Context) ApiVpnIpsecProfilesCreateRequest
@@ -464,13 +463,13 @@ type VpnAPI interface {
VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreateRequest) (*IPSecProfile, *http.Response, error)
/*
- VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy
+ VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy
- Delete a IPSec profile object.
+ Delete a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesDestroyRequest
*/
VpnIpsecProfilesDestroy(ctx context.Context, id int32) ApiVpnIpsecProfilesDestroyRequest
@@ -478,12 +477,12 @@ type VpnAPI interface {
VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDestroyRequest) (*http.Response, error)
/*
- VpnIpsecProfilesList Method for VpnIpsecProfilesList
+ VpnIpsecProfilesList Method for VpnIpsecProfilesList
- Get a list of IPSec profile objects.
+ Get a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesListRequest
*/
VpnIpsecProfilesList(ctx context.Context) ApiVpnIpsecProfilesListRequest
@@ -492,13 +491,13 @@ type VpnAPI interface {
VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListRequest) (*PaginatedIPSecProfileList, *http.Response, error)
/*
- VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate
+ VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate
- Patch a IPSec profile object.
+ Patch a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesPartialUpdateRequest
*/
VpnIpsecProfilesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesPartialUpdateRequest
@@ -507,13 +506,13 @@ type VpnAPI interface {
VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfilesPartialUpdateRequest) (*IPSecProfile, *http.Response, error)
/*
- VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve
+ VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve
- Get a IPSec profile object.
+ Get a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesRetrieveRequest
*/
VpnIpsecProfilesRetrieve(ctx context.Context, id int32) ApiVpnIpsecProfilesRetrieveRequest
@@ -522,13 +521,13 @@ type VpnAPI interface {
VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRetrieveRequest) (*IPSecProfile, *http.Response, error)
/*
- VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate
+ VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate
- Put a IPSec profile object.
+ Put a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesUpdateRequest
*/
VpnIpsecProfilesUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesUpdateRequest
@@ -537,12 +536,12 @@ type VpnAPI interface {
VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdateRequest) (*IPSecProfile, *http.Response, error)
/*
- VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy
+ VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy
- Delete a list of IPSec proposal objects.
+ Delete a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkDestroyRequest
*/
VpnIpsecProposalsBulkDestroy(ctx context.Context) ApiVpnIpsecProposalsBulkDestroyRequest
@@ -550,12 +549,12 @@ type VpnAPI interface {
VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposalsBulkDestroyRequest) (*http.Response, error)
/*
- VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate
+ VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate
- Patch a list of IPSec proposal objects.
+ Patch a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkPartialUpdateRequest
*/
VpnIpsecProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkPartialUpdateRequest
@@ -564,12 +563,12 @@ type VpnAPI interface {
VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecProposalsBulkPartialUpdateRequest) ([]IPSecProposal, *http.Response, error)
/*
- VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate
+ VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate
- Put a list of IPSec proposal objects.
+ Put a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkUpdateRequest
*/
VpnIpsecProposalsBulkUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkUpdateRequest
@@ -578,12 +577,12 @@ type VpnAPI interface {
VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposalsBulkUpdateRequest) ([]IPSecProposal, *http.Response, error)
/*
- VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate
+ VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate
- Post a list of IPSec proposal objects.
+ Post a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsCreateRequest
*/
VpnIpsecProposalsCreate(ctx context.Context) ApiVpnIpsecProposalsCreateRequest
@@ -592,13 +591,13 @@ type VpnAPI interface {
VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCreateRequest) (*IPSecProposal, *http.Response, error)
/*
- VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy
+ VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy
- Delete a IPSec proposal object.
+ Delete a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsDestroyRequest
*/
VpnIpsecProposalsDestroy(ctx context.Context, id int32) ApiVpnIpsecProposalsDestroyRequest
@@ -606,12 +605,12 @@ type VpnAPI interface {
VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDestroyRequest) (*http.Response, error)
/*
- VpnIpsecProposalsList Method for VpnIpsecProposalsList
+ VpnIpsecProposalsList Method for VpnIpsecProposalsList
- Get a list of IPSec proposal objects.
+ Get a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsListRequest
*/
VpnIpsecProposalsList(ctx context.Context) ApiVpnIpsecProposalsListRequest
@@ -620,13 +619,13 @@ type VpnAPI interface {
VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListRequest) (*PaginatedIPSecProposalList, *http.Response, error)
/*
- VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate
+ VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate
- Patch a IPSec proposal object.
+ Patch a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsPartialUpdateRequest
*/
VpnIpsecProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsPartialUpdateRequest
@@ -635,13 +634,13 @@ type VpnAPI interface {
VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecProposalsPartialUpdateRequest) (*IPSecProposal, *http.Response, error)
/*
- VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve
+ VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve
- Get a IPSec proposal object.
+ Get a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsRetrieveRequest
*/
VpnIpsecProposalsRetrieve(ctx context.Context, id int32) ApiVpnIpsecProposalsRetrieveRequest
@@ -650,13 +649,13 @@ type VpnAPI interface {
VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsRetrieveRequest) (*IPSecProposal, *http.Response, error)
/*
- VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate
+ VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate
- Put a IPSec proposal object.
+ Put a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsUpdateRequest
*/
VpnIpsecProposalsUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsUpdateRequest
@@ -665,12 +664,12 @@ type VpnAPI interface {
VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpdateRequest) (*IPSecProposal, *http.Response, error)
/*
- VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy
+ VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy
- Delete a list of L2VPN termination objects.
+ Delete a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkDestroyRequest
*/
VpnL2vpnTerminationsBulkDestroy(ctx context.Context) ApiVpnL2vpnTerminationsBulkDestroyRequest
@@ -678,12 +677,12 @@ type VpnAPI interface {
VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerminationsBulkDestroyRequest) (*http.Response, error)
/*
- VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartialUpdate
+ VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartialUpdate
- Patch a list of L2VPN termination objects.
+ Patch a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
*/
VpnL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
@@ -692,12 +691,12 @@ type VpnAPI interface {
VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate
+ VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate
- Put a list of L2VPN termination objects.
+ Put a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkUpdateRequest
*/
VpnL2vpnTerminationsBulkUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkUpdateRequest
@@ -706,12 +705,12 @@ type VpnAPI interface {
VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate
+ VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate
- Post a list of L2VPN termination objects.
+ Post a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsCreateRequest
*/
VpnL2vpnTerminationsCreate(ctx context.Context) ApiVpnL2vpnTerminationsCreateRequest
@@ -720,13 +719,13 @@ type VpnAPI interface {
VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy
+ VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy
- Delete a L2VPN termination object.
+ Delete a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsDestroyRequest
*/
VpnL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiVpnL2vpnTerminationsDestroyRequest
@@ -734,12 +733,12 @@ type VpnAPI interface {
VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminationsDestroyRequest) (*http.Response, error)
/*
- VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList
+ VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList
- Get a list of L2VPN termination objects.
+ Get a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsListRequest
*/
VpnL2vpnTerminationsList(ctx context.Context) ApiVpnL2vpnTerminationsListRequest
@@ -748,13 +747,13 @@ type VpnAPI interface {
VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error)
/*
- VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate
+ VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate
- Patch a L2VPN termination object.
+ Patch a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsPartialUpdateRequest
*/
VpnL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsPartialUpdateRequest
@@ -763,13 +762,13 @@ type VpnAPI interface {
VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve
+ VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve
- Get a L2VPN termination object.
+ Get a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsRetrieveRequest
*/
VpnL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnTerminationsRetrieveRequest
@@ -778,13 +777,13 @@ type VpnAPI interface {
VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate
+ VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate
- Put a L2VPN termination object.
+ Put a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsUpdateRequest
*/
VpnL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsUpdateRequest
@@ -793,12 +792,12 @@ type VpnAPI interface {
VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error)
/*
- VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy
+ VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy
- Delete a list of L2VPN objects.
+ Delete a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkDestroyRequest
*/
VpnL2vpnsBulkDestroy(ctx context.Context) ApiVpnL2vpnsBulkDestroyRequest
@@ -806,12 +805,12 @@ type VpnAPI interface {
VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyRequest) (*http.Response, error)
/*
- VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate
+ VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate
- Patch a list of L2VPN objects.
+ Patch a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkPartialUpdateRequest
*/
VpnL2vpnsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnsBulkPartialUpdateRequest
@@ -820,12 +819,12 @@ type VpnAPI interface {
VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error)
/*
- VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate
+ VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate
- Put a list of L2VPN objects.
+ Put a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkUpdateRequest
*/
VpnL2vpnsBulkUpdate(ctx context.Context) ApiVpnL2vpnsBulkUpdateRequest
@@ -834,12 +833,12 @@ type VpnAPI interface {
VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error)
/*
- VpnL2vpnsCreate Method for VpnL2vpnsCreate
+ VpnL2vpnsCreate Method for VpnL2vpnsCreate
- Post a list of L2VPN objects.
+ Post a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsCreateRequest
*/
VpnL2vpnsCreate(ctx context.Context) ApiVpnL2vpnsCreateRequest
@@ -848,13 +847,13 @@ type VpnAPI interface {
VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2VPN, *http.Response, error)
/*
- VpnL2vpnsDestroy Method for VpnL2vpnsDestroy
+ VpnL2vpnsDestroy Method for VpnL2vpnsDestroy
- Delete a L2VPN object.
+ Delete a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsDestroyRequest
*/
VpnL2vpnsDestroy(ctx context.Context, id int32) ApiVpnL2vpnsDestroyRequest
@@ -862,12 +861,12 @@ type VpnAPI interface {
VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*http.Response, error)
/*
- VpnL2vpnsList Method for VpnL2vpnsList
+ VpnL2vpnsList Method for VpnL2vpnsList
- Get a list of L2VPN objects.
+ Get a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsListRequest
*/
VpnL2vpnsList(ctx context.Context) ApiVpnL2vpnsListRequest
@@ -876,13 +875,13 @@ type VpnAPI interface {
VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error)
/*
- VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate
+ VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate
- Patch a L2VPN object.
+ Patch a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsPartialUpdateRequest
*/
VpnL2vpnsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnsPartialUpdateRequest
@@ -891,13 +890,13 @@ type VpnAPI interface {
VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error)
/*
- VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve
+ VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve
- Get a L2VPN object.
+ Get a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsRetrieveRequest
*/
VpnL2vpnsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnsRetrieveRequest
@@ -906,13 +905,13 @@ type VpnAPI interface {
VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error)
/*
- VpnL2vpnsUpdate Method for VpnL2vpnsUpdate
+ VpnL2vpnsUpdate Method for VpnL2vpnsUpdate
- Put a L2VPN object.
+ Put a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsUpdateRequest
*/
VpnL2vpnsUpdate(ctx context.Context, id int32) ApiVpnL2vpnsUpdateRequest
@@ -921,12 +920,12 @@ type VpnAPI interface {
VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2VPN, *http.Response, error)
/*
- VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy
+ VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy
- Delete a list of tunnel group objects.
+ Delete a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkDestroyRequest
*/
VpnTunnelGroupsBulkDestroy(ctx context.Context) ApiVpnTunnelGroupsBulkDestroyRequest
@@ -934,12 +933,12 @@ type VpnAPI interface {
VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBulkDestroyRequest) (*http.Response, error)
/*
- VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate
+ VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate
- Patch a list of tunnel group objects.
+ Patch a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkPartialUpdateRequest
*/
VpnTunnelGroupsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkPartialUpdateRequest
@@ -948,12 +947,12 @@ type VpnAPI interface {
VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGroupsBulkPartialUpdateRequest) ([]TunnelGroup, *http.Response, error)
/*
- VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate
+ VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate
- Put a list of tunnel group objects.
+ Put a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkUpdateRequest
*/
VpnTunnelGroupsBulkUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkUpdateRequest
@@ -962,12 +961,12 @@ type VpnAPI interface {
VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBulkUpdateRequest) ([]TunnelGroup, *http.Response, error)
/*
- VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate
+ VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate
- Post a list of tunnel group objects.
+ Post a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsCreateRequest
*/
VpnTunnelGroupsCreate(ctx context.Context) ApiVpnTunnelGroupsCreateRequest
@@ -976,13 +975,13 @@ type VpnAPI interface {
VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateRequest) (*TunnelGroup, *http.Response, error)
/*
- VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy
+ VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy
- Delete a tunnel group object.
+ Delete a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsDestroyRequest
*/
VpnTunnelGroupsDestroy(ctx context.Context, id int32) ApiVpnTunnelGroupsDestroyRequest
@@ -990,12 +989,12 @@ type VpnAPI interface {
VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestroyRequest) (*http.Response, error)
/*
- VpnTunnelGroupsList Method for VpnTunnelGroupsList
+ VpnTunnelGroupsList Method for VpnTunnelGroupsList
- Get a list of tunnel group objects.
+ Get a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsListRequest
*/
VpnTunnelGroupsList(ctx context.Context) ApiVpnTunnelGroupsListRequest
@@ -1004,13 +1003,13 @@ type VpnAPI interface {
VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListRequest) (*PaginatedTunnelGroupList, *http.Response, error)
/*
- VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate
+ VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate
- Patch a tunnel group object.
+ Patch a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsPartialUpdateRequest
*/
VpnTunnelGroupsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsPartialUpdateRequest
@@ -1019,13 +1018,13 @@ type VpnAPI interface {
VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroupsPartialUpdateRequest) (*TunnelGroup, *http.Response, error)
/*
- VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve
+ VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve
- Get a tunnel group object.
+ Get a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsRetrieveRequest
*/
VpnTunnelGroupsRetrieve(ctx context.Context, id int32) ApiVpnTunnelGroupsRetrieveRequest
@@ -1034,13 +1033,13 @@ type VpnAPI interface {
VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetrieveRequest) (*TunnelGroup, *http.Response, error)
/*
- VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate
+ VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate
- Put a tunnel group object.
+ Put a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsUpdateRequest
*/
VpnTunnelGroupsUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsUpdateRequest
@@ -1049,12 +1048,12 @@ type VpnAPI interface {
VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateRequest) (*TunnelGroup, *http.Response, error)
/*
- VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy
+ VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy
- Delete a list of tunnel termination objects.
+ Delete a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkDestroyRequest
*/
VpnTunnelTerminationsBulkDestroy(ctx context.Context) ApiVpnTunnelTerminationsBulkDestroyRequest
@@ -1062,12 +1061,12 @@ type VpnAPI interface {
VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTerminationsBulkDestroyRequest) (*http.Response, error)
/*
- VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkPartialUpdate
+ VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkPartialUpdate
- Patch a list of tunnel termination objects.
+ Patch a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest
*/
VpnTunnelTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkPartialUpdateRequest
@@ -1076,12 +1075,12 @@ type VpnAPI interface {
VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) ([]TunnelTermination, *http.Response, error)
/*
- VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate
+ VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate
- Put a list of tunnel termination objects.
+ Put a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkUpdateRequest
*/
VpnTunnelTerminationsBulkUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkUpdateRequest
@@ -1090,12 +1089,12 @@ type VpnAPI interface {
VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTerminationsBulkUpdateRequest) ([]TunnelTermination, *http.Response, error)
/*
- VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate
+ VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate
- Post a list of tunnel termination objects.
+ Post a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsCreateRequest
*/
VpnTunnelTerminationsCreate(ctx context.Context) ApiVpnTunnelTerminationsCreateRequest
@@ -1104,13 +1103,13 @@ type VpnAPI interface {
VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTerminationsCreateRequest) (*TunnelTermination, *http.Response, error)
/*
- VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy
+ VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy
- Delete a tunnel termination object.
+ Delete a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsDestroyRequest
*/
VpnTunnelTerminationsDestroy(ctx context.Context, id int32) ApiVpnTunnelTerminationsDestroyRequest
@@ -1118,12 +1117,12 @@ type VpnAPI interface {
VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTerminationsDestroyRequest) (*http.Response, error)
/*
- VpnTunnelTerminationsList Method for VpnTunnelTerminationsList
+ VpnTunnelTerminationsList Method for VpnTunnelTerminationsList
- Get a list of tunnel termination objects.
+ Get a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsListRequest
*/
VpnTunnelTerminationsList(ctx context.Context) ApiVpnTunnelTerminationsListRequest
@@ -1132,13 +1131,13 @@ type VpnAPI interface {
VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminationsListRequest) (*PaginatedTunnelTerminationList, *http.Response, error)
/*
- VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate
+ VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate
- Patch a tunnel termination object.
+ Patch a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsPartialUpdateRequest
*/
VpnTunnelTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsPartialUpdateRequest
@@ -1147,13 +1146,13 @@ type VpnAPI interface {
VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnelTerminationsPartialUpdateRequest) (*TunnelTermination, *http.Response, error)
/*
- VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve
+ VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve
- Get a tunnel termination object.
+ Get a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsRetrieveRequest
*/
VpnTunnelTerminationsRetrieve(ctx context.Context, id int32) ApiVpnTunnelTerminationsRetrieveRequest
@@ -1162,13 +1161,13 @@ type VpnAPI interface {
VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTerminationsRetrieveRequest) (*TunnelTermination, *http.Response, error)
/*
- VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate
+ VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate
- Put a tunnel termination object.
+ Put a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsUpdateRequest
*/
VpnTunnelTerminationsUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsUpdateRequest
@@ -1177,12 +1176,12 @@ type VpnAPI interface {
VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTerminationsUpdateRequest) (*TunnelTermination, *http.Response, error)
/*
- VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy
+ VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy
- Delete a list of tunnel objects.
+ Delete a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkDestroyRequest
*/
VpnTunnelsBulkDestroy(ctx context.Context) ApiVpnTunnelsBulkDestroyRequest
@@ -1190,12 +1189,12 @@ type VpnAPI interface {
VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyRequest) (*http.Response, error)
/*
- VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate
+ VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate
- Patch a list of tunnel objects.
+ Patch a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkPartialUpdateRequest
*/
VpnTunnelsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelsBulkPartialUpdateRequest
@@ -1204,12 +1203,12 @@ type VpnAPI interface {
VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPartialUpdateRequest) ([]Tunnel, *http.Response, error)
/*
- VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate
+ VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate
- Put a list of tunnel objects.
+ Put a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkUpdateRequest
*/
VpnTunnelsBulkUpdate(ctx context.Context) ApiVpnTunnelsBulkUpdateRequest
@@ -1218,12 +1217,12 @@ type VpnAPI interface {
VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateRequest) ([]Tunnel, *http.Response, error)
/*
- VpnTunnelsCreate Method for VpnTunnelsCreate
+ VpnTunnelsCreate Method for VpnTunnelsCreate
- Post a list of tunnel objects.
+ Post a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsCreateRequest
*/
VpnTunnelsCreate(ctx context.Context) ApiVpnTunnelsCreateRequest
@@ -1232,13 +1231,13 @@ type VpnAPI interface {
VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*Tunnel, *http.Response, error)
/*
- VpnTunnelsDestroy Method for VpnTunnelsDestroy
+ VpnTunnelsDestroy Method for VpnTunnelsDestroy
- Delete a tunnel object.
+ Delete a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsDestroyRequest
*/
VpnTunnelsDestroy(ctx context.Context, id int32) ApiVpnTunnelsDestroyRequest
@@ -1246,12 +1245,12 @@ type VpnAPI interface {
VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) (*http.Response, error)
/*
- VpnTunnelsList Method for VpnTunnelsList
+ VpnTunnelsList Method for VpnTunnelsList
- Get a list of tunnel objects.
+ Get a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsListRequest
*/
VpnTunnelsList(ctx context.Context) ApiVpnTunnelsListRequest
@@ -1260,13 +1259,13 @@ type VpnAPI interface {
VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*PaginatedTunnelList, *http.Response, error)
/*
- VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate
+ VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate
- Patch a tunnel object.
+ Patch a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsPartialUpdateRequest
*/
VpnTunnelsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelsPartialUpdateRequest
@@ -1275,13 +1274,13 @@ type VpnAPI interface {
VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpdateRequest) (*Tunnel, *http.Response, error)
/*
- VpnTunnelsRetrieve Method for VpnTunnelsRetrieve
+ VpnTunnelsRetrieve Method for VpnTunnelsRetrieve
- Get a tunnel object.
+ Get a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsRetrieveRequest
*/
VpnTunnelsRetrieve(ctx context.Context, id int32) ApiVpnTunnelsRetrieveRequest
@@ -1290,13 +1289,13 @@ type VpnAPI interface {
VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest) (*Tunnel, *http.Response, error)
/*
- VpnTunnelsUpdate Method for VpnTunnelsUpdate
+ VpnTunnelsUpdate Method for VpnTunnelsUpdate
- Put a tunnel object.
+ Put a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsUpdateRequest
*/
VpnTunnelsUpdate(ctx context.Context, id int32) ApiVpnTunnelsUpdateRequest
@@ -1309,8 +1308,8 @@ type VpnAPI interface {
type VpnAPIService service
type ApiVpnIkePoliciesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEPolicyRequest *[]IKEPolicyRequest
}
@@ -1328,22 +1327,22 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkDestroy")
@@ -1422,8 +1421,8 @@ func (a *VpnAPIService) VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulk
}
type ApiVpnIkePoliciesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEPolicyRequest *[]IKEPolicyRequest
}
@@ -1441,24 +1440,25 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IKEPolicy
+//
+// @return []IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IKEPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkPartialUpdate")
@@ -1546,8 +1546,8 @@ func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePolici
}
type ApiVpnIkePoliciesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEPolicyRequest *[]IKEPolicyRequest
}
@@ -1565,24 +1565,25 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IKEPolicy
+//
+// @return []IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IKEPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkUpdate")
@@ -1670,8 +1671,8 @@ func (a *VpnAPIService) VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkU
}
type ApiVpnIkePoliciesCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableIKEPolicyRequest *WritableIKEPolicyRequest
}
@@ -1689,24 +1690,25 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IKEPolicy
+//
+// @return IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEPolicy
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesCreate")
@@ -1794,9 +1796,9 @@ func (a *VpnAPIService) VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateReq
}
type ApiVpnIkePoliciesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIkePoliciesDestroyRequest) Execute() (*http.Response, error) {
@@ -1808,24 +1810,24 @@ 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
+ @param ctx 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,
+ 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
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesDestroy")
@@ -1900,95 +1902,97 @@ func (a *VpnAPIService) VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyR
}
type ApiVpnIkePoliciesListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ikeProposal *[]string
- ikeProposalN *[]string
- ikeProposalId *[]int32
- ikeProposalIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- mode *[]*string
- modeEmpty *bool
- modeIc *[]*string
- modeIe *[]*string
- modeIew *[]*string
- modeIsw *[]*string
- modeN *[]*string
- modeNic *[]*string
- modeNie *[]*string
- modeNiew *[]*string
- modeNisw *[]*string
+ ctx context.Context
+ ApiService VpnAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ikeProposal *[]string
+ ikeProposalN *[]string
+ ikeProposalId *[]int32
+ ikeProposalIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mode *[]*string
+ modeEmpty *bool
+ modeIc *[]*string
+ modeIe *[]*string
+ modeIew *[]*string
+ modeIsw *[]*string
+ modeN *[]*string
+ modeNic *[]*string
+ modeNie *[]*string
+ modeNiew *[]*string
+ modeNisw *[]*string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- presharedKey *string
- presharedKeyIc *string
- presharedKeyIe *string
- presharedKeyIew *string
- presharedKeyIsw *string
- presharedKeyN *string
- presharedKeyNic *string
- presharedKeyNie *string
- presharedKeyNiew *string
- presharedKeyNisw *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- version *[]int32
- versionIc *[]int32
- versionIe *[]int32
- versionIew *[]int32
- versionIsw *[]int32
- versionN *[]int32
- versionNic *[]int32
- versionNie *[]int32
- versionNiew *[]int32
- versionNisw *[]int32
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ presharedKey *string
+ presharedKeyIc *string
+ presharedKeyIe *string
+ presharedKeyIew *string
+ presharedKeyIsw *string
+ presharedKeyN *string
+ presharedKeyNic *string
+ presharedKeyNie *string
+ presharedKeyNiew *string
+ presharedKeyNisw *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ version *[]int32
+ versionIc *[]int32
+ versionIe *[]int32
+ versionIew *[]int32
+ versionIsw *[]int32
+ versionN *[]int32
+ versionNic *[]int32
+ versionNie *[]int32
+ versionNiew *[]int32
+ versionNisw *[]int32
}
func (r ApiVpnIkePoliciesListRequest) Created(created []time.Time) ApiVpnIkePoliciesListRequest {
@@ -2375,6 +2379,16 @@ func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListR
return r
}
+func (r ApiVpnIkePoliciesListRequest) TagId(tagId []int32) ApiVpnIkePoliciesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnIkePoliciesListRequest) TagIdN(tagIdN []int32) ApiVpnIkePoliciesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -2439,24 +2453,25 @@ 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
+ @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,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIKEPolicyList
+//
+// @return PaginatedIKEPolicyList
func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIKEPolicyList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIKEPolicyList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesList")
@@ -3146,6 +3161,28 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -3328,9 +3365,9 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
}
type ApiVpnIkePoliciesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableIKEPolicyRequest *PatchedWritableIKEPolicyRequest
}
@@ -3348,26 +3385,27 @@ VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate
Patch a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIkePoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesPartialUpdateRequest {
return ApiVpnIkePoliciesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEPolicy
+//
+// @return IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPartialUpdateRequest) (*IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesPartialUpdate")
@@ -3453,9 +3491,9 @@ func (a *VpnAPIService) VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPa
}
type ApiVpnIkePoliciesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIkePoliciesRetrieveRequest) Execute() (*IKEPolicy, *http.Response, error) {
@@ -3467,26 +3505,27 @@ VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve
Get a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesRetrieveRequest
*/
func (a *VpnAPIService) VpnIkePoliciesRetrieve(ctx context.Context, id int32) ApiVpnIkePoliciesRetrieveRequest {
return ApiVpnIkePoliciesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEPolicy
+//
+// @return IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetrieveRequest) (*IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEPolicy
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesRetrieve")
@@ -3570,9 +3609,9 @@ func (a *VpnAPIService) VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetriev
}
type ApiVpnIkePoliciesUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableIKEPolicyRequest *WritableIKEPolicyRequest
}
@@ -3590,26 +3629,27 @@ VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate
Put a IKE policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE policy.
- @return ApiVpnIkePoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE policy.
+ @return ApiVpnIkePoliciesUpdateRequest
*/
func (a *VpnAPIService) VpnIkePoliciesUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesUpdateRequest {
return ApiVpnIkePoliciesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEPolicy
+//
+// @return IKEPolicy
func (a *VpnAPIService) VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateRequest) (*IKEPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesUpdate")
@@ -3698,8 +3738,8 @@ func (a *VpnAPIService) VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateReq
}
type ApiVpnIkeProposalsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEProposalRequest *[]IKEProposalRequest
}
@@ -3717,22 +3757,22 @@ VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy
Delete a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnIkeProposalsBulkDestroy(ctx context.Context) ApiVpnIkeProposalsBulkDestroyRequest {
return ApiVpnIkeProposalsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkDestroy")
@@ -3811,8 +3851,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBu
}
type ApiVpnIkeProposalsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEProposalRequest *[]IKEProposalRequest
}
@@ -3830,24 +3870,25 @@ VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate
Patch a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIkeProposalsBulkPartialUpdateRequest {
return ApiVpnIkeProposalsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IKEProposal
+//
+// @return []IKEProposal
func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkeProposalsBulkPartialUpdateRequest) ([]IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IKEProposal
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkPartialUpdate")
@@ -3935,8 +3976,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkePropo
}
type ApiVpnIkeProposalsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iKEProposalRequest *[]IKEProposalRequest
}
@@ -3954,24 +3995,25 @@ VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate
Put a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnIkeProposalsBulkUpdate(ctx context.Context) ApiVpnIkeProposalsBulkUpdateRequest {
return ApiVpnIkeProposalsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IKEProposal
+//
+// @return []IKEProposal
func (a *VpnAPIService) VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBulkUpdateRequest) ([]IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IKEProposal
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkUpdate")
@@ -4059,8 +4101,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBul
}
type ApiVpnIkeProposalsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableIKEProposalRequest *WritableIKEProposalRequest
}
@@ -4078,24 +4120,25 @@ VpnIkeProposalsCreate Method for VpnIkeProposalsCreate
Post a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsCreateRequest
*/
func (a *VpnAPIService) VpnIkeProposalsCreate(ctx context.Context) ApiVpnIkeProposalsCreateRequest {
return ApiVpnIkeProposalsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IKEProposal
+//
+// @return IKEProposal
func (a *VpnAPIService) VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateRequest) (*IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEProposal
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsCreate")
@@ -4183,9 +4226,9 @@ func (a *VpnAPIService) VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateR
}
type ApiVpnIkeProposalsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIkeProposalsDestroyRequest) Execute() (*http.Response, error) {
@@ -4197,24 +4240,24 @@ VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy
Delete a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsDestroyRequest
*/
func (a *VpnAPIService) VpnIkeProposalsDestroy(ctx context.Context, id int32) ApiVpnIkeProposalsDestroyRequest {
return ApiVpnIkeProposalsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsDestroy")
@@ -4289,114 +4332,116 @@ func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestro
}
type ApiVpnIkeProposalsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- authenticationAlgorithm *[]*string
+ ctx context.Context
+ ApiService VpnAPI
+ authenticationAlgorithm *[]*string
authenticationAlgorithmEmpty *bool
- authenticationAlgorithmIc *[]*string
- authenticationAlgorithmIe *[]*string
- authenticationAlgorithmIew *[]*string
- authenticationAlgorithmIsw *[]*string
- authenticationAlgorithmN *[]*string
- authenticationAlgorithmNic *[]*string
- authenticationAlgorithmNie *[]*string
- authenticationAlgorithmNiew *[]*string
- authenticationAlgorithmNisw *[]*string
- authenticationMethod *[]string
- authenticationMethodEmpty *bool
- authenticationMethodIc *[]string
- authenticationMethodIe *[]string
- authenticationMethodIew *[]string
- authenticationMethodIsw *[]string
- authenticationMethodN *[]string
- authenticationMethodNic *[]string
- authenticationMethodNie *[]string
- authenticationMethodNiew *[]string
- authenticationMethodNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- encryptionAlgorithm *[]string
- encryptionAlgorithmEmpty *bool
- encryptionAlgorithmIc *[]string
- encryptionAlgorithmIe *[]string
- encryptionAlgorithmIew *[]string
- encryptionAlgorithmIsw *[]string
- encryptionAlgorithmN *[]string
- encryptionAlgorithmNic *[]string
- encryptionAlgorithmNie *[]string
- encryptionAlgorithmNiew *[]string
- encryptionAlgorithmNisw *[]string
- group *[]int32
- groupIc *[]int32
- groupIe *[]int32
- groupIew *[]int32
- groupIsw *[]int32
- groupN *[]int32
- groupNic *[]int32
- groupNie *[]int32
- groupNiew *[]int32
- groupNisw *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ikePolicy *[]string
- ikePolicyN *[]string
- ikePolicyId *[]int32
- ikePolicyIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- saLifetime *[]int32
- saLifetimeEmpty *bool
- saLifetimeGt *[]int32
- saLifetimeGte *[]int32
- saLifetimeLt *[]int32
- saLifetimeLte *[]int32
- saLifetimeN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ authenticationAlgorithmIc *[]*string
+ authenticationAlgorithmIe *[]*string
+ authenticationAlgorithmIew *[]*string
+ authenticationAlgorithmIsw *[]*string
+ authenticationAlgorithmN *[]*string
+ authenticationAlgorithmNic *[]*string
+ authenticationAlgorithmNie *[]*string
+ authenticationAlgorithmNiew *[]*string
+ authenticationAlgorithmNisw *[]*string
+ authenticationMethod *[]string
+ authenticationMethodEmpty *bool
+ authenticationMethodIc *[]string
+ authenticationMethodIe *[]string
+ authenticationMethodIew *[]string
+ authenticationMethodIsw *[]string
+ authenticationMethodN *[]string
+ authenticationMethodNic *[]string
+ authenticationMethodNie *[]string
+ authenticationMethodNiew *[]string
+ authenticationMethodNisw *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encryptionAlgorithm *[]string
+ encryptionAlgorithmEmpty *bool
+ encryptionAlgorithmIc *[]string
+ encryptionAlgorithmIe *[]string
+ encryptionAlgorithmIew *[]string
+ encryptionAlgorithmIsw *[]string
+ encryptionAlgorithmN *[]string
+ encryptionAlgorithmNic *[]string
+ encryptionAlgorithmNie *[]string
+ encryptionAlgorithmNiew *[]string
+ encryptionAlgorithmNisw *[]string
+ group *[]int32
+ groupIc *[]int32
+ groupIe *[]int32
+ groupIew *[]int32
+ groupIsw *[]int32
+ groupN *[]int32
+ groupNic *[]int32
+ groupNie *[]int32
+ groupNiew *[]int32
+ groupNisw *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ikePolicy *[]string
+ ikePolicyN *[]string
+ ikePolicyId *[]int32
+ ikePolicyIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ saLifetime *[]int32
+ saLifetimeEmpty *bool
+ saLifetimeGt *[]int32
+ saLifetimeGte *[]int32
+ saLifetimeLt *[]int32
+ saLifetimeLte *[]int32
+ saLifetimeN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []*string) ApiVpnIkeProposalsListRequest {
@@ -4942,6 +4987,16 @@ func (r ApiVpnIkeProposalsListRequest) TagN(tagN []string) ApiVpnIkeProposalsLis
return r
}
+func (r ApiVpnIkeProposalsListRequest) TagId(tagId []int32) ApiVpnIkeProposalsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnIkeProposalsListRequest) TagIdN(tagIdN []int32) ApiVpnIkeProposalsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnIkeProposalsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkeProposalsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -4956,24 +5011,25 @@ VpnIkeProposalsList Method for VpnIkeProposalsList
Get a list of IKE proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIkeProposalsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIkeProposalsListRequest
*/
func (a *VpnAPIService) VpnIkeProposalsList(ctx context.Context) ApiVpnIkeProposalsListRequest {
return ApiVpnIkeProposalsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIKEProposalList
+//
+// @return PaginatedIKEProposalList
func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIKEProposalList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIKEProposalList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsList")
@@ -6038,6 +6094,28 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -6110,9 +6188,9 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque
}
type ApiVpnIkeProposalsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableIKEProposalRequest *PatchedWritableIKEProposalRequest
}
@@ -6130,26 +6208,27 @@ VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate
Patch a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIkeProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsPartialUpdateRequest {
return ApiVpnIkeProposalsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEProposal
+//
+// @return IKEProposal
func (a *VpnAPIService) VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposalsPartialUpdateRequest) (*IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEProposal
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsPartialUpdate")
@@ -6235,9 +6314,9 @@ func (a *VpnAPIService) VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposals
}
type ApiVpnIkeProposalsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIkeProposalsRetrieveRequest) Execute() (*IKEProposal, *http.Response, error) {
@@ -6249,26 +6328,27 @@ VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve
Get a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsRetrieveRequest
*/
func (a *VpnAPIService) VpnIkeProposalsRetrieve(ctx context.Context, id int32) ApiVpnIkeProposalsRetrieveRequest {
return ApiVpnIkeProposalsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEProposal
+//
+// @return IKEProposal
func (a *VpnAPIService) VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetrieveRequest) (*IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEProposal
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsRetrieve")
@@ -6352,9 +6432,9 @@ func (a *VpnAPIService) VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetri
}
type ApiVpnIkeProposalsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableIKEProposalRequest *WritableIKEProposalRequest
}
@@ -6372,26 +6452,27 @@ VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate
Put a IKE proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IKE proposal.
- @return ApiVpnIkeProposalsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IKE proposal.
+ @return ApiVpnIkeProposalsUpdateRequest
*/
func (a *VpnAPIService) VpnIkeProposalsUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsUpdateRequest {
return ApiVpnIkeProposalsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IKEProposal
+//
+// @return IKEProposal
func (a *VpnAPIService) VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateRequest) (*IKEProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IKEProposal
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IKEProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsUpdate")
@@ -6480,8 +6561,8 @@ func (a *VpnAPIService) VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateR
}
type ApiVpnIpsecPoliciesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecPolicyRequest *[]IPSecPolicyRequest
}
@@ -6499,22 +6580,22 @@ VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy
Delete a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroy(ctx context.Context) ApiVpnIpsecPoliciesBulkDestroyRequest {
return ApiVpnIpsecPoliciesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPoliciesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkDestroy")
@@ -6593,8 +6674,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPolicies
}
type ApiVpnIpsecPoliciesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecPolicyRequest *[]IPSecPolicyRequest
}
@@ -6612,24 +6693,25 @@ VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate
Patch a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkPartialUpdateRequest {
return ApiVpnIpsecPoliciesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecPolicy
+//
+// @return []IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) ([]IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkPartialUpdate")
@@ -6717,8 +6799,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPo
}
type ApiVpnIpsecPoliciesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecPolicyRequest *[]IPSecPolicyRequest
}
@@ -6736,24 +6818,25 @@ VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate
Put a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesBulkUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkUpdateRequest {
return ApiVpnIpsecPoliciesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecPolicy
+//
+// @return []IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesBulkUpdateRequest) ([]IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkUpdate")
@@ -6841,8 +6924,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesB
}
type ApiVpnIpsecPoliciesCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableIPSecPolicyRequest *WritableIPSecPolicyRequest
}
@@ -6860,24 +6943,25 @@ VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate
Post a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesCreateRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesCreate(ctx context.Context) ApiVpnIpsecPoliciesCreateRequest {
return ApiVpnIpsecPoliciesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IPSecPolicy
+//
+// @return IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreateRequest) (*IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecPolicy
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesCreate")
@@ -6965,9 +7049,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreat
}
type ApiVpnIpsecPoliciesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecPoliciesDestroyRequest) Execute() (*http.Response, error) {
@@ -6979,24 +7063,24 @@ VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy
Delete a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesDestroy(ctx context.Context, id int32) ApiVpnIpsecPoliciesDestroyRequest {
return ApiVpnIpsecPoliciesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesDestroy")
@@ -7071,74 +7155,76 @@ func (a *VpnAPIService) VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDest
}
type ApiVpnIpsecPoliciesListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ipsecProposal *[]string
- ipsecProposalN *[]string
- ipsecProposalId *[]int32
- ipsecProposalIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VpnAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ipsecProposal *[]string
+ ipsecProposalN *[]string
+ ipsecProposalId *[]int32
+ ipsecProposalIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- pfsGroup *[]*int32
- pfsGroupIc *[]*int32
- pfsGroupIe *[]*int32
- pfsGroupIew *[]*int32
- pfsGroupIsw *[]*int32
- pfsGroupN *[]*int32
- pfsGroupNic *[]*int32
- pfsGroupNie *[]*int32
- pfsGroupNiew *[]*int32
- pfsGroupNisw *[]*int32
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ pfsGroup *[]*int32
+ pfsGroupIc *[]*int32
+ pfsGroupIe *[]*int32
+ pfsGroupIew *[]*int32
+ pfsGroupIsw *[]*int32
+ pfsGroupN *[]*int32
+ pfsGroupNic *[]*int32
+ pfsGroupNie *[]*int32
+ pfsGroupNiew *[]*int32
+ pfsGroupNisw *[]*int32
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiVpnIpsecPoliciesListRequest) Created(created []time.Time) ApiVpnIpsecPoliciesListRequest {
@@ -7480,6 +7566,16 @@ func (r ApiVpnIpsecPoliciesListRequest) TagN(tagN []string) ApiVpnIpsecPoliciesL
return r
}
+func (r ApiVpnIpsecPoliciesListRequest) TagId(tagId []int32) ApiVpnIpsecPoliciesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) TagIdN(tagIdN []int32) ApiVpnIpsecPoliciesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnIpsecPoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecPoliciesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -7494,24 +7590,25 @@ VpnIpsecPoliciesList Method for VpnIpsecPoliciesList
Get a list of IPSec policy objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecPoliciesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecPoliciesListRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesList(ctx context.Context) ApiVpnIpsecPoliciesListRequest {
return ApiVpnIpsecPoliciesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIPSecPolicyList
+//
+// @return PaginatedIPSecPolicyList
func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListRequest) (*PaginatedIPSecPolicyList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIPSecPolicyList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecPolicyList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesList")
@@ -8168,6 +8265,28 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -8240,9 +8359,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq
}
type ApiVpnIpsecPoliciesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableIPSecPolicyRequest *PatchedWritableIPSecPolicyRequest
}
@@ -8260,26 +8379,27 @@ VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate
Patch a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesPartialUpdateRequest {
return ApiVpnIpsecPoliciesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecPolicy
+//
+// @return IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPoliciesPartialUpdateRequest) (*IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecPolicy
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesPartialUpdate")
@@ -8365,9 +8485,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPolici
}
type ApiVpnIpsecPoliciesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecPoliciesRetrieveRequest) Execute() (*IPSecPolicy, *http.Response, error) {
@@ -8379,26 +8499,27 @@ VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve
Get a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesRetrieveRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesRetrieve(ctx context.Context, id int32) ApiVpnIpsecPoliciesRetrieveRequest {
return ApiVpnIpsecPoliciesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecPolicy
+//
+// @return IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRetrieveRequest) (*IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecPolicy
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesRetrieve")
@@ -8482,9 +8603,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRet
}
type ApiVpnIpsecPoliciesUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableIPSecPolicyRequest *WritableIPSecPolicyRequest
}
@@ -8502,26 +8623,27 @@ VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate
Put a IPSec policy object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec policy.
- @return ApiVpnIpsecPoliciesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec policy.
+ @return ApiVpnIpsecPoliciesUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecPoliciesUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesUpdateRequest {
return ApiVpnIpsecPoliciesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecPolicy
+//
+// @return IPSecPolicy
func (a *VpnAPIService) VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdateRequest) (*IPSecPolicy, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecPolicy
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesUpdate")
@@ -8610,8 +8732,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdat
}
type ApiVpnIpsecProfilesBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProfileRequest *[]IPSecProfileRequest
}
@@ -8629,22 +8751,22 @@ VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy
Delete a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesBulkDestroy(ctx context.Context) ApiVpnIpsecProfilesBulkDestroyRequest {
return ApiVpnIpsecProfilesBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfilesBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkDestroy")
@@ -8723,8 +8845,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfiles
}
type ApiVpnIpsecProfilesBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProfileRequest *[]IPSecProfileRequest
}
@@ -8742,24 +8864,25 @@ VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate
Patch a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkPartialUpdateRequest {
return ApiVpnIpsecProfilesBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecProfile
+//
+// @return []IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecProfilesBulkPartialUpdateRequest) ([]IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecProfile
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkPartialUpdate")
@@ -8847,8 +8970,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecPr
}
type ApiVpnIpsecProfilesBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProfileRequest *[]IPSecProfileRequest
}
@@ -8866,24 +8989,25 @@ VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate
Put a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesBulkUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesBulkUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkUpdateRequest {
return ApiVpnIpsecProfilesBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecProfile
+//
+// @return []IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesBulkUpdateRequest) ([]IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecProfile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkUpdate")
@@ -8971,8 +9095,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesB
}
type ApiVpnIpsecProfilesCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableIPSecProfileRequest *WritableIPSecProfileRequest
}
@@ -8990,24 +9114,25 @@ VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate
Post a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesCreateRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesCreate(ctx context.Context) ApiVpnIpsecProfilesCreateRequest {
return ApiVpnIpsecProfilesCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IPSecProfile
+//
+// @return IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreateRequest) (*IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProfile
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesCreate")
@@ -9095,9 +9220,9 @@ func (a *VpnAPIService) VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreat
}
type ApiVpnIpsecProfilesDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecProfilesDestroyRequest) Execute() (*http.Response, error) {
@@ -9109,24 +9234,24 @@ VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy
Delete a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesDestroy(ctx context.Context, id int32) ApiVpnIpsecProfilesDestroyRequest {
return ApiVpnIpsecProfilesDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesDestroy")
@@ -9201,79 +9326,81 @@ func (a *VpnAPIService) VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDest
}
type ApiVpnIpsecProfilesListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ikePolicy *[]string
- ikePolicyN *[]string
- ikePolicyId *[]int32
- ikePolicyIdN *[]int32
- ipsecPolicy *[]string
- ipsecPolicyN *[]string
- ipsecPolicyId *[]int32
- ipsecPolicyIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- mode *[]string
- modeEmpty *bool
- modeIc *[]string
- modeIe *[]string
- modeIew *[]string
- modeIsw *[]string
- modeN *[]string
- modeNic *[]string
- modeNie *[]string
- modeNiew *[]string
- modeNisw *[]string
+ ctx context.Context
+ ApiService VpnAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ikePolicy *[]string
+ ikePolicyN *[]string
+ ikePolicyId *[]int32
+ ikePolicyIdN *[]int32
+ ipsecPolicy *[]string
+ ipsecPolicyN *[]string
+ ipsecPolicyId *[]int32
+ ipsecPolicyIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ mode *[]string
+ modeEmpty *bool
+ modeIc *[]string
+ modeIe *[]string
+ modeIew *[]string
+ modeIsw *[]string
+ modeN *[]string
+ modeNic *[]string
+ modeNie *[]string
+ modeNiew *[]string
+ modeNisw *[]string
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiVpnIpsecProfilesListRequest) Created(created []time.Time) ApiVpnIpsecProfilesListRequest {
@@ -9638,6 +9765,16 @@ func (r ApiVpnIpsecProfilesListRequest) TagN(tagN []string) ApiVpnIpsecProfilesL
return r
}
+func (r ApiVpnIpsecProfilesListRequest) TagId(tagId []int32) ApiVpnIpsecProfilesListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnIpsecProfilesListRequest) TagIdN(tagIdN []int32) ApiVpnIpsecProfilesListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnIpsecProfilesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecProfilesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -9652,24 +9789,25 @@ VpnIpsecProfilesList Method for VpnIpsecProfilesList
Get a list of IPSec profile objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProfilesListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProfilesListRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesList(ctx context.Context) ApiVpnIpsecProfilesListRequest {
return ApiVpnIpsecProfilesListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIPSecProfileList
+//
+// @return PaginatedIPSecProfileList
func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListRequest) (*PaginatedIPSecProfileList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIPSecProfileList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecProfileList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesList")
@@ -10373,6 +10511,28 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -10445,9 +10605,9 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq
}
type ApiVpnIpsecProfilesPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableIPSecProfileRequest *PatchedWritableIPSecProfileRequest
}
@@ -10465,26 +10625,27 @@ VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate
Patch a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesPartialUpdateRequest {
return ApiVpnIpsecProfilesPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProfile
+//
+// @return IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfilesPartialUpdateRequest) (*IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProfile
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesPartialUpdate")
@@ -10570,9 +10731,9 @@ func (a *VpnAPIService) VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfil
}
type ApiVpnIpsecProfilesRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecProfilesRetrieveRequest) Execute() (*IPSecProfile, *http.Response, error) {
@@ -10584,26 +10745,27 @@ VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve
Get a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesRetrieveRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesRetrieve(ctx context.Context, id int32) ApiVpnIpsecProfilesRetrieveRequest {
return ApiVpnIpsecProfilesRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProfile
+//
+// @return IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRetrieveRequest) (*IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProfile
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesRetrieve")
@@ -10687,9 +10849,9 @@ func (a *VpnAPIService) VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRet
}
type ApiVpnIpsecProfilesUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableIPSecProfileRequest *WritableIPSecProfileRequest
}
@@ -10707,26 +10869,27 @@ VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate
Put a IPSec profile object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec profile.
- @return ApiVpnIpsecProfilesUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec profile.
+ @return ApiVpnIpsecProfilesUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProfilesUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesUpdateRequest {
return ApiVpnIpsecProfilesUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProfile
+//
+// @return IPSecProfile
func (a *VpnAPIService) VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdateRequest) (*IPSecProfile, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProfile
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProfile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesUpdate")
@@ -10815,8 +10978,8 @@ func (a *VpnAPIService) VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdat
}
type ApiVpnIpsecProposalsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProposalRequest *[]IPSecProposalRequest
}
@@ -10834,22 +10997,22 @@ VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy
Delete a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsBulkDestroy(ctx context.Context) ApiVpnIpsecProposalsBulkDestroyRequest {
return ApiVpnIpsecProposalsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposalsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkDestroy")
@@ -10928,8 +11091,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposa
}
type ApiVpnIpsecProposalsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProposalRequest *[]IPSecProposalRequest
}
@@ -10947,24 +11110,25 @@ VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate
Patch a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkPartialUpdateRequest {
return ApiVpnIpsecProposalsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecProposal
+//
+// @return []IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecProposalsBulkPartialUpdateRequest) ([]IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecProposal
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkPartialUpdate")
@@ -11052,8 +11216,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecP
}
type ApiVpnIpsecProposalsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
iPSecProposalRequest *[]IPSecProposalRequest
}
@@ -11071,24 +11235,25 @@ VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate
Put a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsBulkUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkUpdateRequest {
return ApiVpnIpsecProposalsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []IPSecProposal
+//
+// @return []IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposalsBulkUpdateRequest) ([]IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []IPSecProposal
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkUpdate")
@@ -11176,8 +11341,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposal
}
type ApiVpnIpsecProposalsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableIPSecProposalRequest *WritableIPSecProposalRequest
}
@@ -11195,24 +11360,25 @@ VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate
Post a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsCreateRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsCreate(ctx context.Context) ApiVpnIpsecProposalsCreateRequest {
return ApiVpnIpsecProposalsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return IPSecProposal
+//
+// @return IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCreateRequest) (*IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProposal
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsCreate")
@@ -11300,9 +11466,9 @@ func (a *VpnAPIService) VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCre
}
type ApiVpnIpsecProposalsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecProposalsDestroyRequest) Execute() (*http.Response, error) {
@@ -11314,24 +11480,24 @@ VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy
Delete a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsDestroyRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsDestroy(ctx context.Context, id int32) ApiVpnIpsecProposalsDestroyRequest {
return ApiVpnIpsecProposalsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsDestroy")
@@ -11406,100 +11572,102 @@ func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDe
}
type ApiVpnIpsecProposalsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- authenticationAlgorithm *[]*string
+ ctx context.Context
+ ApiService VpnAPI
+ authenticationAlgorithm *[]*string
authenticationAlgorithmEmpty *bool
- authenticationAlgorithmIc *[]*string
- authenticationAlgorithmIe *[]*string
- authenticationAlgorithmIew *[]*string
- authenticationAlgorithmIsw *[]*string
- authenticationAlgorithmN *[]*string
- authenticationAlgorithmNic *[]*string
- authenticationAlgorithmNie *[]*string
- authenticationAlgorithmNiew *[]*string
- authenticationAlgorithmNisw *[]*string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- encryptionAlgorithm *[]*string
- encryptionAlgorithmEmpty *bool
- encryptionAlgorithmIc *[]*string
- encryptionAlgorithmIe *[]*string
- encryptionAlgorithmIew *[]*string
- encryptionAlgorithmIsw *[]*string
- encryptionAlgorithmN *[]*string
- encryptionAlgorithmNic *[]*string
- encryptionAlgorithmNie *[]*string
- encryptionAlgorithmNiew *[]*string
- encryptionAlgorithmNisw *[]*string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ipsecPolicy *[]string
- ipsecPolicyN *[]string
- ipsecPolicyId *[]int32
- ipsecPolicyIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- saLifetimeData *[]int32
- saLifetimeDataEmpty *bool
- saLifetimeDataGt *[]int32
- saLifetimeDataGte *[]int32
- saLifetimeDataLt *[]int32
- saLifetimeDataLte *[]int32
- saLifetimeDataN *[]int32
- saLifetimeSeconds *[]int32
- saLifetimeSecondsEmpty *bool
- saLifetimeSecondsGt *[]int32
- saLifetimeSecondsGte *[]int32
- saLifetimeSecondsLt *[]int32
- saLifetimeSecondsLte *[]int32
- saLifetimeSecondsN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ authenticationAlgorithmIc *[]*string
+ authenticationAlgorithmIe *[]*string
+ authenticationAlgorithmIew *[]*string
+ authenticationAlgorithmIsw *[]*string
+ authenticationAlgorithmN *[]*string
+ authenticationAlgorithmNic *[]*string
+ authenticationAlgorithmNie *[]*string
+ authenticationAlgorithmNiew *[]*string
+ authenticationAlgorithmNisw *[]*string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encryptionAlgorithm *[]*string
+ encryptionAlgorithmEmpty *bool
+ encryptionAlgorithmIc *[]*string
+ encryptionAlgorithmIe *[]*string
+ encryptionAlgorithmIew *[]*string
+ encryptionAlgorithmIsw *[]*string
+ encryptionAlgorithmN *[]*string
+ encryptionAlgorithmNic *[]*string
+ encryptionAlgorithmNie *[]*string
+ encryptionAlgorithmNiew *[]*string
+ encryptionAlgorithmNisw *[]*string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ipsecPolicy *[]string
+ ipsecPolicyN *[]string
+ ipsecPolicyId *[]int32
+ ipsecPolicyIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ saLifetimeData *[]int32
+ saLifetimeDataEmpty *bool
+ saLifetimeDataGt *[]int32
+ saLifetimeDataGte *[]int32
+ saLifetimeDataLt *[]int32
+ saLifetimeDataLte *[]int32
+ saLifetimeDataN *[]int32
+ saLifetimeSeconds *[]int32
+ saLifetimeSecondsEmpty *bool
+ saLifetimeSecondsGt *[]int32
+ saLifetimeSecondsGte *[]int32
+ saLifetimeSecondsLt *[]int32
+ saLifetimeSecondsLte *[]int32
+ saLifetimeSecondsN *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []*string) ApiVpnIpsecProposalsListRequest {
@@ -11965,6 +12133,16 @@ func (r ApiVpnIpsecProposalsListRequest) TagN(tagN []string) ApiVpnIpsecProposal
return r
}
+func (r ApiVpnIpsecProposalsListRequest) TagId(tagId []int32) ApiVpnIpsecProposalsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnIpsecProposalsListRequest) TagIdN(tagIdN []int32) ApiVpnIpsecProposalsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnIpsecProposalsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIpsecProposalsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -11979,24 +12157,25 @@ VpnIpsecProposalsList Method for VpnIpsecProposalsList
Get a list of IPSec proposal objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnIpsecProposalsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnIpsecProposalsListRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsList(ctx context.Context) ApiVpnIpsecProposalsListRequest {
return ApiVpnIpsecProposalsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedIPSecProposalList
+//
+// @return PaginatedIPSecProposalList
func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListRequest) (*PaginatedIPSecProposalList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedIPSecProposalList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedIPSecProposalList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsList")
@@ -12907,6 +13086,28 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -12979,9 +13180,9 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR
}
type ApiVpnIpsecProposalsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableIPSecProposalRequest *PatchedWritableIPSecProposalRequest
}
@@ -12999,26 +13200,27 @@ VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate
Patch a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsPartialUpdateRequest {
return ApiVpnIpsecProposalsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProposal
+//
+// @return IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecProposalsPartialUpdateRequest) (*IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProposal
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsPartialUpdate")
@@ -13104,9 +13306,9 @@ func (a *VpnAPIService) VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecPropo
}
type ApiVpnIpsecProposalsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnIpsecProposalsRetrieveRequest) Execute() (*IPSecProposal, *http.Response, error) {
@@ -13118,26 +13320,27 @@ VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve
Get a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsRetrieveRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsRetrieve(ctx context.Context, id int32) ApiVpnIpsecProposalsRetrieveRequest {
return ApiVpnIpsecProposalsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProposal
+//
+// @return IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsRetrieveRequest) (*IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProposal
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsRetrieve")
@@ -13221,9 +13424,9 @@ func (a *VpnAPIService) VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsR
}
type ApiVpnIpsecProposalsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableIPSecProposalRequest *WritableIPSecProposalRequest
}
@@ -13241,26 +13444,27 @@ VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate
Put a IPSec proposal object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this IPSec proposal.
- @return ApiVpnIpsecProposalsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this IPSec proposal.
+ @return ApiVpnIpsecProposalsUpdateRequest
*/
func (a *VpnAPIService) VpnIpsecProposalsUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsUpdateRequest {
return ApiVpnIpsecProposalsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return IPSecProposal
+//
+// @return IPSecProposal
func (a *VpnAPIService) VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpdateRequest) (*IPSecProposal, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *IPSecProposal
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *IPSecProposal
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsUpdate")
@@ -13349,8 +13553,8 @@ func (a *VpnAPIService) VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpd
}
type ApiVpnL2vpnTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNTerminationRequest *[]L2VPNTerminationRequest
}
@@ -13368,22 +13572,22 @@ VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy
Delete a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroy(ctx context.Context) ApiVpnL2vpnTerminationsBulkDestroyRequest {
return ApiVpnL2vpnTerminationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkDestroy")
@@ -13462,8 +13666,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerm
}
type ApiVpnL2vpnTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNTerminationRequest *[]L2VPNTerminationRequest
}
@@ -13481,24 +13685,25 @@ VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartial
Patch a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest {
return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []L2VPNTermination
+//
+// @return []L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPNTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkPartialUpdate")
@@ -13586,8 +13791,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2v
}
type ApiVpnL2vpnTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNTerminationRequest *[]L2VPNTerminationRequest
}
@@ -13605,24 +13810,25 @@ VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate
Put a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkUpdateRequest {
return ApiVpnL2vpnTerminationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []L2VPNTermination
+//
+// @return []L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPNTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsBulkUpdate")
@@ -13710,8 +13916,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTermi
}
type ApiVpnL2vpnTerminationsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNTerminationRequest *L2VPNTerminationRequest
}
@@ -13729,24 +13935,25 @@ VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate
Post a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsCreateRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsCreate(ctx context.Context) ApiVpnL2vpnTerminationsCreateRequest {
return ApiVpnL2vpnTerminationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return L2VPNTermination
+//
+// @return L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsCreate")
@@ -13834,9 +14041,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminati
}
type ApiVpnL2vpnTerminationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnL2vpnTerminationsDestroyRequest) Execute() (*http.Response, error) {
@@ -13848,24 +14055,24 @@ VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy
Delete a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsDestroyRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiVpnL2vpnTerminationsDestroyRequest {
return ApiVpnL2vpnTerminationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsDestroy")
@@ -13940,82 +14147,84 @@ func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminat
}
type ApiVpnL2vpnTerminationsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- assignedObjectId *[]int32
+ ctx context.Context
+ ApiService VpnAPI
+ assignedObjectId *[]int32
assignedObjectIdEmpty *bool
- assignedObjectIdGt *[]int32
- assignedObjectIdGte *[]int32
- assignedObjectIdLt *[]int32
- assignedObjectIdLte *[]int32
- assignedObjectIdN *[]int32
- assignedObjectType *string
- assignedObjectTypeN *string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interface_ *[]string
- interfaceN *[]string
- interfaceId *[]int32
- interfaceIdN *[]int32
- l2vpn *[]string
- l2vpnN *[]string
- l2vpnId *[]int32
- l2vpnIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionId *[]int32
- site *[]string
- siteId *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineN *[]string
- virtualMachineId *[]int32
- virtualMachineIdN *[]int32
- vlan *[]string
- vlanN *[]string
- vlanId *[]int32
- vlanIdN *[]int32
- vlanVid *int32
- vlanVidEmpty *int32
- vlanVidGt *int32
- vlanVidGte *int32
- vlanVidLt *int32
- vlanVidLte *int32
- vlanVidN *int32
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
+ assignedObjectIdGt *[]int32
+ assignedObjectIdGte *[]int32
+ assignedObjectIdLt *[]int32
+ assignedObjectIdLte *[]int32
+ assignedObjectIdN *[]int32
+ assignedObjectType *string
+ assignedObjectTypeN *string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ device *[]*string
+ deviceN *[]*string
+ deviceId *[]int32
+ deviceIdN *[]int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interface_ *[]string
+ interfaceN *[]string
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ l2vpn *[]string
+ l2vpnN *[]string
+ l2vpnId *[]int32
+ l2vpnIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionId *[]int32
+ site *[]string
+ siteId *[]int32
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+ virtualMachine *[]string
+ virtualMachineN *[]string
+ virtualMachineId *[]int32
+ virtualMachineIdN *[]int32
+ vlan *[]string
+ vlanN *[]string
+ vlanId *[]int32
+ vlanIdN *[]int32
+ vlanVid *int32
+ vlanVidEmpty *int32
+ vlanVidGt *int32
+ vlanVidGte *int32
+ vlanVidLt *int32
+ vlanVidLte *int32
+ vlanVidN *int32
+ vminterface *[]string
+ vminterfaceN *[]string
+ vminterfaceId *[]int32
+ vminterfaceIdN *[]int32
}
func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectId(assignedObjectId []int32) ApiVpnL2vpnTerminationsListRequest {
@@ -14304,6 +14513,16 @@ func (r ApiVpnL2vpnTerminationsListRequest) TagN(tagN []string) ApiVpnL2vpnTermi
return r
}
+func (r ApiVpnL2vpnTerminationsListRequest) TagId(tagId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) TagIdN(tagIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnL2vpnTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnL2vpnTerminationsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -14432,24 +14651,25 @@ VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList
Get a list of L2VPN termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnTerminationsListRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsList(ctx context.Context) ApiVpnL2vpnTerminationsListRequest {
return ApiVpnL2vpnTerminationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedL2VPNTerminationList
+//
+// @return PaginatedL2VPNTerminationList
func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedL2VPNTerminationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedL2VPNTerminationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsList")
@@ -14977,6 +15197,28 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -15202,9 +15444,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination
}
type ApiVpnL2vpnTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedL2VPNTerminationRequest *PatchedL2VPNTerminationRequest
}
@@ -15222,26 +15464,27 @@ VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate
Patch a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsPartialUpdateRequest {
return ApiVpnL2vpnTerminationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPNTermination
+//
+// @return L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsPartialUpdate")
@@ -15327,9 +15570,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTe
}
type ApiVpnL2vpnTerminationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnL2vpnTerminationsRetrieveRequest) Execute() (*L2VPNTermination, *http.Response, error) {
@@ -15341,26 +15584,27 @@ VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve
Get a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsRetrieveRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnTerminationsRetrieveRequest {
return ApiVpnL2vpnTerminationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPNTermination
+//
+// @return L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsRetrieve")
@@ -15444,9 +15688,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTermina
}
type ApiVpnL2vpnTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
l2VPNTerminationRequest *L2VPNTerminationRequest
}
@@ -15464,26 +15708,27 @@ VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate
Put a L2VPN termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN termination.
- @return ApiVpnL2vpnTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN termination.
+ @return ApiVpnL2vpnTerminationsUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsUpdateRequest {
return ApiVpnL2vpnTerminationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPNTermination
+//
+// @return L2VPNTermination
func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPNTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPNTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnTerminationsUpdate")
@@ -15572,8 +15817,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminati
}
type ApiVpnL2vpnsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNRequest *[]L2VPNRequest
}
@@ -15591,22 +15836,22 @@ VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy
Delete a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnL2vpnsBulkDestroy(ctx context.Context) ApiVpnL2vpnsBulkDestroyRequest {
return ApiVpnL2vpnsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkDestroy")
@@ -15685,8 +15930,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyReq
}
type ApiVpnL2vpnsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNRequest *[]L2VPNRequest
}
@@ -15704,24 +15949,25 @@ VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate
Patch a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnsBulkPartialUpdateRequest {
return ApiVpnL2vpnsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []L2VPN
+//
+// @return []L2VPN
func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkPartialUpdate")
@@ -15809,8 +16055,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPart
}
type ApiVpnL2vpnsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
l2VPNRequest *[]L2VPNRequest
}
@@ -15828,24 +16074,25 @@ VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate
Put a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnsBulkUpdate(ctx context.Context) ApiVpnL2vpnsBulkUpdateRequest {
return ApiVpnL2vpnsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []L2VPN
+//
+// @return []L2VPN
func (a *VpnAPIService) VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []L2VPN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsBulkUpdate")
@@ -15933,8 +16180,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateReque
}
type ApiVpnL2vpnsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableL2VPNRequest *WritableL2VPNRequest
}
@@ -15952,24 +16199,25 @@ VpnL2vpnsCreate Method for VpnL2vpnsCreate
Post a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsCreateRequest
*/
func (a *VpnAPIService) VpnL2vpnsCreate(ctx context.Context) ApiVpnL2vpnsCreateRequest {
return ApiVpnL2vpnsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return L2VPN
+//
+// @return L2VPN
func (a *VpnAPIService) VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsCreate")
@@ -16057,9 +16305,9 @@ func (a *VpnAPIService) VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2
}
type ApiVpnL2vpnsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnL2vpnsDestroyRequest) Execute() (*http.Response, error) {
@@ -16071,24 +16319,24 @@ VpnL2vpnsDestroy Method for VpnL2vpnsDestroy
Delete a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsDestroyRequest
*/
func (a *VpnAPIService) VpnL2vpnsDestroy(ctx context.Context, id int32) ApiVpnL2vpnsDestroyRequest {
return ApiVpnL2vpnsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsDestroy")
@@ -16163,105 +16411,158 @@ func (a *VpnAPIService) VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*
}
type ApiVpnL2vpnsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- exportTarget *[]string
- exportTargetN *[]string
- exportTargetId *[]int32
- exportTargetIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- identifier *[]int32
- identifierEmpty *bool
- identifierGt *[]int32
- identifierGte *[]int32
- identifierLt *[]int32
- identifierLte *[]int32
- identifierN *[]int32
- importTarget *[]string
- importTargetN *[]string
- importTargetId *[]int32
- importTargetIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VpnAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ 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 *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- type_ *[]string
- typeEmpty *bool
- typeIc *[]string
- typeIe *[]string
- typeIew *[]string
- typeIsw *[]string
- typeN *[]string
- typeNic *[]string
- typeNie *[]string
- typeNiew *[]string
- typeNisw *[]string
- updatedByRequest *string
+ name *[]string
+ 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
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ type_ *[]string
+ typeEmpty *bool
+ typeIc *[]string
+ typeIe *[]string
+ typeIew *[]string
+ typeIsw *[]string
+ typeN *[]string
+ typeNic *[]string
+ typeNie *[]string
+ typeNiew *[]string
+ typeNisw *[]string
+ updatedByRequest *string
+}
+
+// Contact
+func (r ApiVpnL2vpnsListRequest) Contact(contact []int32) ApiVpnL2vpnsListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiVpnL2vpnsListRequest) ContactN(contactN []int32) ApiVpnL2vpnsListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) ContactGroup(contactGroup []string) ApiVpnL2vpnsListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) ContactGroupN(contactGroupN []string) ApiVpnL2vpnsListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiVpnL2vpnsListRequest) ContactRole(contactRole []int32) ApiVpnL2vpnsListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiVpnL2vpnsListRequest) ContactRoleN(contactRoleN []int32) ApiVpnL2vpnsListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
func (r ApiVpnL2vpnsListRequest) Created(created []time.Time) ApiVpnL2vpnsListRequest {
@@ -16651,6 +16952,61 @@ func (r ApiVpnL2vpnsListRequest) SlugNisw(slugNisw []string) ApiVpnL2vpnsListReq
return r
}
+func (r ApiVpnL2vpnsListRequest) Status(status []string) ApiVpnL2vpnsListRequest {
+ r.status = &status
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusEmpty(statusEmpty bool) ApiVpnL2vpnsListRequest {
+ r.statusEmpty = &statusEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusIc(statusIc []string) ApiVpnL2vpnsListRequest {
+ r.statusIc = &statusIc
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusIe(statusIe []string) ApiVpnL2vpnsListRequest {
+ r.statusIe = &statusIe
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusIew(statusIew []string) ApiVpnL2vpnsListRequest {
+ r.statusIew = &statusIew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusIsw(statusIsw []string) ApiVpnL2vpnsListRequest {
+ r.statusIsw = &statusIsw
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusN(statusN []string) ApiVpnL2vpnsListRequest {
+ r.statusN = &statusN
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusNic(statusNic []string) ApiVpnL2vpnsListRequest {
+ r.statusNic = &statusNic
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusNie(statusNie []string) ApiVpnL2vpnsListRequest {
+ r.statusNie = &statusNie
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusNiew(statusNiew []string) ApiVpnL2vpnsListRequest {
+ r.statusNiew = &statusNiew
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) StatusNisw(statusNisw []string) ApiVpnL2vpnsListRequest {
+ r.statusNisw = &statusNisw
+ return r
+}
+
func (r ApiVpnL2vpnsListRequest) Tag(tag []string) ApiVpnL2vpnsListRequest {
r.tag = &tag
return r
@@ -16661,6 +17017,16 @@ func (r ApiVpnL2vpnsListRequest) TagN(tagN []string) ApiVpnL2vpnsListRequest {
return r
}
+func (r ApiVpnL2vpnsListRequest) TagId(tagId []int32) ApiVpnL2vpnsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnL2vpnsListRequest) TagIdN(tagIdN []int32) ApiVpnL2vpnsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiVpnL2vpnsListRequest) Tenant(tenant []string) ApiVpnL2vpnsListRequest {
r.tenant = &tenant
@@ -16774,24 +17140,25 @@ VpnL2vpnsList Method for VpnL2vpnsList
Get a list of L2VPN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnL2vpnsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnL2vpnsListRequest
*/
func (a *VpnAPIService) VpnL2vpnsList(ctx context.Context) ApiVpnL2vpnsListRequest {
return ApiVpnL2vpnsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedL2VPNList
+//
+// @return PaginatedL2VPNList
func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedL2VPNList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedL2VPNList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsList")
@@ -16805,6 +17172,72 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -17542,6 +17975,119 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina
parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi")
}
}
+ if r.status != nil {
+ t := *r.status
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi")
+ }
+ }
+ if r.statusEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "")
+ }
+ if r.statusIc != nil {
+ t := *r.statusIc
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi")
+ }
+ }
+ if r.statusIe != nil {
+ t := *r.statusIe
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi")
+ }
+ }
+ if r.statusIew != nil {
+ t := *r.statusIew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi")
+ }
+ }
+ if r.statusIsw != nil {
+ t := *r.statusIsw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi")
+ }
+ }
+ if r.statusN != nil {
+ t := *r.statusN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi")
+ }
+ }
+ if r.statusNic != nil {
+ t := *r.statusNic
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi")
+ }
+ }
+ if r.statusNie != nil {
+ t := *r.statusNie
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi")
+ }
+ }
+ if r.statusNiew != nil {
+ t := *r.statusNiew
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi")
+ }
+ }
+ if r.statusNisw != nil {
+ t := *r.statusNisw
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi")
+ }
+ }
if r.tag != nil {
t := *r.tag
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -17564,6 +18110,28 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -17837,9 +18405,9 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina
}
type ApiVpnL2vpnsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableL2VPNRequest *PatchedWritableL2VPNRequest
}
@@ -17857,26 +18425,27 @@ VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate
Patch a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnsPartialUpdateRequest {
return ApiVpnL2vpnsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPN
+//
+// @return L2VPN
func (a *VpnAPIService) VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsPartialUpdate")
@@ -17962,9 +18531,9 @@ func (a *VpnAPIService) VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdat
}
type ApiVpnL2vpnsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnL2vpnsRetrieveRequest) Execute() (*L2VPN, *http.Response, error) {
@@ -17976,26 +18545,27 @@ VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve
Get a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsRetrieveRequest
*/
func (a *VpnAPIService) VpnL2vpnsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnsRetrieveRequest {
return ApiVpnL2vpnsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPN
+//
+// @return L2VPN
func (a *VpnAPIService) VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsRetrieve")
@@ -18079,9 +18649,9 @@ func (a *VpnAPIService) VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest)
}
type ApiVpnL2vpnsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableL2VPNRequest *WritableL2VPNRequest
}
@@ -18099,26 +18669,27 @@ VpnL2vpnsUpdate Method for VpnL2vpnsUpdate
Put a L2VPN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this L2VPN.
- @return ApiVpnL2vpnsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this L2VPN.
+ @return ApiVpnL2vpnsUpdateRequest
*/
func (a *VpnAPIService) VpnL2vpnsUpdate(ctx context.Context, id int32) ApiVpnL2vpnsUpdateRequest {
return ApiVpnL2vpnsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return L2VPN
+//
+// @return L2VPN
func (a *VpnAPIService) VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *L2VPN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *L2VPN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnL2vpnsUpdate")
@@ -18207,8 +18778,8 @@ func (a *VpnAPIService) VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2
}
type ApiVpnTunnelGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelGroupRequest *[]TunnelGroupRequest
}
@@ -18226,22 +18797,22 @@ VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy
Delete a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsBulkDestroy(ctx context.Context) ApiVpnTunnelGroupsBulkDestroyRequest {
return ApiVpnTunnelGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkDestroy")
@@ -18320,8 +18891,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBu
}
type ApiVpnTunnelGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelGroupRequest *[]TunnelGroupRequest
}
@@ -18339,24 +18910,25 @@ VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate
Patch a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkPartialUpdateRequest {
return ApiVpnTunnelGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TunnelGroup
+//
+// @return []TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGroupsBulkPartialUpdateRequest) ([]TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TunnelGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkPartialUpdate")
@@ -18444,8 +19016,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGr
}
type ApiVpnTunnelGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelGroupRequest *[]TunnelGroupRequest
}
@@ -18463,24 +19035,25 @@ VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate
Put a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsBulkUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkUpdateRequest {
return ApiVpnTunnelGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TunnelGroup
+//
+// @return []TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBulkUpdateRequest) ([]TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TunnelGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkUpdate")
@@ -18568,8 +19141,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBul
}
type ApiVpnTunnelGroupsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelGroupRequest *TunnelGroupRequest
}
@@ -18587,24 +19160,25 @@ VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate
Post a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsCreateRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsCreate(ctx context.Context) ApiVpnTunnelGroupsCreateRequest {
return ApiVpnTunnelGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return TunnelGroup
+//
+// @return TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateRequest) (*TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsCreate")
@@ -18692,9 +19266,9 @@ func (a *VpnAPIService) VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateR
}
type ApiVpnTunnelGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -18706,24 +19280,24 @@ VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy
Delete a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsDestroy(ctx context.Context, id int32) ApiVpnTunnelGroupsDestroyRequest {
return ApiVpnTunnelGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsDestroy")
@@ -18798,71 +19372,113 @@ func (a *VpnAPIService) VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestro
}
type ApiVpnTunnelGroupsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService VpnAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
+}
+
+// Contact
+func (r ApiVpnTunnelGroupsListRequest) Contact(contact []int32) ApiVpnTunnelGroupsListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiVpnTunnelGroupsListRequest) ContactN(contactN []int32) ApiVpnTunnelGroupsListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) ContactGroup(contactGroup []string) ApiVpnTunnelGroupsListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVpnTunnelGroupsListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiVpnTunnelGroupsListRequest) ContactRole(contactRole []int32) ApiVpnTunnelGroupsListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiVpnTunnelGroupsListRequest) ContactRoleN(contactRoleN []int32) ApiVpnTunnelGroupsListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
func (r ApiVpnTunnelGroupsListRequest) Created(created []time.Time) ApiVpnTunnelGroupsListRequest {
@@ -19179,6 +19795,16 @@ func (r ApiVpnTunnelGroupsListRequest) TagN(tagN []string) ApiVpnTunnelGroupsLis
return r
}
+func (r ApiVpnTunnelGroupsListRequest) TagId(tagId []int32) ApiVpnTunnelGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnTunnelGroupsListRequest) TagIdN(tagIdN []int32) ApiVpnTunnelGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnTunnelGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnTunnelGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -19193,24 +19819,25 @@ VpnTunnelGroupsList Method for VpnTunnelGroupsList
Get a list of tunnel group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelGroupsListRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsList(ctx context.Context) ApiVpnTunnelGroupsListRequest {
return ApiVpnTunnelGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTunnelGroupList
+//
+// @return PaginatedTunnelGroupList
func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListRequest) (*PaginatedTunnelGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTunnelGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsList")
@@ -19224,6 +19851,72 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -19826,6 +20519,28 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -19898,9 +20613,9 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque
}
type ApiVpnTunnelGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedTunnelGroupRequest *PatchedTunnelGroupRequest
}
@@ -19918,26 +20633,27 @@ VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate
Patch a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsPartialUpdateRequest {
return ApiVpnTunnelGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelGroup
+//
+// @return TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroupsPartialUpdateRequest) (*TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsPartialUpdate")
@@ -20023,9 +20739,9 @@ func (a *VpnAPIService) VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroups
}
type ApiVpnTunnelGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelGroupsRetrieveRequest) Execute() (*TunnelGroup, *http.Response, error) {
@@ -20037,26 +20753,27 @@ VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve
Get a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsRetrieveRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsRetrieve(ctx context.Context, id int32) ApiVpnTunnelGroupsRetrieveRequest {
return ApiVpnTunnelGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelGroup
+//
+// @return TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetrieveRequest) (*TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsRetrieve")
@@ -20140,9 +20857,9 @@ func (a *VpnAPIService) VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetri
}
type ApiVpnTunnelGroupsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
tunnelGroupRequest *TunnelGroupRequest
}
@@ -20160,26 +20877,27 @@ VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate
Put a tunnel group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel group.
- @return ApiVpnTunnelGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel group.
+ @return ApiVpnTunnelGroupsUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelGroupsUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsUpdateRequest {
return ApiVpnTunnelGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelGroup
+//
+// @return TunnelGroup
func (a *VpnAPIService) VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateRequest) (*TunnelGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsUpdate")
@@ -20268,8 +20986,8 @@ func (a *VpnAPIService) VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateR
}
type ApiVpnTunnelTerminationsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelTerminationRequest *[]TunnelTerminationRequest
}
@@ -20287,22 +21005,22 @@ VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy
Delete a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroy(ctx context.Context) ApiVpnTunnelTerminationsBulkDestroyRequest {
return ApiVpnTunnelTerminationsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTerminationsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkDestroy")
@@ -20381,8 +21099,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTe
}
type ApiVpnTunnelTerminationsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelTerminationRequest *[]TunnelTerminationRequest
}
@@ -20400,24 +21118,25 @@ VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkParti
Patch a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkPartialUpdateRequest {
return ApiVpnTunnelTerminationsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TunnelTermination
+//
+// @return []TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) ([]TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TunnelTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkPartialUpdate")
@@ -20505,8 +21224,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTu
}
type ApiVpnTunnelTerminationsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelTerminationRequest *[]TunnelTerminationRequest
}
@@ -20524,24 +21243,25 @@ VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate
Put a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkUpdateRequest {
return ApiVpnTunnelTerminationsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []TunnelTermination
+//
+// @return []TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTerminationsBulkUpdateRequest) ([]TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []TunnelTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkUpdate")
@@ -20629,8 +21349,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTer
}
type ApiVpnTunnelTerminationsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableTunnelTerminationRequest *WritableTunnelTerminationRequest
}
@@ -20648,24 +21368,25 @@ VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate
Post a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsCreateRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsCreate(ctx context.Context) ApiVpnTunnelTerminationsCreateRequest {
return ApiVpnTunnelTerminationsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return TunnelTermination
+//
+// @return TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTerminationsCreateRequest) (*TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelTermination
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsCreate")
@@ -20753,9 +21474,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTermina
}
type ApiVpnTunnelTerminationsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelTerminationsDestroyRequest) Execute() (*http.Response, error) {
@@ -20767,24 +21488,24 @@ VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy
Delete a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsDestroy(ctx context.Context, id int32) ApiVpnTunnelTerminationsDestroyRequest {
return ApiVpnTunnelTerminationsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTerminationsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsDestroy")
@@ -20859,72 +21580,74 @@ func (a *VpnAPIService) VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTermin
}
type ApiVpnTunnelTerminationsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interface_ *[]string
- interfaceN *[]string
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- offset *int32
- ordering *string
- outsideIpId *[]int32
- outsideIpIdN *[]int32
- q *string
- role *[]string
- roleEmpty *bool
- roleIc *[]string
- roleIe *[]string
- roleIew *[]string
- roleIsw *[]string
- roleN *[]string
- roleNic *[]string
- roleNie *[]string
- roleNiew *[]string
- roleNisw *[]string
- tag *[]string
- tagN *[]string
- terminationId *[]int32
+ ctx context.Context
+ ApiService VpnAPI
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interface_ *[]string
+ interfaceN *[]string
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ offset *int32
+ ordering *string
+ outsideIpId *[]int32
+ outsideIpIdN *[]int32
+ q *string
+ role *[]string
+ roleEmpty *bool
+ roleIc *[]string
+ roleIe *[]string
+ roleIew *[]string
+ roleIsw *[]string
+ roleN *[]string
+ roleNic *[]string
+ roleNie *[]string
+ roleNiew *[]string
+ roleNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ terminationId *[]int32
terminationIdEmpty *bool
- terminationIdGt *[]int32
- terminationIdGte *[]int32
- terminationIdLt *[]int32
- terminationIdLte *[]int32
- terminationIdN *[]int32
- terminationType *string
- terminationTypeN *string
- tunnel *[]string
- tunnelN *[]string
- tunnelId *[]int32
- tunnelIdN *[]int32
- updatedByRequest *string
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
+ terminationIdGt *[]int32
+ terminationIdGte *[]int32
+ terminationIdLt *[]int32
+ terminationIdLte *[]int32
+ terminationIdN *[]int32
+ terminationType *string
+ terminationTypeN *string
+ tunnel *[]string
+ tunnelN *[]string
+ tunnelId *[]int32
+ tunnelIdN *[]int32
+ updatedByRequest *string
+ vminterface *[]string
+ vminterfaceN *[]string
+ vminterfaceId *[]int32
+ vminterfaceIdN *[]int32
}
func (r ApiVpnTunnelTerminationsListRequest) Created(created []time.Time) ApiVpnTunnelTerminationsListRequest {
@@ -21167,6 +21890,16 @@ func (r ApiVpnTunnelTerminationsListRequest) TagN(tagN []string) ApiVpnTunnelTer
return r
}
+func (r ApiVpnTunnelTerminationsListRequest) TagId(tagId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TagIdN(tagIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiVpnTunnelTerminationsListRequest) TerminationId(terminationId []int32) ApiVpnTunnelTerminationsListRequest {
r.terminationId = &terminationId
return r
@@ -21274,24 +22007,25 @@ VpnTunnelTerminationsList Method for VpnTunnelTerminationsList
Get a list of tunnel termination objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelTerminationsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelTerminationsListRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsList(ctx context.Context) ApiVpnTunnelTerminationsListRequest {
return ApiVpnTunnelTerminationsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTunnelTerminationList
+//
+// @return PaginatedTunnelTerminationList
func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminationsListRequest) (*PaginatedTunnelTerminationList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTunnelTerminationList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelTerminationList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsList")
@@ -21747,6 +22481,28 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.terminationId != nil {
t := *r.terminationId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -21982,9 +22738,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati
}
type ApiVpnTunnelTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableTunnelTerminationRequest *PatchedWritableTunnelTerminationRequest
}
@@ -22002,26 +22758,27 @@ VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate
Patch a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsPartialUpdateRequest {
return ApiVpnTunnelTerminationsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelTermination
+//
+// @return TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnelTerminationsPartialUpdateRequest) (*TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelTermination
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsPartialUpdate")
@@ -22107,9 +22864,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnel
}
type ApiVpnTunnelTerminationsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelTerminationsRetrieveRequest) Execute() (*TunnelTermination, *http.Response, error) {
@@ -22121,26 +22878,27 @@ VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve
Get a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsRetrieveRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsRetrieve(ctx context.Context, id int32) ApiVpnTunnelTerminationsRetrieveRequest {
return ApiVpnTunnelTerminationsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelTermination
+//
+// @return TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTerminationsRetrieveRequest) (*TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelTermination
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsRetrieve")
@@ -22224,9 +22982,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTermi
}
type ApiVpnTunnelTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableTunnelTerminationRequest *WritableTunnelTerminationRequest
}
@@ -22244,26 +23002,27 @@ VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate
Put a tunnel termination object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel termination.
- @return ApiVpnTunnelTerminationsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel termination.
+ @return ApiVpnTunnelTerminationsUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelTerminationsUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsUpdateRequest {
return ApiVpnTunnelTerminationsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return TunnelTermination
+//
+// @return TunnelTermination
func (a *VpnAPIService) VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTerminationsUpdateRequest) (*TunnelTermination, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *TunnelTermination
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TunnelTermination
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsUpdate")
@@ -22352,8 +23111,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTermina
}
type ApiVpnTunnelsBulkDestroyRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelRequest *[]TunnelRequest
}
@@ -22371,22 +23130,22 @@ VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy
Delete a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelsBulkDestroy(ctx context.Context) ApiVpnTunnelsBulkDestroyRequest {
return ApiVpnTunnelsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkDestroy")
@@ -22465,8 +23224,8 @@ func (a *VpnAPIService) VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyR
}
type ApiVpnTunnelsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelRequest *[]TunnelRequest
}
@@ -22484,24 +23243,25 @@ VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate
Patch a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelsBulkPartialUpdateRequest {
return ApiVpnTunnelsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tunnel
+//
+// @return []Tunnel
func (a *VpnAPIService) VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPartialUpdateRequest) ([]Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tunnel
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkPartialUpdate")
@@ -22589,8 +23349,8 @@ func (a *VpnAPIService) VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPa
}
type ApiVpnTunnelsBulkUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
tunnelRequest *[]TunnelRequest
}
@@ -22608,24 +23368,25 @@ VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate
Put a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsBulkUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelsBulkUpdate(ctx context.Context) ApiVpnTunnelsBulkUpdateRequest {
return ApiVpnTunnelsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []Tunnel
+//
+// @return []Tunnel
func (a *VpnAPIService) VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateRequest) ([]Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []Tunnel
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkUpdate")
@@ -22713,8 +23474,8 @@ func (a *VpnAPIService) VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateReq
}
type ApiVpnTunnelsCreateRequest struct {
- ctx context.Context
- ApiService VpnAPI
+ ctx context.Context
+ ApiService VpnAPI
writableTunnelRequest *WritableTunnelRequest
}
@@ -22732,24 +23493,25 @@ VpnTunnelsCreate Method for VpnTunnelsCreate
Post a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsCreateRequest
*/
func (a *VpnAPIService) VpnTunnelsCreate(ctx context.Context) ApiVpnTunnelsCreateRequest {
return ApiVpnTunnelsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return Tunnel
+//
+// @return Tunnel
func (a *VpnAPIService) VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tunnel
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsCreate")
@@ -22837,9 +23599,9 @@ func (a *VpnAPIService) VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*
}
type ApiVpnTunnelsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelsDestroyRequest) Execute() (*http.Response, error) {
@@ -22851,24 +23613,24 @@ VpnTunnelsDestroy Method for VpnTunnelsDestroy
Delete a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsDestroyRequest
*/
func (a *VpnAPIService) VpnTunnelsDestroy(ctx context.Context, id int32) ApiVpnTunnelsDestroyRequest {
return ApiVpnTunnelsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsDestroy")
@@ -22943,105 +23705,147 @@ func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest)
}
type ApiVpnTunnelsListRequest struct {
- ctx context.Context
- ApiService VpnAPI
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- encapsulation *[]string
+ ctx context.Context
+ ApiService VpnAPI
+ contact *[]int32
+ contactN *[]int32
+ contactGroup *[]string
+ contactGroupN *[]string
+ contactRole *[]int32
+ contactRoleN *[]int32
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ encapsulation *[]string
encapsulationEmpty *bool
- encapsulationIc *[]string
- encapsulationIe *[]string
- encapsulationIew *[]string
- encapsulationIsw *[]string
- encapsulationN *[]string
- encapsulationNic *[]string
- encapsulationNie *[]string
- encapsulationNiew *[]string
- encapsulationNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]*int32
- groupIdN *[]*int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- ipsecProfile *[]string
- ipsecProfileN *[]string
- ipsecProfileId *[]*int32
- ipsecProfileIdN *[]*int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- tunnelId *[]int32
- tunnelIdEmpty *bool
- tunnelIdGt *[]int32
- tunnelIdGte *[]int32
- tunnelIdLt *[]int32
- tunnelIdLte *[]int32
- tunnelIdN *[]int32
- updatedByRequest *string
+ encapsulationIc *[]string
+ encapsulationIe *[]string
+ encapsulationIew *[]string
+ encapsulationIsw *[]string
+ encapsulationN *[]string
+ encapsulationNic *[]string
+ encapsulationNie *[]string
+ encapsulationNiew *[]string
+ encapsulationNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]*int32
+ groupIdN *[]*int32
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ ipsecProfile *[]string
+ ipsecProfileN *[]string
+ ipsecProfileId *[]*int32
+ ipsecProfileIdN *[]*int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ modifiedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ q *string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ tunnelId *[]int32
+ tunnelIdEmpty *bool
+ tunnelIdGt *[]int32
+ tunnelIdGte *[]int32
+ tunnelIdLt *[]int32
+ tunnelIdLte *[]int32
+ tunnelIdN *[]int32
+ updatedByRequest *string
+}
+
+// Contact
+func (r ApiVpnTunnelsListRequest) Contact(contact []int32) ApiVpnTunnelsListRequest {
+ r.contact = &contact
+ return r
+}
+
+// Contact
+func (r ApiVpnTunnelsListRequest) ContactN(contactN []int32) ApiVpnTunnelsListRequest {
+ r.contactN = &contactN
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) ContactGroup(contactGroup []string) ApiVpnTunnelsListRequest {
+ r.contactGroup = &contactGroup
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) ContactGroupN(contactGroupN []string) ApiVpnTunnelsListRequest {
+ r.contactGroupN = &contactGroupN
+ return r
+}
+
+// Contact Role
+func (r ApiVpnTunnelsListRequest) ContactRole(contactRole []int32) ApiVpnTunnelsListRequest {
+ r.contactRole = &contactRole
+ return r
+}
+
+// Contact Role
+func (r ApiVpnTunnelsListRequest) ContactRoleN(contactRoleN []int32) ApiVpnTunnelsListRequest {
+ r.contactRoleN = &contactRoleN
+ return r
}
func (r ApiVpnTunnelsListRequest) Created(created []time.Time) ApiVpnTunnelsListRequest {
@@ -23461,6 +24265,16 @@ func (r ApiVpnTunnelsListRequest) TagN(tagN []string) ApiVpnTunnelsListRequest {
return r
}
+func (r ApiVpnTunnelsListRequest) TagId(tagId []int32) ApiVpnTunnelsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiVpnTunnelsListRequest) TagIdN(tagIdN []int32) ApiVpnTunnelsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiVpnTunnelsListRequest) Tenant(tenant []string) ApiVpnTunnelsListRequest {
r.tenant = &tenant
@@ -23554,24 +24368,25 @@ VpnTunnelsList Method for VpnTunnelsList
Get a list of tunnel objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiVpnTunnelsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiVpnTunnelsListRequest
*/
func (a *VpnAPIService) VpnTunnelsList(ctx context.Context) ApiVpnTunnelsListRequest {
return ApiVpnTunnelsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedTunnelList
+//
+// @return PaginatedTunnelList
func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*PaginatedTunnelList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedTunnelList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedTunnelList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsList")
@@ -23585,6 +24400,72 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.contact != nil {
+ t := *r.contact
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi")
+ }
+ }
+ if r.contactN != nil {
+ t := *r.contactN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi")
+ }
+ }
+ if r.contactGroup != nil {
+ t := *r.contactGroup
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi")
+ }
+ }
+ if r.contactGroupN != nil {
+ t := *r.contactGroupN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi")
+ }
+ }
+ if r.contactRole != nil {
+ t := *r.contactRole
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi")
+ }
+ }
+ if r.contactRoleN != nil {
+ t := *r.contactRoleN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi")
+ }
+ }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -24388,6 +25269,28 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -24617,9 +25520,9 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi
}
type ApiVpnTunnelsPartialUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
patchedWritableTunnelRequest *PatchedWritableTunnelRequest
}
@@ -24637,26 +25540,27 @@ VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate
Patch a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsPartialUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelsPartialUpdateRequest {
return ApiVpnTunnelsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tunnel
+//
+// @return Tunnel
func (a *VpnAPIService) VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpdateRequest) (*Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tunnel
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsPartialUpdate")
@@ -24742,9 +25646,9 @@ func (a *VpnAPIService) VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpd
}
type ApiVpnTunnelsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService VpnAPI
- id int32
+ id int32
}
func (r ApiVpnTunnelsRetrieveRequest) Execute() (*Tunnel, *http.Response, error) {
@@ -24756,26 +25660,27 @@ VpnTunnelsRetrieve Method for VpnTunnelsRetrieve
Get a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsRetrieveRequest
*/
func (a *VpnAPIService) VpnTunnelsRetrieve(ctx context.Context, id int32) ApiVpnTunnelsRetrieveRequest {
return ApiVpnTunnelsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tunnel
+//
+// @return Tunnel
func (a *VpnAPIService) VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest) (*Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tunnel
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsRetrieve")
@@ -24859,9 +25764,9 @@ func (a *VpnAPIService) VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest
}
type ApiVpnTunnelsUpdateRequest struct {
- ctx context.Context
- ApiService VpnAPI
- id int32
+ ctx context.Context
+ ApiService VpnAPI
+ id int32
writableTunnelRequest *WritableTunnelRequest
}
@@ -24879,26 +25784,27 @@ VpnTunnelsUpdate Method for VpnTunnelsUpdate
Put a tunnel object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this tunnel.
- @return ApiVpnTunnelsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this tunnel.
+ @return ApiVpnTunnelsUpdateRequest
*/
func (a *VpnAPIService) VpnTunnelsUpdate(ctx context.Context, id int32) ApiVpnTunnelsUpdateRequest {
return ApiVpnTunnelsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return Tunnel
+//
+// @return Tunnel
func (a *VpnAPIService) VpnTunnelsUpdateExecute(r ApiVpnTunnelsUpdateRequest) (*Tunnel, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *Tunnel
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *Tunnel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsUpdate")
diff --git a/api_wireless.go b/api_wireless.go
index 995f2c17d..8a8a489f2 100644
--- a/api_wireless.go
+++ b/api_wireless.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -16,21 +16,20 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"reflect"
+ "strings"
"time"
)
-
type WirelessAPI interface {
/*
- WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDestroy
+ WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDestroy
- Delete a list of wireless LAN group objects.
+ Delete a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkDestroyRequest
*/
WirelessWirelessLanGroupsBulkDestroy(ctx context.Context) ApiWirelessWirelessLanGroupsBulkDestroyRequest
@@ -38,12 +37,12 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWirelessWirelessLanGroupsBulkDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsBulkPartialUpdate
+ WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsBulkPartialUpdate
- Patch a list of wireless LAN group objects.
+ Patch a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest
*/
WirelessWirelessLanGroupsBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest
@@ -52,12 +51,12 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsBulkPartialUpdateExecute(r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) ([]WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpdate
+ WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpdate
- Put a list of wireless LAN group objects.
+ Put a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkUpdateRequest
*/
WirelessWirelessLanGroupsBulkUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkUpdateRequest
@@ -66,12 +65,12 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWirelessWirelessLanGroupsBulkUpdateRequest) ([]WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate
+ WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate
- Post a list of wireless LAN group objects.
+ Post a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsCreateRequest
*/
WirelessWirelessLanGroupsCreate(ctx context.Context) ApiWirelessWirelessLanGroupsCreateRequest
@@ -80,13 +79,13 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsCreateExecute(r ApiWirelessWirelessLanGroupsCreateRequest) (*WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy
+ WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy
- Delete a wireless LAN group object.
+ Delete a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsDestroyRequest
*/
WirelessWirelessLanGroupsDestroy(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsDestroyRequest
@@ -94,12 +93,12 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsDestroyExecute(r ApiWirelessWirelessLanGroupsDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList
+ WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList
- Get a list of wireless LAN group objects.
+ Get a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsListRequest
*/
WirelessWirelessLanGroupsList(ctx context.Context) ApiWirelessWirelessLanGroupsListRequest
@@ -108,13 +107,13 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsListExecute(r ApiWirelessWirelessLanGroupsListRequest) (*PaginatedWirelessLANGroupList, *http.Response, error)
/*
- WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsPartialUpdate
+ WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsPartialUpdate
- Patch a wireless LAN group object.
+ Patch a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsPartialUpdateRequest
*/
WirelessWirelessLanGroupsPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsPartialUpdateRequest
@@ -123,13 +122,13 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsPartialUpdateExecute(r ApiWirelessWirelessLanGroupsPartialUpdateRequest) (*WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve
+ WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve
- Get a wireless LAN group object.
+ Get a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsRetrieveRequest
*/
WirelessWirelessLanGroupsRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsRetrieveRequest
@@ -138,13 +137,13 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsRetrieveExecute(r ApiWirelessWirelessLanGroupsRetrieveRequest) (*WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate
+ WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate
- Put a wireless LAN group object.
+ Put a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsUpdateRequest
*/
WirelessWirelessLanGroupsUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsUpdateRequest
@@ -153,12 +152,12 @@ type WirelessAPI interface {
WirelessWirelessLanGroupsUpdateExecute(r ApiWirelessWirelessLanGroupsUpdateRequest) (*WirelessLANGroup, *http.Response, error)
/*
- WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy
+ WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy
- Delete a list of wireless LAN objects.
+ Delete a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkDestroyRequest
*/
WirelessWirelessLansBulkDestroy(ctx context.Context) ApiWirelessWirelessLansBulkDestroyRequest
@@ -166,12 +165,12 @@ type WirelessAPI interface {
WirelessWirelessLansBulkDestroyExecute(r ApiWirelessWirelessLansBulkDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartialUpdate
+ WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartialUpdate
- Patch a list of wireless LAN objects.
+ Patch a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkPartialUpdateRequest
*/
WirelessWirelessLansBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLansBulkPartialUpdateRequest
@@ -180,12 +179,12 @@ type WirelessAPI interface {
WirelessWirelessLansBulkPartialUpdateExecute(r ApiWirelessWirelessLansBulkPartialUpdateRequest) ([]WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate
+ WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate
- Put a list of wireless LAN objects.
+ Put a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkUpdateRequest
*/
WirelessWirelessLansBulkUpdate(ctx context.Context) ApiWirelessWirelessLansBulkUpdateRequest
@@ -194,12 +193,12 @@ type WirelessAPI interface {
WirelessWirelessLansBulkUpdateExecute(r ApiWirelessWirelessLansBulkUpdateRequest) ([]WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLansCreate Method for WirelessWirelessLansCreate
+ WirelessWirelessLansCreate Method for WirelessWirelessLansCreate
- Post a list of wireless LAN objects.
+ Post a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansCreateRequest
*/
WirelessWirelessLansCreate(ctx context.Context) ApiWirelessWirelessLansCreateRequest
@@ -208,13 +207,13 @@ type WirelessAPI interface {
WirelessWirelessLansCreateExecute(r ApiWirelessWirelessLansCreateRequest) (*WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy
+ WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy
- Delete a wireless LAN object.
+ Delete a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansDestroyRequest
*/
WirelessWirelessLansDestroy(ctx context.Context, id int32) ApiWirelessWirelessLansDestroyRequest
@@ -222,12 +221,12 @@ type WirelessAPI interface {
WirelessWirelessLansDestroyExecute(r ApiWirelessWirelessLansDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLansList Method for WirelessWirelessLansList
+ WirelessWirelessLansList Method for WirelessWirelessLansList
- Get a list of wireless LAN objects.
+ Get a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansListRequest
*/
WirelessWirelessLansList(ctx context.Context) ApiWirelessWirelessLansListRequest
@@ -236,13 +235,13 @@ type WirelessAPI interface {
WirelessWirelessLansListExecute(r ApiWirelessWirelessLansListRequest) (*PaginatedWirelessLANList, *http.Response, error)
/*
- WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate
+ WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate
- Patch a wireless LAN object.
+ Patch a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansPartialUpdateRequest
*/
WirelessWirelessLansPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansPartialUpdateRequest
@@ -251,13 +250,13 @@ type WirelessAPI interface {
WirelessWirelessLansPartialUpdateExecute(r ApiWirelessWirelessLansPartialUpdateRequest) (*WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve
+ WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve
- Get a wireless LAN object.
+ Get a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansRetrieveRequest
*/
WirelessWirelessLansRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLansRetrieveRequest
@@ -266,13 +265,13 @@ type WirelessAPI interface {
WirelessWirelessLansRetrieveExecute(r ApiWirelessWirelessLansRetrieveRequest) (*WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate
+ WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate
- Put a wireless LAN object.
+ Put a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansUpdateRequest
*/
WirelessWirelessLansUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansUpdateRequest
@@ -281,12 +280,12 @@ type WirelessAPI interface {
WirelessWirelessLansUpdateExecute(r ApiWirelessWirelessLansUpdateRequest) (*WirelessLAN, *http.Response, error)
/*
- WirelessWirelessLinksBulkDestroy Method for WirelessWirelessLinksBulkDestroy
+ WirelessWirelessLinksBulkDestroy Method for WirelessWirelessLinksBulkDestroy
- Delete a list of wireless link objects.
+ Delete a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkDestroyRequest
*/
WirelessWirelessLinksBulkDestroy(ctx context.Context) ApiWirelessWirelessLinksBulkDestroyRequest
@@ -294,12 +293,12 @@ type WirelessAPI interface {
WirelessWirelessLinksBulkDestroyExecute(r ApiWirelessWirelessLinksBulkDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLinksBulkPartialUpdate Method for WirelessWirelessLinksBulkPartialUpdate
+ WirelessWirelessLinksBulkPartialUpdate Method for WirelessWirelessLinksBulkPartialUpdate
- Patch a list of wireless link objects.
+ Patch a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkPartialUpdateRequest
*/
WirelessWirelessLinksBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkPartialUpdateRequest
@@ -308,12 +307,12 @@ type WirelessAPI interface {
WirelessWirelessLinksBulkPartialUpdateExecute(r ApiWirelessWirelessLinksBulkPartialUpdateRequest) ([]WirelessLink, *http.Response, error)
/*
- WirelessWirelessLinksBulkUpdate Method for WirelessWirelessLinksBulkUpdate
+ WirelessWirelessLinksBulkUpdate Method for WirelessWirelessLinksBulkUpdate
- Put a list of wireless link objects.
+ Put a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkUpdateRequest
*/
WirelessWirelessLinksBulkUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkUpdateRequest
@@ -322,12 +321,12 @@ type WirelessAPI interface {
WirelessWirelessLinksBulkUpdateExecute(r ApiWirelessWirelessLinksBulkUpdateRequest) ([]WirelessLink, *http.Response, error)
/*
- WirelessWirelessLinksCreate Method for WirelessWirelessLinksCreate
+ WirelessWirelessLinksCreate Method for WirelessWirelessLinksCreate
- Post a list of wireless link objects.
+ Post a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksCreateRequest
*/
WirelessWirelessLinksCreate(ctx context.Context) ApiWirelessWirelessLinksCreateRequest
@@ -336,13 +335,13 @@ type WirelessAPI interface {
WirelessWirelessLinksCreateExecute(r ApiWirelessWirelessLinksCreateRequest) (*WirelessLink, *http.Response, error)
/*
- WirelessWirelessLinksDestroy Method for WirelessWirelessLinksDestroy
+ WirelessWirelessLinksDestroy Method for WirelessWirelessLinksDestroy
- Delete a wireless link object.
+ Delete a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksDestroyRequest
*/
WirelessWirelessLinksDestroy(ctx context.Context, id int32) ApiWirelessWirelessLinksDestroyRequest
@@ -350,12 +349,12 @@ type WirelessAPI interface {
WirelessWirelessLinksDestroyExecute(r ApiWirelessWirelessLinksDestroyRequest) (*http.Response, error)
/*
- WirelessWirelessLinksList Method for WirelessWirelessLinksList
+ WirelessWirelessLinksList Method for WirelessWirelessLinksList
- Get a list of wireless link objects.
+ Get a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksListRequest
*/
WirelessWirelessLinksList(ctx context.Context) ApiWirelessWirelessLinksListRequest
@@ -364,13 +363,13 @@ type WirelessAPI interface {
WirelessWirelessLinksListExecute(r ApiWirelessWirelessLinksListRequest) (*PaginatedWirelessLinkList, *http.Response, error)
/*
- WirelessWirelessLinksPartialUpdate Method for WirelessWirelessLinksPartialUpdate
+ WirelessWirelessLinksPartialUpdate Method for WirelessWirelessLinksPartialUpdate
- Patch a wireless link object.
+ Patch a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksPartialUpdateRequest
*/
WirelessWirelessLinksPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksPartialUpdateRequest
@@ -379,13 +378,13 @@ type WirelessAPI interface {
WirelessWirelessLinksPartialUpdateExecute(r ApiWirelessWirelessLinksPartialUpdateRequest) (*WirelessLink, *http.Response, error)
/*
- WirelessWirelessLinksRetrieve Method for WirelessWirelessLinksRetrieve
+ WirelessWirelessLinksRetrieve Method for WirelessWirelessLinksRetrieve
- Get a wireless link object.
+ Get a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksRetrieveRequest
*/
WirelessWirelessLinksRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLinksRetrieveRequest
@@ -394,13 +393,13 @@ type WirelessAPI interface {
WirelessWirelessLinksRetrieveExecute(r ApiWirelessWirelessLinksRetrieveRequest) (*WirelessLink, *http.Response, error)
/*
- WirelessWirelessLinksUpdate Method for WirelessWirelessLinksUpdate
+ WirelessWirelessLinksUpdate Method for WirelessWirelessLinksUpdate
- Put a wireless link object.
+ Put a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksUpdateRequest
*/
WirelessWirelessLinksUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksUpdateRequest
@@ -413,8 +412,8 @@ type WirelessAPI interface {
type WirelessAPIService service
type ApiWirelessWirelessLanGroupsBulkDestroyRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANGroupRequest *[]WirelessLANGroupRequest
}
@@ -432,22 +431,22 @@ WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDes
Delete a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroy(ctx context.Context) ApiWirelessWirelessLanGroupsBulkDestroyRequest {
return ApiWirelessWirelessLanGroupsBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWirelessWirelessLanGroupsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkDestroy")
@@ -526,8 +525,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWi
}
type ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANGroupRequest *[]WirelessLANGroupRequest
}
@@ -545,24 +544,25 @@ WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsB
Patch a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest {
return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLANGroup
+//
+// @return []WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) ([]WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLANGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkPartialUpdate")
@@ -650,8 +650,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r
}
type ApiWirelessWirelessLanGroupsBulkUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANGroupRequest *[]WirelessLANGroupRequest
}
@@ -669,24 +669,25 @@ WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpda
Put a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsBulkUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkUpdateRequest {
return ApiWirelessWirelessLanGroupsBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLANGroup
+//
+// @return []WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWirelessWirelessLanGroupsBulkUpdateRequest) ([]WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLANGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkUpdate")
@@ -774,8 +775,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWir
}
type ApiWirelessWirelessLanGroupsCreateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest
}
@@ -793,24 +794,25 @@ WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate
Post a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsCreateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsCreate(ctx context.Context) ApiWirelessWirelessLanGroupsCreateRequest {
return ApiWirelessWirelessLanGroupsCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return WirelessLANGroup
+//
+// @return WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsCreateExecute(r ApiWirelessWirelessLanGroupsCreateRequest) (*WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLANGroup
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsCreate")
@@ -898,9 +900,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsCreateExecute(r ApiWireles
}
type ApiWirelessWirelessLanGroupsDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLanGroupsDestroyRequest) Execute() (*http.Response, error) {
@@ -912,24 +914,24 @@ WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy
Delete a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroy(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsDestroyRequest {
return ApiWirelessWirelessLanGroupsDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirelessWirelessLanGroupsDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsDestroy")
@@ -1004,79 +1006,81 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele
}
type ApiWirelessWirelessLanGroupsListRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- ancestor *[]string
- ancestorN *[]string
- ancestorId *[]string
- ancestorIdN *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService WirelessAPI
+ ancestor *[]string
+ ancestorN *[]string
+ ancestorId *[]string
+ ancestorIdN *[]string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- parent *[]string
- parentN *[]string
- parentId *[]*int32
- parentIdN *[]*int32
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- tag *[]string
- tagN *[]string
- updatedByRequest *string
+ name *[]string
+ nameEmpty *bool
+ nameIc *[]string
+ nameIe *[]string
+ nameIew *[]string
+ nameIsw *[]string
+ nameN *[]string
+ nameNic *[]string
+ nameNie *[]string
+ nameNiew *[]string
+ nameNisw *[]string
+ offset *int32
+ ordering *string
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
+ q *string
+ slug *[]string
+ slugEmpty *bool
+ slugIc *[]string
+ slugIe *[]string
+ slugIew *[]string
+ slugIsw *[]string
+ slugN *[]string
+ slugNic *[]string
+ slugNie *[]string
+ slugNiew *[]string
+ slugNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ updatedByRequest *string
}
func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest {
@@ -1433,6 +1437,16 @@ func (r ApiWirelessWirelessLanGroupsListRequest) TagN(tagN []string) ApiWireless
return r
}
+func (r ApiWirelessWirelessLanGroupsListRequest) TagId(tagId []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiWirelessWirelessLanGroupsListRequest) TagIdN(tagIdN []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
func (r ApiWirelessWirelessLanGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiWirelessWirelessLanGroupsListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -1447,24 +1461,25 @@ WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList
Get a list of wireless LAN group objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLanGroupsListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLanGroupsListRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsList(ctx context.Context) ApiWirelessWirelessLanGroupsListRequest {
return ApiWirelessWirelessLanGroupsListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedWirelessLANGroupList
+//
+// @return PaginatedWirelessLANGroupList
func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessWirelessLanGroupsListRequest) (*PaginatedWirelessLANGroupList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedWirelessLANGroupList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedWirelessLANGroupList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsList")
@@ -2168,6 +2183,28 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "")
}
@@ -2240,9 +2277,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW
}
type ApiWirelessWirelessLanGroupsPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
patchedWritableWirelessLANGroupRequest *PatchedWritableWirelessLANGroupRequest
}
@@ -2260,26 +2297,27 @@ WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsParti
Patch a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsPartialUpdateRequest {
return ApiWirelessWirelessLanGroupsPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLANGroup
+//
+// @return WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdateExecute(r ApiWirelessWirelessLanGroupsPartialUpdateRequest) (*WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLANGroup
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsPartialUpdate")
@@ -2365,9 +2403,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdateExecute(r Api
}
type ApiWirelessWirelessLanGroupsRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLanGroupsRetrieveRequest) Execute() (*WirelessLANGroup, *http.Response, error) {
@@ -2379,26 +2417,27 @@ WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve
Get a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsRetrieveRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsRetrieveRequest {
return ApiWirelessWirelessLanGroupsRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLANGroup
+//
+// @return WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirelessWirelessLanGroupsRetrieveRequest) (*WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLANGroup
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsRetrieve")
@@ -2482,9 +2521,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirel
}
type ApiWirelessWirelessLanGroupsUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest
}
@@ -2502,26 +2541,27 @@ WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate
Put a wireless LAN group object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN group.
- @return ApiWirelessWirelessLanGroupsUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN group.
+ @return ApiWirelessWirelessLanGroupsUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsUpdateRequest {
return ApiWirelessWirelessLanGroupsUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLANGroup
+//
+// @return WirelessLANGroup
func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdateExecute(r ApiWirelessWirelessLanGroupsUpdateRequest) (*WirelessLANGroup, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLANGroup
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLANGroup
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsUpdate")
@@ -2610,8 +2650,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdateExecute(r ApiWireles
}
type ApiWirelessWirelessLansBulkDestroyRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANRequest *[]WirelessLANRequest
}
@@ -2629,22 +2669,22 @@ WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy
Delete a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansBulkDestroy(ctx context.Context) ApiWirelessWirelessLansBulkDestroyRequest {
return ApiWirelessWirelessLansBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLansBulkDestroyExecute(r ApiWirelessWirelessLansBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkDestroy")
@@ -2723,8 +2763,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkDestroyExecute(r ApiWireles
}
type ApiWirelessWirelessLansBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANRequest *[]WirelessLANRequest
}
@@ -2742,24 +2782,25 @@ WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartial
Patch a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLansBulkPartialUpdateRequest {
return ApiWirelessWirelessLansBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLAN
+//
+// @return []WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiWirelessWirelessLansBulkPartialUpdateRequest) ([]WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLAN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkPartialUpdate")
@@ -2847,8 +2888,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiW
}
type ApiWirelessWirelessLansBulkUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLANRequest *[]WirelessLANRequest
}
@@ -2866,24 +2907,25 @@ WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate
Put a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansBulkUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansBulkUpdate(ctx context.Context) ApiWirelessWirelessLansBulkUpdateRequest {
return ApiWirelessWirelessLansBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLAN
+//
+// @return []WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansBulkUpdateExecute(r ApiWirelessWirelessLansBulkUpdateRequest) ([]WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLAN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkUpdate")
@@ -2971,8 +3013,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkUpdateExecute(r ApiWireless
}
type ApiWirelessWirelessLansCreateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
writableWirelessLANRequest *WritableWirelessLANRequest
}
@@ -2990,24 +3032,25 @@ WirelessWirelessLansCreate Method for WirelessWirelessLansCreate
Post a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansCreateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansCreate(ctx context.Context) ApiWirelessWirelessLansCreateRequest {
return ApiWirelessWirelessLansCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return WirelessLAN
+//
+// @return WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansCreateExecute(r ApiWirelessWirelessLansCreateRequest) (*WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLAN
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansCreate")
@@ -3095,9 +3138,9 @@ func (a *WirelessAPIService) WirelessWirelessLansCreateExecute(r ApiWirelessWire
}
type ApiWirelessWirelessLansDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLansDestroyRequest) Execute() (*http.Response, error) {
@@ -3109,24 +3152,24 @@ WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy
Delete a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansDestroy(ctx context.Context, id int32) ApiWirelessWirelessLansDestroyRequest {
return ApiWirelessWirelessLansDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLansDestroyExecute(r ApiWirelessWirelessLansDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansDestroy")
@@ -3201,145 +3244,147 @@ func (a *WirelessAPIService) WirelessWirelessLansDestroyExecute(r ApiWirelessWir
}
type ApiWirelessWirelessLansListRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- authCipher *[]*string
- authCipherEmpty *bool
- authCipherIc *[]*string
- authCipherIe *[]*string
- authCipherIew *[]*string
- authCipherIsw *[]*string
- authCipherN *[]*string
- authCipherNic *[]*string
- authCipherNie *[]*string
- authCipherNiew *[]*string
- authCipherNisw *[]*string
- authPsk *[]string
- authPskEmpty *bool
- authPskIc *[]string
- authPskIe *[]string
- authPskIew *[]string
- authPskIsw *[]string
- authPskN *[]string
- authPskNic *[]string
- authPskNie *[]string
- authPskNiew *[]string
- authPskNisw *[]string
- authType *[]*string
- authTypeEmpty *bool
- authTypeIc *[]*string
- authTypeIe *[]*string
- authTypeIew *[]*string
- authTypeIsw *[]*string
- authTypeN *[]*string
- authTypeNic *[]*string
- authTypeNie *[]*string
- authTypeNiew *[]*string
- authTypeNisw *[]*string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- group *[]string
- groupN *[]string
- groupId *[]string
- groupIdN *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceId *[]int32
- interfaceIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]string
- locationIdN *[]string
+ ctx context.Context
+ ApiService WirelessAPI
+ authCipher *[]*string
+ authCipherEmpty *bool
+ authCipherIc *[]*string
+ authCipherIe *[]*string
+ authCipherIew *[]*string
+ authCipherIsw *[]*string
+ authCipherN *[]*string
+ authCipherNic *[]*string
+ authCipherNie *[]*string
+ authCipherNiew *[]*string
+ authCipherNisw *[]*string
+ authPsk *[]string
+ authPskEmpty *bool
+ authPskIc *[]string
+ authPskIe *[]string
+ authPskIew *[]string
+ authPskIsw *[]string
+ authPskN *[]string
+ authPskNic *[]string
+ authPskNie *[]string
+ authPskNiew *[]string
+ authPskNisw *[]string
+ authType *[]*string
+ authTypeEmpty *bool
+ authTypeIc *[]*string
+ authTypeIe *[]*string
+ authTypeIew *[]*string
+ authTypeIsw *[]*string
+ authTypeN *[]*string
+ authTypeNic *[]*string
+ authTypeNie *[]*string
+ authTypeNiew *[]*string
+ authTypeNisw *[]*string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ group *[]string
+ groupN *[]string
+ groupId *[]string
+ groupIdN *[]string
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceId *[]int32
+ interfaceIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
+ location *[]string
+ locationN *[]string
+ locationId *[]string
+ locationIdN *[]string
modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- region *[]string
- regionN *[]string
- regionId *[]string
- regionIdN *[]string
- scopeId *[]int32
- scopeIdEmpty *bool
- scopeIdGt *[]int32
- scopeIdGte *[]int32
- scopeIdLt *[]int32
- scopeIdLte *[]int32
- scopeIdN *[]int32
- scopeType *string
- scopeTypeN *string
- site *[]string
- siteN *[]string
- siteGroup *[]string
- siteGroupN *[]string
- siteGroupId *[]string
- siteGroupIdN *[]string
- siteId *[]int32
- siteIdN *[]int32
- ssid *[]string
- ssidEmpty *bool
- ssidIc *[]string
- ssidIe *[]string
- ssidIew *[]string
- ssidIsw *[]string
- ssidN *[]string
- ssidNic *[]string
- ssidNie *[]string
- ssidNiew *[]string
- ssidNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vlanId *[]*int32
- vlanIdN *[]*int32
+ offset *int32
+ ordering *string
+ q *string
+ region *[]string
+ regionN *[]string
+ regionId *[]string
+ regionIdN *[]string
+ scopeId *[]int32
+ scopeIdEmpty *bool
+ scopeIdGt *[]int32
+ scopeIdGte *[]int32
+ scopeIdLt *[]int32
+ scopeIdLte *[]int32
+ scopeIdN *[]int32
+ scopeType *string
+ scopeTypeN *string
+ site *[]string
+ siteN *[]string
+ siteGroup *[]string
+ siteGroupN *[]string
+ siteGroupId *[]string
+ siteGroupIdN *[]string
+ siteId *[]int32
+ siteIdN *[]int32
+ ssid *[]string
+ ssidEmpty *bool
+ ssidIc *[]string
+ ssidIe *[]string
+ ssidIew *[]string
+ ssidIsw *[]string
+ ssidN *[]string
+ ssidNic *[]string
+ ssidNie *[]string
+ ssidNiew *[]string
+ ssidNisw *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
+ vlanId *[]*int32
+ vlanIdN *[]*int32
}
func (r ApiWirelessWirelessLansListRequest) AuthCipher(authCipher []*string) ApiWirelessWirelessLansListRequest {
@@ -3980,6 +4025,16 @@ func (r ApiWirelessWirelessLansListRequest) TagN(tagN []string) ApiWirelessWirel
return r
}
+func (r ApiWirelessWirelessLansListRequest) TagId(tagId []int32) ApiWirelessWirelessLansListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiWirelessWirelessLansListRequest) TagIdN(tagIdN []int32) ApiWirelessWirelessLansListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiWirelessWirelessLansListRequest) Tenant(tenant []string) ApiWirelessWirelessLansListRequest {
r.tenant = &tenant
@@ -4048,24 +4103,25 @@ WirelessWirelessLansList Method for WirelessWirelessLansList
Get a list of wireless LAN objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLansListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLansListRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansList(ctx context.Context) ApiWirelessWirelessLansListRequest {
return ApiWirelessWirelessLansListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedWirelessLANList
+//
+// @return PaginatedWirelessLANList
func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirelessLansListRequest) (*PaginatedWirelessLANList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedWirelessLANList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedWirelessLANList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansList")
@@ -5337,6 +5393,28 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5519,9 +5597,9 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele
}
type ApiWirelessWirelessLansPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
patchedWritableWirelessLANRequest *PatchedWritableWirelessLANRequest
}
@@ -5539,26 +5617,27 @@ WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate
Patch a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansPartialUpdateRequest {
return ApiWirelessWirelessLansPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLAN
+//
+// @return WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansPartialUpdateExecute(r ApiWirelessWirelessLansPartialUpdateRequest) (*WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLAN
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansPartialUpdate")
@@ -5644,9 +5723,9 @@ func (a *WirelessAPIService) WirelessWirelessLansPartialUpdateExecute(r ApiWirel
}
type ApiWirelessWirelessLansRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLansRetrieveRequest) Execute() (*WirelessLAN, *http.Response, error) {
@@ -5658,26 +5737,27 @@ WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve
Get a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansRetrieveRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLansRetrieveRequest {
return ApiWirelessWirelessLansRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLAN
+//
+// @return WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWirelessLansRetrieveRequest) (*WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLAN
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansRetrieve")
@@ -5761,9 +5841,9 @@ func (a *WirelessAPIService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWi
}
type ApiWirelessWirelessLansUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
writableWirelessLANRequest *WritableWirelessLANRequest
}
@@ -5781,26 +5861,27 @@ WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate
Put a wireless LAN object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless LAN.
- @return ApiWirelessWirelessLansUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless LAN.
+ @return ApiWirelessWirelessLansUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLansUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansUpdateRequest {
return ApiWirelessWirelessLansUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLAN
+//
+// @return WirelessLAN
func (a *WirelessAPIService) WirelessWirelessLansUpdateExecute(r ApiWirelessWirelessLansUpdateRequest) (*WirelessLAN, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLAN
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLAN
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansUpdate")
@@ -5889,8 +5970,8 @@ func (a *WirelessAPIService) WirelessWirelessLansUpdateExecute(r ApiWirelessWire
}
type ApiWirelessWirelessLinksBulkDestroyRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLinkRequest *[]WirelessLinkRequest
}
@@ -5908,22 +5989,22 @@ WirelessWirelessLinksBulkDestroy Method for WirelessWirelessLinksBulkDestroy
Delete a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroy(ctx context.Context) ApiWirelessWirelessLinksBulkDestroyRequest {
return ApiWirelessWirelessLinksBulkDestroyRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirelessWirelessLinksBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkDestroy")
@@ -6002,8 +6083,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirele
}
type ApiWirelessWirelessLinksBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLinkRequest *[]WirelessLinkRequest
}
@@ -6021,24 +6102,25 @@ WirelessWirelessLinksBulkPartialUpdate Method for WirelessWirelessLinksBulkParti
Patch a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkPartialUpdateRequest {
return ApiWirelessWirelessLinksBulkPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLink
+//
+// @return []WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdateExecute(r ApiWirelessWirelessLinksBulkPartialUpdateRequest) ([]WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLink
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkPartialUpdate")
@@ -6126,8 +6208,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdateExecute(r Api
}
type ApiWirelessWirelessLinksBulkUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
wirelessLinkRequest *[]WirelessLinkRequest
}
@@ -6145,24 +6227,25 @@ WirelessWirelessLinksBulkUpdate Method for WirelessWirelessLinksBulkUpdate
Put a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksBulkUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksBulkUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkUpdateRequest {
return ApiWirelessWirelessLinksBulkUpdateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return []WirelessLink
+//
+// @return []WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdateExecute(r ApiWirelessWirelessLinksBulkUpdateRequest) ([]WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue []WirelessLink
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkUpdate")
@@ -6250,8 +6333,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdateExecute(r ApiWireles
}
type ApiWirelessWirelessLinksCreateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
+ ctx context.Context
+ ApiService WirelessAPI
writableWirelessLinkRequest *WritableWirelessLinkRequest
}
@@ -6269,24 +6352,25 @@ WirelessWirelessLinksCreate Method for WirelessWirelessLinksCreate
Post a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksCreateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksCreateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksCreate(ctx context.Context) ApiWirelessWirelessLinksCreateRequest {
return ApiWirelessWirelessLinksCreateRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return WirelessLink
+//
+// @return WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksCreateExecute(r ApiWirelessWirelessLinksCreateRequest) (*WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPost
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLink
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksCreate")
@@ -6374,9 +6458,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksCreateExecute(r ApiWirelessWir
}
type ApiWirelessWirelessLinksDestroyRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLinksDestroyRequest) Execute() (*http.Response, error) {
@@ -6388,24 +6472,24 @@ WirelessWirelessLinksDestroy Method for WirelessWirelessLinksDestroy
Delete a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksDestroyRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksDestroyRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksDestroy(ctx context.Context, id int32) ApiWirelessWirelessLinksDestroyRequest {
return ApiWirelessWirelessLinksDestroyRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
func (a *WirelessAPIService) WirelessWirelessLinksDestroyExecute(r ApiWirelessWirelessLinksDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody interface{}
+ formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksDestroy")
@@ -6480,124 +6564,126 @@ func (a *WirelessAPIService) WirelessWirelessLinksDestroyExecute(r ApiWirelessWi
}
type ApiWirelessWirelessLinksListRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- authCipher *[]*string
- authCipherEmpty *bool
- authCipherIc *[]*string
- authCipherIe *[]*string
- authCipherIew *[]*string
- authCipherIsw *[]*string
- authCipherN *[]*string
- authCipherNic *[]*string
- authCipherNie *[]*string
- authCipherNiew *[]*string
- authCipherNisw *[]*string
- authPsk *[]string
- authPskEmpty *bool
- authPskIc *[]string
- authPskIe *[]string
- authPskIew *[]string
- authPskIsw *[]string
- authPskN *[]string
- authPskNic *[]string
- authPskNie *[]string
- authPskNiew *[]string
- authPskNisw *[]string
- authType *[]*string
- authTypeEmpty *bool
- authTypeIc *[]*string
- authTypeIe *[]*string
- authTypeIew *[]*string
- authTypeIsw *[]*string
- authTypeN *[]*string
- authTypeNic *[]*string
- authTypeNie *[]*string
- authTypeNiew *[]*string
- authTypeNisw *[]*string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- distance *[]float64
- distanceEmpty *bool
- distanceGt *[]float64
- distanceGte *[]float64
- distanceLt *[]float64
- distanceLte *[]float64
- distanceN *[]float64
- distanceUnit *CircuitsCircuitsListDistanceUnitParameter
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaceAId *[]int32
- interfaceAIdN *[]int32
- interfaceBId *[]int32
- interfaceBIdN *[]int32
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
+ ctx context.Context
+ ApiService WirelessAPI
+ authCipher *[]*string
+ authCipherEmpty *bool
+ authCipherIc *[]*string
+ authCipherIe *[]*string
+ authCipherIew *[]*string
+ authCipherIsw *[]*string
+ authCipherN *[]*string
+ authCipherNic *[]*string
+ authCipherNie *[]*string
+ authCipherNiew *[]*string
+ authCipherNisw *[]*string
+ authPsk *[]string
+ authPskEmpty *bool
+ authPskIc *[]string
+ authPskIe *[]string
+ authPskIew *[]string
+ authPskIsw *[]string
+ authPskN *[]string
+ authPskNic *[]string
+ authPskNie *[]string
+ authPskNiew *[]string
+ authPskNisw *[]string
+ authType *[]*string
+ authTypeEmpty *bool
+ authTypeIc *[]*string
+ authTypeIe *[]*string
+ authTypeIew *[]*string
+ authTypeIsw *[]*string
+ authTypeN *[]*string
+ authTypeNic *[]*string
+ authTypeNie *[]*string
+ authTypeNiew *[]*string
+ authTypeNisw *[]*string
+ created *[]time.Time
+ createdEmpty *[]time.Time
+ createdGt *[]time.Time
+ createdGte *[]time.Time
+ createdLt *[]time.Time
+ createdLte *[]time.Time
+ createdN *[]time.Time
+ createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
+ distance *[]float64
+ distanceEmpty *bool
+ distanceGt *[]float64
+ distanceGte *[]float64
+ distanceLt *[]float64
+ distanceLte *[]float64
+ distanceN *[]float64
+ distanceUnit *CircuitsCircuitsListDistanceUnitParameter
+ id *[]int32
+ idEmpty *bool
+ idGt *[]int32
+ idGte *[]int32
+ idLt *[]int32
+ idLte *[]int32
+ idN *[]int32
+ interfaceAId *[]int32
+ interfaceAIdN *[]int32
+ interfaceBId *[]int32
+ interfaceBIdN *[]int32
+ lastUpdated *[]time.Time
+ lastUpdatedEmpty *[]time.Time
+ lastUpdatedGt *[]time.Time
+ lastUpdatedGte *[]time.Time
+ lastUpdatedLt *[]time.Time
+ lastUpdatedLte *[]time.Time
+ lastUpdatedN *[]time.Time
+ limit *int32
modifiedByRequest *string
- offset *int32
- ordering *string
- q *string
- ssid *[]string
- ssidEmpty *bool
- ssidIc *[]string
- ssidIe *[]string
- ssidIew *[]string
- ssidIsw *[]string
- ssidN *[]string
- ssidNic *[]string
- ssidNie *[]string
- ssidNiew *[]string
- ssidNisw *[]string
- status *[]string
- statusEmpty *bool
- statusIc *[]string
- statusIe *[]string
- statusIew *[]string
- statusIsw *[]string
- statusN *[]string
- statusNic *[]string
- statusNie *[]string
- statusNiew *[]string
- statusNisw *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]string
- tenantGroupN *[]string
- tenantGroupId *[]string
- tenantGroupIdN *[]string
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
+ offset *int32
+ ordering *string
+ q *string
+ ssid *[]string
+ ssidEmpty *bool
+ ssidIc *[]string
+ ssidIe *[]string
+ ssidIew *[]string
+ ssidIsw *[]string
+ ssidN *[]string
+ ssidNic *[]string
+ ssidNie *[]string
+ ssidNiew *[]string
+ ssidNisw *[]string
+ status *[]string
+ statusEmpty *bool
+ statusIc *[]string
+ statusIe *[]string
+ statusIew *[]string
+ statusIsw *[]string
+ statusN *[]string
+ statusNic *[]string
+ statusNie *[]string
+ statusNiew *[]string
+ statusNisw *[]string
+ tag *[]string
+ tagN *[]string
+ tagId *[]int32
+ tagIdN *[]int32
+ tenant *[]string
+ tenantN *[]string
+ tenantGroup *[]string
+ tenantGroupN *[]string
+ tenantGroupId *[]string
+ tenantGroupIdN *[]string
+ tenantId *[]*int32
+ tenantIdN *[]*int32
+ updatedByRequest *string
}
func (r ApiWirelessWirelessLinksListRequest) AuthCipher(authCipher []*string) ApiWirelessWirelessLinksListRequest {
@@ -7140,6 +7226,16 @@ func (r ApiWirelessWirelessLinksListRequest) TagN(tagN []string) ApiWirelessWire
return r
}
+func (r ApiWirelessWirelessLinksListRequest) TagId(tagId []int32) ApiWirelessWirelessLinksListRequest {
+ r.tagId = &tagId
+ return r
+}
+
+func (r ApiWirelessWirelessLinksListRequest) TagIdN(tagIdN []int32) ApiWirelessWirelessLinksListRequest {
+ r.tagIdN = &tagIdN
+ return r
+}
+
// Tenant (slug)
func (r ApiWirelessWirelessLinksListRequest) Tenant(tenant []string) ApiWirelessWirelessLinksListRequest {
r.tenant = &tenant
@@ -7198,24 +7294,25 @@ WirelessWirelessLinksList Method for WirelessWirelessLinksList
Get a list of wireless link objects.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiWirelessWirelessLinksListRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiWirelessWirelessLinksListRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksList(ctx context.Context) ApiWirelessWirelessLinksListRequest {
return ApiWirelessWirelessLinksListRequest{
ApiService: a,
- ctx: ctx,
+ ctx: ctx,
}
}
// Execute executes the request
-// @return PaginatedWirelessLinkList
+//
+// @return PaginatedWirelessLinkList
func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirelessLinksListRequest) (*PaginatedWirelessLinkList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedWirelessLinkList
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedWirelessLinkList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksList")
@@ -8286,6 +8383,28 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi")
}
}
+ if r.tagId != nil {
+ t := *r.tagId
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "multi")
+ }
+ }
+ if r.tagIdN != nil {
+ t := *r.tagIdN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "form", "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "multi")
+ }
+ }
if r.tenant != nil {
t := *r.tenant
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8446,9 +8565,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel
}
type ApiWirelessWirelessLinksPartialUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
patchedWritableWirelessLinkRequest *PatchedWritableWirelessLinkRequest
}
@@ -8466,26 +8585,27 @@ WirelessWirelessLinksPartialUpdate Method for WirelessWirelessLinksPartialUpdate
Patch a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksPartialUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksPartialUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksPartialUpdateRequest {
return ApiWirelessWirelessLinksPartialUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLink
+//
+// @return WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdateExecute(r ApiWirelessWirelessLinksPartialUpdateRequest) (*WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLink
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksPartialUpdate")
@@ -8571,9 +8691,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdateExecute(r ApiWire
}
type ApiWirelessWirelessLinksRetrieveRequest struct {
- ctx context.Context
+ ctx context.Context
ApiService WirelessAPI
- id int32
+ id int32
}
func (r ApiWirelessWirelessLinksRetrieveRequest) Execute() (*WirelessLink, *http.Response, error) {
@@ -8585,26 +8705,27 @@ WirelessWirelessLinksRetrieve Method for WirelessWirelessLinksRetrieve
Get a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksRetrieveRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksRetrieveRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLinksRetrieveRequest {
return ApiWirelessWirelessLinksRetrieveRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLink
+//
+// @return WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessWirelessLinksRetrieveRequest) (*WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLink
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksRetrieve")
@@ -8688,9 +8809,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessW
}
type ApiWirelessWirelessLinksUpdateRequest struct {
- ctx context.Context
- ApiService WirelessAPI
- id int32
+ ctx context.Context
+ ApiService WirelessAPI
+ id int32
writableWirelessLinkRequest *WritableWirelessLinkRequest
}
@@ -8708,26 +8829,27 @@ WirelessWirelessLinksUpdate Method for WirelessWirelessLinksUpdate
Put a wireless link object.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this wireless link.
- @return ApiWirelessWirelessLinksUpdateRequest
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this wireless link.
+ @return ApiWirelessWirelessLinksUpdateRequest
*/
func (a *WirelessAPIService) WirelessWirelessLinksUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksUpdateRequest {
return ApiWirelessWirelessLinksUpdateRequest{
ApiService: a,
- ctx: ctx,
- id: id,
+ ctx: ctx,
+ id: id,
}
}
// Execute executes the request
-// @return WirelessLink
+//
+// @return WirelessLink
func (a *WirelessAPIService) WirelessWirelessLinksUpdateExecute(r ApiWirelessWirelessLinksUpdateRequest) (*WirelessLink, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPut
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *WirelessLink
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *WirelessLink
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksUpdate")
diff --git a/client.go b/client.go
index 0fb996e94..22e429864 100644
--- a/client.go
+++ b/client.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -31,17 +31,16 @@ import (
"strings"
"time"
"unicode/utf8"
-
)
var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
- queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
+ queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
)
-// APIClient manages communication with the NetBox REST API API v4.2.2 (4.2)
+// APIClient manages communication with the NetBox REST API API v4.3.0-Docker-3.3.0 (4.3)
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
@@ -158,15 +157,15 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil
}
-func parameterValueToString( obj interface{}, key string ) string {
+func parameterValueToString(obj interface{}, key string) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
return fmt.Sprintf("%v", obj)
}
- var param,ok = obj.(MappedNullable)
+ var param, ok = obj.(MappedNullable)
if !ok {
return ""
}
- dataMap,err := param.ToMap()
+ dataMap, err := param.ToMap()
if err != nil {
return ""
}
@@ -182,85 +181,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
value = "null"
} else {
switch v.Kind() {
- case reflect.Invalid:
- value = "invalid"
+ case reflect.Invalid:
+ value = "invalid"
- case reflect.Struct:
- if t,ok := obj.(MappedNullable); ok {
- dataMap,err := t.ToMap()
- if err != nil {
- return
- }
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
- return
- }
- if t, ok := obj.(time.Time); ok {
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
- return
- }
- value = v.Type().String() + " value"
- case reflect.Slice:
- var indValue = reflect.ValueOf(obj)
- if indValue == reflect.ValueOf(nil) {
+ case reflect.Struct:
+ if t, ok := obj.(MappedNullable); ok {
+ dataMap, err := t.ToMap()
+ if err != nil {
return
}
- var lenIndValue = indValue.Len()
- for i:=0;i 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRIRRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ASNRangeRequestRir)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ASNRangeRequestRir)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ASNRangeRequestRir) MarshalJSON() ([]byte, error) {
+ if src.BriefRIRRequest != nil {
+ return json.Marshal(&src.BriefRIRRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ASNRangeRequestRir) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRIRRequest != nil {
+ return obj.BriefRIRRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableASNRangeRequestRir struct {
+ value *ASNRangeRequestRir
+ isSet bool
+}
+
+func (v NullableASNRangeRequestRir) Get() *ASNRangeRequestRir {
+ return v.value
+}
+
+func (v *NullableASNRangeRequestRir) Set(val *ASNRangeRequestRir) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableASNRangeRequestRir) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableASNRangeRequestRir) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableASNRangeRequestRir(val *ASNRangeRequestRir) *NullableASNRangeRequestRir {
+ return &NullableASNRangeRequestRir{value: val, isSet: true}
+}
+
+func (v NullableASNRangeRequestRir) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableASNRangeRequestRir) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_asn_range_request_tenant.go b/model_asn_range_request_tenant.go
new file mode 100644
index 000000000..d566b6900
--- /dev/null
+++ b/model_asn_range_request_tenant.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ASNRangeRequestTenant - struct for ASNRangeRequestTenant
+type ASNRangeRequestTenant struct {
+ BriefTenantRequest *BriefTenantRequest
+ Int32 *int32
+}
+
+// BriefTenantRequestAsASNRangeRequestTenant is a convenience function that returns BriefTenantRequest wrapped in ASNRangeRequestTenant
+func BriefTenantRequestAsASNRangeRequestTenant(v *BriefTenantRequest) ASNRangeRequestTenant {
+ return ASNRangeRequestTenant{
+ BriefTenantRequest: v,
+ }
+}
+
+// int32AsASNRangeRequestTenant is a convenience function that returns int32 wrapped in ASNRangeRequestTenant
+func Int32AsASNRangeRequestTenant(v *int32) ASNRangeRequestTenant {
+ return ASNRangeRequestTenant{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ASNRangeRequestTenant) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefTenantRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefTenantRequest)
+ if err == nil {
+ jsonBriefTenantRequest, _ := json.Marshal(dst.BriefTenantRequest)
+ if string(jsonBriefTenantRequest) == "{}" { // empty struct
+ dst.BriefTenantRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefTenantRequest); err != nil {
+ dst.BriefTenantRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefTenantRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefTenantRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ASNRangeRequestTenant)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ASNRangeRequestTenant)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ASNRangeRequestTenant) MarshalJSON() ([]byte, error) {
+ if src.BriefTenantRequest != nil {
+ return json.Marshal(&src.BriefTenantRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ASNRangeRequestTenant) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefTenantRequest != nil {
+ return obj.BriefTenantRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableASNRangeRequestTenant struct {
+ value *ASNRangeRequestTenant
+ isSet bool
+}
+
+func (v NullableASNRangeRequestTenant) Get() *ASNRangeRequestTenant {
+ return v.value
+}
+
+func (v *NullableASNRangeRequestTenant) Set(val *ASNRangeRequestTenant) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableASNRangeRequestTenant) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableASNRangeRequestTenant) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableASNRangeRequestTenant(val *ASNRangeRequestTenant) *NullableASNRangeRequestTenant {
+ return &NullableASNRangeRequestTenant{value: val, isSet: true}
+}
+
+func (v NullableASNRangeRequestTenant) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableASNRangeRequestTenant) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_asn_request.go b/model_asn_request.go
index c6fc2f9fd..420f1470c 100644
--- a/model_asn_request.go
+++ b/model_asn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ var _ MappedNullable = &ASNRequest{}
// ASNRequest Adds support for custom fields and tags.
type ASNRequest struct {
// 16- or 32-bit autonomous system number
- Asn int64 `json:"asn"`
- Rir NullableBriefRIRRequest `json:"rir,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Asn int64 `json:"asn"`
+ Rir NullableASNRequestRir `json:"rir,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,11 +75,10 @@ func (o *ASNRequest) SetAsn(v int64) {
o.Asn = v
}
-
// GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ASNRequest) GetRir() BriefRIRRequest {
+func (o *ASNRequest) GetRir() ASNRequestRir {
if o == nil || IsNil(o.Rir.Get()) {
- var ret BriefRIRRequest
+ var ret ASNRequestRir
return ret
}
return *o.Rir.Get()
@@ -88,7 +87,7 @@ func (o *ASNRequest) GetRir() BriefRIRRequest {
// GetRirOk returns a tuple with the Rir field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) {
+func (o *ASNRequest) GetRirOk() (*ASNRequestRir, bool) {
if o == nil {
return nil, false
}
@@ -104,10 +103,11 @@ func (o *ASNRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field.
-func (o *ASNRequest) SetRir(v BriefRIRRequest) {
+// SetRir gets a reference to the given NullableASNRequestRir and assigns it to the Rir field.
+func (o *ASNRequest) SetRir(v ASNRequestRir) {
o.Rir.Set(&v)
}
+
// SetRirNil sets the value for Rir to be an explicit nil
func (o *ASNRequest) SetRirNil() {
o.Rir.Set(nil)
@@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ASNRequest) GetTenant() BriefTenantRequest {
+func (o *ASNRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *ASNRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -146,10 +146,11 @@ func (o *ASNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *ASNRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *ASNRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *ASNRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -289,7 +290,7 @@ func (o *ASNRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ASNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -335,32 +336,31 @@ func (o *ASNRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -425,5 +425,3 @@ func (v *NullableASNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_asn_request_rir.go b/model_asn_request_rir.go
new file mode 100644
index 000000000..5fa6420a2
--- /dev/null
+++ b/model_asn_request_rir.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ASNRequestRir - struct for ASNRequestRir
+type ASNRequestRir struct {
+ BriefRIRRequest *BriefRIRRequest
+ Int32 *int32
+}
+
+// BriefRIRRequestAsASNRequestRir is a convenience function that returns BriefRIRRequest wrapped in ASNRequestRir
+func BriefRIRRequestAsASNRequestRir(v *BriefRIRRequest) ASNRequestRir {
+ return ASNRequestRir{
+ BriefRIRRequest: v,
+ }
+}
+
+// int32AsASNRequestRir is a convenience function that returns int32 wrapped in ASNRequestRir
+func Int32AsASNRequestRir(v *int32) ASNRequestRir {
+ return ASNRequestRir{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ASNRequestRir) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRIRRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRIRRequest)
+ if err == nil {
+ jsonBriefRIRRequest, _ := json.Marshal(dst.BriefRIRRequest)
+ if string(jsonBriefRIRRequest) == "{}" { // empty struct
+ dst.BriefRIRRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRIRRequest); err != nil {
+ dst.BriefRIRRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRIRRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRIRRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ASNRequestRir)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ASNRequestRir)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ASNRequestRir) MarshalJSON() ([]byte, error) {
+ if src.BriefRIRRequest != nil {
+ return json.Marshal(&src.BriefRIRRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ASNRequestRir) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRIRRequest != nil {
+ return obj.BriefRIRRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableASNRequestRir struct {
+ value *ASNRequestRir
+ isSet bool
+}
+
+func (v NullableASNRequestRir) Get() *ASNRequestRir {
+ return v.value
+}
+
+func (v *NullableASNRequestRir) Set(val *ASNRequestRir) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableASNRequestRir) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableASNRequestRir) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableASNRequestRir(val *ASNRequestRir) *NullableASNRequestRir {
+ return &NullableASNRequestRir{value: val, isSet: true}
+}
+
+func (v NullableASNRequestRir) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableASNRequestRir) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_authentication.go b/model_authentication.go
index d947b1a4b..9b37ef5ae 100644
--- a/model_authentication.go
+++ b/model_authentication.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type Authentication string
// List of Authentication
const (
- AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1"
+ AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1"
AUTHENTICATION_HMAC_SHA256 Authentication = "hmac-sha256"
AUTHENTICATION_HMAC_SHA384 Authentication = "hmac-sha384"
AUTHENTICATION_HMAC_SHA512 Authentication = "hmac-sha512"
- AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5"
- AUTHENTICATION_EMPTY Authentication = ""
+ AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5"
+ AUTHENTICATION_EMPTY Authentication = ""
)
// All allowed values of Authentication enum
@@ -116,4 +116,3 @@ func (v *NullableAuthentication) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go
index 7dc32046d..37c2ceeae 100644
--- a/model_authentication_cipher.go
+++ b/model_authentication_cipher.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type AuthenticationCipher string
// List of Authentication_cipher
const (
- AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto"
- AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip"
- AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes"
+ AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto"
+ AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip"
+ AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes"
AUTHENTICATIONCIPHER_EMPTY AuthenticationCipher = ""
)
@@ -112,4 +112,3 @@ func (v *NullableAuthenticationCipher) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_authentication_type.go b/model_authentication_type.go
index 5ebfeb398..97df3682c 100644
--- a/model_authentication_type.go
+++ b/model_authentication_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type AuthenticationType string
// List of Authentication_type
const (
AUTHENTICATIONTYPE_PLAINTEXT AuthenticationType = "plaintext"
- AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5"
- AUTHENTICATIONTYPE_EMPTY AuthenticationType = ""
+ AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5"
+ AUTHENTICATIONTYPE_EMPTY AuthenticationType = ""
)
// All allowed values of AuthenticationType enum
@@ -110,4 +110,3 @@ func (v *NullableAuthenticationType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go
index fa63dfc10..98fed89dd 100644
--- a/model_authentication_type_1.go
+++ b/model_authentication_type_1.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type AuthenticationType1 string
// List of Authentication_type_1
const (
- AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open"
- AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep"
- AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal"
+ AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open"
+ AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep"
+ AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal"
AUTHENTICATIONTYPE1_WPA_ENTERPRISE AuthenticationType1 = "wpa-enterprise"
- AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = ""
+ AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = ""
)
// All allowed values of AuthenticationType1 enum
@@ -114,4 +114,3 @@ 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 97de497f2..4871d715d 100644
--- a/model_available_asn.go
+++ b/model_available_asn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableASN{}
// AvailableASN Representation of an ASN which does not exist in the database.
type AvailableASN struct {
- Asn int32 `json:"asn"`
- Description *string `json:"description,omitempty"`
+ Asn int32 `json:"asn"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *AvailableASN) SetAsn(v int32) {
o.Asn = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *AvailableASN) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *AvailableASN) SetDescription(v string) {
}
func (o AvailableASN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *AvailableASN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableAvailableASN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_available_ip.go b/model_available_ip.go
index bd5f9c42c..cf2728605 100644
--- a/model_available_ip.go
+++ b/model_available_ip.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &AvailableIP{}
// AvailableIP Representation of an IP address which does not exist in the database.
type AvailableIP struct {
- Family int32 `json:"family"`
- Address string `json:"address"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- Description *string `json:"description,omitempty"`
+ Family int32 `json:"family"`
+ Address string `json:"address"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *AvailableIP) SetFamily(v int32) {
o.Family = v
}
-
// GetAddress returns the Address field value
func (o *AvailableIP) GetAddress() string {
if o == nil {
@@ -97,7 +96,6 @@ func (o *AvailableIP) SetAddress(v string) {
o.Address = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailableIP) GetVrf() BriefVRF {
if o == nil || IsNil(o.Vrf.Get()) {
@@ -130,6 +128,7 @@ func (o *AvailableIP) HasVrf() bool {
func (o *AvailableIP) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *AvailableIP) SetVrfNil() {
o.Vrf.Set(nil)
@@ -173,7 +172,7 @@ func (o *AvailableIP) SetDescription(v string) {
}
func (o AvailableIP) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -209,32 +208,31 @@ func (o *AvailableIP) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -296,5 +294,3 @@ func (v *NullableAvailableIP) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_available_prefix.go b/model_available_prefix.go
index 516dee986..4fb8fcf93 100644
--- a/model_available_prefix.go
+++ b/model_available_prefix.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &AvailablePrefix{}
// AvailablePrefix Representation of a prefix which does not exist in the database.
type AvailablePrefix struct {
- Family int32 `json:"family"`
- Prefix string `json:"prefix"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ Family int32 `json:"family"`
+ Prefix string `json:"prefix"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *AvailablePrefix) SetFamily(v int32) {
o.Family = v
}
-
// GetPrefix returns the Prefix field value
func (o *AvailablePrefix) GetPrefix() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *AvailablePrefix) SetPrefix(v string) {
o.Prefix = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailablePrefix) GetVrf() BriefVRF {
if o == nil || IsNil(o.Vrf.Get()) {
@@ -129,6 +127,7 @@ func (o *AvailablePrefix) HasVrf() bool {
func (o *AvailablePrefix) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *AvailablePrefix) SetVrfNil() {
o.Vrf.Set(nil)
@@ -140,7 +139,7 @@ func (o *AvailablePrefix) UnsetVrf() {
}
func (o AvailablePrefix) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -173,32 +172,31 @@ func (o *AvailablePrefix) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -259,5 +257,3 @@ func (v *NullableAvailablePrefix) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_available_vlan.go b/model_available_vlan.go
index e4220e362..ea06b9b53 100644
--- a/model_available_vlan.go
+++ b/model_available_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{}
// AvailableVLAN Representation of a VLAN which does not exist in the database.
type AvailableVLAN struct {
- Vid int32 `json:"vid"`
- Group NullableBriefVLANGroup `json:"group,omitempty"`
+ Vid int32 `json:"vid"`
+ Group NullableBriefVLANGroup `json:"group,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *AvailableVLAN) SetVid(v int32) {
o.Vid = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AvailableVLAN) GetGroup() BriefVLANGroup {
if o == nil || IsNil(o.Group.Get()) {
@@ -102,6 +101,7 @@ func (o *AvailableVLAN) HasGroup() bool {
func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *AvailableVLAN) SetGroupNil() {
o.Group.Set(nil)
@@ -113,7 +113,7 @@ func (o *AvailableVLAN) UnsetGroup() {
}
func (o AvailableVLAN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -144,32 +144,31 @@ func (o *AvailableVLAN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -229,5 +228,3 @@ func (v *NullableAvailableVLAN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_bookmark.go b/model_bookmark.go
index c318c9005..688753ccf 100644
--- a/model_bookmark.go
+++ b/model_bookmark.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Bookmark type satisfies the MappedNullable interface at compile time
@@ -21,14 +21,14 @@ var _ MappedNullable = &Bookmark{}
// Bookmark Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Bookmark struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Object interface{} `json:"object,omitempty"`
- User BriefUser `json:"user"`
- Created *time.Time `json:"created,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Object interface{} `json:"object,omitempty"`
+ User BriefUser `json:"user"`
+ Created *time.Time `json:"created,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ func (o *Bookmark) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Bookmark) GetUrl() string {
if o == nil {
@@ -106,7 +105,6 @@ func (o *Bookmark) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *Bookmark) GetDisplay() string {
if o == nil {
@@ -131,7 +129,6 @@ func (o *Bookmark) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *Bookmark) GetObjectType() string {
if o == nil {
@@ -156,7 +153,6 @@ func (o *Bookmark) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *Bookmark) GetObjectId() int64 {
if o == nil {
@@ -181,7 +177,6 @@ func (o *Bookmark) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Bookmark) GetObject() interface{} {
if o == nil {
@@ -239,7 +234,6 @@ func (o *Bookmark) SetUser(v BriefUser) {
o.User = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Bookmark) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -273,7 +267,7 @@ func (o *Bookmark) SetCreated(v time.Time) {
}
func (o Bookmark) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -317,32 +311,31 @@ func (o *Bookmark) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -408,5 +401,3 @@ func (v *NullableBookmark) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_bookmark_request.go b/model_bookmark_request.go
index 9a3f001ec..c306eeced 100644
--- a/model_bookmark_request.go
+++ b/model_bookmark_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BookmarkRequest{}
// BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BookmarkRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- User BriefUserRequest `json:"user"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ User BookmarkRequestUser `json:"user"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest {
+func NewBookmarkRequest(objectType string, objectId int64, user BookmarkRequestUser) *BookmarkRequest {
this := BookmarkRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -72,7 +72,6 @@ func (o *BookmarkRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *BookmarkRequest) GetObjectId() int64 {
if o == nil {
@@ -97,11 +96,10 @@ func (o *BookmarkRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetUser returns the User field value
-func (o *BookmarkRequest) GetUser() BriefUserRequest {
+func (o *BookmarkRequest) GetUser() BookmarkRequestUser {
if o == nil {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
@@ -110,7 +108,7 @@ func (o *BookmarkRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *BookmarkRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil {
return nil, false
}
@@ -118,13 +116,12 @@ func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) {
}
// SetUser sets field value
-func (o *BookmarkRequest) SetUser(v BriefUserRequest) {
+func (o *BookmarkRequest) SetUser(v BookmarkRequestUser) {
o.User = v
}
-
func (o BookmarkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -156,32 +153,31 @@ func (o *BookmarkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -242,5 +238,3 @@ func (v *NullableBookmarkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_bookmark_request_user.go b/model_bookmark_request_user.go
new file mode 100644
index 000000000..569a40612
--- /dev/null
+++ b/model_bookmark_request_user.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BookmarkRequestUser - struct for BookmarkRequestUser
+type BookmarkRequestUser struct {
+ BriefUserRequest *BriefUserRequest
+ Int32 *int32
+}
+
+// BriefUserRequestAsBookmarkRequestUser is a convenience function that returns BriefUserRequest wrapped in BookmarkRequestUser
+func BriefUserRequestAsBookmarkRequestUser(v *BriefUserRequest) BookmarkRequestUser {
+ return BookmarkRequestUser{
+ BriefUserRequest: v,
+ }
+}
+
+// int32AsBookmarkRequestUser is a convenience function that returns int32 wrapped in BookmarkRequestUser
+func Int32AsBookmarkRequestUser(v *int32) BookmarkRequestUser {
+ return BookmarkRequestUser{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BookmarkRequestUser) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefUserRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefUserRequest)
+ if err == nil {
+ jsonBriefUserRequest, _ := json.Marshal(dst.BriefUserRequest)
+ if string(jsonBriefUserRequest) == "{}" { // empty struct
+ dst.BriefUserRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefUserRequest); err != nil {
+ dst.BriefUserRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefUserRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefUserRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BookmarkRequestUser)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BookmarkRequestUser)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BookmarkRequestUser) MarshalJSON() ([]byte, error) {
+ if src.BriefUserRequest != nil {
+ return json.Marshal(&src.BriefUserRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BookmarkRequestUser) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefUserRequest != nil {
+ return obj.BriefUserRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBookmarkRequestUser struct {
+ value *BookmarkRequestUser
+ isSet bool
+}
+
+func (v NullableBookmarkRequestUser) Get() *BookmarkRequestUser {
+ return v.value
+}
+
+func (v *NullableBookmarkRequestUser) Set(val *BookmarkRequestUser) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBookmarkRequestUser) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBookmarkRequestUser) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBookmarkRequestUser(val *BookmarkRequestUser) *NullableBookmarkRequestUser {
+ return &NullableBookmarkRequestUser{value: val, isSet: true}
+}
+
+func (v NullableBookmarkRequestUser) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBookmarkRequestUser) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_cable.go b/model_brief_cable.go
index 044bc2b59..68e983b48 100644
--- a/model_brief_cable.go
+++ b/model_brief_cable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefCable{}
// BriefCable Adds support for custom fields and tags.
type BriefCable struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *BriefCable) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCable) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *BriefCable) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCable) GetDisplay() string {
if o == nil {
@@ -124,7 +122,6 @@ func (o *BriefCable) SetDisplay(v string) {
o.Display = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *BriefCable) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -190,7 +187,7 @@ func (o *BriefCable) SetDescription(v string) {
}
func (o BriefCable) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -228,32 +225,31 @@ func (o *BriefCable) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -316,5 +312,3 @@ func (v *NullableBriefCable) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go
index 5dc91012b..a77a655c5 100644
--- a/model_brief_cable_request.go
+++ b/model_brief_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &BriefCableRequest{}
// BriefCableRequest Adds support for custom fields and tags.
type BriefCableRequest struct {
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *BriefCableRequest) SetDescription(v string) {
}
func (o BriefCableRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableBriefCableRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit.go b/model_brief_circuit.go
index 11d8cc115..1cb3d438f 100644
--- a/model_brief_circuit.go
+++ b/model_brief_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefCircuit{}
// BriefCircuit Adds support for custom fields and tags.
type BriefCircuit struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Unique circuit ID
- Cid string `json:"cid"`
- Provider BriefProvider `json:"provider"`
- Description *string `json:"description,omitempty"`
+ Cid string `json:"cid"`
+ Provider BriefProvider `json:"provider"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefCircuit) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCircuit) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefCircuit) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCircuit) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefCircuit) SetDisplay(v string) {
o.Display = v
}
-
// GetCid returns the Cid field value
func (o *BriefCircuit) GetCid() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefCircuit) SetCid(v string) {
o.Cid = v
}
-
// GetProvider returns the Provider field value
func (o *BriefCircuit) GetProvider() BriefProvider {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefCircuit) SetProvider(v BriefProvider) {
o.Provider = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCircuit) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -212,7 +207,7 @@ func (o *BriefCircuit) SetDescription(v string) {
}
func (o BriefCircuit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -251,32 +246,31 @@ func (o *BriefCircuit) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -340,5 +334,3 @@ func (v *NullableBriefCircuit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go
index 8c367e993..1f4acd95b 100644
--- a/model_brief_circuit_group.go
+++ b/model_brief_circuit_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &BriefCircuitGroup{}
// BriefCircuitGroup Adds support for custom fields and tags.
type BriefCircuitGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *BriefCircuitGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCircuitGroup) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *BriefCircuitGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCircuitGroup) GetDisplay() string {
if o == nil {
@@ -124,7 +122,6 @@ func (o *BriefCircuitGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefCircuitGroup) GetName() string {
if o == nil {
@@ -149,9 +146,8 @@ func (o *BriefCircuitGroup) SetName(v string) {
o.Name = v
}
-
func (o BriefCircuitGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -185,32 +181,31 @@ func (o *BriefCircuitGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -272,5 +267,3 @@ func (v *NullableBriefCircuitGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go
index a7d104f57..1a239899a 100644
--- a/model_brief_circuit_group_assignment_serializer_.go
+++ b/model_brief_circuit_group_assignment_serializer_.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializer{}
// BriefCircuitGroupAssignmentSerializer Base serializer for group assignments under CircuitSerializer.
type BriefCircuitGroupAssignmentSerializer struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Group BriefCircuitGroup `json:"group"`
- Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Group BriefCircuitGroup `json:"group"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCircuitGroupAssignmentSerializer) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCircuitGroupAssignmentSerializer) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string) {
o.Display = v
}
-
// GetGroup returns the Group field value
func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup) {
o.Group = v
}
-
// GetPriority returns the Priority field value if set, zero value otherwise.
func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority {
if o == nil || IsNil(o.Priority) {
@@ -184,7 +180,7 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupA
}
func (o BriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefCircuitGroupAssignmentSerializer) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializer) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go
index 33fc209ff..e8bee8fd4 100644
--- a/model_brief_circuit_group_assignment_serializer__priority.go
+++ b/model_brief_circuit_group_assignment_serializer__priority.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerPriority{}
// BriefCircuitGroupAssignmentSerializerPriority struct for BriefCircuitGroupAssignmentSerializerPriority
type BriefCircuitGroupAssignmentSerializerPriority struct {
- Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"`
- Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"`
+ Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"`
+ Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitG
}
func (o BriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(sr
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go
index 3ae4db3c6..b609e43b5 100644
--- a/model_brief_circuit_group_assignment_serializer__priority_label.go
+++ b/model_brief_circuit_group_assignment_serializer__priority_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type BriefCircuitGroupAssignmentSerializerPriorityLabel string
// List of BriefCircuitGroupAssignmentSerializer__priority_label
const (
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary"
BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Secondary"
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary"
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive"
)
// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityLabel enum
@@ -112,4 +112,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJS
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go
index e97beae17..c0343b069 100644
--- a/model_brief_circuit_group_assignment_serializer__priority_value.go
+++ b/model_brief_circuit_group_assignment_serializer__priority_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type BriefCircuitGroupAssignmentSerializerPriorityValue string
// List of BriefCircuitGroupAssignmentSerializer__priority_value
const (
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary"
BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityValue = "secondary"
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary"
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive"
- BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = ""
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive"
+ BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = ""
)
// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityValue enum
@@ -114,4 +114,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJS
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go
index de443fc17..f1c089c76 100644
--- a/model_brief_circuit_group_assignment_serializer_request.go
+++ b/model_brief_circuit_group_assignment_serializer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerRequest{}
// BriefCircuitGroupAssignmentSerializerRequest Base serializer for group assignments under CircuitSerializer.
type BriefCircuitGroupAssignmentSerializerRequest struct {
- Group BriefCircuitGroupRequest `json:"group"`
- Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
+ Group BriefCircuitGroupAssignmentSerializerRequestGroup `json:"group"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -31,7 +31,7 @@ type _BriefCircuitGroupAssignmentSerializerRequest BriefCircuitGroupAssignmentSe
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest) *BriefCircuitGroupAssignmentSerializerRequest {
+func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupAssignmentSerializerRequestGroup) *BriefCircuitGroupAssignmentSerializerRequest {
this := BriefCircuitGroupAssignmentSerializerRequest{}
this.Group = group
return &this
@@ -46,9 +46,9 @@ func NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuit
}
// GetGroup returns the Group field value
-func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest {
+func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupAssignmentSerializerRequestGroup {
if o == nil {
- var ret BriefCircuitGroupRequest
+ var ret BriefCircuitGroupAssignmentSerializerRequestGroup
return ret
}
@@ -57,7 +57,7 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGr
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) {
+func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupAssignmentSerializerRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -65,11 +65,10 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircu
}
// SetGroup sets field value
-func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest) {
+func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupAssignmentSerializerRequestGroup) {
o.Group = v
}
-
// GetPriority returns the Priority field value if set, zero value otherwise.
func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue {
if o == nil || IsNil(o.Priority) {
@@ -103,7 +102,7 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircui
}
func (o BriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(data []byte
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_group_assignment_serializer_request_group.go b/model_brief_circuit_group_assignment_serializer_request_group.go
new file mode 100644
index 000000000..ba90f5485
--- /dev/null
+++ b/model_brief_circuit_group_assignment_serializer_request_group.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefCircuitGroupAssignmentSerializerRequestGroup - struct for BriefCircuitGroupAssignmentSerializerRequestGroup
+type BriefCircuitGroupAssignmentSerializerRequestGroup struct {
+ BriefCircuitGroupRequest *BriefCircuitGroupRequest
+ Int32 *int32
+}
+
+// BriefCircuitGroupRequestAsBriefCircuitGroupAssignmentSerializerRequestGroup is a convenience function that returns BriefCircuitGroupRequest wrapped in BriefCircuitGroupAssignmentSerializerRequestGroup
+func BriefCircuitGroupRequestAsBriefCircuitGroupAssignmentSerializerRequestGroup(v *BriefCircuitGroupRequest) BriefCircuitGroupAssignmentSerializerRequestGroup {
+ return BriefCircuitGroupAssignmentSerializerRequestGroup{
+ BriefCircuitGroupRequest: v,
+ }
+}
+
+// int32AsBriefCircuitGroupAssignmentSerializerRequestGroup is a convenience function that returns int32 wrapped in BriefCircuitGroupAssignmentSerializerRequestGroup
+func Int32AsBriefCircuitGroupAssignmentSerializerRequestGroup(v *int32) BriefCircuitGroupAssignmentSerializerRequestGroup {
+ return BriefCircuitGroupAssignmentSerializerRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefCircuitGroupAssignmentSerializerRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefCircuitGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefCircuitGroupRequest)
+ if err == nil {
+ jsonBriefCircuitGroupRequest, _ := json.Marshal(dst.BriefCircuitGroupRequest)
+ if string(jsonBriefCircuitGroupRequest) == "{}" { // empty struct
+ dst.BriefCircuitGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefCircuitGroupRequest); err != nil {
+ dst.BriefCircuitGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefCircuitGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefCircuitGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefCircuitGroupAssignmentSerializerRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefCircuitGroupAssignmentSerializerRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefCircuitGroupAssignmentSerializerRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefCircuitGroupRequest != nil {
+ return json.Marshal(&src.BriefCircuitGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefCircuitGroupAssignmentSerializerRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefCircuitGroupRequest != nil {
+ return obj.BriefCircuitGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefCircuitGroupAssignmentSerializerRequestGroup struct {
+ value *BriefCircuitGroupAssignmentSerializerRequestGroup
+ isSet bool
+}
+
+func (v NullableBriefCircuitGroupAssignmentSerializerRequestGroup) Get() *BriefCircuitGroupAssignmentSerializerRequestGroup {
+ return v.value
+}
+
+func (v *NullableBriefCircuitGroupAssignmentSerializerRequestGroup) Set(val *BriefCircuitGroupAssignmentSerializerRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefCircuitGroupAssignmentSerializerRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefCircuitGroupAssignmentSerializerRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefCircuitGroupAssignmentSerializerRequestGroup(val *BriefCircuitGroupAssignmentSerializerRequestGroup) *NullableBriefCircuitGroupAssignmentSerializerRequestGroup {
+ return &NullableBriefCircuitGroupAssignmentSerializerRequestGroup{value: val, isSet: true}
+}
+
+func (v NullableBriefCircuitGroupAssignmentSerializerRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefCircuitGroupAssignmentSerializerRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go
index a5576413f..2a3218094 100644
--- a/model_brief_circuit_group_request.go
+++ b/model_brief_circuit_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &BriefCircuitGroupRequest{}
// BriefCircuitGroupRequest Adds support for custom fields and tags.
type BriefCircuitGroupRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,8 @@ func (o *BriefCircuitGroupRequest) SetName(v string) {
o.Name = v
}
-
func (o BriefCircuitGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *BriefCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableBriefCircuitGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go
index d647fca7e..a2bfa27f1 100644
--- a/model_brief_circuit_request.go
+++ b/model_brief_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &BriefCircuitRequest{}
// BriefCircuitRequest Adds support for custom fields and tags.
type BriefCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- Provider BriefProviderRequest `json:"provider"`
- Description *string `json:"description,omitempty"`
+ Cid string `json:"cid"`
+ Provider BriefCircuitRequestProvider `json:"provider"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _BriefCircuitRequest BriefCircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefCircuitRequest(cid string, provider BriefProviderRequest) *BriefCircuitRequest {
+func NewBriefCircuitRequest(cid string, provider BriefCircuitRequestProvider) *BriefCircuitRequest {
this := BriefCircuitRequest{}
this.Cid = cid
this.Provider = provider
@@ -72,11 +72,10 @@ func (o *BriefCircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProvider returns the Provider field value
-func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest {
+func (o *BriefCircuitRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
@@ -85,7 +84,7 @@ func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *BriefCircuitRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil {
return nil, false
}
@@ -93,11 +92,10 @@ func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
}
// SetProvider sets field value
-func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest) {
+func (o *BriefCircuitRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCircuitRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *BriefCircuitRequest) SetDescription(v string) {
}
func (o BriefCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *BriefCircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableBriefCircuitRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_request_provider.go b/model_brief_circuit_request_provider.go
new file mode 100644
index 000000000..e74673856
--- /dev/null
+++ b/model_brief_circuit_request_provider.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefCircuitRequestProvider - struct for BriefCircuitRequestProvider
+type BriefCircuitRequestProvider struct {
+ BriefProviderRequest *BriefProviderRequest
+ Int32 *int32
+}
+
+// BriefProviderRequestAsBriefCircuitRequestProvider is a convenience function that returns BriefProviderRequest wrapped in BriefCircuitRequestProvider
+func BriefProviderRequestAsBriefCircuitRequestProvider(v *BriefProviderRequest) BriefCircuitRequestProvider {
+ return BriefCircuitRequestProvider{
+ BriefProviderRequest: v,
+ }
+}
+
+// int32AsBriefCircuitRequestProvider is a convenience function that returns int32 wrapped in BriefCircuitRequestProvider
+func Int32AsBriefCircuitRequestProvider(v *int32) BriefCircuitRequestProvider {
+ return BriefCircuitRequestProvider{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefCircuitRequestProvider) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefProviderRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefProviderRequest)
+ if err == nil {
+ jsonBriefProviderRequest, _ := json.Marshal(dst.BriefProviderRequest)
+ if string(jsonBriefProviderRequest) == "{}" { // empty struct
+ dst.BriefProviderRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefProviderRequest); err != nil {
+ dst.BriefProviderRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefProviderRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefProviderRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefCircuitRequestProvider)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefCircuitRequestProvider)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefCircuitRequestProvider) MarshalJSON() ([]byte, error) {
+ if src.BriefProviderRequest != nil {
+ return json.Marshal(&src.BriefProviderRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefCircuitRequestProvider) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefProviderRequest != nil {
+ return obj.BriefProviderRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefCircuitRequestProvider struct {
+ value *BriefCircuitRequestProvider
+ isSet bool
+}
+
+func (v NullableBriefCircuitRequestProvider) Get() *BriefCircuitRequestProvider {
+ return v.value
+}
+
+func (v *NullableBriefCircuitRequestProvider) Set(val *BriefCircuitRequestProvider) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefCircuitRequestProvider) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefCircuitRequestProvider) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefCircuitRequestProvider(val *BriefCircuitRequestProvider) *NullableBriefCircuitRequestProvider {
+ return &NullableBriefCircuitRequestProvider{value: val, isSet: true}
+}
+
+func (v NullableBriefCircuitRequestProvider) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefCircuitRequestProvider) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go
index b4910e137..bcc4ba043 100644
--- a/model_brief_circuit_type.go
+++ b/model_brief_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefCircuitType{}
// BriefCircuitType Adds support for custom fields and tags.
type BriefCircuitType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefCircuitType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCircuitType) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefCircuitType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCircuitType) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefCircuitType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefCircuitType) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefCircuitType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefCircuitType) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefCircuitType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCircuitType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefCircuitType) SetCircuitCount(v int64) {
}
func (o BriefCircuitType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefCircuitType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go
index 3c9940113..8a81dd449 100644
--- a/model_brief_circuit_type_request.go
+++ b/model_brief_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefCircuitTypeRequest{}
// BriefCircuitTypeRequest Adds support for custom fields and tags.
type BriefCircuitTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefCircuitTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefCircuitTypeRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefCircuitTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCircuitTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefCircuitTypeRequest) SetDescription(v string) {
}
func (o BriefCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefCircuitTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster.go b/model_brief_cluster.go
index 1b4a9ccbb..de2a5184e 100644
--- a/model_brief_cluster.go
+++ b/model_brief_cluster.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefCluster{}
// BriefCluster Adds support for custom fields and tags.
type BriefCluster struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefCluster) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCluster) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefCluster) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCluster) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefCluster) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefCluster) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefCluster) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCluster) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -217,7 +213,7 @@ func (o *BriefCluster) SetVirtualmachineCount(v int64) {
}
func (o BriefCluster) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -257,32 +253,31 @@ func (o *BriefCluster) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -346,5 +341,3 @@ func (v *NullableBriefCluster) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go
index 4153d5cdd..f7edd70e7 100644
--- a/model_brief_cluster_group.go
+++ b/model_brief_cluster_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefClusterGroup{}
// BriefClusterGroup Adds support for custom fields and tags.
type BriefClusterGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- ClusterCount *int64 `json:"cluster_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ ClusterCount *int64 `json:"cluster_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefClusterGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefClusterGroup) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefClusterGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefClusterGroup) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefClusterGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefClusterGroup) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefClusterGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefClusterGroup) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefClusterGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefClusterGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefClusterGroup) SetClusterCount(v int64) {
}
func (o BriefClusterGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefClusterGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefClusterGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go
index 756a8d8ca..bca78d316 100644
--- a/model_brief_cluster_group_request.go
+++ b/model_brief_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefClusterGroupRequest{}
// BriefClusterGroupRequest Adds support for custom fields and tags.
type BriefClusterGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefClusterGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefClusterGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefClusterGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefClusterGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefClusterGroupRequest) SetDescription(v string) {
}
func (o BriefClusterGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefClusterGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefClusterGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go
index 6d51876ba..bffddde3a 100644
--- a/model_brief_cluster_request.go
+++ b/model_brief_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefClusterRequest{}
// BriefClusterRequest Adds support for custom fields and tags.
type BriefClusterRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefClusterRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefClusterRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefClusterRequest) SetDescription(v string) {
}
func (o BriefClusterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefClusterRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefClusterRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go
index df6233e17..274f54ac2 100644
--- a/model_brief_cluster_type.go
+++ b/model_brief_cluster_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefClusterType{}
// BriefClusterType Adds support for custom fields and tags.
type BriefClusterType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- ClusterCount *int64 `json:"cluster_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ ClusterCount *int64 `json:"cluster_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefClusterType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefClusterType) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefClusterType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefClusterType) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefClusterType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefClusterType) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefClusterType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefClusterType) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefClusterType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefClusterType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefClusterType) SetClusterCount(v int64) {
}
func (o BriefClusterType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefClusterType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefClusterType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go
index 5a790253f..3538cb1e6 100644
--- a/model_brief_cluster_type_request.go
+++ b/model_brief_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefClusterTypeRequest{}
// BriefClusterTypeRequest Adds support for custom fields and tags.
type BriefClusterTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefClusterTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefClusterTypeRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefClusterTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefClusterTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefClusterTypeRequest) SetDescription(v string) {
}
func (o BriefClusterTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefClusterTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefClusterTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_config_template.go b/model_brief_config_template.go
index 0866d19c8..2d78cca9a 100644
--- a/model_brief_config_template.go
+++ b/model_brief_config_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefConfigTemplate{}
// BriefConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
type BriefConfigTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefConfigTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefConfigTemplate) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefConfigTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefConfigTemplate) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefConfigTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefConfigTemplate) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefConfigTemplate) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefConfigTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefConfigTemplate) SetDescription(v string) {
}
func (o BriefConfigTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefConfigTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefConfigTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go
index f614af76a..9761d12e4 100644
--- a/model_brief_config_template_request.go
+++ b/model_brief_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefConfigTemplateRequest{}
// BriefConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
type BriefConfigTemplateRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefConfigTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefConfigTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefConfigTemplateRequest) SetDescription(v string) {
}
func (o BriefConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefConfigTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_contact.go b/model_brief_contact.go
index b8c6d6fd8..5960ebef1 100644
--- a/model_brief_contact.go
+++ b/model_brief_contact.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefContact{}
// BriefContact Adds support for custom fields and tags.
type BriefContact struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefContact) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefContact) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefContact) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefContact) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefContact) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefContact) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefContact) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefContact) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefContact) SetDescription(v string) {
}
func (o BriefContact) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefContact) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefContact) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go
index 205c6a4fe..5d99e4fc4 100644
--- a/model_brief_contact_request.go
+++ b/model_brief_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefContactRequest{}
// BriefContactRequest Adds support for custom fields and tags.
type BriefContactRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefContactRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefContactRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefContactRequest) SetDescription(v string) {
}
func (o BriefContactRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefContactRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefContactRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go
index 6b8922478..b390283ea 100644
--- a/model_brief_contact_role.go
+++ b/model_brief_contact_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefContactRole{}
// BriefContactRole Adds support for custom fields and tags.
type BriefContactRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *BriefContactRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefContactRole) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *BriefContactRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefContactRole) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *BriefContactRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefContactRole) GetName() string {
if o == nil {
@@ -152,7 +149,6 @@ func (o *BriefContactRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefContactRole) GetSlug() string {
if o == nil {
@@ -177,7 +173,6 @@ func (o *BriefContactRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefContactRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -211,7 +206,7 @@ func (o *BriefContactRole) SetDescription(v string) {
}
func (o BriefContactRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *BriefContactRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableBriefContactRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go
index f0fdaaafc..c0fe794b7 100644
--- a/model_brief_contact_role_request.go
+++ b/model_brief_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefContactRoleRequest{}
// BriefContactRoleRequest Adds support for custom fields and tags.
type BriefContactRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefContactRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefContactRoleRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefContactRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefContactRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefContactRoleRequest) SetDescription(v string) {
}
func (o BriefContactRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefContactRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefContactRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go
index c517443b8..90a4d6c68 100644
--- a/model_brief_custom_field_choice_set.go
+++ b/model_brief_custom_field_choice_set.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefCustomFieldChoiceSet{}
// BriefCustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefCustomFieldChoiceSet struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- ChoicesCount *string `json:"choices_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ ChoicesCount *string `json:"choices_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefCustomFieldChoiceSet) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefCustomFieldChoiceSet) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefCustomFieldChoiceSet) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefCustomFieldChoiceSet) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefCustomFieldChoiceSet) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefCustomFieldChoiceSet) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefCustomFieldChoiceSet) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCustomFieldChoiceSet) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -217,7 +213,7 @@ func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) {
}
func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -257,32 +253,31 @@ func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -346,5 +341,3 @@ func (v *NullableBriefCustomFieldChoiceSet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go
index 4a779a85e..02c45e109 100644
--- a/model_brief_custom_field_choice_set_request.go
+++ b/model_brief_custom_field_choice_set_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefCustomFieldChoiceSetRequest{}
// BriefCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefCustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefCustomFieldChoiceSetRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefCustomFieldChoiceSetRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string) {
}
func (o BriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_data_file.go b/model_brief_data_file.go
index 0a369232e..aa107f479 100644
--- a/model_brief_data_file.go
+++ b/model_brief_data_file.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDataFile{}
// BriefDataFile Adds support for custom fields and tags.
type BriefDataFile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// File path relative to the data source's root
- Path string `json:"path"`
+ Path string `json:"path"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefDataFile) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefDataFile) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefDataFile) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefDataFile) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefDataFile) SetDisplay(v string) {
o.Display = v
}
-
// GetPath returns the Path field value
func (o *BriefDataFile) GetPath() string {
if o == nil {
@@ -150,9 +147,8 @@ func (o *BriefDataFile) SetPath(v string) {
o.Path = v
}
-
func (o BriefDataFile) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -186,32 +182,31 @@ func (o *BriefDataFile) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -273,5 +268,3 @@ func (v *NullableBriefDataFile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_data_source.go b/model_brief_data_source.go
index e161303d0..17c73f338 100644
--- a/model_brief_data_source.go
+++ b/model_brief_data_source.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDataSource{}
// BriefDataSource Adds support for custom fields and tags.
type BriefDataSource struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefDataSource) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefDataSource) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefDataSource) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefDataSource) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefDataSource) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefDataSource) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefDataSource) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDataSource) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefDataSource) SetDescription(v string) {
}
func (o BriefDataSource) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefDataSource) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefDataSource) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go
index 22196854b..fbeea35ff 100644
--- a/model_brief_data_source_request.go
+++ b/model_brief_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefDataSourceRequest{}
// BriefDataSourceRequest Adds support for custom fields and tags.
type BriefDataSourceRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefDataSourceRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDataSourceRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefDataSourceRequest) SetDescription(v string) {
}
func (o BriefDataSourceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefDataSourceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefDataSourceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device.go b/model_brief_device.go
index 8746e5193..65ac385cd 100644
--- a/model_brief_device.go
+++ b/model_brief_device.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDevice{}
// BriefDevice Adds support for custom fields and tags.
type BriefDevice struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name NullableString `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name NullableString `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *BriefDevice) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefDevice) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *BriefDevice) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefDevice) GetDisplay() string {
if o == nil {
@@ -124,7 +122,6 @@ func (o *BriefDevice) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefDevice) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
@@ -157,6 +154,7 @@ func (o *BriefDevice) HasName() bool {
func (o *BriefDevice) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *BriefDevice) SetNameNil() {
o.Name.Set(nil)
@@ -200,7 +198,7 @@ func (o *BriefDevice) SetDescription(v string) {
}
func (o BriefDevice) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -238,32 +236,31 @@ func (o *BriefDevice) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -326,5 +323,3 @@ func (v *NullableBriefDevice) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_request.go b/model_brief_device_request.go
index 1d053bd5c..d39ffb8ed 100644
--- a/model_brief_device_request.go
+++ b/model_brief_device_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &BriefDeviceRequest{}
// BriefDeviceRequest Adds support for custom fields and tags.
type BriefDeviceRequest struct {
- Name NullableString `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,6 +75,7 @@ func (o *BriefDeviceRequest) HasName() bool {
func (o *BriefDeviceRequest) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *BriefDeviceRequest) SetNameNil() {
o.Name.Set(nil)
@@ -118,7 +119,7 @@ func (o *BriefDeviceRequest) SetDescription(v string) {
}
func (o BriefDeviceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -198,5 +199,3 @@ func (v *NullableBriefDeviceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_role.go b/model_brief_device_role.go
index 4cb8b8e53..f550d08d1 100644
--- a/model_brief_device_role.go
+++ b/model_brief_device_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,16 +18,17 @@ import (
// checks if the BriefDeviceRole type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BriefDeviceRole{}
-// BriefDeviceRole Adds support for custom fields and tags.
+// BriefDeviceRole Extends PrimaryModelSerializer to include MPTT support.
type BriefDeviceRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -37,13 +38,14 @@ type _BriefDeviceRole BriefDeviceRole
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefDeviceRole(id int32, url string, display string, name string, slug string) *BriefDeviceRole {
+func NewBriefDeviceRole(id int32, url string, display string, name string, slug string, depth int32) *BriefDeviceRole {
this := BriefDeviceRole{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
+ this.Depth = depth
return &this
}
@@ -79,7 +81,6 @@ func (o *BriefDeviceRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefDeviceRole) GetUrl() string {
if o == nil {
@@ -104,7 +105,6 @@ func (o *BriefDeviceRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefDeviceRole) GetDisplay() string {
if o == nil {
@@ -129,7 +129,6 @@ func (o *BriefDeviceRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefDeviceRole) GetName() string {
if o == nil {
@@ -154,7 +153,6 @@ func (o *BriefDeviceRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefDeviceRole) GetSlug() string {
if o == nil {
@@ -179,7 +177,6 @@ func (o *BriefDeviceRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDeviceRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -276,8 +273,32 @@ func (o *BriefDeviceRole) SetVirtualmachineCount(v int64) {
o.VirtualmachineCount = &v
}
+// GetDepth returns the Depth field value
+func (o *BriefDeviceRole) GetDepth() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Depth
+}
+
+// GetDepthOk returns a tuple with the Depth field value
+// and a boolean to check if the value has been set.
+func (o *BriefDeviceRole) GetDepthOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Depth, true
+}
+
+// SetDepth sets field value
+func (o *BriefDeviceRole) SetDepth(v int32) {
+ o.Depth = v
+}
+
func (o BriefDeviceRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -300,6 +321,7 @@ func (o BriefDeviceRole) ToMap() (map[string]interface{}, error) {
if !IsNil(o.VirtualmachineCount) {
toSerialize["virtualmachine_count"] = o.VirtualmachineCount
}
+ toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -318,36 +340,36 @@ func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
+ "_depth",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -372,6 +394,7 @@ func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "device_count")
delete(additionalProperties, "virtualmachine_count")
+ delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -413,5 +436,3 @@ func (v *NullableBriefDeviceRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go
index a745ae041..5657b1b22 100644
--- a/model_brief_device_role_request.go
+++ b/model_brief_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,11 +18,11 @@ import (
// checks if the BriefDeviceRoleRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BriefDeviceRoleRequest{}
-// BriefDeviceRoleRequest Adds support for custom fields and tags.
+// BriefDeviceRoleRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefDeviceRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefDeviceRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefDeviceRoleRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefDeviceRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDeviceRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefDeviceRoleRequest) SetDescription(v string) {
}
func (o BriefDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefDeviceRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_type.go b/model_brief_device_type.go
index 50cfb3502..249c8c469 100644
--- a/model_brief_device_type.go
+++ b/model_brief_device_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefDeviceType{}
// BriefDeviceType Adds support for custom fields and tags.
type BriefDeviceType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefDeviceType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefDeviceType) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefDeviceType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefDeviceType) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefDeviceType) SetDisplay(v string) {
o.Display = v
}
-
// GetManufacturer returns the Manufacturer field value
func (o *BriefDeviceType) GetManufacturer() BriefManufacturer {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefDeviceType) GetModel() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefDeviceType) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *BriefDeviceType) GetSlug() string {
if o == nil {
@@ -205,7 +200,6 @@ func (o *BriefDeviceType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDeviceType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -271,7 +265,7 @@ func (o *BriefDeviceType) SetDeviceCount(v int64) {
}
func (o BriefDeviceType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefDeviceType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefDeviceType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go
index abdd85828..714a807f4 100644
--- a/model_brief_device_type_request.go
+++ b/model_brief_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &BriefDeviceTypeRequest{}
// BriefDeviceTypeRequest Adds support for custom fields and tags.
type BriefDeviceTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _BriefDeviceTypeRequest BriefDeviceTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefDeviceTypeRequest {
+func NewBriefDeviceTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string) *BriefDeviceTypeRequest {
this := BriefDeviceTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -50,9 +50,9 @@ func NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *BriefDeviceTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -61,7 +61,7 @@ func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -69,11 +69,10 @@ func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest,
}
// SetManufacturer sets field value
-func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefDeviceTypeRequest) GetModel() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *BriefDeviceTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *BriefDeviceTypeRequest) GetSlug() string {
if o == nil {
@@ -123,7 +121,6 @@ func (o *BriefDeviceTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefDeviceTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -157,7 +154,7 @@ func (o *BriefDeviceTypeRequest) SetDescription(v string) {
}
func (o BriefDeviceTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -192,32 +189,31 @@ func (o *BriefDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -279,5 +275,3 @@ func (v *NullableBriefDeviceTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_device_type_request_manufacturer.go b/model_brief_device_type_request_manufacturer.go
new file mode 100644
index 000000000..79e2fd38c
--- /dev/null
+++ b/model_brief_device_type_request_manufacturer.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefDeviceTypeRequestManufacturer - struct for BriefDeviceTypeRequestManufacturer
+type BriefDeviceTypeRequestManufacturer struct {
+ BriefManufacturerRequest *BriefManufacturerRequest
+ Int32 *int32
+}
+
+// BriefManufacturerRequestAsBriefDeviceTypeRequestManufacturer is a convenience function that returns BriefManufacturerRequest wrapped in BriefDeviceTypeRequestManufacturer
+func BriefManufacturerRequestAsBriefDeviceTypeRequestManufacturer(v *BriefManufacturerRequest) BriefDeviceTypeRequestManufacturer {
+ return BriefDeviceTypeRequestManufacturer{
+ BriefManufacturerRequest: v,
+ }
+}
+
+// int32AsBriefDeviceTypeRequestManufacturer is a convenience function that returns int32 wrapped in BriefDeviceTypeRequestManufacturer
+func Int32AsBriefDeviceTypeRequestManufacturer(v *int32) BriefDeviceTypeRequestManufacturer {
+ return BriefDeviceTypeRequestManufacturer{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefDeviceTypeRequestManufacturer) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefManufacturerRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefManufacturerRequest)
+ if err == nil {
+ jsonBriefManufacturerRequest, _ := json.Marshal(dst.BriefManufacturerRequest)
+ if string(jsonBriefManufacturerRequest) == "{}" { // empty struct
+ dst.BriefManufacturerRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefManufacturerRequest); err != nil {
+ dst.BriefManufacturerRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefManufacturerRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefManufacturerRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefDeviceTypeRequestManufacturer)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefDeviceTypeRequestManufacturer)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefDeviceTypeRequestManufacturer) MarshalJSON() ([]byte, error) {
+ if src.BriefManufacturerRequest != nil {
+ return json.Marshal(&src.BriefManufacturerRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefDeviceTypeRequestManufacturer) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefManufacturerRequest != nil {
+ return obj.BriefManufacturerRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefDeviceTypeRequestManufacturer struct {
+ value *BriefDeviceTypeRequestManufacturer
+ isSet bool
+}
+
+func (v NullableBriefDeviceTypeRequestManufacturer) Get() *BriefDeviceTypeRequestManufacturer {
+ return v.value
+}
+
+func (v *NullableBriefDeviceTypeRequestManufacturer) Set(val *BriefDeviceTypeRequestManufacturer) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefDeviceTypeRequestManufacturer) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefDeviceTypeRequestManufacturer) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefDeviceTypeRequestManufacturer(val *BriefDeviceTypeRequestManufacturer) *NullableBriefDeviceTypeRequestManufacturer {
+ return &NullableBriefDeviceTypeRequestManufacturer{value: val, isSet: true}
+}
+
+func (v NullableBriefDeviceTypeRequestManufacturer) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefDeviceTypeRequestManufacturer) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go
index f729d2637..b560143dd 100644
--- a/model_brief_fhrp_group.go
+++ b/model_brief_fhrp_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefFHRPGroup{}
// BriefFHRPGroup Adds support for custom fields and tags.
type BriefFHRPGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Protocol BriefFHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Protocol BriefFHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *BriefFHRPGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefFHRPGroup) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *BriefFHRPGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefFHRPGroup) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *BriefFHRPGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetProtocol returns the Protocol field value
func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol {
if o == nil {
@@ -152,7 +149,6 @@ func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) {
o.Protocol = v
}
-
// GetGroupId returns the GroupId field value
func (o *BriefFHRPGroup) GetGroupId() int32 {
if o == nil {
@@ -177,7 +173,6 @@ func (o *BriefFHRPGroup) SetGroupId(v int32) {
o.GroupId = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefFHRPGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -211,7 +206,7 @@ func (o *BriefFHRPGroup) SetDescription(v string) {
}
func (o BriefFHRPGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *BriefFHRPGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableBriefFHRPGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go
index 30a88404b..f4d0cbbac 100644
--- a/model_brief_fhrp_group_protocol.go
+++ b/model_brief_fhrp_group_protocol.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ type BriefFHRPGroupProtocol string
// List of BriefFHRPGroup_protocol
const (
- BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2"
- BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3"
- BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp"
+ BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2"
+ BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3"
+ BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp"
BRIEFFHRPGROUPPROTOCOL_CLUSTERXL BriefFHRPGroupProtocol = "clusterxl"
- BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp"
- BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp"
- BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other"
+ BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp"
+ BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp"
+ BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other"
)
// All allowed values of BriefFHRPGroupProtocol enum
@@ -118,4 +118,3 @@ func (v *NullableBriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go
index ff09b26be..655346cda 100644
--- a/model_brief_fhrp_group_request.go
+++ b/model_brief_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefFHRPGroupRequest{}
// BriefFHRPGroupRequest Adds support for custom fields and tags.
type BriefFHRPGroupRequest struct {
- Protocol BriefFHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- Description *string `json:"description,omitempty"`
+ Protocol BriefFHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) {
o.Protocol = v
}
-
// GetGroupId returns the GroupId field value
func (o *BriefFHRPGroupRequest) GetGroupId() int32 {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefFHRPGroupRequest) SetGroupId(v int32) {
o.GroupId = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefFHRPGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefFHRPGroupRequest) SetDescription(v string) {
}
func (o BriefFHRPGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefFHRPGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go
index 2de69e5b7..4ad818fc4 100644
--- a/model_brief_ike_policy.go
+++ b/model_brief_ike_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIKEPolicy{}
// BriefIKEPolicy Adds support for custom fields and tags.
type BriefIKEPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefIKEPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefIKEPolicy) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefIKEPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefIKEPolicy) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefIKEPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefIKEPolicy) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefIKEPolicy) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIKEPolicy) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefIKEPolicy) SetDescription(v string) {
}
func (o BriefIKEPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefIKEPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefIKEPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go
index 0e9570255..d19956636 100644
--- a/model_brief_ike_policy_request.go
+++ b/model_brief_ike_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIKEPolicyRequest{}
// BriefIKEPolicyRequest Adds support for custom fields and tags.
type BriefIKEPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefIKEPolicyRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIKEPolicyRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefIKEPolicyRequest) SetDescription(v string) {
}
func (o BriefIKEPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefIKEPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_interface.go b/model_brief_interface.go
index 954f17d76..93c201020 100644
--- a/model_brief_interface.go
+++ b/model_brief_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefInterface{}
// BriefInterface Adds support for custom fields and tags.
type BriefInterface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- Occupied bool `json:"_occupied"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefInterface) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefInterface) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefInterface) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefInterface) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefInterface) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *BriefInterface) GetDevice() BriefDevice {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefInterface) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *BriefInterface) GetName() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefInterface) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefInterface) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -245,6 +240,7 @@ func (o *BriefInterface) HasCable() bool {
func (o *BriefInterface) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *BriefInterface) SetCableNil() {
o.Cable.Set(nil)
@@ -279,9 +275,8 @@ func (o *BriefInterface) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o BriefInterface) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -325,32 +320,31 @@ func (o *BriefInterface) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -416,5 +410,3 @@ func (v *NullableBriefInterface) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go
index 44023278f..fdee76ff6 100644
--- a/model_brief_interface_request.go
+++ b/model_brief_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefInterfaceRequest{}
// BriefInterfaceRequest Adds support for custom fields and tags.
type BriefInterfaceRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +32,7 @@ type _BriefInterfaceRequest BriefInterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefInterfaceRequest(device BriefDeviceRequest, name string) *BriefInterfaceRequest {
+func NewBriefInterfaceRequest(device BriefInterfaceRequestDevice, name string) *BriefInterfaceRequest {
this := BriefInterfaceRequest{}
this.Device = device
this.Name = name
@@ -48,9 +48,9 @@ func NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest {
}
// GetDevice returns the Device field value
-func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest {
+func (o *BriefInterfaceRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -59,7 +59,7 @@ func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -67,11 +67,10 @@ func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest) {
+func (o *BriefInterfaceRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *BriefInterfaceRequest) GetName() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefInterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefInterfaceRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefInterfaceRequest) SetDescription(v string) {
}
func (o BriefInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_interface_request_device.go b/model_brief_interface_request_device.go
new file mode 100644
index 000000000..53fdbaa7d
--- /dev/null
+++ b/model_brief_interface_request_device.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefInterfaceRequestDevice - struct for BriefInterfaceRequestDevice
+type BriefInterfaceRequestDevice struct {
+ BriefDeviceRequest *BriefDeviceRequest
+ Int32 *int32
+}
+
+// BriefDeviceRequestAsBriefInterfaceRequestDevice is a convenience function that returns BriefDeviceRequest wrapped in BriefInterfaceRequestDevice
+func BriefDeviceRequestAsBriefInterfaceRequestDevice(v *BriefDeviceRequest) BriefInterfaceRequestDevice {
+ return BriefInterfaceRequestDevice{
+ BriefDeviceRequest: v,
+ }
+}
+
+// int32AsBriefInterfaceRequestDevice is a convenience function that returns int32 wrapped in BriefInterfaceRequestDevice
+func Int32AsBriefInterfaceRequestDevice(v *int32) BriefInterfaceRequestDevice {
+ return BriefInterfaceRequestDevice{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefInterfaceRequestDevice) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefDeviceRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceRequest)
+ if err == nil {
+ jsonBriefDeviceRequest, _ := json.Marshal(dst.BriefDeviceRequest)
+ if string(jsonBriefDeviceRequest) == "{}" { // empty struct
+ dst.BriefDeviceRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceRequest); err != nil {
+ dst.BriefDeviceRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefInterfaceRequestDevice)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefInterfaceRequestDevice)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefInterfaceRequestDevice) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceRequest != nil {
+ return json.Marshal(&src.BriefDeviceRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefInterfaceRequestDevice) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceRequest != nil {
+ return obj.BriefDeviceRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefInterfaceRequestDevice struct {
+ value *BriefInterfaceRequestDevice
+ isSet bool
+}
+
+func (v NullableBriefInterfaceRequestDevice) Get() *BriefInterfaceRequestDevice {
+ return v.value
+}
+
+func (v *NullableBriefInterfaceRequestDevice) Set(val *BriefInterfaceRequestDevice) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefInterfaceRequestDevice) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefInterfaceRequestDevice) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefInterfaceRequestDevice(val *BriefInterfaceRequestDevice) *NullableBriefInterfaceRequestDevice {
+ return &NullableBriefInterfaceRequestDevice{value: val, isSet: true}
+}
+
+func (v NullableBriefInterfaceRequestDevice) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefInterfaceRequestDevice) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go
index 83e6c720b..9b17b5d31 100644
--- a/model_brief_inventory_item_role.go
+++ b/model_brief_inventory_item_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefInventoryItemRole{}
// BriefInventoryItemRole Adds support for custom fields and tags.
type BriefInventoryItemRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefInventoryItemRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefInventoryItemRole) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefInventoryItemRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefInventoryItemRole) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefInventoryItemRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefInventoryItemRole) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefInventoryItemRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefInventoryItemRole) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefInventoryItemRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefInventoryItemRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) {
}
func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefInventoryItemRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go
index 28d1790d8..cbc1ed616 100644
--- a/model_brief_inventory_item_role_request.go
+++ b/model_brief_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefInventoryItemRoleRequest{}
// BriefInventoryItemRoleRequest Adds support for custom fields and tags.
type BriefInventoryItemRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefInventoryItemRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefInventoryItemRoleRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefInventoryItemRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefInventoryItemRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefInventoryItemRoleRequest) SetDescription(v string) {
}
func (o BriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefInventoryItemRoleRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go
index 5484851b2..3362b475e 100644
--- a/model_brief_ip_address.go
+++ b/model_brief_ip_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefIPAddress{}
// BriefIPAddress Adds support for custom fields and tags.
type BriefIPAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- Address string `json:"address"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Family AggregateFamily `json:"family"`
+ Address string `json:"address"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *BriefIPAddress) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefIPAddress) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *BriefIPAddress) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefIPAddress) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *BriefIPAddress) SetDisplay(v string) {
o.Display = v
}
-
// GetFamily returns the Family field value
func (o *BriefIPAddress) GetFamily() AggregateFamily {
if o == nil {
@@ -152,7 +149,6 @@ func (o *BriefIPAddress) SetFamily(v AggregateFamily) {
o.Family = v
}
-
// GetAddress returns the Address field value
func (o *BriefIPAddress) GetAddress() string {
if o == nil {
@@ -177,7 +173,6 @@ func (o *BriefIPAddress) SetAddress(v string) {
o.Address = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPAddress) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -211,7 +206,7 @@ func (o *BriefIPAddress) SetDescription(v string) {
}
func (o BriefIPAddress) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *BriefIPAddress) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableBriefIPAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go
index 5a7567a11..412cee18e 100644
--- a/model_brief_ip_address_request.go
+++ b/model_brief_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPAddressRequest{}
// BriefIPAddressRequest Adds support for custom fields and tags.
type BriefIPAddressRequest struct {
- Address string `json:"address"`
- Description *string `json:"description,omitempty"`
+ Address string `json:"address"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefIPAddressRequest) SetAddress(v string) {
o.Address = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPAddressRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefIPAddressRequest) SetDescription(v string) {
}
func (o BriefIPAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefIPAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefIPAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go
index 5b598b80d..846ef7a99 100644
--- a/model_brief_ip_sec_policy.go
+++ b/model_brief_ip_sec_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIPSecPolicy{}
// BriefIPSecPolicy Adds support for custom fields and tags.
type BriefIPSecPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefIPSecPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefIPSecPolicy) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefIPSecPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefIPSecPolicy) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefIPSecPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefIPSecPolicy) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefIPSecPolicy) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPSecPolicy) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefIPSecPolicy) SetDescription(v string) {
}
func (o BriefIPSecPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefIPSecPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefIPSecPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go
index 1860b7940..3450f60e4 100644
--- a/model_brief_ip_sec_policy_request.go
+++ b/model_brief_ip_sec_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPSecPolicyRequest{}
// BriefIPSecPolicyRequest Adds support for custom fields and tags.
type BriefIPSecPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefIPSecPolicyRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPSecPolicyRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefIPSecPolicyRequest) SetDescription(v string) {
}
func (o BriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go
index db147c400..5c3886d67 100644
--- a/model_brief_ip_sec_profile.go
+++ b/model_brief_ip_sec_profile.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIPSecProfile{}
// BriefIPSecProfile Adds support for custom fields and tags.
type BriefIPSecProfile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefIPSecProfile) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefIPSecProfile) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefIPSecProfile) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefIPSecProfile) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefIPSecProfile) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefIPSecProfile) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefIPSecProfile) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPSecProfile) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefIPSecProfile) SetDescription(v string) {
}
func (o BriefIPSecProfile) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefIPSecProfile) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefIPSecProfile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go
index 4722cb7f0..b50bda72b 100644
--- a/model_brief_ip_sec_profile_request.go
+++ b/model_brief_ip_sec_profile_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPSecProfileRequest{}
// BriefIPSecProfileRequest Adds support for custom fields and tags.
type BriefIPSecProfileRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefIPSecProfileRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefIPSecProfileRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefIPSecProfileRequest) SetDescription(v string) {
}
func (o BriefIPSecProfileRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefIPSecProfileRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_job.go b/model_brief_job.go
index 3166e9a14..dcec5db10 100644
--- a/model_brief_job.go
+++ b/model_brief_job.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the BriefJob type satisfies the MappedNullable interface at compile time
@@ -21,11 +21,11 @@ var _ MappedNullable = &BriefJob{}
// BriefJob struct for BriefJob
type BriefJob struct {
- Url string `json:"url"`
- Status BriefJobStatus `json:"status"`
- Created *time.Time `json:"created,omitempty"`
- Completed NullableTime `json:"completed,omitempty"`
- User BriefUser `json:"user"`
+ Url string `json:"url"`
+ Status BriefJobStatus `json:"status"`
+ Created *time.Time `json:"created,omitempty"`
+ Completed NullableTime `json:"completed,omitempty"`
+ User BriefUser `json:"user"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefJob) SetUrl(v string) {
o.Url = v
}
-
// GetStatus returns the Status field value
func (o *BriefJob) GetStatus() BriefJobStatus {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefJob) SetStatus(v BriefJobStatus) {
o.Status = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *BriefJob) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -165,6 +163,7 @@ func (o *BriefJob) HasCompleted() bool {
func (o *BriefJob) SetCompleted(v time.Time) {
o.Completed.Set(&v)
}
+
// SetCompletedNil sets the value for Completed to be an explicit nil
func (o *BriefJob) SetCompletedNil() {
o.Completed.Set(nil)
@@ -199,9 +198,8 @@ func (o *BriefJob) SetUser(v BriefUser) {
o.User = v
}
-
func (o BriefJob) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -239,32 +237,31 @@ func (o *BriefJob) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -327,5 +324,3 @@ func (v *NullableBriefJob) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_job_request.go b/model_brief_job_request.go
index 6dd1acdce..3b4319908 100644
--- a/model_brief_job_request.go
+++ b/model_brief_job_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &BriefJobRequest{}
// BriefJobRequest struct for BriefJobRequest
type BriefJobRequest struct {
- Completed NullableTime `json:"completed,omitempty"`
+ Completed NullableTime `json:"completed,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,6 +75,7 @@ func (o *BriefJobRequest) HasCompleted() bool {
func (o *BriefJobRequest) SetCompleted(v time.Time) {
o.Completed.Set(&v)
}
+
// SetCompletedNil sets the value for Completed to be an explicit nil
func (o *BriefJobRequest) SetCompletedNil() {
o.Completed.Set(nil)
@@ -86,7 +87,7 @@ func (o *BriefJobRequest) UnsetCompleted() {
}
func (o BriefJobRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -162,5 +163,3 @@ func (v *NullableBriefJobRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_job_status.go b/model_brief_job_status.go
index 4c1fbb777..5a1c63837 100644
--- a/model_brief_job_status.go
+++ b/model_brief_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &BriefJobStatus{}
// BriefJobStatus struct for BriefJobStatus
type BriefJobStatus struct {
- Value *BriefJobStatusValue `json:"value,omitempty"`
- Label *BriefJobStatusLabel `json:"label,omitempty"`
+ Value *BriefJobStatusValue `json:"value,omitempty"`
+ Label *BriefJobStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel) {
}
func (o BriefJobStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableBriefJobStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go
index d6dc9156b..d65055b08 100644
--- a/model_brief_job_status_label.go
+++ b/model_brief_job_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type BriefJobStatusLabel string
// List of BriefJob_status_label
const (
- BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending"
+ BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending"
BRIEFJOBSTATUSLABEL_SCHEDULED BriefJobStatusLabel = "Scheduled"
- BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running"
+ BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running"
BRIEFJOBSTATUSLABEL_COMPLETED BriefJobStatusLabel = "Completed"
- BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored"
- BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed"
+ BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored"
+ BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed"
)
// All allowed values of BriefJobStatusLabel enum
@@ -116,4 +116,3 @@ func (v *NullableBriefJobStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go
index 26e2e7980..2d31add2c 100644
--- a/model_brief_job_status_value.go
+++ b/model_brief_job_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type BriefJobStatusValue string
// List of BriefJob_status_value
const (
- BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending"
+ BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending"
BRIEFJOBSTATUSVALUE_SCHEDULED BriefJobStatusValue = "scheduled"
- BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running"
+ BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running"
BRIEFJOBSTATUSVALUE_COMPLETED BriefJobStatusValue = "completed"
- BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored"
- BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed"
+ BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored"
+ BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed"
)
// All allowed values of BriefJobStatusValue enum
@@ -116,4 +116,3 @@ func (v *NullableBriefJobStatusValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go
index e5b64442b..fdc374676 100644
--- a/model_brief_l2_vpn.go
+++ b/model_brief_l2_vpn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefL2VPN{}
// BriefL2VPN Adds support for custom fields and tags.
type BriefL2VPN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type *BriefL2VPNType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type *BriefL2VPNType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefL2VPN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefL2VPN) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefL2VPN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefL2VPN) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefL2VPN) SetDisplay(v string) {
o.Display = v
}
-
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefL2VPN) GetIdentifier() int64 {
if o == nil || IsNil(o.Identifier.Get()) {
@@ -162,6 +159,7 @@ func (o *BriefL2VPN) HasIdentifier() bool {
func (o *BriefL2VPN) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *BriefL2VPN) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -196,7 +194,6 @@ func (o *BriefL2VPN) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefL2VPN) GetSlug() string {
if o == nil {
@@ -221,7 +218,6 @@ func (o *BriefL2VPN) SetSlug(v string) {
o.Slug = v
}
-
// GetType returns the Type field value if set, zero value otherwise.
func (o *BriefL2VPN) GetType() BriefL2VPNType {
if o == nil || IsNil(o.Type) {
@@ -287,7 +283,7 @@ func (o *BriefL2VPN) SetDescription(v string) {
}
func (o BriefL2VPN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -332,32 +328,31 @@ func (o *BriefL2VPN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -423,5 +418,3 @@ func (v *NullableBriefL2VPN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go
index 0af910588..dd19e0913 100644
--- a/model_brief_l2_vpn_request.go
+++ b/model_brief_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefL2VPNRequest{}
// BriefL2VPNRequest Adds support for custom fields and tags.
type BriefL2VPNRequest struct {
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type *BriefL2VPNTypeValue `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type *BriefL2VPNTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,6 +81,7 @@ func (o *BriefL2VPNRequest) HasIdentifier() bool {
func (o *BriefL2VPNRequest) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *BriefL2VPNRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -115,7 +116,6 @@ func (o *BriefL2VPNRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefL2VPNRequest) GetSlug() string {
if o == nil {
@@ -140,7 +140,6 @@ func (o *BriefL2VPNRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetType returns the Type field value if set, zero value otherwise.
func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue {
if o == nil || IsNil(o.Type) {
@@ -206,7 +205,7 @@ func (o *BriefL2VPNRequest) SetDescription(v string) {
}
func (o BriefL2VPNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -245,32 +244,31 @@ func (o *BriefL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -333,5 +331,3 @@ func (v *NullableBriefL2VPNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go
index 9c3de1ee0..9d5e4d656 100644
--- a/model_brief_l2_vpn_termination.go
+++ b/model_brief_l2_vpn_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &BriefL2VPNTermination{}
// BriefL2VPNTermination Adds support for custom fields and tags.
type BriefL2VPNTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- L2vpn BriefL2VPN `json:"l2vpn"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ L2vpn BriefL2VPN `json:"l2vpn"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *BriefL2VPNTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefL2VPNTermination) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *BriefL2VPNTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefL2VPNTermination) GetDisplay() string {
if o == nil {
@@ -124,7 +122,6 @@ func (o *BriefL2VPNTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetL2vpn returns the L2vpn field value
func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN {
if o == nil {
@@ -149,9 +146,8 @@ func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN) {
o.L2vpn = v
}
-
func (o BriefL2VPNTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -185,32 +181,31 @@ func (o *BriefL2VPNTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -272,5 +267,3 @@ func (v *NullableBriefL2VPNTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go
index 7dcc5a1fd..e2a39411b 100644
--- a/model_brief_l2_vpn_termination_request.go
+++ b/model_brief_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &BriefL2VPNTerminationRequest{}
// BriefL2VPNTerminationRequest Adds support for custom fields and tags.
type BriefL2VPNTerminationRequest struct {
- L2vpn BriefL2VPNRequest `json:"l2vpn"`
+ L2vpn BriefL2VPNTerminationRequestL2vpn `json:"l2vpn"`
AdditionalProperties map[string]interface{}
}
@@ -30,7 +30,7 @@ type _BriefL2VPNTerminationRequest BriefL2VPNTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest) *BriefL2VPNTerminationRequest {
+func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNTerminationRequestL2vpn) *BriefL2VPNTerminationRequest {
this := BriefL2VPNTerminationRequest{}
this.L2vpn = l2vpn
return &this
@@ -45,9 +45,9 @@ func NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest
}
// GetL2vpn returns the L2vpn field value
-func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
+func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNTerminationRequestL2vpn {
if o == nil {
- var ret BriefL2VPNRequest
+ var ret BriefL2VPNTerminationRequestL2vpn
return ret
}
@@ -56,7 +56,7 @@ func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
// GetL2vpnOk returns a tuple with the L2vpn field value
// and a boolean to check if the value has been set.
-func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) {
+func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNTerminationRequestL2vpn, bool) {
if o == nil {
return nil, false
}
@@ -64,13 +64,12 @@ func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) {
}
// SetL2vpn sets field value
-func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) {
+func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNTerminationRequestL2vpn) {
o.L2vpn = v
}
-
func (o BriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *BriefL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableBriefL2VPNTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_l2_vpn_termination_request_l2vpn.go b/model_brief_l2_vpn_termination_request_l2vpn.go
new file mode 100644
index 000000000..dc3c17a1e
--- /dev/null
+++ b/model_brief_l2_vpn_termination_request_l2vpn.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefL2VPNTerminationRequestL2vpn - struct for BriefL2VPNTerminationRequestL2vpn
+type BriefL2VPNTerminationRequestL2vpn struct {
+ BriefL2VPNRequest *BriefL2VPNRequest
+ Int32 *int32
+}
+
+// BriefL2VPNRequestAsBriefL2VPNTerminationRequestL2vpn is a convenience function that returns BriefL2VPNRequest wrapped in BriefL2VPNTerminationRequestL2vpn
+func BriefL2VPNRequestAsBriefL2VPNTerminationRequestL2vpn(v *BriefL2VPNRequest) BriefL2VPNTerminationRequestL2vpn {
+ return BriefL2VPNTerminationRequestL2vpn{
+ BriefL2VPNRequest: v,
+ }
+}
+
+// int32AsBriefL2VPNTerminationRequestL2vpn is a convenience function that returns int32 wrapped in BriefL2VPNTerminationRequestL2vpn
+func Int32AsBriefL2VPNTerminationRequestL2vpn(v *int32) BriefL2VPNTerminationRequestL2vpn {
+ return BriefL2VPNTerminationRequestL2vpn{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefL2VPNTerminationRequestL2vpn) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefL2VPNRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefL2VPNRequest)
+ if err == nil {
+ jsonBriefL2VPNRequest, _ := json.Marshal(dst.BriefL2VPNRequest)
+ if string(jsonBriefL2VPNRequest) == "{}" { // empty struct
+ dst.BriefL2VPNRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefL2VPNRequest); err != nil {
+ dst.BriefL2VPNRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefL2VPNRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefL2VPNRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefL2VPNTerminationRequestL2vpn)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefL2VPNTerminationRequestL2vpn)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefL2VPNTerminationRequestL2vpn) MarshalJSON() ([]byte, error) {
+ if src.BriefL2VPNRequest != nil {
+ return json.Marshal(&src.BriefL2VPNRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefL2VPNTerminationRequestL2vpn) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefL2VPNRequest != nil {
+ return obj.BriefL2VPNRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefL2VPNTerminationRequestL2vpn struct {
+ value *BriefL2VPNTerminationRequestL2vpn
+ isSet bool
+}
+
+func (v NullableBriefL2VPNTerminationRequestL2vpn) Get() *BriefL2VPNTerminationRequestL2vpn {
+ return v.value
+}
+
+func (v *NullableBriefL2VPNTerminationRequestL2vpn) Set(val *BriefL2VPNTerminationRequestL2vpn) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefL2VPNTerminationRequestL2vpn) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefL2VPNTerminationRequestL2vpn) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefL2VPNTerminationRequestL2vpn(val *BriefL2VPNTerminationRequestL2vpn) *NullableBriefL2VPNTerminationRequestL2vpn {
+ return &NullableBriefL2VPNTerminationRequestL2vpn{value: val, isSet: true}
+}
+
+func (v NullableBriefL2VPNTerminationRequestL2vpn) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefL2VPNTerminationRequestL2vpn) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go
index d44986c8b..cf71ebc18 100644
--- a/model_brief_l2_vpn_type.go
+++ b/model_brief_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &BriefL2VPNType{}
// BriefL2VPNType struct for BriefL2VPNType
type BriefL2VPNType struct {
- Value *BriefL2VPNTypeValue `json:"value,omitempty"`
- Label *BriefL2VPNTypeLabel `json:"label,omitempty"`
+ Value *BriefL2VPNTypeValue `json:"value,omitempty"`
+ Label *BriefL2VPNTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel) {
}
func (o BriefL2VPNType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableBriefL2VPNType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go
index a97a526c0..747c53e15 100644
--- a/model_brief_l2_vpn_type_label.go
+++ b/model_brief_l2_vpn_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,19 +20,20 @@ type BriefL2VPNTypeLabel string
// List of BriefL2VPN_type_label
const (
- BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS"
- BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS"
- BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN"
- BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN"
- BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN"
- BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN"
- BRIEFL2VPNTYPELABEL_EVPN_VPWS BriefL2VPNTypeLabel = "EVPN VPWS"
- BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL"
- BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL"
- BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN"
- BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN"
- BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree"
+ BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS"
+ BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS"
+ BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN"
+ BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN"
+ BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN"
+ BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN"
+ BRIEFL2VPNTYPELABEL_EVPN_VPWS BriefL2VPNTypeLabel = "EVPN VPWS"
+ BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL"
+ BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL"
+ BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN"
+ BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN"
+ BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree"
BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Virtual Private Tree"
+ BRIEFL2VPNTYPELABEL_SPB BriefL2VPNTypeLabel = "SPB"
)
// All allowed values of BriefL2VPNTypeLabel enum
@@ -50,6 +51,7 @@ var AllowedBriefL2VPNTypeLabelEnumValues = []BriefL2VPNTypeLabel{
"Ethernet Virtual Private LAN",
"Ethernet Private Tree",
"Ethernet Virtual Private Tree",
+ "SPB",
}
func (v *BriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error {
@@ -130,4 +132,3 @@ func (v *NullableBriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go
index 850b4eb26..4a7e8fb90 100644
--- a/model_brief_l2_vpn_type_value.go
+++ b/model_brief_l2_vpn_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,24 +15,25 @@ import (
"fmt"
)
-// BriefL2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `evpn-vpws` - EVPN VPWS * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree
+// BriefL2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `evpn-vpws` - EVPN VPWS * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree * `spb` - SPB
type BriefL2VPNTypeValue string
// List of BriefL2VPN_type_value
const (
- BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws"
- BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls"
- BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan"
+ BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws"
+ BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls"
+ BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan"
BRIEFL2VPNTYPEVALUE_VXLAN_EVPN BriefL2VPNTypeValue = "vxlan-evpn"
- BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn"
- BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn"
- BRIEFL2VPNTYPEVALUE_EVPN_VPWS BriefL2VPNTypeValue = "evpn-vpws"
- BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl"
- BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl"
- BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan"
- BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan"
- BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree"
- BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree"
+ BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn"
+ BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn"
+ BRIEFL2VPNTYPEVALUE_EVPN_VPWS BriefL2VPNTypeValue = "evpn-vpws"
+ BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl"
+ BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl"
+ BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan"
+ BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan"
+ BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree"
+ BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree"
+ BRIEFL2VPNTYPEVALUE_SPB BriefL2VPNTypeValue = "spb"
)
// All allowed values of BriefL2VPNTypeValue enum
@@ -50,6 +51,7 @@ var AllowedBriefL2VPNTypeValueEnumValues = []BriefL2VPNTypeValue{
"evp-lan",
"ep-tree",
"evp-tree",
+ "spb",
}
func (v *BriefL2VPNTypeValue) UnmarshalJSON(src []byte) error {
@@ -130,4 +132,3 @@ func (v *NullableBriefL2VPNTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_brief_location.go b/model_brief_location.go
index bfd23a066..b82f4e9e5 100644
--- a/model_brief_location.go
+++ b/model_brief_location.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefLocation{}
// BriefLocation Extends PrimaryModelSerializer to include MPTT support.
type BriefLocation struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- RackCount *int32 `json:"rack_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ RackCount *int32 `json:"rack_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefLocation) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefLocation) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefLocation) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefLocation) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefLocation) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefLocation) GetName() string {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefLocation) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefLocation) GetSlug() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefLocation) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefLocation) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -269,9 +264,8 @@ func (o *BriefLocation) SetDepth(v int32) {
o.Depth = v
}
-
func (o BriefLocation) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefLocation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_location_request.go b/model_brief_location_request.go
index e6c540486..fedd7eb39 100644
--- a/model_brief_location_request.go
+++ b/model_brief_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefLocationRequest{}
// BriefLocationRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefLocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefLocationRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefLocationRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefLocationRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefLocationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefLocationRequest) SetDescription(v string) {
}
func (o BriefLocationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefLocationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefLocationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_mac_address.go b/model_brief_mac_address.go
index 12d05adfa..2d20af517 100644
--- a/model_brief_mac_address.go
+++ b/model_brief_mac_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefMACAddress{}
// BriefMACAddress Adds support for custom fields and tags.
type BriefMACAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- MacAddress string `json:"mac_address"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ MacAddress string `json:"mac_address"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefMACAddress) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefMACAddress) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefMACAddress) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefMACAddress) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefMACAddress) SetDisplay(v string) {
o.Display = v
}
-
// GetMacAddress returns the MacAddress field value
func (o *BriefMACAddress) GetMacAddress() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefMACAddress) SetMacAddress(v string) {
o.MacAddress = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefMACAddress) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefMACAddress) SetDescription(v string) {
}
func (o BriefMACAddress) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefMACAddress) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefMACAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_mac_address_request.go b/model_brief_mac_address_request.go
index 07878f34f..f0d8a7d4d 100644
--- a/model_brief_mac_address_request.go
+++ b/model_brief_mac_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefMACAddressRequest{}
// BriefMACAddressRequest Adds support for custom fields and tags.
type BriefMACAddressRequest struct {
- MacAddress string `json:"mac_address"`
- Description *string `json:"description,omitempty"`
+ MacAddress string `json:"mac_address"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefMACAddressRequest) SetMacAddress(v string) {
o.MacAddress = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefMACAddressRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefMACAddressRequest) SetDescription(v string) {
}
func (o BriefMACAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefMACAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefMACAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go
index 6790756ab..2029faf6b 100644
--- a/model_brief_manufacturer.go
+++ b/model_brief_manufacturer.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefManufacturer{}
// BriefManufacturer Adds support for custom fields and tags.
type BriefManufacturer struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- DevicetypeCount *int64 `json:"devicetype_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ DevicetypeCount *int64 `json:"devicetype_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefManufacturer) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefManufacturer) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefManufacturer) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefManufacturer) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefManufacturer) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefManufacturer) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefManufacturer) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefManufacturer) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefManufacturer) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefManufacturer) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefManufacturer) SetDevicetypeCount(v int64) {
}
func (o BriefManufacturer) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefManufacturer) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefManufacturer) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go
index dd8b1912d..6f1829a3f 100644
--- a/model_brief_manufacturer_request.go
+++ b/model_brief_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefManufacturerRequest{}
// BriefManufacturerRequest Adds support for custom fields and tags.
type BriefManufacturerRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefManufacturerRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefManufacturerRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefManufacturerRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefManufacturerRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefManufacturerRequest) SetDescription(v string) {
}
func (o BriefManufacturerRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefManufacturerRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefManufacturerRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module.go b/model_brief_module.go
index b6d6a438a..5d9ab6c67 100644
--- a/model_brief_module.go
+++ b/model_brief_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefModule{}
// BriefModule Adds support for custom fields and tags.
type BriefModule struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- ModuleBay NestedModuleBay `json:"module_bay"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ ModuleBay NestedModuleBay `json:"module_bay"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefModule) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefModule) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefModule) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefModule) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefModule) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *BriefModule) GetDevice() BriefDevice {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefModule) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModuleBay returns the ModuleBay field value
func (o *BriefModule) GetModuleBay() NestedModuleBay {
if o == nil {
@@ -176,9 +172,8 @@ func (o *BriefModule) SetModuleBay(v NestedModuleBay) {
o.ModuleBay = v
}
-
func (o BriefModule) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -214,32 +209,31 @@ func (o *BriefModule) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -302,5 +296,3 @@ func (v *NullableBriefModule) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module_request.go b/model_brief_module_request.go
index e0317d0bf..0dcdae791 100644
--- a/model_brief_module_request.go
+++ b/model_brief_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefModuleRequest{}
// BriefModuleRequest Adds support for custom fields and tags.
type BriefModuleRequest struct {
- Device BriefDeviceRequest `json:"device"`
- ModuleBay NestedModuleBayRequest `json:"module_bay"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ ModuleBay NestedModuleBayRequest `json:"module_bay"`
AdditionalProperties map[string]interface{}
}
@@ -31,7 +31,7 @@ type _BriefModuleRequest BriefModuleRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest) *BriefModuleRequest {
+func NewBriefModuleRequest(device BriefInterfaceRequestDevice, moduleBay NestedModuleBayRequest) *BriefModuleRequest {
this := BriefModuleRequest{}
this.Device = device
this.ModuleBay = moduleBay
@@ -47,9 +47,9 @@ func NewBriefModuleRequestWithDefaults() *BriefModuleRequest {
}
// GetDevice returns the Device field value
-func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest {
+func (o *BriefModuleRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -58,7 +58,7 @@ func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *BriefModuleRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -66,11 +66,10 @@ func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest) {
+func (o *BriefModuleRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModuleBay returns the ModuleBay field value
func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest {
if o == nil {
@@ -95,9 +94,8 @@ func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest) {
o.ModuleBay = v
}
-
func (o BriefModuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *BriefModuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableBriefModuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module_type.go b/model_brief_module_type.go
index 06e9b6226..b293a8af6 100644
--- a/model_brief_module_type.go
+++ b/model_brief_module_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &BriefModuleType{}
// BriefModuleType Adds support for custom fields and tags.
type BriefModuleType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Profile NullableBriefModuleTypeProfile `json:"profile,omitempty"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +78,6 @@ func (o *BriefModuleType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefModuleType) GetUrl() string {
if o == nil {
@@ -102,7 +102,6 @@ func (o *BriefModuleType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefModuleType) GetDisplay() string {
if o == nil {
@@ -127,6 +126,48 @@ func (o *BriefModuleType) SetDisplay(v string) {
o.Display = v
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *BriefModuleType) GetProfile() BriefModuleTypeProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *BriefModuleType) GetProfileOk() (*BriefModuleTypeProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *BriefModuleType) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeProfile and assigns it to the Profile field.
+func (o *BriefModuleType) SetProfile(v BriefModuleTypeProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *BriefModuleType) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *BriefModuleType) UnsetProfile() {
+ o.Profile.Unset()
+}
// GetManufacturer returns the Manufacturer field value
func (o *BriefModuleType) GetManufacturer() BriefManufacturer {
@@ -152,7 +193,6 @@ func (o *BriefModuleType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefModuleType) GetModel() string {
if o == nil {
@@ -177,7 +217,6 @@ func (o *BriefModuleType) SetModel(v string) {
o.Model = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefModuleType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -211,7 +250,7 @@ func (o *BriefModuleType) SetDescription(v string) {
}
func (o BriefModuleType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -223,6 +262,9 @@ func (o BriefModuleType) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
if !IsNil(o.Description) {
@@ -250,32 +292,31 @@ func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -295,6 +336,7 @@ func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "description")
@@ -339,5 +381,3 @@ func (v *NullableBriefModuleType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module_type_profile.go b/model_brief_module_type_profile.go
new file mode 100644
index 000000000..c4096d7cd
--- /dev/null
+++ b/model_brief_module_type_profile.go
@@ -0,0 +1,306 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the BriefModuleTypeProfile type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &BriefModuleTypeProfile{}
+
+// BriefModuleTypeProfile Adds support for custom fields and tags.
+type BriefModuleTypeProfile struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _BriefModuleTypeProfile BriefModuleTypeProfile
+
+// NewBriefModuleTypeProfile instantiates a new BriefModuleTypeProfile object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewBriefModuleTypeProfile(id int32, url string, display string, name string) *BriefModuleTypeProfile {
+ this := BriefModuleTypeProfile{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ return &this
+}
+
+// NewBriefModuleTypeProfileWithDefaults instantiates a new BriefModuleTypeProfile object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewBriefModuleTypeProfileWithDefaults() *BriefModuleTypeProfile {
+ this := BriefModuleTypeProfile{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *BriefModuleTypeProfile) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *BriefModuleTypeProfile) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *BriefModuleTypeProfile) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *BriefModuleTypeProfile) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) 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 *BriefModuleTypeProfile) SetDescription(v string) {
+ o.Description = &v
+}
+
+func (o BriefModuleTypeProfile) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o BriefModuleTypeProfile) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *BriefModuleTypeProfile) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "name",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varBriefModuleTypeProfile := _BriefModuleTypeProfile{}
+
+ err = json.Unmarshal(data, &varBriefModuleTypeProfile)
+
+ if err != nil {
+ return err
+ }
+
+ *o = BriefModuleTypeProfile(varBriefModuleTypeProfile)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableBriefModuleTypeProfile struct {
+ value *BriefModuleTypeProfile
+ isSet bool
+}
+
+func (v NullableBriefModuleTypeProfile) Get() *BriefModuleTypeProfile {
+ return v.value
+}
+
+func (v *NullableBriefModuleTypeProfile) Set(val *BriefModuleTypeProfile) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefModuleTypeProfile) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefModuleTypeProfile) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefModuleTypeProfile(val *BriefModuleTypeProfile) *NullableBriefModuleTypeProfile {
+ return &NullableBriefModuleTypeProfile{value: val, isSet: true}
+}
+
+func (v NullableBriefModuleTypeProfile) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefModuleTypeProfile) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_contact_group_request.go b/model_brief_module_type_profile_request.go
similarity index 53%
rename from model_brief_contact_group_request.go
rename to model_brief_module_type_profile_request.go
index 3edd1d1db..829d060eb 100644
--- a/model_brief_contact_group_request.go
+++ b/model_brief_module_type_profile_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,40 +15,38 @@ import (
"fmt"
)
-// checks if the BriefContactGroupRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &BriefContactGroupRequest{}
+// checks if the BriefModuleTypeProfileRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &BriefModuleTypeProfileRequest{}
-// BriefContactGroupRequest Extends PrimaryModelSerializer to include MPTT support.
-type BriefContactGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+// BriefModuleTypeProfileRequest Adds support for custom fields and tags.
+type BriefModuleTypeProfileRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _BriefContactGroupRequest BriefContactGroupRequest
+type _BriefModuleTypeProfileRequest BriefModuleTypeProfileRequest
-// NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest object
+// NewBriefModuleTypeProfileRequest instantiates a new BriefModuleTypeProfileRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefContactGroupRequest(name string, slug string) *BriefContactGroupRequest {
- this := BriefContactGroupRequest{}
+func NewBriefModuleTypeProfileRequest(name string) *BriefModuleTypeProfileRequest {
+ this := BriefModuleTypeProfileRequest{}
this.Name = name
- this.Slug = slug
return &this
}
-// NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest object
+// NewBriefModuleTypeProfileRequestWithDefaults instantiates a new BriefModuleTypeProfileRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
-func NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest {
- this := BriefContactGroupRequest{}
+func NewBriefModuleTypeProfileRequestWithDefaults() *BriefModuleTypeProfileRequest {
+ this := BriefModuleTypeProfileRequest{}
return &this
}
// GetName returns the Name field value
-func (o *BriefContactGroupRequest) GetName() string {
+func (o *BriefModuleTypeProfileRequest) GetName() string {
if o == nil {
var ret string
return ret
@@ -59,7 +57,7 @@ func (o *BriefContactGroupRequest) GetName() string {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroupRequest) GetNameOk() (*string, bool) {
+func (o *BriefModuleTypeProfileRequest) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -67,38 +65,12 @@ func (o *BriefContactGroupRequest) GetNameOk() (*string, bool) {
}
// SetName sets field value
-func (o *BriefContactGroupRequest) SetName(v string) {
+func (o *BriefModuleTypeProfileRequest) SetName(v string) {
o.Name = v
}
-
-// GetSlug returns the Slug field value
-func (o *BriefContactGroupRequest) GetSlug() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Slug
-}
-
-// GetSlugOk returns a tuple with the Slug field value
-// and a boolean to check if the value has been set.
-func (o *BriefContactGroupRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *BriefContactGroupRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *BriefContactGroupRequest) GetDescription() string {
+func (o *BriefModuleTypeProfileRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -108,7 +80,7 @@ func (o *BriefContactGroupRequest) GetDescription() string {
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool) {
+func (o *BriefModuleTypeProfileRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -116,7 +88,7 @@ func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *BriefContactGroupRequest) HasDescription() bool {
+func (o *BriefModuleTypeProfileRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -125,22 +97,21 @@ func (o *BriefContactGroupRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *BriefContactGroupRequest) SetDescription(v string) {
+func (o *BriefModuleTypeProfileRequest) SetDescription(v string) {
o.Description = &v
}
-func (o BriefContactGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+func (o BriefModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
-func (o BriefContactGroupRequest) ToMap() (map[string]interface{}, error) {
+func (o BriefModuleTypeProfileRequest) 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
}
@@ -152,61 +123,58 @@ func (o BriefContactGroupRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
+func (o *BriefModuleTypeProfileRequest) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "slug",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
- varBriefContactGroupRequest := _BriefContactGroupRequest{}
+ varBriefModuleTypeProfileRequest := _BriefModuleTypeProfileRequest{}
- err = json.Unmarshal(data, &varBriefContactGroupRequest)
+ err = json.Unmarshal(data, &varBriefModuleTypeProfileRequest)
if err != nil {
return err
}
- *o = BriefContactGroupRequest(varBriefContactGroupRequest)
+ *o = BriefModuleTypeProfileRequest(varBriefModuleTypeProfileRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "slug")
delete(additionalProperties, "description")
o.AdditionalProperties = additionalProperties
}
@@ -214,40 +182,38 @@ func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullableBriefContactGroupRequest struct {
- value *BriefContactGroupRequest
+type NullableBriefModuleTypeProfileRequest struct {
+ value *BriefModuleTypeProfileRequest
isSet bool
}
-func (v NullableBriefContactGroupRequest) Get() *BriefContactGroupRequest {
+func (v NullableBriefModuleTypeProfileRequest) Get() *BriefModuleTypeProfileRequest {
return v.value
}
-func (v *NullableBriefContactGroupRequest) Set(val *BriefContactGroupRequest) {
+func (v *NullableBriefModuleTypeProfileRequest) Set(val *BriefModuleTypeProfileRequest) {
v.value = val
v.isSet = true
}
-func (v NullableBriefContactGroupRequest) IsSet() bool {
+func (v NullableBriefModuleTypeProfileRequest) IsSet() bool {
return v.isSet
}
-func (v *NullableBriefContactGroupRequest) Unset() {
+func (v *NullableBriefModuleTypeProfileRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableBriefContactGroupRequest(val *BriefContactGroupRequest) *NullableBriefContactGroupRequest {
- return &NullableBriefContactGroupRequest{value: val, isSet: true}
+func NewNullableBriefModuleTypeProfileRequest(val *BriefModuleTypeProfileRequest) *NullableBriefModuleTypeProfileRequest {
+ return &NullableBriefModuleTypeProfileRequest{value: val, isSet: true}
}
-func (v NullableBriefContactGroupRequest) MarshalJSON() ([]byte, error) {
+func (v NullableBriefModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableBriefContactGroupRequest) UnmarshalJSON(src []byte) error {
+func (v *NullableBriefModuleTypeProfileRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go
index e1455277c..bb12ad4d5 100644
--- a/model_brief_module_type_request.go
+++ b/model_brief_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,10 @@ var _ MappedNullable = &BriefModuleTypeRequest{}
// BriefModuleTypeRequest Adds support for custom fields and tags.
type BriefModuleTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- Description *string `json:"description,omitempty"`
+ Profile NullableBriefModuleTypeRequestProfile `json:"profile,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +33,7 @@ type _BriefModuleTypeRequest BriefModuleTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *BriefModuleTypeRequest {
+func NewBriefModuleTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string) *BriefModuleTypeRequest {
this := BriefModuleTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -47,10 +48,53 @@ func NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest {
return &this
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *BriefModuleTypeRequest) GetProfile() BriefModuleTypeRequestProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeRequestProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *BriefModuleTypeRequest) GetProfileOk() (*BriefModuleTypeRequestProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *BriefModuleTypeRequest) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeRequestProfile and assigns it to the Profile field.
+func (o *BriefModuleTypeRequest) SetProfile(v BriefModuleTypeRequestProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *BriefModuleTypeRequest) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *BriefModuleTypeRequest) UnsetProfile() {
+ o.Profile.Unset()
+}
+
// GetManufacturer returns the Manufacturer field value
-func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *BriefModuleTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -59,7 +103,7 @@ func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -67,11 +111,10 @@ func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest,
}
// SetManufacturer sets field value
-func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *BriefModuleTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefModuleTypeRequest) GetModel() string {
if o == nil {
@@ -96,7 +139,6 @@ func (o *BriefModuleTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefModuleTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +172,7 @@ func (o *BriefModuleTypeRequest) SetDescription(v string) {
}
func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -139,6 +181,9 @@ func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) {
func (o BriefModuleTypeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
if !IsNil(o.Description) {
@@ -163,32 +208,31 @@ func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -205,6 +249,7 @@ func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "description")
@@ -249,5 +294,3 @@ func (v *NullableBriefModuleTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_module_type_request_profile.go b/model_brief_module_type_request_profile.go
new file mode 100644
index 000000000..4f210a284
--- /dev/null
+++ b/model_brief_module_type_request_profile.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefModuleTypeRequestProfile - struct for BriefModuleTypeRequestProfile
+type BriefModuleTypeRequestProfile struct {
+ BriefModuleTypeProfileRequest *BriefModuleTypeProfileRequest
+ Int32 *int32
+}
+
+// BriefModuleTypeProfileRequestAsBriefModuleTypeRequestProfile is a convenience function that returns BriefModuleTypeProfileRequest wrapped in BriefModuleTypeRequestProfile
+func BriefModuleTypeProfileRequestAsBriefModuleTypeRequestProfile(v *BriefModuleTypeProfileRequest) BriefModuleTypeRequestProfile {
+ return BriefModuleTypeRequestProfile{
+ BriefModuleTypeProfileRequest: v,
+ }
+}
+
+// int32AsBriefModuleTypeRequestProfile is a convenience function that returns int32 wrapped in BriefModuleTypeRequestProfile
+func Int32AsBriefModuleTypeRequestProfile(v *int32) BriefModuleTypeRequestProfile {
+ return BriefModuleTypeRequestProfile{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefModuleTypeRequestProfile) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefModuleTypeProfileRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefModuleTypeProfileRequest)
+ if err == nil {
+ jsonBriefModuleTypeProfileRequest, _ := json.Marshal(dst.BriefModuleTypeProfileRequest)
+ if string(jsonBriefModuleTypeProfileRequest) == "{}" { // empty struct
+ dst.BriefModuleTypeProfileRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefModuleTypeProfileRequest); err != nil {
+ dst.BriefModuleTypeProfileRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefModuleTypeProfileRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefModuleTypeProfileRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefModuleTypeRequestProfile)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefModuleTypeRequestProfile)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefModuleTypeRequestProfile) MarshalJSON() ([]byte, error) {
+ if src.BriefModuleTypeProfileRequest != nil {
+ return json.Marshal(&src.BriefModuleTypeProfileRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefModuleTypeRequestProfile) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefModuleTypeProfileRequest != nil {
+ return obj.BriefModuleTypeProfileRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefModuleTypeRequestProfile struct {
+ value *BriefModuleTypeRequestProfile
+ isSet bool
+}
+
+func (v NullableBriefModuleTypeRequestProfile) Get() *BriefModuleTypeRequestProfile {
+ return v.value
+}
+
+func (v *NullableBriefModuleTypeRequestProfile) Set(val *BriefModuleTypeRequestProfile) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefModuleTypeRequestProfile) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefModuleTypeRequestProfile) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefModuleTypeRequestProfile(val *BriefModuleTypeRequestProfile) *NullableBriefModuleTypeRequestProfile {
+ return &NullableBriefModuleTypeRequestProfile{value: val, isSet: true}
+}
+
+func (v NullableBriefModuleTypeRequestProfile) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefModuleTypeRequestProfile) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_platform.go b/model_brief_platform.go
index 5d4681aa8..bfd200960 100644
--- a/model_brief_platform.go
+++ b/model_brief_platform.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefPlatform{}
// BriefPlatform Adds support for custom fields and tags.
type BriefPlatform struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefPlatform) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefPlatform) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefPlatform) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefPlatform) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefPlatform) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefPlatform) GetName() string {
if o == nil {
@@ -154,7 +151,6 @@ func (o *BriefPlatform) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefPlatform) GetSlug() string {
if o == nil {
@@ -179,7 +175,6 @@ func (o *BriefPlatform) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPlatform) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -277,7 +272,7 @@ func (o *BriefPlatform) SetVirtualmachineCount(v int64) {
}
func (o BriefPlatform) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -322,32 +317,31 @@ func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -413,5 +407,3 @@ func (v *NullableBriefPlatform) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go
index c2c790be8..2066c0531 100644
--- a/model_brief_platform_request.go
+++ b/model_brief_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefPlatformRequest{}
// BriefPlatformRequest Adds support for custom fields and tags.
type BriefPlatformRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefPlatformRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefPlatformRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefPlatformRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPlatformRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefPlatformRequest) SetDescription(v string) {
}
func (o BriefPlatformRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefPlatformRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefPlatformRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go
index 1ec5ee271..39788be2a 100644
--- a/model_brief_power_panel.go
+++ b/model_brief_power_panel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefPowerPanel{}
// BriefPowerPanel Adds support for custom fields and tags.
type BriefPowerPanel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefPowerPanel) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefPowerPanel) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefPowerPanel) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefPowerPanel) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefPowerPanel) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefPowerPanel) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefPowerPanel) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPanel) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -217,7 +213,7 @@ func (o *BriefPowerPanel) SetPowerfeedCount(v int64) {
}
func (o BriefPowerPanel) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -257,32 +253,31 @@ func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -346,5 +341,3 @@ func (v *NullableBriefPowerPanel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go
index 8b4b27832..0a08c7067 100644
--- a/model_brief_power_panel_request.go
+++ b/model_brief_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefPowerPanelRequest{}
// BriefPowerPanelRequest Adds support for custom fields and tags.
type BriefPowerPanelRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefPowerPanelRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPanelRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefPowerPanelRequest) SetDescription(v string) {
}
func (o BriefPowerPanelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefPowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefPowerPanelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_port.go b/model_brief_power_port.go
index bec86ba74..937859b3e 100644
--- a/model_brief_power_port.go
+++ b/model_brief_power_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefPowerPort{}
// BriefPowerPort Adds support for custom fields and tags.
type BriefPowerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- Occupied bool `json:"_occupied"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefPowerPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefPowerPort) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefPowerPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefPowerPort) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefPowerPort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *BriefPowerPort) GetDevice() BriefDevice {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefPowerPort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *BriefPowerPort) GetName() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefPowerPort) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPort) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -245,6 +240,7 @@ func (o *BriefPowerPort) HasCable() bool {
func (o *BriefPowerPort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *BriefPowerPort) SetCableNil() {
o.Cable.Set(nil)
@@ -279,9 +275,8 @@ func (o *BriefPowerPort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o BriefPowerPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -325,32 +320,31 @@ func (o *BriefPowerPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -416,5 +410,3 @@ func (v *NullableBriefPowerPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go
index 03cf812dc..9a80f6905 100644
--- a/model_brief_power_port_request.go
+++ b/model_brief_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefPowerPortRequest{}
// BriefPowerPortRequest Adds support for custom fields and tags.
type BriefPowerPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +32,7 @@ type _BriefPowerPortRequest BriefPowerPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefPowerPortRequest(device BriefDeviceRequest, name string) *BriefPowerPortRequest {
+func NewBriefPowerPortRequest(device BriefInterfaceRequestDevice, name string) *BriefPowerPortRequest {
this := BriefPowerPortRequest{}
this.Device = device
this.Name = name
@@ -48,9 +48,9 @@ func NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest {
}
// GetDevice returns the Device field value
-func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *BriefPowerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -59,7 +59,7 @@ func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -67,11 +67,10 @@ func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *BriefPowerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *BriefPowerPortRequest) GetName() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefPowerPortRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPortRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefPowerPortRequest) SetDescription(v string) {
}
func (o BriefPowerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefPowerPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefPowerPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go
index ecaa1c865..36bd40f14 100644
--- a/model_brief_power_port_template.go
+++ b/model_brief_power_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefPowerPortTemplate{}
// BriefPowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefPowerPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefPowerPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefPowerPortTemplate) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefPowerPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefPowerPortTemplate) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefPowerPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefPowerPortTemplate) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefPowerPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPortTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -185,7 +181,7 @@ func (o *BriefPowerPortTemplate) SetDescription(v string) {
}
func (o BriefPowerPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -222,32 +218,31 @@ func (o *BriefPowerPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -310,5 +305,3 @@ func (v *NullableBriefPowerPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go
index 3d81fd60f..f9f579d70 100644
--- a/model_brief_power_port_template_request.go
+++ b/model_brief_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &BriefPowerPortTemplateRequest{}
// BriefPowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefPowerPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *BriefPowerPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefPowerPortTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -104,7 +103,7 @@ func (o *BriefPowerPortTemplateRequest) SetDescription(v string) {
}
func (o BriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -135,32 +134,31 @@ func (o *BriefPowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -220,5 +218,3 @@ func (v *NullableBriefPowerPortTemplateRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider.go b/model_brief_provider.go
index 996274843..512b1bf03 100644
--- a/model_brief_provider.go
+++ b/model_brief_provider.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefProvider{}
// BriefProvider Adds support for custom fields and tags.
type BriefProvider struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefProvider) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefProvider) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefProvider) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefProvider) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefProvider) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefProvider) GetName() string {
if o == nil {
@@ -154,7 +151,6 @@ func (o *BriefProvider) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefProvider) GetSlug() string {
if o == nil {
@@ -179,7 +175,6 @@ func (o *BriefProvider) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProvider) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -245,7 +240,7 @@ func (o *BriefProvider) SetCircuitCount(v int64) {
}
func (o BriefProvider) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -287,32 +282,31 @@ func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -377,5 +371,3 @@ func (v *NullableBriefProvider) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go
index b9ea08666..6b21983f1 100644
--- a/model_brief_provider_account.go
+++ b/model_brief_provider_account.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefProviderAccount{}
// BriefProviderAccount Adds support for custom fields and tags.
type BriefProviderAccount struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefProviderAccount) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefProviderAccount) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefProviderAccount) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefProviderAccount) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefProviderAccount) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *BriefProviderAccount) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -187,7 +184,6 @@ func (o *BriefProviderAccount) SetAccount(v string) {
o.Account = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProviderAccount) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -221,7 +217,7 @@ func (o *BriefProviderAccount) SetDescription(v string) {
}
func (o BriefProviderAccount) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -261,32 +257,31 @@ func (o *BriefProviderAccount) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -350,5 +345,3 @@ func (v *NullableBriefProviderAccount) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go
index fbaca62b9..4b7906e54 100644
--- a/model_brief_provider_account_request.go
+++ b/model_brief_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefProviderAccountRequest{}
// BriefProviderAccountRequest Adds support for custom fields and tags.
type BriefProviderAccountRequest struct {
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -106,7 +106,6 @@ func (o *BriefProviderAccountRequest) SetAccount(v string) {
o.Account = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProviderAccountRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -140,7 +139,7 @@ func (o *BriefProviderAccountRequest) SetDescription(v string) {
}
func (o BriefProviderAccountRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -174,32 +173,31 @@ func (o *BriefProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -260,5 +258,3 @@ func (v *NullableBriefProviderAccountRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go
index 29769f2d7..b30ca76e6 100644
--- a/model_brief_provider_network.go
+++ b/model_brief_provider_network.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefProviderNetwork{}
// BriefProviderNetwork Adds support for custom fields and tags.
type BriefProviderNetwork struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefProviderNetwork) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefProviderNetwork) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefProviderNetwork) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefProviderNetwork) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefProviderNetwork) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefProviderNetwork) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefProviderNetwork) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProviderNetwork) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefProviderNetwork) SetDescription(v string) {
}
func (o BriefProviderNetwork) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefProviderNetwork) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefProviderNetwork) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go
index a9c2cb225..ed42afde2 100644
--- a/model_brief_provider_network_request.go
+++ b/model_brief_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefProviderNetworkRequest{}
// BriefProviderNetworkRequest Adds support for custom fields and tags.
type BriefProviderNetworkRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefProviderNetworkRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProviderNetworkRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefProviderNetworkRequest) SetDescription(v string) {
}
func (o BriefProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefProviderNetworkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go
index 56218d419..7c4d57ea3 100644
--- a/model_brief_provider_request.go
+++ b/model_brief_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &BriefProviderRequest{}
// BriefProviderRequest Adds support for custom fields and tags.
type BriefProviderRequest struct {
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *BriefProviderRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefProviderRequest) GetSlug() string {
if o == nil {
@@ -97,7 +96,6 @@ func (o *BriefProviderRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefProviderRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *BriefProviderRequest) SetDescription(v string) {
}
func (o BriefProviderRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *BriefProviderRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableBriefProviderRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack.go b/model_brief_rack.go
index c1b2cdec6..b456b51c3 100644
--- a/model_brief_rack.go
+++ b/model_brief_rack.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefRack{}
// BriefRack Adds support for custom fields and tags.
type BriefRack struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefRack) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRack) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefRack) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRack) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefRack) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRack) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefRack) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRack) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -217,7 +213,7 @@ func (o *BriefRack) SetDeviceCount(v int64) {
}
func (o BriefRack) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -257,32 +253,31 @@ func (o *BriefRack) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -346,5 +341,3 @@ func (v *NullableBriefRack) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack_request.go b/model_brief_rack_request.go
index 81432c391..efc6f5dc5 100644
--- a/model_brief_rack_request.go
+++ b/model_brief_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefRackRequest{}
// BriefRackRequest Adds support for custom fields and tags.
type BriefRackRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefRackRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRackRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefRackRequest) SetDescription(v string) {
}
func (o BriefRackRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefRackRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefRackRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go
index da84649c0..9ab745d1b 100644
--- a/model_brief_rack_role.go
+++ b/model_brief_rack_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRackRole{}
// BriefRackRole Adds support for custom fields and tags.
type BriefRackRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- RackCount *int64 `json:"rack_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ RackCount *int64 `json:"rack_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefRackRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRackRole) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefRackRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRackRole) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefRackRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRackRole) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefRackRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRackRole) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefRackRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRackRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefRackRole) SetRackCount(v int64) {
}
func (o BriefRackRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefRackRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefRackRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go
index f659cb865..afce1fc72 100644
--- a/model_brief_rack_role_request.go
+++ b/model_brief_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRackRoleRequest{}
// BriefRackRoleRequest Adds support for custom fields and tags.
type BriefRackRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefRackRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRackRoleRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefRackRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRackRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefRackRoleRequest) SetDescription(v string) {
}
func (o BriefRackRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefRackRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefRackRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go
index 3c1940d43..468ff2d6e 100644
--- a/model_brief_rack_type.go
+++ b/model_brief_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRackType{}
// BriefRackType Adds support for custom fields and tags.
type BriefRackType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefRackType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRackType) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefRackType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRackType) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefRackType) SetDisplay(v string) {
o.Display = v
}
-
// GetManufacturer returns the Manufacturer field value
func (o *BriefRackType) GetManufacturer() BriefManufacturer {
if o == nil {
@@ -154,7 +151,6 @@ func (o *BriefRackType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefRackType) GetModel() string {
if o == nil {
@@ -179,7 +175,6 @@ func (o *BriefRackType) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRackType) GetSlug() string {
if o == nil {
@@ -204,7 +199,6 @@ func (o *BriefRackType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRackType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -238,7 +232,7 @@ func (o *BriefRackType) SetDescription(v string) {
}
func (o BriefRackType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *BriefRackType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableBriefRackType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go
index 511d61561..1693a8245 100644
--- a/model_brief_rack_type_request.go
+++ b/model_brief_rack_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &BriefRackTypeRequest{}
// BriefRackTypeRequest Adds support for custom fields and tags.
type BriefRackTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _BriefRackTypeRequest BriefRackTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefRackTypeRequest {
+func NewBriefRackTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string) *BriefRackTypeRequest {
this := BriefRackTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -50,9 +50,9 @@ func NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *BriefRackTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -61,7 +61,7 @@ func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -69,11 +69,10 @@ func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, b
}
// SetManufacturer sets field value
-func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *BriefRackTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *BriefRackTypeRequest) GetModel() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *BriefRackTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRackTypeRequest) GetSlug() string {
if o == nil {
@@ -123,7 +121,6 @@ func (o *BriefRackTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRackTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -157,7 +154,7 @@ func (o *BriefRackTypeRequest) SetDescription(v string) {
}
func (o BriefRackTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -192,32 +189,31 @@ func (o *BriefRackTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -279,5 +275,3 @@ func (v *NullableBriefRackTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go
index 2bcfdc1bc..6b48507ee 100644
--- a/model_brief_rear_port_template.go
+++ b/model_brief_rear_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefRearPortTemplate{}
// BriefRearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefRearPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *BriefRearPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRearPortTemplate) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *BriefRearPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRearPortTemplate) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *BriefRearPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRearPortTemplate) GetName() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *BriefRearPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRearPortTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -185,7 +181,7 @@ func (o *BriefRearPortTemplate) SetDescription(v string) {
}
func (o BriefRearPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -222,32 +218,31 @@ func (o *BriefRearPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -310,5 +305,3 @@ func (v *NullableBriefRearPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go
index d2002258e..3220fbe19 100644
--- a/model_brief_rear_port_template_request.go
+++ b/model_brief_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &BriefRearPortTemplateRequest{}
// BriefRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefRearPortTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *BriefRearPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRearPortTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -104,7 +103,7 @@ func (o *BriefRearPortTemplateRequest) SetDescription(v string) {
}
func (o BriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -135,32 +134,31 @@ func (o *BriefRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -220,5 +218,3 @@ func (v *NullableBriefRearPortTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_region.go b/model_brief_region.go
index 28bce68a0..7fb4fe683 100644
--- a/model_brief_region.go
+++ b/model_brief_region.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefRegion{}
// BriefRegion Extends PrimaryModelSerializer to include MPTT support.
type BriefRegion struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- SiteCount *int32 `json:"site_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ SiteCount *int32 `json:"site_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefRegion) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRegion) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefRegion) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRegion) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefRegion) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRegion) GetName() string {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefRegion) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRegion) GetSlug() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefRegion) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRegion) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -269,9 +264,8 @@ func (o *BriefRegion) SetDepth(v int32) {
o.Depth = v
}
-
func (o BriefRegion) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefRegion) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_region_request.go b/model_brief_region_request.go
index ba73e09df..a697045ae 100644
--- a/model_brief_region_request.go
+++ b/model_brief_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRegionRequest{}
// BriefRegionRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefRegionRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefRegionRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRegionRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefRegionRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRegionRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefRegionRequest) SetDescription(v string) {
}
func (o BriefRegionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefRegionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefRegionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rir.go b/model_brief_rir.go
index bdf0235b5..e617f05eb 100644
--- a/model_brief_rir.go
+++ b/model_brief_rir.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRIR{}
// BriefRIR Adds support for custom fields and tags.
type BriefRIR struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- AggregateCount *int64 `json:"aggregate_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ AggregateCount *int64 `json:"aggregate_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefRIR) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRIR) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefRIR) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRIR) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefRIR) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRIR) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefRIR) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRIR) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefRIR) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRIR) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefRIR) SetAggregateCount(v int64) {
}
func (o BriefRIR) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefRIR) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go
index 74da2e3ea..0ad6bc225 100644
--- a/model_brief_rir_request.go
+++ b/model_brief_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRIRRequest{}
// BriefRIRRequest Adds support for custom fields and tags.
type BriefRIRRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefRIRRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRIRRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefRIRRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRIRRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefRIRRequest) SetDescription(v string) {
}
func (o BriefRIRRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefRIRRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefRIRRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_role.go b/model_brief_role.go
index e22f56151..0e7c7bb77 100644
--- a/model_brief_role.go
+++ b/model_brief_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefRole{}
// BriefRole Adds support for custom fields and tags.
type BriefRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefRole) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefRole) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefRole) GetName() string {
if o == nil {
@@ -154,7 +151,6 @@ func (o *BriefRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRole) GetSlug() string {
if o == nil {
@@ -179,7 +175,6 @@ func (o *BriefRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -277,7 +272,7 @@ func (o *BriefRole) SetVlanCount(v int64) {
}
func (o BriefRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -322,32 +317,31 @@ func (o *BriefRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -413,5 +407,3 @@ func (v *NullableBriefRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_role_request.go b/model_brief_role_request.go
index 216acc7ad..5d6d8e9ab 100644
--- a/model_brief_role_request.go
+++ b/model_brief_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRoleRequest{}
// BriefRoleRequest Adds support for custom fields and tags.
type BriefRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefRoleRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefRoleRequest) SetDescription(v string) {
}
func (o BriefRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_site.go b/model_brief_site.go
index cc254dc8b..1f4b3047c 100644
--- a/model_brief_site.go
+++ b/model_brief_site.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefSite{}
// BriefSite Adds support for custom fields and tags.
type BriefSite struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefSite) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefSite) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefSite) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefSite) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefSite) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefSite) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefSite) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefSite) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefSite) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefSite) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -212,7 +207,7 @@ func (o *BriefSite) SetDescription(v string) {
}
func (o BriefSite) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -251,32 +246,31 @@ func (o *BriefSite) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -340,5 +334,3 @@ func (v *NullableBriefSite) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_site_group.go b/model_brief_site_group.go
index d7af4e712..4d04a5b82 100644
--- a/model_brief_site_group.go
+++ b/model_brief_site_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefSiteGroup{}
// BriefSiteGroup Extends PrimaryModelSerializer to include MPTT support.
type BriefSiteGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- SiteCount *int32 `json:"site_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ SiteCount *int32 `json:"site_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefSiteGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefSiteGroup) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefSiteGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefSiteGroup) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefSiteGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefSiteGroup) GetName() string {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefSiteGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefSiteGroup) GetSlug() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefSiteGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefSiteGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -269,9 +264,8 @@ func (o *BriefSiteGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o BriefSiteGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefSiteGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go
index 5ed06101d..b8b648214 100644
--- a/model_brief_site_group_request.go
+++ b/model_brief_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefSiteGroupRequest{}
// BriefSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefSiteGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefSiteGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefSiteGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefSiteGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefSiteGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefSiteGroupRequest) SetDescription(v string) {
}
func (o BriefSiteGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefSiteGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_site_request.go b/model_brief_site_request.go
index a02bc52fe..b624bed43 100644
--- a/model_brief_site_request.go
+++ b/model_brief_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &BriefSiteRequest{}
// BriefSiteRequest Adds support for custom fields and tags.
type BriefSiteRequest struct {
// Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *BriefSiteRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefSiteRequest) GetSlug() string {
if o == nil {
@@ -97,7 +96,6 @@ func (o *BriefSiteRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefSiteRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *BriefSiteRequest) SetDescription(v string) {
}
func (o BriefSiteRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *BriefSiteRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableBriefSiteRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_contact_group.go b/model_brief_tag.go
similarity index 54%
rename from model_brief_contact_group.go
rename to model_brief_tag.go
index 102964e42..358b87cbf 100644
--- a/model_brief_contact_group.go
+++ b/model_brief_tag.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,49 +15,47 @@ import (
"fmt"
)
-// checks if the BriefContactGroup type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &BriefContactGroup{}
-
-// BriefContactGroup Extends PrimaryModelSerializer to include MPTT support.
-type BriefContactGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- ContactCount *int32 `json:"contact_count,omitempty"`
- Depth int32 `json:"_depth"`
+// checks if the BriefTag type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &BriefTag{}
+
+// BriefTag Extends the built-in ModelSerializer to enforce calling full_clean() on a 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 BriefTag struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _BriefContactGroup BriefContactGroup
+type _BriefTag BriefTag
-// NewBriefContactGroup instantiates a new BriefContactGroup object
+// NewBriefTag instantiates a new BriefTag object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefContactGroup(id int32, url string, display string, name string, slug string, depth int32) *BriefContactGroup {
- this := BriefContactGroup{}
+func NewBriefTag(id int32, url string, display string, name string, slug string) *BriefTag {
+ this := BriefTag{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Depth = depth
return &this
}
-// NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup object
+// NewBriefTagWithDefaults instantiates a new BriefTag object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
-func NewBriefContactGroupWithDefaults() *BriefContactGroup {
- this := BriefContactGroup{}
+func NewBriefTagWithDefaults() *BriefTag {
+ this := BriefTag{}
return &this
}
// GetId returns the Id field value
-func (o *BriefContactGroup) GetId() int32 {
+func (o *BriefTag) GetId() int32 {
if o == nil {
var ret int32
return ret
@@ -68,7 +66,7 @@ func (o *BriefContactGroup) GetId() int32 {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetIdOk() (*int32, bool) {
+func (o *BriefTag) GetIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -76,13 +74,12 @@ func (o *BriefContactGroup) GetIdOk() (*int32, bool) {
}
// SetId sets field value
-func (o *BriefContactGroup) SetId(v int32) {
+func (o *BriefTag) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
-func (o *BriefContactGroup) GetUrl() string {
+func (o *BriefTag) GetUrl() string {
if o == nil {
var ret string
return ret
@@ -93,7 +90,7 @@ func (o *BriefContactGroup) GetUrl() string {
// GetUrlOk returns a tuple with the Url field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetUrlOk() (*string, bool) {
+func (o *BriefTag) GetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -101,13 +98,12 @@ func (o *BriefContactGroup) GetUrlOk() (*string, bool) {
}
// SetUrl sets field value
-func (o *BriefContactGroup) SetUrl(v string) {
+func (o *BriefTag) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
-func (o *BriefContactGroup) GetDisplay() string {
+func (o *BriefTag) GetDisplay() string {
if o == nil {
var ret string
return ret
@@ -118,7 +114,7 @@ func (o *BriefContactGroup) GetDisplay() string {
// GetDisplayOk returns a tuple with the Display field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetDisplayOk() (*string, bool) {
+func (o *BriefTag) GetDisplayOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -126,13 +122,12 @@ func (o *BriefContactGroup) GetDisplayOk() (*string, bool) {
}
// SetDisplay sets field value
-func (o *BriefContactGroup) SetDisplay(v string) {
+func (o *BriefTag) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
-func (o *BriefContactGroup) GetName() string {
+func (o *BriefTag) GetName() string {
if o == nil {
var ret string
return ret
@@ -143,7 +138,7 @@ func (o *BriefContactGroup) GetName() string {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetNameOk() (*string, bool) {
+func (o *BriefTag) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -151,13 +146,12 @@ func (o *BriefContactGroup) GetNameOk() (*string, bool) {
}
// SetName sets field value
-func (o *BriefContactGroup) SetName(v string) {
+func (o *BriefTag) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
-func (o *BriefContactGroup) GetSlug() string {
+func (o *BriefTag) GetSlug() string {
if o == nil {
var ret string
return ret
@@ -168,7 +162,7 @@ func (o *BriefContactGroup) GetSlug() string {
// GetSlugOk returns a tuple with the Slug field value
// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetSlugOk() (*string, bool) {
+func (o *BriefTag) GetSlugOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -176,122 +170,95 @@ func (o *BriefContactGroup) GetSlugOk() (*string, bool) {
}
// SetSlug sets field value
-func (o *BriefContactGroup) SetSlug(v string) {
+func (o *BriefTag) SetSlug(v string) {
o.Slug = v
}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *BriefContactGroup) GetDescription() string {
- if o == nil || IsNil(o.Description) {
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *BriefTag) GetColor() string {
+ if o == nil || IsNil(o.Color) {
var ret string
return ret
}
- return *o.Description
+ return *o.Color
}
-// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// 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 *BriefContactGroup) GetDescriptionOk() (*string, bool) {
- if o == nil || IsNil(o.Description) {
+func (o *BriefTag) GetColorOk() (*string, bool) {
+ if o == nil || IsNil(o.Color) {
return nil, false
}
- return o.Description, true
+ return o.Color, true
}
-// HasDescription returns a boolean if a field has been set.
-func (o *BriefContactGroup) HasDescription() bool {
- if o != nil && !IsNil(o.Description) {
+// HasColor returns a boolean if a field has been set.
+func (o *BriefTag) HasColor() bool {
+ if o != nil && !IsNil(o.Color) {
return true
}
return false
}
-// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *BriefContactGroup) SetDescription(v string) {
- o.Description = &v
+// SetColor gets a reference to the given string and assigns it to the Color field.
+func (o *BriefTag) SetColor(v string) {
+ o.Color = &v
}
-// GetContactCount returns the ContactCount field value if set, zero value otherwise.
-func (o *BriefContactGroup) GetContactCount() int32 {
- if o == nil || IsNil(o.ContactCount) {
- var ret int32
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *BriefTag) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
return ret
}
- return *o.ContactCount
+ return *o.Description
}
-// GetContactCountOk returns a tuple with the ContactCount 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 *BriefContactGroup) GetContactCountOk() (*int32, bool) {
- if o == nil || IsNil(o.ContactCount) {
+func (o *BriefTag) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
return nil, false
}
- return o.ContactCount, true
+ return o.Description, true
}
-// HasContactCount returns a boolean if a field has been set.
-func (o *BriefContactGroup) HasContactCount() bool {
- if o != nil && !IsNil(o.ContactCount) {
+// HasDescription returns a boolean if a field has been set.
+func (o *BriefTag) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
return true
}
return false
}
-// SetContactCount gets a reference to the given int32 and assigns it to the ContactCount field.
-func (o *BriefContactGroup) SetContactCount(v int32) {
- o.ContactCount = &v
-}
-
-// GetDepth returns the Depth field value
-func (o *BriefContactGroup) GetDepth() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Depth
-}
-
-// GetDepthOk returns a tuple with the Depth field value
-// and a boolean to check if the value has been set.
-func (o *BriefContactGroup) GetDepthOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Depth, true
-}
-
-// SetDepth sets field value
-func (o *BriefContactGroup) SetDepth(v int32) {
- o.Depth = v
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *BriefTag) SetDescription(v string) {
+ o.Description = &v
}
-
-func (o BriefContactGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+func (o BriefTag) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
-func (o BriefContactGroup) ToMap() (map[string]interface{}, error) {
+func (o BriefTag) 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.Color) {
+ toSerialize["color"] = o.Color
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
- if !IsNil(o.ContactCount) {
- toSerialize["contact_count"] = o.ContactCount
- }
- toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -300,7 +267,7 @@ func (o BriefContactGroup) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) {
+func (o *BriefTag) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
@@ -310,49 +277,47 @@ func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "_depth",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
- varBriefContactGroup := _BriefContactGroup{}
+ varBriefTag := _BriefTag{}
- err = json.Unmarshal(data, &varBriefContactGroup)
+ err = json.Unmarshal(data, &varBriefTag)
if err != nil {
return err
}
- *o = BriefContactGroup(varBriefContactGroup)
+ *o = BriefTag(varBriefTag)
additionalProperties := make(map[string]interface{})
@@ -362,49 +327,46 @@ func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "display")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
+ delete(additionalProperties, "color")
delete(additionalProperties, "description")
- delete(additionalProperties, "contact_count")
- delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
return err
}
-type NullableBriefContactGroup struct {
- value *BriefContactGroup
+type NullableBriefTag struct {
+ value *BriefTag
isSet bool
}
-func (v NullableBriefContactGroup) Get() *BriefContactGroup {
+func (v NullableBriefTag) Get() *BriefTag {
return v.value
}
-func (v *NullableBriefContactGroup) Set(val *BriefContactGroup) {
+func (v *NullableBriefTag) Set(val *BriefTag) {
v.value = val
v.isSet = true
}
-func (v NullableBriefContactGroup) IsSet() bool {
+func (v NullableBriefTag) IsSet() bool {
return v.isSet
}
-func (v *NullableBriefContactGroup) Unset() {
+func (v *NullableBriefTag) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableBriefContactGroup(val *BriefContactGroup) *NullableBriefContactGroup {
- return &NullableBriefContactGroup{value: val, isSet: true}
+func NewNullableBriefTag(val *BriefTag) *NullableBriefTag {
+ return &NullableBriefTag{value: val, isSet: true}
}
-func (v NullableBriefContactGroup) MarshalJSON() ([]byte, error) {
+func (v NullableBriefTag) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableBriefContactGroup) UnmarshalJSON(src []byte) error {
+func (v *NullableBriefTag) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tenant.go b/model_brief_tenant.go
index a695673a6..f89445939 100644
--- a/model_brief_tenant.go
+++ b/model_brief_tenant.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &BriefTenant{}
// BriefTenant Adds support for custom fields and tags.
type BriefTenant struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *BriefTenant) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefTenant) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *BriefTenant) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefTenant) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *BriefTenant) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefTenant) GetName() string {
if o == nil {
@@ -152,7 +149,6 @@ func (o *BriefTenant) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTenant) GetSlug() string {
if o == nil {
@@ -177,7 +173,6 @@ func (o *BriefTenant) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTenant) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -211,7 +206,7 @@ func (o *BriefTenant) SetDescription(v string) {
}
func (o BriefTenant) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *BriefTenant) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableBriefTenant) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go
index 08f4c3820..b7f5645a5 100644
--- a/model_brief_tenant_group.go
+++ b/model_brief_tenant_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefTenantGroup{}
// BriefTenantGroup Extends PrimaryModelSerializer to include MPTT support.
type BriefTenantGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- TenantCount *int32 `json:"tenant_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ TenantCount *int32 `json:"tenant_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefTenantGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefTenantGroup) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefTenantGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefTenantGroup) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefTenantGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefTenantGroup) GetName() string {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefTenantGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTenantGroup) GetSlug() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefTenantGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTenantGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -269,9 +264,8 @@ func (o *BriefTenantGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o BriefTenantGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefTenantGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go
index 4a48c63a9..fc6afb7f2 100644
--- a/model_brief_tenant_group_request.go
+++ b/model_brief_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTenantGroupRequest{}
// BriefTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefTenantGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefTenantGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTenantGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefTenantGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTenantGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefTenantGroupRequest) SetDescription(v string) {
}
func (o BriefTenantGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefTenantGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go
index 36794559d..029ead5f5 100644
--- a/model_brief_tenant_request.go
+++ b/model_brief_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTenantRequest{}
// BriefTenantRequest Adds support for custom fields and tags.
type BriefTenantRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefTenantRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTenantRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefTenantRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTenantRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefTenantRequest) SetDescription(v string) {
}
func (o BriefTenantRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefTenantRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefTenantRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tunnel.go b/model_brief_tunnel.go
index 9d758fcae..0c0c14baf 100644
--- a/model_brief_tunnel.go
+++ b/model_brief_tunnel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefTunnel{}
// BriefTunnel Adds support for custom fields and tags.
type BriefTunnel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefTunnel) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefTunnel) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefTunnel) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefTunnel) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefTunnel) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefTunnel) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefTunnel) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTunnel) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefTunnel) SetDescription(v string) {
}
func (o BriefTunnel) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefTunnel) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefTunnel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go
index 978ed723a..a2ce8c16b 100644
--- a/model_brief_tunnel_group.go
+++ b/model_brief_tunnel_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefTunnelGroup{}
// BriefTunnelGroup Adds support for custom fields and tags.
type BriefTunnelGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- TunnelCount *int64 `json:"tunnel_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ TunnelCount *int64 `json:"tunnel_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefTunnelGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefTunnelGroup) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefTunnelGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefTunnelGroup) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefTunnelGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefTunnelGroup) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefTunnelGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTunnelGroup) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefTunnelGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTunnelGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefTunnelGroup) SetTunnelCount(v int64) {
}
func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefTunnelGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go
index 0ea1a5feb..4530a5a87 100644
--- a/model_brief_tunnel_group_request.go
+++ b/model_brief_tunnel_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTunnelGroupRequest{}
// BriefTunnelGroupRequest Adds support for custom fields and tags.
type BriefTunnelGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefTunnelGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefTunnelGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefTunnelGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTunnelGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefTunnelGroupRequest) SetDescription(v string) {
}
func (o BriefTunnelGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefTunnelGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go
index 027593210..6ebbe6b8e 100644
--- a/model_brief_tunnel_request.go
+++ b/model_brief_tunnel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefTunnelRequest{}
// BriefTunnelRequest Adds support for custom fields and tags.
type BriefTunnelRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefTunnelRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefTunnelRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefTunnelRequest) SetDescription(v string) {
}
func (o BriefTunnelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefTunnelRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefTunnelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_user.go b/model_brief_user.go
index 8e61def5e..a8a875084 100644
--- a/model_brief_user.go
+++ b/model_brief_user.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefUser{}
// BriefUser Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefUser struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
+ Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefUser) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefUser) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefUser) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefUser) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefUser) SetDisplay(v string) {
o.Display = v
}
-
// GetUsername returns the Username field value
func (o *BriefUser) GetUsername() string {
if o == nil {
@@ -150,9 +147,8 @@ func (o *BriefUser) SetUsername(v string) {
o.Username = v
}
-
func (o BriefUser) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -186,32 +182,31 @@ func (o *BriefUser) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -273,5 +268,3 @@ func (v *NullableBriefUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_user_request.go b/model_brief_user_request.go
index 9849646e7..34af7efbb 100644
--- a/model_brief_user_request.go
+++ b/model_brief_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ var _ MappedNullable = &BriefUserRequest{}
// BriefUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type BriefUserRequest struct {
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
+ Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
AdditionalProperties map[string]interface{}
}
@@ -69,9 +69,8 @@ func (o *BriefUserRequest) SetUsername(v string) {
o.Username = v
}
-
func (o BriefUserRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -99,32 +98,31 @@ func (o *BriefUserRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -183,5 +181,3 @@ func (v *NullableBriefUserRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go
index 0b05a00c7..356f5c555 100644
--- a/model_brief_virtual_chassis.go
+++ b/model_brief_virtual_chassis.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVirtualChassis{}
// BriefVirtualChassis Adds support for custom fields and tags.
type BriefVirtualChassis struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Master NullableNestedDevice `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- MemberCount *int32 `json:"member_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Master NullableNestedDevice `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
+ MemberCount *int32 `json:"member_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *BriefVirtualChassis) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVirtualChassis) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *BriefVirtualChassis) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVirtualChassis) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *BriefVirtualChassis) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVirtualChassis) GetName() string {
if o == nil {
@@ -152,7 +149,6 @@ func (o *BriefVirtualChassis) SetName(v string) {
o.Name = v
}
-
// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefVirtualChassis) GetMaster() NestedDevice {
if o == nil || IsNil(o.Master.Get()) {
@@ -185,6 +181,7 @@ func (o *BriefVirtualChassis) HasMaster() bool {
func (o *BriefVirtualChassis) SetMaster(v NestedDevice) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *BriefVirtualChassis) SetMasterNil() {
o.Master.Set(nil)
@@ -260,7 +257,7 @@ func (o *BriefVirtualChassis) SetMemberCount(v int32) {
}
func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -303,32 +300,31 @@ func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -393,5 +389,3 @@ func (v *NullableBriefVirtualChassis) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go
index 7d235f06c..64ab0fa78 100644
--- a/model_brief_virtual_chassis_request.go
+++ b/model_brief_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefVirtualChassisRequest{}
// BriefVirtualChassisRequest Adds support for custom fields and tags.
type BriefVirtualChassisRequest struct {
- Name string `json:"name"`
- Master NullableNestedDeviceRequest `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Master NullableNestedDeviceRequest `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *BriefVirtualChassisRequest) SetName(v string) {
o.Name = v
}
-
// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest {
if o == nil || IsNil(o.Master.Get()) {
@@ -103,6 +102,7 @@ func (o *BriefVirtualChassisRequest) HasMaster() bool {
func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *BriefVirtualChassisRequest) SetMasterNil() {
o.Master.Set(nil)
@@ -146,7 +146,7 @@ func (o *BriefVirtualChassisRequest) SetDescription(v string) {
}
func (o BriefVirtualChassisRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -180,32 +180,31 @@ func (o *BriefVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -266,5 +265,3 @@ func (v *NullableBriefVirtualChassisRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_circuit.go b/model_brief_virtual_circuit.go
index 59b2c009b..b55a63888 100644
--- a/model_brief_virtual_circuit.go
+++ b/model_brief_virtual_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVirtualCircuit{}
// BriefVirtualCircuit Adds support for custom fields and tags.
type BriefVirtualCircuit struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Unique circuit ID
- Cid string `json:"cid"`
- ProviderNetwork BriefProviderNetwork `json:"provider_network"`
- Description *string `json:"description,omitempty"`
+ Cid string `json:"cid"`
+ ProviderNetwork BriefProviderNetwork `json:"provider_network"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefVirtualCircuit) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVirtualCircuit) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefVirtualCircuit) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVirtualCircuit) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefVirtualCircuit) SetDisplay(v string) {
o.Display = v
}
-
// GetCid returns the Cid field value
func (o *BriefVirtualCircuit) GetCid() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefVirtualCircuit) SetCid(v string) {
o.Cid = v
}
-
// GetProviderNetwork returns the ProviderNetwork field value
func (o *BriefVirtualCircuit) GetProviderNetwork() BriefProviderNetwork {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefVirtualCircuit) SetProviderNetwork(v BriefProviderNetwork) {
o.ProviderNetwork = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualCircuit) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -212,7 +207,7 @@ func (o *BriefVirtualCircuit) SetDescription(v string) {
}
func (o BriefVirtualCircuit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -251,32 +246,31 @@ func (o *BriefVirtualCircuit) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -340,5 +334,3 @@ func (v *NullableBriefVirtualCircuit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_circuit_request.go b/model_brief_virtual_circuit_request.go
index 6a5a2f8f3..71bf5eb86 100644
--- a/model_brief_virtual_circuit_request.go
+++ b/model_brief_virtual_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &BriefVirtualCircuitRequest{}
// BriefVirtualCircuitRequest Adds support for custom fields and tags.
type BriefVirtualCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"`
- Description *string `json:"description,omitempty"`
+ Cid string `json:"cid"`
+ ProviderNetwork BriefVirtualCircuitRequestProviderNetwork `json:"provider_network"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _BriefVirtualCircuitRequest BriefVirtualCircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewBriefVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest) *BriefVirtualCircuitRequest {
+func NewBriefVirtualCircuitRequest(cid string, providerNetwork BriefVirtualCircuitRequestProviderNetwork) *BriefVirtualCircuitRequest {
this := BriefVirtualCircuitRequest{}
this.Cid = cid
this.ProviderNetwork = providerNetwork
@@ -72,11 +72,10 @@ func (o *BriefVirtualCircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProviderNetwork returns the ProviderNetwork field value
-func (o *BriefVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest {
+func (o *BriefVirtualCircuitRequest) GetProviderNetwork() BriefVirtualCircuitRequestProviderNetwork {
if o == nil {
- var ret BriefProviderNetworkRequest
+ var ret BriefVirtualCircuitRequestProviderNetwork
return ret
}
@@ -85,7 +84,7 @@ func (o *BriefVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRe
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value
// and a boolean to check if the value has been set.
-func (o *BriefVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) {
+func (o *BriefVirtualCircuitRequest) GetProviderNetworkOk() (*BriefVirtualCircuitRequestProviderNetwork, bool) {
if o == nil {
return nil, false
}
@@ -93,11 +92,10 @@ func (o *BriefVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetwo
}
// SetProviderNetwork sets field value
-func (o *BriefVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) {
+func (o *BriefVirtualCircuitRequest) SetProviderNetwork(v BriefVirtualCircuitRequestProviderNetwork) {
o.ProviderNetwork = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualCircuitRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *BriefVirtualCircuitRequest) SetDescription(v string) {
}
func (o BriefVirtualCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *BriefVirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableBriefVirtualCircuitRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_circuit_request_provider_network.go b/model_brief_virtual_circuit_request_provider_network.go
new file mode 100644
index 000000000..eb11cacaa
--- /dev/null
+++ b/model_brief_virtual_circuit_request_provider_network.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// BriefVirtualCircuitRequestProviderNetwork - struct for BriefVirtualCircuitRequestProviderNetwork
+type BriefVirtualCircuitRequestProviderNetwork struct {
+ BriefProviderNetworkRequest *BriefProviderNetworkRequest
+ Int32 *int32
+}
+
+// BriefProviderNetworkRequestAsBriefVirtualCircuitRequestProviderNetwork is a convenience function that returns BriefProviderNetworkRequest wrapped in BriefVirtualCircuitRequestProviderNetwork
+func BriefProviderNetworkRequestAsBriefVirtualCircuitRequestProviderNetwork(v *BriefProviderNetworkRequest) BriefVirtualCircuitRequestProviderNetwork {
+ return BriefVirtualCircuitRequestProviderNetwork{
+ BriefProviderNetworkRequest: v,
+ }
+}
+
+// int32AsBriefVirtualCircuitRequestProviderNetwork is a convenience function that returns int32 wrapped in BriefVirtualCircuitRequestProviderNetwork
+func Int32AsBriefVirtualCircuitRequestProviderNetwork(v *int32) BriefVirtualCircuitRequestProviderNetwork {
+ return BriefVirtualCircuitRequestProviderNetwork{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *BriefVirtualCircuitRequestProviderNetwork) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefProviderNetworkRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefProviderNetworkRequest)
+ if err == nil {
+ jsonBriefProviderNetworkRequest, _ := json.Marshal(dst.BriefProviderNetworkRequest)
+ if string(jsonBriefProviderNetworkRequest) == "{}" { // empty struct
+ dst.BriefProviderNetworkRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefProviderNetworkRequest); err != nil {
+ dst.BriefProviderNetworkRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefProviderNetworkRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefProviderNetworkRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(BriefVirtualCircuitRequestProviderNetwork)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(BriefVirtualCircuitRequestProviderNetwork)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src BriefVirtualCircuitRequestProviderNetwork) MarshalJSON() ([]byte, error) {
+ if src.BriefProviderNetworkRequest != nil {
+ return json.Marshal(&src.BriefProviderNetworkRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *BriefVirtualCircuitRequestProviderNetwork) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefProviderNetworkRequest != nil {
+ return obj.BriefProviderNetworkRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableBriefVirtualCircuitRequestProviderNetwork struct {
+ value *BriefVirtualCircuitRequestProviderNetwork
+ isSet bool
+}
+
+func (v NullableBriefVirtualCircuitRequestProviderNetwork) Get() *BriefVirtualCircuitRequestProviderNetwork {
+ return v.value
+}
+
+func (v *NullableBriefVirtualCircuitRequestProviderNetwork) Set(val *BriefVirtualCircuitRequestProviderNetwork) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBriefVirtualCircuitRequestProviderNetwork) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBriefVirtualCircuitRequestProviderNetwork) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBriefVirtualCircuitRequestProviderNetwork(val *BriefVirtualCircuitRequestProviderNetwork) *NullableBriefVirtualCircuitRequestProviderNetwork {
+ return &NullableBriefVirtualCircuitRequestProviderNetwork{value: val, isSet: true}
+}
+
+func (v NullableBriefVirtualCircuitRequestProviderNetwork) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBriefVirtualCircuitRequestProviderNetwork) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_brief_virtual_circuit_type.go b/model_brief_virtual_circuit_type.go
index cee432a70..e035baf46 100644
--- a/model_brief_virtual_circuit_type.go
+++ b/model_brief_virtual_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVirtualCircuitType{}
// BriefVirtualCircuitType Adds support for custom fields and tags.
type BriefVirtualCircuitType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- VirtualCircuitCount int64 `json:"virtual_circuit_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ VirtualCircuitCount int64 `json:"virtual_circuit_count"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *BriefVirtualCircuitType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVirtualCircuitType) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *BriefVirtualCircuitType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVirtualCircuitType) GetDisplay() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *BriefVirtualCircuitType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVirtualCircuitType) GetName() string {
if o == nil {
@@ -154,7 +151,6 @@ func (o *BriefVirtualCircuitType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefVirtualCircuitType) GetSlug() string {
if o == nil {
@@ -179,7 +175,6 @@ func (o *BriefVirtualCircuitType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualCircuitType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -236,9 +231,8 @@ func (o *BriefVirtualCircuitType) SetVirtualCircuitCount(v int64) {
o.VirtualCircuitCount = v
}
-
func (o BriefVirtualCircuitType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *BriefVirtualCircuitType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableBriefVirtualCircuitType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_circuit_type_request.go b/model_brief_virtual_circuit_type_request.go
index 3d74246ba..9a59ca19d 100644
--- a/model_brief_virtual_circuit_type_request.go
+++ b/model_brief_virtual_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefVirtualCircuitTypeRequest{}
// BriefVirtualCircuitTypeRequest Adds support for custom fields and tags.
type BriefVirtualCircuitTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefVirtualCircuitTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefVirtualCircuitTypeRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefVirtualCircuitTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualCircuitTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefVirtualCircuitTypeRequest) SetDescription(v string) {
}
func (o BriefVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefVirtualCircuitTypeRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefVirtualCircuitTypeRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go
index 9debf7c4b..b800c8f6b 100644
--- a/model_brief_virtual_machine.go
+++ b/model_brief_virtual_machine.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefVirtualMachine{}
// BriefVirtualMachine Adds support for custom fields and tags.
type BriefVirtualMachine struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefVirtualMachine) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVirtualMachine) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefVirtualMachine) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVirtualMachine) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefVirtualMachine) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVirtualMachine) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefVirtualMachine) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualMachine) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefVirtualMachine) SetDescription(v string) {
}
func (o BriefVirtualMachine) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefVirtualMachine) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefVirtualMachine) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go
index effce1269..e6c5221e9 100644
--- a/model_brief_virtual_machine_request.go
+++ b/model_brief_virtual_machine_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefVirtualMachineRequest{}
// BriefVirtualMachineRequest Adds support for custom fields and tags.
type BriefVirtualMachineRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefVirtualMachineRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVirtualMachineRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefVirtualMachineRequest) SetDescription(v string) {
}
func (o BriefVirtualMachineRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefVirtualMachineRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan.go b/model_brief_vlan.go
index a0e451f50..3a8ed2f3d 100644
--- a/model_brief_vlan.go
+++ b/model_brief_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVLAN{}
// BriefVLAN Adds support for custom fields and tags.
type BriefVLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefVLAN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVLAN) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefVLAN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVLAN) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefVLAN) SetDisplay(v string) {
o.Display = v
}
-
// GetVid returns the Vid field value
func (o *BriefVLAN) GetVid() int32 {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefVLAN) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *BriefVLAN) GetName() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefVLAN) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLAN) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -212,7 +207,7 @@ func (o *BriefVLAN) SetDescription(v string) {
}
func (o BriefVLAN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -251,32 +246,31 @@ func (o *BriefVLAN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -340,5 +334,3 @@ func (v *NullableBriefVLAN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go
index 407688e03..fc845dc7f 100644
--- a/model_brief_vlan_group.go
+++ b/model_brief_vlan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVLANGroup{}
// BriefVLANGroup Adds support for custom fields and tags.
type BriefVLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefVLANGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVLANGroup) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefVLANGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVLANGroup) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefVLANGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVLANGroup) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefVLANGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefVLANGroup) GetSlug() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *BriefVLANGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLANGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -244,7 +239,7 @@ func (o *BriefVLANGroup) SetVlanCount(v int64) {
}
func (o BriefVLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableBriefVLANGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go
index be33f3328..e0c2459f2 100644
--- a/model_brief_vlan_group_request.go
+++ b/model_brief_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefVLANGroupRequest{}
// BriefVLANGroupRequest Adds support for custom fields and tags.
type BriefVLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefVLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefVLANGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefVLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLANGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefVLANGroupRequest) SetDescription(v string) {
}
func (o BriefVLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefVLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefVLANGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go
index 34aa4aead..bb996c7c2 100644
--- a/model_brief_vlan_request.go
+++ b/model_brief_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &BriefVLANRequest{}
// BriefVLANRequest Adds support for custom fields and tags.
type BriefVLANRequest struct {
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *BriefVLANRequest) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *BriefVLANRequest) GetName() string {
if o == nil {
@@ -97,7 +96,6 @@ func (o *BriefVLANRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLANRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *BriefVLANRequest) SetDescription(v string) {
}
func (o BriefVLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *BriefVLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableBriefVLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan_translation_policy.go b/model_brief_vlan_translation_policy.go
index 413e33426..961959606 100644
--- a/model_brief_vlan_translation_policy.go
+++ b/model_brief_vlan_translation_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &BriefVLANTranslationPolicy{}
// BriefVLANTranslationPolicy Adds support for custom fields and tags.
type BriefVLANTranslationPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *BriefVLANTranslationPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVLANTranslationPolicy) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *BriefVLANTranslationPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVLANTranslationPolicy) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *BriefVLANTranslationPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVLANTranslationPolicy) GetName() string {
if o == nil {
@@ -150,7 +147,6 @@ func (o *BriefVLANTranslationPolicy) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLANTranslationPolicy) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -184,7 +180,7 @@ func (o *BriefVLANTranslationPolicy) SetDescription(v string) {
}
func (o BriefVLANTranslationPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *BriefVLANTranslationPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableBriefVLANTranslationPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vlan_translation_policy_request.go b/model_brief_vlan_translation_policy_request.go
index 8a15fb73b..665227f46 100644
--- a/model_brief_vlan_translation_policy_request.go
+++ b/model_brief_vlan_translation_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &BriefVLANTranslationPolicyRequest{}
// BriefVLANTranslationPolicyRequest Adds support for custom fields and tags.
type BriefVLANTranslationPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *BriefVLANTranslationPolicyRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefVLANTranslationPolicyRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *BriefVLANTranslationPolicyRequest) SetDescription(v string) {
}
func (o BriefVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *BriefVLANTranslationPolicyRequest) UnmarshalJSON(data []byte) (err erro
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableBriefVLANTranslationPolicyRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vrf.go b/model_brief_vrf.go
index e0ea9fdf8..075904f81 100644
--- a/model_brief_vrf.go
+++ b/model_brief_vrf.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefVRF{}
// BriefVRF Adds support for custom fields and tags.
type BriefVRF struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
- Name string `json:"name"`
+ Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Description *string `json:"description,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Description *string `json:"description,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *BriefVRF) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefVRF) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *BriefVRF) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefVRF) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *BriefVRF) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefVRF) GetName() string {
if o == nil {
@@ -153,7 +150,6 @@ func (o *BriefVRF) SetName(v string) {
o.Name = v
}
-
// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefVRF) GetRd() string {
if o == nil || IsNil(o.Rd.Get()) {
@@ -186,6 +182,7 @@ func (o *BriefVRF) HasRd() bool {
func (o *BriefVRF) SetRd(v string) {
o.Rd.Set(&v)
}
+
// SetRdNil sets the value for Rd to be an explicit nil
func (o *BriefVRF) SetRdNil() {
o.Rd.Set(nil)
@@ -261,7 +258,7 @@ func (o *BriefVRF) SetPrefixCount(v int64) {
}
func (o BriefVRF) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -304,32 +301,31 @@ func (o *BriefVRF) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -394,5 +390,3 @@ func (v *NullableBriefVRF) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go
index 8a757f111..ca54c4f23 100644
--- a/model_brief_vrf_request.go
+++ b/model_brief_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,8 +22,8 @@ var _ MappedNullable = &BriefVRFRequest{}
type BriefVRFRequest struct {
Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Description *string `json:"description,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefVRFRequest) SetName(v string) {
o.Name = v
}
-
// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BriefVRFRequest) GetRd() string {
if o == nil || IsNil(o.Rd.Get()) {
@@ -104,6 +103,7 @@ func (o *BriefVRFRequest) HasRd() bool {
func (o *BriefVRFRequest) SetRd(v string) {
o.Rd.Set(&v)
}
+
// SetRdNil sets the value for Rd to be an explicit nil
func (o *BriefVRFRequest) SetRdNil() {
o.Rd.Set(nil)
@@ -147,7 +147,7 @@ func (o *BriefVRFRequest) SetDescription(v string) {
}
func (o BriefVRFRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -181,32 +181,31 @@ func (o *BriefVRFRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -267,5 +266,3 @@ func (v *NullableBriefVRFRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go
index be9ecd949..aa8107312 100644
--- a/model_brief_wireless_lan_group.go
+++ b/model_brief_wireless_lan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &BriefWirelessLANGroup{}
// BriefWirelessLANGroup Extends PrimaryModelSerializer to include MPTT support.
type BriefWirelessLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *BriefWirelessLANGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *BriefWirelessLANGroup) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *BriefWirelessLANGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *BriefWirelessLANGroup) GetDisplay() string {
if o == nil {
@@ -130,7 +128,6 @@ func (o *BriefWirelessLANGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *BriefWirelessLANGroup) GetName() string {
if o == nil {
@@ -155,7 +152,6 @@ func (o *BriefWirelessLANGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefWirelessLANGroup) GetSlug() string {
if o == nil {
@@ -180,7 +176,6 @@ func (o *BriefWirelessLANGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefWirelessLANGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -269,9 +264,8 @@ func (o *BriefWirelessLANGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -315,32 +309,31 @@ func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -406,5 +399,3 @@ func (v *NullableBriefWirelessLANGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go
index f66d3b35e..92cffdfb7 100644
--- a/model_brief_wireless_lan_group_request.go
+++ b/model_brief_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &BriefWirelessLANGroupRequest{}
// BriefWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type BriefWirelessLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *BriefWirelessLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *BriefWirelessLANGroupRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *BriefWirelessLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *BriefWirelessLANGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -130,7 +128,7 @@ func (o *BriefWirelessLANGroupRequest) SetDescription(v string) {
}
func (o BriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *BriefWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableBriefWirelessLANGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable.go b/model_cable.go
index fd6301274..31b877317 100644
--- a/model_cable.go
+++ b/model_cable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Cable type satisfies the MappedNullable interface at compile time
@@ -21,25 +21,25 @@ var _ MappedNullable = &Cable{}
// Cable Adds support for custom fields and tags.
type Cable struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Type NullableCableType `json:"type,omitempty"`
- ATerminations []GenericObject `json:"a_terminations,omitempty"`
- BTerminations []GenericObject `json:"b_terminations,omitempty"`
- Status *CableStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Type NullableCableType `json:"type,omitempty"`
+ ATerminations []GenericObject `json:"a_terminations,omitempty"`
+ BTerminations []GenericObject `json:"b_terminations,omitempty"`
+ Status *CableStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Length NullableFloat64 `json:"length,omitempty"`
+ LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *Cable) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Cable) GetUrl() string {
if o == nil {
@@ -114,7 +113,6 @@ func (o *Cable) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Cable) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +169,6 @@ func (o *Cable) SetDisplay(v string) {
o.Display = v
}
-
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Cable) GetType() CableType {
if o == nil || IsNil(o.Type.Get()) {
@@ -204,6 +201,7 @@ func (o *Cable) HasType() bool {
func (o *Cable) SetType(v CableType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *Cable) SetTypeNil() {
o.Type.Set(nil)
@@ -342,6 +340,7 @@ func (o *Cable) HasTenant() bool {
func (o *Cable) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Cable) SetTenantNil() {
o.Tenant.Set(nil)
@@ -448,6 +447,7 @@ func (o *Cable) HasLength() bool {
func (o *Cable) SetLength(v float64) {
o.Length.Set(&v)
}
+
// SetLengthNil sets the value for Length to be an explicit nil
func (o *Cable) SetLengthNil() {
o.Length.Set(nil)
@@ -490,6 +490,7 @@ func (o *Cable) HasLengthUnit() bool {
func (o *Cable) SetLengthUnit(v CableLengthUnit) {
o.LengthUnit.Set(&v)
}
+
// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
func (o *Cable) SetLengthUnitNil() {
o.LengthUnit.Set(nil)
@@ -660,6 +661,7 @@ func (o *Cable) HasCreated() bool {
func (o *Cable) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Cable) SetCreatedNil() {
o.Created.Set(nil)
@@ -702,6 +704,7 @@ func (o *Cable) HasLastUpdated() bool {
func (o *Cable) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Cable) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -713,7 +716,7 @@ func (o *Cable) UnsetLastUpdated() {
}
func (o Cable) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -793,32 +796,31 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -895,5 +897,3 @@ func (v *NullableCable) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go
index 85d84ce9c..195c9d31e 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CableLengthUnit{}
// CableLengthUnit struct for CableLengthUnit
type CableLengthUnit struct {
- Value *CableLengthUnitValue `json:"value,omitempty"`
- Label *CableLengthUnitLabel `json:"label,omitempty"`
+ Value *CableLengthUnitValue `json:"value,omitempty"`
+ Label *CableLengthUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) {
}
func (o CableLengthUnit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go
index 9c9c75f09..3aba23fdd 100644
--- a/model_cable_length_unit_label.go
+++ b/model_cable_length_unit_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type CableLengthUnitLabel string
// List of Cable_length_unit_label
const (
- CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers"
- CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters"
+ CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers"
+ CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters"
CABLELENGTHUNITLABEL_CENTIMETERS CableLengthUnitLabel = "Centimeters"
- CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles"
- CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet"
- CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches"
+ CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles"
+ CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet"
+ CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches"
)
// All allowed values of CableLengthUnitLabel enum
@@ -116,4 +116,3 @@ 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
index a0aa970eb..9b8882390 100644
--- a/model_cable_length_unit_value.go
+++ b/model_cable_length_unit_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ 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_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 = ""
)
@@ -118,4 +118,3 @@ 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 ec743b38f..cb7188e02 100644
--- a/model_cable_request.go
+++ b/model_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,19 @@ var _ MappedNullable = &CableRequest{}
// CableRequest Adds support for custom fields and tags.
type CableRequest struct {
- Type NullableCableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Type NullableCableType `json:"type,omitempty"`
+ ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
+ BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Length NullableFloat64 `json:"length,omitempty"`
+ LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,6 +86,7 @@ func (o *CableRequest) HasType() bool {
func (o *CableRequest) SetType(v CableType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *CableRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -193,9 +194,9 @@ func (o *CableRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CableRequest) GetTenant() BriefTenantRequest {
+func (o *CableRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -204,7 +205,7 @@ func (o *CableRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *CableRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +221,11 @@ func (o *CableRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *CableRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *CableRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *CableRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -330,6 +332,7 @@ func (o *CableRequest) HasLength() bool {
func (o *CableRequest) SetLength(v float64) {
o.Length.Set(&v)
}
+
// SetLengthNil sets the value for Length to be an explicit nil
func (o *CableRequest) SetLengthNil() {
o.Length.Set(nil)
@@ -372,6 +375,7 @@ func (o *CableRequest) HasLengthUnit() bool {
func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) {
o.LengthUnit.Set(&v)
}
+
// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
func (o *CableRequest) SetLengthUnitNil() {
o.LengthUnit.Set(nil)
@@ -511,7 +515,7 @@ func (o *CableRequest) SetCustomFields(v map[string]interface{}) {
}
func (o CableRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -635,5 +639,3 @@ func (v *NullableCableRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go
index 2916c73fd..6b7881166 100644
--- a/model_cable_request_length_unit.go
+++ b/model_cable_request_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ 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_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 = ""
)
@@ -118,4 +118,3 @@ 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 834bcc810..3d2a6c067 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CableStatus{}
// CableStatus struct for CableStatus
type CableStatus struct {
- Value *CableStatusValue `json:"value,omitempty"`
- Label *CableStatusLabel `json:"label,omitempty"`
+ Value *CableStatusValue `json:"value,omitempty"`
+ Label *CableStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CableStatus) SetLabel(v CableStatusLabel) {
}
func (o CableStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCableStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_status_label.go b/model_cable_status_label.go
index b01cc359e..e23bb586c 100644
--- a/model_cable_status_label.go
+++ b/model_cable_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CableStatusLabel string
// List of Cable_status_label
const (
- CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected"
- CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned"
+ CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected"
+ CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned"
CABLESTATUSLABEL_DECOMMISSIONING CableStatusLabel = "Decommissioning"
)
@@ -110,4 +110,3 @@ 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
index e6f76b25a..b44c4f7a2 100644
--- a/model_cable_status_value.go
+++ b/model_cable_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CableStatusValue string
// List of Cable_status_value
const (
- CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected"
- CABLESTATUSVALUE_PLANNED CableStatusValue = "planned"
+ CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected"
+ CABLESTATUSVALUE_PLANNED CableStatusValue = "planned"
CABLESTATUSVALUE_DECOMMISSIONING CableStatusValue = "decommissioning"
)
@@ -110,4 +110,3 @@ 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 0ce807936..c12073216 100644
--- a/model_cable_termination.go
+++ b/model_cable_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CableTermination type satisfies the MappedNullable interface at compile time
@@ -21,16 +21,16 @@ var _ MappedNullable = &CableTermination{}
// CableTermination Adds support for custom fields and tags.
type CableTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Cable int32 `json:"cable"`
- CableEnd *End1 `json:"cable_end,omitempty"`
- TerminationType string `json:"termination_type"`
- TerminationId int64 `json:"termination_id"`
- Termination interface{} `json:"termination,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Cable int32 `json:"cable"`
+ CableEnd *End1 `json:"cable_end,omitempty"`
+ TerminationType string `json:"termination_type"`
+ TerminationId int64 `json:"termination_id"`
+ Termination interface{} `json:"termination,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *CableTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CableTermination) GetUrl() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *CableTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *CableTermination) GetDisplay() string {
if o == nil {
@@ -133,7 +131,6 @@ func (o *CableTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetCable returns the Cable field value
func (o *CableTermination) GetCable() int32 {
if o == nil {
@@ -158,7 +155,6 @@ func (o *CableTermination) SetCable(v int32) {
o.Cable = v
}
-
// GetCableEnd returns the CableEnd field value if set, zero value otherwise.
func (o *CableTermination) GetCableEnd() End1 {
if o == nil || IsNil(o.CableEnd) {
@@ -215,7 +211,6 @@ func (o *CableTermination) SetTerminationType(v string) {
o.TerminationType = v
}
-
// GetTerminationId returns the TerminationId field value
func (o *CableTermination) GetTerminationId() int64 {
if o == nil {
@@ -240,7 +235,6 @@ func (o *CableTermination) SetTerminationId(v int64) {
o.TerminationId = v
}
-
// GetTermination returns the Termination field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CableTermination) GetTermination() interface{} {
if o == nil {
@@ -306,6 +300,7 @@ func (o *CableTermination) HasCreated() bool {
func (o *CableTermination) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CableTermination) SetCreatedNil() {
o.Created.Set(nil)
@@ -348,6 +343,7 @@ func (o *CableTermination) HasLastUpdated() bool {
func (o *CableTermination) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CableTermination) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -359,7 +355,7 @@ func (o *CableTermination) UnsetLastUpdated() {
}
func (o CableTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -409,32 +405,31 @@ func (o *CableTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -502,5 +497,3 @@ func (v *NullableCableTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go
index ff0cebb0d..b05089017 100644
--- a/model_cable_termination_request.go
+++ b/model_cable_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &CableTerminationRequest{}
// CableTerminationRequest Adds support for custom fields and tags.
type CableTerminationRequest struct {
- Cable int32 `json:"cable"`
- CableEnd *End1 `json:"cable_end,omitempty"`
- TerminationType string `json:"termination_type"`
- TerminationId int64 `json:"termination_id"`
+ Cable int32 `json:"cable"`
+ CableEnd *End1 `json:"cable_end,omitempty"`
+ TerminationType string `json:"termination_type"`
+ TerminationId int64 `json:"termination_id"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *CableTerminationRequest) SetCable(v int32) {
o.Cable = v
}
-
// GetCableEnd returns the CableEnd field value if set, zero value otherwise.
func (o *CableTerminationRequest) GetCableEnd() End1 {
if o == nil || IsNil(o.CableEnd) {
@@ -130,7 +129,6 @@ func (o *CableTerminationRequest) SetTerminationType(v string) {
o.TerminationType = v
}
-
// GetTerminationId returns the TerminationId field value
func (o *CableTerminationRequest) GetTerminationId() int64 {
if o == nil {
@@ -155,9 +153,8 @@ func (o *CableTerminationRequest) SetTerminationId(v int64) {
o.TerminationId = v
}
-
func (o CableTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -192,32 +189,31 @@ func (o *CableTerminationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -279,5 +275,3 @@ func (v *NullableCableTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cable_type.go b/model_cable_type.go
index 6182cda1c..f19a42c40 100644
--- a/model_cable_type.go
+++ b/model_cable_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,31 +20,31 @@ 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_CAT3 CableType = "cat3"
+ CABLETYPE_CAT5 CableType = "cat5"
+ CABLETYPE_CAT5E CableType = "cat5e"
+ CABLETYPE_CAT6 CableType = "cat6"
+ CABLETYPE_CAT6A CableType = "cat6a"
+ CABLETYPE_CAT7 CableType = "cat7"
+ CABLETYPE_CAT7A CableType = "cat7a"
+ CABLETYPE_CAT8 CableType = "cat8"
+ CABLETYPE_DAC_ACTIVE CableType = "dac-active"
CABLETYPE_DAC_PASSIVE CableType = "dac-passive"
CABLETYPE_MRJ21_TRUNK CableType = "mrj21-trunk"
- CABLETYPE_COAXIAL CableType = "coaxial"
- CABLETYPE_MMF CableType = "mmf"
- CABLETYPE_MMF_OM1 CableType = "mmf-om1"
- CABLETYPE_MMF_OM2 CableType = "mmf-om2"
- CABLETYPE_MMF_OM3 CableType = "mmf-om3"
- CABLETYPE_MMF_OM4 CableType = "mmf-om4"
- CABLETYPE_MMF_OM5 CableType = "mmf-om5"
- CABLETYPE_SMF CableType = "smf"
- CABLETYPE_SMF_OS1 CableType = "smf-os1"
- CABLETYPE_SMF_OS2 CableType = "smf-os2"
- CABLETYPE_AOC CableType = "aoc"
- CABLETYPE_USB CableType = "usb"
- CABLETYPE_POWER CableType = "power"
- CABLETYPE_EMPTY CableType = ""
+ CABLETYPE_COAXIAL CableType = "coaxial"
+ CABLETYPE_MMF CableType = "mmf"
+ CABLETYPE_MMF_OM1 CableType = "mmf-om1"
+ CABLETYPE_MMF_OM2 CableType = "mmf-om2"
+ CABLETYPE_MMF_OM3 CableType = "mmf-om3"
+ CABLETYPE_MMF_OM4 CableType = "mmf-om4"
+ CABLETYPE_MMF_OM5 CableType = "mmf-om5"
+ CABLETYPE_SMF CableType = "smf"
+ CABLETYPE_SMF_OS1 CableType = "smf-os1"
+ CABLETYPE_SMF_OS2 CableType = "smf-os2"
+ CABLETYPE_AOC CableType = "aoc"
+ CABLETYPE_USB CableType = "usb"
+ CABLETYPE_POWER CableType = "power"
+ CABLETYPE_EMPTY CableType = ""
)
// All allowed values of CableType enum
@@ -154,4 +154,3 @@ 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 d41b40687..df337ed7d 100644
--- a/model_circuit.go
+++ b/model_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Circuit type satisfies the MappedNullable interface at compile time
@@ -21,32 +21,32 @@ var _ MappedNullable = &Circuit{}
// Circuit Adds support for custom fields and tags.
type Circuit struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Unique circuit ID
- Cid string `json:"cid"`
- Provider BriefProvider `json:"provider"`
+ Cid string `json:"cid"`
+ Provider BriefProvider `json:"provider"`
ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"`
- Type BriefCircuitType `json:"type"`
- Status *CircuitStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ Type BriefCircuitType `json:"type"`
+ Status *CircuitStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ InstallDate NullableString `json:"install_date,omitempty"`
+ TerminationDate NullableString `json:"termination_date,omitempty"`
// Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitDistanceUnit `json:"distance_unit,omitempty"`
- TerminationA NullableCircuitCircuitTermination `json:"termination_a,omitempty"`
- TerminationZ NullableCircuitCircuitTermination `json:"termination_z,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"`
+ CommitRate NullableInt32 `json:"commit_rate,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitDistanceUnit `json:"distance_unit,omitempty"`
+ TerminationA NullableCircuitCircuitTermination `json:"termination_a,omitempty"`
+ TerminationZ NullableCircuitCircuitTermination `json:"termination_z,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -99,7 +99,6 @@ func (o *Circuit) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Circuit) GetUrl() string {
if o == nil {
@@ -124,7 +123,6 @@ func (o *Circuit) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Circuit) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -181,7 +179,6 @@ func (o *Circuit) SetDisplay(v string) {
o.Display = v
}
-
// GetCid returns the Cid field value
func (o *Circuit) GetCid() string {
if o == nil {
@@ -206,7 +203,6 @@ func (o *Circuit) SetCid(v string) {
o.Cid = v
}
-
// GetProvider returns the Provider field value
func (o *Circuit) GetProvider() BriefProvider {
if o == nil {
@@ -231,7 +227,6 @@ func (o *Circuit) SetProvider(v BriefProvider) {
o.Provider = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Circuit) GetProviderAccount() BriefProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
@@ -264,6 +259,7 @@ func (o *Circuit) HasProviderAccount() bool {
func (o *Circuit) SetProviderAccount(v BriefProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *Circuit) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -298,7 +294,6 @@ func (o *Circuit) SetType(v BriefCircuitType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Circuit) GetStatus() CircuitStatus {
if o == nil || IsNil(o.Status) {
@@ -363,6 +358,7 @@ func (o *Circuit) HasTenant() bool {
func (o *Circuit) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Circuit) SetTenantNil() {
o.Tenant.Set(nil)
@@ -405,6 +401,7 @@ func (o *Circuit) HasInstallDate() bool {
func (o *Circuit) SetInstallDate(v string) {
o.InstallDate.Set(&v)
}
+
// SetInstallDateNil sets the value for InstallDate to be an explicit nil
func (o *Circuit) SetInstallDateNil() {
o.InstallDate.Set(nil)
@@ -447,6 +444,7 @@ func (o *Circuit) HasTerminationDate() bool {
func (o *Circuit) SetTerminationDate(v string) {
o.TerminationDate.Set(&v)
}
+
// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
func (o *Circuit) SetTerminationDateNil() {
o.TerminationDate.Set(nil)
@@ -489,6 +487,7 @@ func (o *Circuit) HasCommitRate() bool {
func (o *Circuit) SetCommitRate(v int32) {
o.CommitRate.Set(&v)
}
+
// SetCommitRateNil sets the value for CommitRate to be an explicit nil
func (o *Circuit) SetCommitRateNil() {
o.CommitRate.Set(nil)
@@ -563,6 +562,7 @@ func (o *Circuit) HasDistance() bool {
func (o *Circuit) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *Circuit) SetDistanceNil() {
o.Distance.Set(nil)
@@ -605,6 +605,7 @@ func (o *Circuit) HasDistanceUnit() bool {
func (o *Circuit) SetDistanceUnit(v CircuitDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *Circuit) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -647,6 +648,7 @@ func (o *Circuit) HasTerminationA() bool {
func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) {
o.TerminationA.Set(&v)
}
+
// SetTerminationANil sets the value for TerminationA to be an explicit nil
func (o *Circuit) SetTerminationANil() {
o.TerminationA.Set(nil)
@@ -689,6 +691,7 @@ func (o *Circuit) HasTerminationZ() bool {
func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) {
o.TerminationZ.Set(&v)
}
+
// SetTerminationZNil sets the value for TerminationZ to be an explicit nil
func (o *Circuit) SetTerminationZNil() {
o.TerminationZ.Set(nil)
@@ -827,6 +830,7 @@ func (o *Circuit) HasCreated() bool {
func (o *Circuit) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Circuit) SetCreatedNil() {
o.Created.Set(nil)
@@ -869,6 +873,7 @@ func (o *Circuit) HasLastUpdated() bool {
func (o *Circuit) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Circuit) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -912,7 +917,7 @@ func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) {
}
func (o Circuit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1004,32 +1009,31 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1111,5 +1115,3 @@ func (v *NullableCircuit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go
index 5a769fa93..3713ec916 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &CircuitCircuitTermination{}
// CircuitCircuitTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type CircuitCircuitTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
TerminationType NullableString `json:"termination_type,omitempty"`
- TerminationId NullableInt32 `json:"termination_id,omitempty"`
- Termination interface{} `json:"termination,omitempty"`
+ TerminationId NullableInt32 `json:"termination_id,omitempty"`
+ Termination interface{} `json:"termination,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"`
// ID of the local cross-connect
- XconnectId *string `json:"xconnect_id,omitempty"`
- Description *string `json:"description,omitempty"`
+ XconnectId *string `json:"xconnect_id,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *CircuitCircuitTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CircuitCircuitTermination) GetUrl() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *CircuitCircuitTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CircuitCircuitTermination) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -165,7 +163,6 @@ func (o *CircuitCircuitTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CircuitCircuitTermination) GetTerminationType() string {
if o == nil || IsNil(o.TerminationType.Get()) {
@@ -198,6 +195,7 @@ func (o *CircuitCircuitTermination) HasTerminationType() bool {
func (o *CircuitCircuitTermination) SetTerminationType(v string) {
o.TerminationType.Set(&v)
}
+
// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil
func (o *CircuitCircuitTermination) SetTerminationTypeNil() {
o.TerminationType.Set(nil)
@@ -240,6 +238,7 @@ func (o *CircuitCircuitTermination) HasTerminationId() bool {
func (o *CircuitCircuitTermination) SetTerminationId(v int32) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *CircuitCircuitTermination) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -315,6 +314,7 @@ func (o *CircuitCircuitTermination) HasPortSpeed() bool {
func (o *CircuitCircuitTermination) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
+
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
func (o *CircuitCircuitTermination) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
@@ -357,6 +357,7 @@ func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool {
func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
+
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
func (o *CircuitCircuitTermination) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
@@ -432,7 +433,7 @@ func (o *CircuitCircuitTermination) SetDescription(v string) {
}
func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -488,32 +489,31 @@ func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -582,5 +582,3 @@ func (v *NullableCircuitCircuitTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go
index 5bfa50963..ab2306d38 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &CircuitCircuitTerminationRequest{}
// CircuitCircuitTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type CircuitCircuitTerminationRequest struct {
TerminationType NullableString `json:"termination_type,omitempty"`
- TerminationId NullableInt32 `json:"termination_id,omitempty"`
+ TerminationId NullableInt32 `json:"termination_id,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"`
// ID of the local cross-connect
- XconnectId *string `json:"xconnect_id,omitempty"`
- Description *string `json:"description,omitempty"`
+ XconnectId *string `json:"xconnect_id,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -82,6 +82,7 @@ func (o *CircuitCircuitTerminationRequest) HasTerminationType() bool {
func (o *CircuitCircuitTerminationRequest) SetTerminationType(v string) {
o.TerminationType.Set(&v)
}
+
// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil
func (o *CircuitCircuitTerminationRequest) SetTerminationTypeNil() {
o.TerminationType.Set(nil)
@@ -124,6 +125,7 @@ func (o *CircuitCircuitTerminationRequest) HasTerminationId() bool {
func (o *CircuitCircuitTerminationRequest) SetTerminationId(v int32) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *CircuitCircuitTerminationRequest) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -166,6 +168,7 @@ func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool {
func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
+
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
@@ -208,6 +211,7 @@ func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool {
func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
+
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
@@ -283,7 +287,7 @@ func (o *CircuitCircuitTerminationRequest) SetDescription(v string) {
}
func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -379,5 +383,3 @@ func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_distance_unit.go b/model_circuit_distance_unit.go
index d6bea2622..b7ddcb41e 100644
--- a/model_circuit_distance_unit.go
+++ b/model_circuit_distance_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CircuitDistanceUnit{}
// CircuitDistanceUnit struct for CircuitDistanceUnit
type CircuitDistanceUnit struct {
- Value *CircuitDistanceUnitValue `json:"value,omitempty"`
- Label *CircuitDistanceUnitLabel `json:"label,omitempty"`
+ Value *CircuitDistanceUnitValue `json:"value,omitempty"`
+ Label *CircuitDistanceUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CircuitDistanceUnit) SetLabel(v CircuitDistanceUnitLabel) {
}
func (o CircuitDistanceUnit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCircuitDistanceUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_distance_unit_label.go b/model_circuit_distance_unit_label.go
index bf0552f50..19ec5fefe 100644
--- a/model_circuit_distance_unit_label.go
+++ b/model_circuit_distance_unit_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ type CircuitDistanceUnitLabel string
// List of Circuit_distance_unit_label
const (
CIRCUITDISTANCEUNITLABEL_KILOMETERS CircuitDistanceUnitLabel = "Kilometers"
- CIRCUITDISTANCEUNITLABEL_METERS CircuitDistanceUnitLabel = "Meters"
- CIRCUITDISTANCEUNITLABEL_MILES CircuitDistanceUnitLabel = "Miles"
- CIRCUITDISTANCEUNITLABEL_FEET CircuitDistanceUnitLabel = "Feet"
+ CIRCUITDISTANCEUNITLABEL_METERS CircuitDistanceUnitLabel = "Meters"
+ CIRCUITDISTANCEUNITLABEL_MILES CircuitDistanceUnitLabel = "Miles"
+ CIRCUITDISTANCEUNITLABEL_FEET CircuitDistanceUnitLabel = "Feet"
)
// All allowed values of CircuitDistanceUnitLabel enum
@@ -112,4 +112,3 @@ func (v *NullableCircuitDistanceUnitLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_circuit_distance_unit_value.go b/model_circuit_distance_unit_value.go
index 773246969..64dfc9e84 100644
--- a/model_circuit_distance_unit_value.go
+++ b/model_circuit_distance_unit_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type CircuitDistanceUnitValue string
// List of Circuit_distance_unit_value
const (
- CIRCUITDISTANCEUNITVALUE_KM CircuitDistanceUnitValue = "km"
- CIRCUITDISTANCEUNITVALUE_M CircuitDistanceUnitValue = "m"
- CIRCUITDISTANCEUNITVALUE_MI CircuitDistanceUnitValue = "mi"
- CIRCUITDISTANCEUNITVALUE_FT CircuitDistanceUnitValue = "ft"
+ CIRCUITDISTANCEUNITVALUE_KM CircuitDistanceUnitValue = "km"
+ CIRCUITDISTANCEUNITVALUE_M CircuitDistanceUnitValue = "m"
+ CIRCUITDISTANCEUNITVALUE_MI CircuitDistanceUnitValue = "mi"
+ CIRCUITDISTANCEUNITVALUE_FT CircuitDistanceUnitValue = "ft"
CIRCUITDISTANCEUNITVALUE_EMPTY CircuitDistanceUnitValue = ""
)
@@ -114,4 +114,3 @@ func (v *NullableCircuitDistanceUnitValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_circuit_group.go b/model_circuit_group.go
index 6c0a197c1..e9140c4d5 100644
--- a/model_circuit_group.go
+++ b/model_circuit_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CircuitGroup type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &CircuitGroup{}
// CircuitGroup Adds support for custom fields and tags.
type CircuitGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *CircuitGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CircuitGroup) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *CircuitGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CircuitGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *CircuitGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *CircuitGroup) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *CircuitGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *CircuitGroup) GetSlug() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *CircuitGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CircuitGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -282,6 +277,7 @@ func (o *CircuitGroup) HasTenant() bool {
func (o *CircuitGroup) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *CircuitGroup) SetTenantNil() {
o.Tenant.Set(nil)
@@ -388,6 +384,7 @@ func (o *CircuitGroup) HasCreated() bool {
func (o *CircuitGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CircuitGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -430,6 +427,7 @@ func (o *CircuitGroup) HasLastUpdated() bool {
func (o *CircuitGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CircuitGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -473,7 +471,7 @@ func (o *CircuitGroup) SetCircuitCount(v int64) {
}
func (o CircuitGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -533,32 +531,31 @@ func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -629,5 +626,3 @@ func (v *NullableCircuitGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go
index 143cbc7bc..f50b3aa11 100644
--- a/model_circuit_group_assignment.go
+++ b/model_circuit_group_assignment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CircuitGroupAssignment type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &CircuitGroupAssignment{}
// CircuitGroupAssignment Base serializer for group assignments under CircuitSerializer.
type CircuitGroupAssignment struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Group BriefCircuitGroup `json:"group"`
- MemberType string `json:"member_type"`
- MemberId int64 `json:"member_id"`
- Member interface{} `json:"member,omitempty"`
- Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Group BriefCircuitGroup `json:"group"`
+ MemberType string `json:"member_type"`
+ MemberId int64 `json:"member_id"`
+ Member interface{} `json:"member,omitempty"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *CircuitGroupAssignment) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CircuitGroupAssignment) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *CircuitGroupAssignment) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CircuitGroupAssignment) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *CircuitGroupAssignment) SetDisplay(v string) {
o.Display = v
}
-
// GetGroup returns the Group field value
func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup {
if o == nil {
@@ -192,7 +189,6 @@ func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup) {
o.Group = v
}
-
// GetMemberType returns the MemberType field value
func (o *CircuitGroupAssignment) GetMemberType() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *CircuitGroupAssignment) SetMemberType(v string) {
o.MemberType = v
}
-
// GetMemberId returns the MemberId field value
func (o *CircuitGroupAssignment) GetMemberId() int64 {
if o == nil {
@@ -242,7 +237,6 @@ func (o *CircuitGroupAssignment) SetMemberId(v int64) {
o.MemberId = v
}
-
// GetMember returns the Member field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CircuitGroupAssignment) GetMember() interface{} {
if o == nil {
@@ -372,6 +366,7 @@ func (o *CircuitGroupAssignment) HasCreated() bool {
func (o *CircuitGroupAssignment) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CircuitGroupAssignment) SetCreatedNil() {
o.Created.Set(nil)
@@ -414,6 +409,7 @@ func (o *CircuitGroupAssignment) HasLastUpdated() bool {
func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CircuitGroupAssignment) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -425,7 +421,7 @@ func (o *CircuitGroupAssignment) UnsetLastUpdated() {
}
func (o CircuitGroupAssignment) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -481,32 +477,31 @@ func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -576,5 +571,3 @@ func (v *NullableCircuitGroupAssignment) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go
index c1abcf7d7..38a25a30c 100644
--- a/model_circuit_group_assignment_request.go
+++ b/model_circuit_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &CircuitGroupAssignmentRequest{}
// CircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer.
type CircuitGroupAssignmentRequest struct {
- Group BriefCircuitGroupRequest `json:"group"`
- MemberType string `json:"member_type"`
- MemberId int64 `json:"member_id"`
- Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Group BriefCircuitGroupAssignmentSerializerRequestGroup `json:"group"`
+ MemberType string `json:"member_type"`
+ MemberId int64 `json:"member_id"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -34,7 +34,7 @@ type _CircuitGroupAssignmentRequest CircuitGroupAssignmentRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, memberType string, memberId int64) *CircuitGroupAssignmentRequest {
+func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupAssignmentSerializerRequestGroup, memberType string, memberId int64) *CircuitGroupAssignmentRequest {
this := CircuitGroupAssignmentRequest{}
this.Group = group
this.MemberType = memberType
@@ -51,9 +51,9 @@ func NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentReque
}
// GetGroup returns the Group field value
-func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest {
+func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupAssignmentSerializerRequestGroup {
if o == nil {
- var ret BriefCircuitGroupRequest
+ var ret BriefCircuitGroupAssignmentSerializerRequestGroup
return ret
}
@@ -62,7 +62,7 @@ func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest {
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) {
+func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupAssignmentSerializerRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest,
}
// SetGroup sets field value
-func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) {
+func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupAssignmentSerializerRequestGroup) {
o.Group = v
}
-
// GetMemberType returns the MemberType field value
func (o *CircuitGroupAssignmentRequest) GetMemberType() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *CircuitGroupAssignmentRequest) SetMemberType(v string) {
o.MemberType = v
}
-
// GetMemberId returns the MemberId field value
func (o *CircuitGroupAssignmentRequest) GetMemberId() int64 {
if o == nil {
@@ -124,7 +122,6 @@ func (o *CircuitGroupAssignmentRequest) SetMemberId(v int64) {
o.MemberId = v
}
-
// GetPriority returns the Priority field value if set, zero value otherwise.
func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue {
if o == nil || IsNil(o.Priority) {
@@ -190,7 +187,7 @@ func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) {
}
func (o CircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -228,32 +225,31 @@ func (o *CircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -316,5 +312,3 @@ func (v *NullableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go
index 2516a32ad..9a3801729 100644
--- a/model_circuit_group_request.go
+++ b/model_circuit_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &CircuitGroupRequest{}
// CircuitGroupRequest Adds support for custom fields and tags.
type CircuitGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *CircuitGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *CircuitGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *CircuitGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CircuitGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -133,9 +131,9 @@ func (o *CircuitGroupRequest) SetDescription(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest {
+func (o *CircuitGroupRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -144,7 +142,7 @@ func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *CircuitGroupRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -160,10 +158,11 @@ func (o *CircuitGroupRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *CircuitGroupRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *CircuitGroupRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -239,7 +238,7 @@ func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o CircuitGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -281,32 +280,31 @@ func (o *CircuitGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -370,5 +368,3 @@ func (v *NullableCircuitGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_request.go b/model_circuit_request.go
index d80251406..b7b2a5da2 100644
--- a/model_circuit_request.go
+++ b/model_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,23 +21,23 @@ var _ MappedNullable = &CircuitRequest{}
// CircuitRequest Adds support for custom fields and tags.
type CircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- Provider BriefProviderRequest `json:"provider"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type BriefCircuitTypeRequest `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ Cid string `json:"cid"`
+ Provider BriefCircuitRequestProvider `json:"provider"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type CircuitRequestType `json:"type"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ InstallDate NullableString `json:"install_date,omitempty"`
+ TerminationDate NullableString `json:"termination_date,omitempty"`
// Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
+ CommitRate NullableInt32 `json:"commit_rate,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,7 +47,7 @@ type _CircuitRequest CircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest {
+func NewCircuitRequest(cid string, provider BriefCircuitRequestProvider, type_ CircuitRequestType) *CircuitRequest {
this := CircuitRequest{}
this.Cid = cid
this.Provider = provider
@@ -87,11 +87,10 @@ func (o *CircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProvider returns the Provider field value
-func (o *CircuitRequest) GetProvider() BriefProviderRequest {
+func (o *CircuitRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
@@ -100,7 +99,7 @@ func (o *CircuitRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *CircuitRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil {
return nil, false
}
@@ -108,15 +107,14 @@ func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
}
// SetProvider sets field value
-func (o *CircuitRequest) SetProvider(v BriefProviderRequest) {
+func (o *CircuitRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *CircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -125,7 +123,7 @@ func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *CircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -141,10 +139,11 @@ func (o *CircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *CircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *CircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -156,9 +155,9 @@ func (o *CircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value
-func (o *CircuitRequest) GetType() BriefCircuitTypeRequest {
+func (o *CircuitRequest) GetType() CircuitRequestType {
if o == nil {
- var ret BriefCircuitTypeRequest
+ var ret CircuitRequestType
return ret
}
@@ -167,7 +166,7 @@ func (o *CircuitRequest) GetType() BriefCircuitTypeRequest {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) {
+func (o *CircuitRequest) GetTypeOk() (*CircuitRequestType, bool) {
if o == nil {
return nil, false
}
@@ -175,11 +174,10 @@ func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) {
}
// SetType sets field value
-func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) {
+func (o *CircuitRequest) SetType(v CircuitRequestType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *CircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
@@ -213,9 +211,9 @@ func (o *CircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CircuitRequest) GetTenant() BriefTenantRequest {
+func (o *CircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -224,7 +222,7 @@ func (o *CircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *CircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -240,10 +238,11 @@ func (o *CircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *CircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *CircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *CircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -286,6 +285,7 @@ func (o *CircuitRequest) HasInstallDate() bool {
func (o *CircuitRequest) SetInstallDate(v string) {
o.InstallDate.Set(&v)
}
+
// SetInstallDateNil sets the value for InstallDate to be an explicit nil
func (o *CircuitRequest) SetInstallDateNil() {
o.InstallDate.Set(nil)
@@ -328,6 +328,7 @@ func (o *CircuitRequest) HasTerminationDate() bool {
func (o *CircuitRequest) SetTerminationDate(v string) {
o.TerminationDate.Set(&v)
}
+
// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
func (o *CircuitRequest) SetTerminationDateNil() {
o.TerminationDate.Set(nil)
@@ -370,6 +371,7 @@ func (o *CircuitRequest) HasCommitRate() bool {
func (o *CircuitRequest) SetCommitRate(v int32) {
o.CommitRate.Set(&v)
}
+
// SetCommitRateNil sets the value for CommitRate to be an explicit nil
func (o *CircuitRequest) SetCommitRateNil() {
o.CommitRate.Set(nil)
@@ -444,6 +446,7 @@ func (o *CircuitRequest) HasDistance() bool {
func (o *CircuitRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *CircuitRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -486,6 +489,7 @@ func (o *CircuitRequest) HasDistanceUnit() bool {
func (o *CircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *CircuitRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -625,7 +629,7 @@ func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerialize
}
func (o CircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -696,32 +700,31 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -795,5 +798,3 @@ func (v *NullableCircuitRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_request_distance_unit.go b/model_circuit_request_distance_unit.go
index 957d2a7d4..b0cbe3cdd 100644
--- a/model_circuit_request_distance_unit.go
+++ b/model_circuit_request_distance_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type CircuitRequestDistanceUnit string
// List of CircuitRequest_distance_unit
const (
- CIRCUITREQUESTDISTANCEUNIT_KM CircuitRequestDistanceUnit = "km"
- CIRCUITREQUESTDISTANCEUNIT_M CircuitRequestDistanceUnit = "m"
- CIRCUITREQUESTDISTANCEUNIT_MI CircuitRequestDistanceUnit = "mi"
- CIRCUITREQUESTDISTANCEUNIT_FT CircuitRequestDistanceUnit = "ft"
+ CIRCUITREQUESTDISTANCEUNIT_KM CircuitRequestDistanceUnit = "km"
+ CIRCUITREQUESTDISTANCEUNIT_M CircuitRequestDistanceUnit = "m"
+ CIRCUITREQUESTDISTANCEUNIT_MI CircuitRequestDistanceUnit = "mi"
+ CIRCUITREQUESTDISTANCEUNIT_FT CircuitRequestDistanceUnit = "ft"
CIRCUITREQUESTDISTANCEUNIT_EMPTY CircuitRequestDistanceUnit = ""
)
@@ -114,4 +114,3 @@ func (v *NullableCircuitRequestDistanceUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_circuit_request_provider_account.go b/model_circuit_request_provider_account.go
new file mode 100644
index 000000000..0d75b2285
--- /dev/null
+++ b/model_circuit_request_provider_account.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// CircuitRequestProviderAccount - struct for CircuitRequestProviderAccount
+type CircuitRequestProviderAccount struct {
+ BriefProviderAccountRequest *BriefProviderAccountRequest
+ Int32 *int32
+}
+
+// BriefProviderAccountRequestAsCircuitRequestProviderAccount is a convenience function that returns BriefProviderAccountRequest wrapped in CircuitRequestProviderAccount
+func BriefProviderAccountRequestAsCircuitRequestProviderAccount(v *BriefProviderAccountRequest) CircuitRequestProviderAccount {
+ return CircuitRequestProviderAccount{
+ BriefProviderAccountRequest: v,
+ }
+}
+
+// int32AsCircuitRequestProviderAccount is a convenience function that returns int32 wrapped in CircuitRequestProviderAccount
+func Int32AsCircuitRequestProviderAccount(v *int32) CircuitRequestProviderAccount {
+ return CircuitRequestProviderAccount{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *CircuitRequestProviderAccount) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefProviderAccountRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefProviderAccountRequest)
+ if err == nil {
+ jsonBriefProviderAccountRequest, _ := json.Marshal(dst.BriefProviderAccountRequest)
+ if string(jsonBriefProviderAccountRequest) == "{}" { // empty struct
+ dst.BriefProviderAccountRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefProviderAccountRequest); err != nil {
+ dst.BriefProviderAccountRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefProviderAccountRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefProviderAccountRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(CircuitRequestProviderAccount)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(CircuitRequestProviderAccount)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src CircuitRequestProviderAccount) MarshalJSON() ([]byte, error) {
+ if src.BriefProviderAccountRequest != nil {
+ return json.Marshal(&src.BriefProviderAccountRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *CircuitRequestProviderAccount) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefProviderAccountRequest != nil {
+ return obj.BriefProviderAccountRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableCircuitRequestProviderAccount struct {
+ value *CircuitRequestProviderAccount
+ isSet bool
+}
+
+func (v NullableCircuitRequestProviderAccount) Get() *CircuitRequestProviderAccount {
+ return v.value
+}
+
+func (v *NullableCircuitRequestProviderAccount) Set(val *CircuitRequestProviderAccount) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCircuitRequestProviderAccount) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCircuitRequestProviderAccount) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCircuitRequestProviderAccount(val *CircuitRequestProviderAccount) *NullableCircuitRequestProviderAccount {
+ return &NullableCircuitRequestProviderAccount{value: val, isSet: true}
+}
+
+func (v NullableCircuitRequestProviderAccount) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCircuitRequestProviderAccount) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_circuit_request_type.go b/model_circuit_request_type.go
new file mode 100644
index 000000000..67e7794cf
--- /dev/null
+++ b/model_circuit_request_type.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// CircuitRequestType - struct for CircuitRequestType
+type CircuitRequestType struct {
+ BriefCircuitTypeRequest *BriefCircuitTypeRequest
+ Int32 *int32
+}
+
+// BriefCircuitTypeRequestAsCircuitRequestType is a convenience function that returns BriefCircuitTypeRequest wrapped in CircuitRequestType
+func BriefCircuitTypeRequestAsCircuitRequestType(v *BriefCircuitTypeRequest) CircuitRequestType {
+ return CircuitRequestType{
+ BriefCircuitTypeRequest: v,
+ }
+}
+
+// int32AsCircuitRequestType is a convenience function that returns int32 wrapped in CircuitRequestType
+func Int32AsCircuitRequestType(v *int32) CircuitRequestType {
+ return CircuitRequestType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *CircuitRequestType) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefCircuitTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefCircuitTypeRequest)
+ if err == nil {
+ jsonBriefCircuitTypeRequest, _ := json.Marshal(dst.BriefCircuitTypeRequest)
+ if string(jsonBriefCircuitTypeRequest) == "{}" { // empty struct
+ dst.BriefCircuitTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefCircuitTypeRequest); err != nil {
+ dst.BriefCircuitTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefCircuitTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefCircuitTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(CircuitRequestType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(CircuitRequestType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src CircuitRequestType) MarshalJSON() ([]byte, error) {
+ if src.BriefCircuitTypeRequest != nil {
+ return json.Marshal(&src.BriefCircuitTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *CircuitRequestType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefCircuitTypeRequest != nil {
+ return obj.BriefCircuitTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableCircuitRequestType struct {
+ value *CircuitRequestType
+ isSet bool
+}
+
+func (v NullableCircuitRequestType) Get() *CircuitRequestType {
+ return v.value
+}
+
+func (v *NullableCircuitRequestType) Set(val *CircuitRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCircuitRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCircuitRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCircuitRequestType(val *CircuitRequestType) *NullableCircuitRequestType {
+ return &NullableCircuitRequestType{value: val, isSet: true}
+}
+
+func (v NullableCircuitRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCircuitRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_circuit_status.go b/model_circuit_status.go
index dea6ee8ad..0c6808e9c 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CircuitStatus{}
// CircuitStatus struct for CircuitStatus
type CircuitStatus struct {
- Value *CircuitStatusValue `json:"value,omitempty"`
- Label *CircuitStatusLabel `json:"label,omitempty"`
+ Value *CircuitStatusValue `json:"value,omitempty"`
+ Label *CircuitStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) {
}
func (o CircuitStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go
index 12a823601..f319fad51 100644
--- a/model_circuit_status_label.go
+++ b/model_circuit_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ 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_PLANNED CircuitStatusLabel = "Planned"
+ CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning"
+ CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active"
+ CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline"
CIRCUITSTATUSLABEL_DEPROVISIONING CircuitStatusLabel = "Deprovisioning"
CIRCUITSTATUSLABEL_DECOMMISSIONED CircuitStatusLabel = "Decommissioned"
)
@@ -116,4 +116,3 @@ 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
index 116187a1a..979793a45 100644
--- a/model_circuit_status_value.go
+++ b/model_circuit_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ 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_PLANNED CircuitStatusValue = "planned"
+ CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning"
+ CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active"
+ CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline"
CIRCUITSTATUSVALUE_DEPROVISIONING CircuitStatusValue = "deprovisioning"
CIRCUITSTATUSVALUE_DECOMMISSIONED CircuitStatusValue = "decommissioned"
)
@@ -116,4 +116,3 @@ 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 7e2d254aa..c8336cb3a 100644
--- a/model_circuit_termination.go
+++ b/model_circuit_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CircuitTermination type satisfies the MappedNullable interface at compile time
@@ -21,15 +21,15 @@ var _ MappedNullable = &CircuitTermination{}
// CircuitTermination Adds support for custom fields and tags.
type CircuitTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Circuit BriefCircuit `json:"circuit"`
- TermSide TerminationSide1 `json:"term_side"`
- TerminationType NullableString `json:"termination_type,omitempty"`
- TerminationId NullableInt32 `json:"termination_id,omitempty"`
- Termination interface{} `json:"termination,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Circuit BriefCircuit `json:"circuit"`
+ TermSide TerminationSide1 `json:"term_side"`
+ TerminationType NullableString `json:"termination_type,omitempty"`
+ TerminationId NullableInt32 `json:"termination_id,omitempty"`
+ Termination interface{} `json:"termination,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -37,20 +37,20 @@ type CircuitTermination struct {
// ID of the local cross-connect
XconnectId *string `json:"xconnect_id,omitempty"`
// Patch panel ID and port number(s)
- PpInfo *string `json:"pp_info,omitempty"`
+ PpInfo *string `json:"pp_info,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -104,7 +104,6 @@ func (o *CircuitTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CircuitTermination) GetUrl() string {
if o == nil {
@@ -129,7 +128,6 @@ func (o *CircuitTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CircuitTermination) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -186,7 +184,6 @@ func (o *CircuitTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetCircuit returns the Circuit field value
func (o *CircuitTermination) GetCircuit() BriefCircuit {
if o == nil {
@@ -211,7 +208,6 @@ func (o *CircuitTermination) SetCircuit(v BriefCircuit) {
o.Circuit = v
}
-
// GetTermSide returns the TermSide field value
func (o *CircuitTermination) GetTermSide() TerminationSide1 {
if o == nil {
@@ -236,7 +232,6 @@ func (o *CircuitTermination) SetTermSide(v TerminationSide1) {
o.TermSide = v
}
-
// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CircuitTermination) GetTerminationType() string {
if o == nil || IsNil(o.TerminationType.Get()) {
@@ -269,6 +264,7 @@ func (o *CircuitTermination) HasTerminationType() bool {
func (o *CircuitTermination) SetTerminationType(v string) {
o.TerminationType.Set(&v)
}
+
// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil
func (o *CircuitTermination) SetTerminationTypeNil() {
o.TerminationType.Set(nil)
@@ -311,6 +307,7 @@ func (o *CircuitTermination) HasTerminationId() bool {
func (o *CircuitTermination) SetTerminationId(v int32) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *CircuitTermination) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -386,6 +383,7 @@ func (o *CircuitTermination) HasPortSpeed() bool {
func (o *CircuitTermination) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
+
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
func (o *CircuitTermination) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
@@ -428,6 +426,7 @@ func (o *CircuitTermination) HasUpstreamSpeed() bool {
func (o *CircuitTermination) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
+
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
func (o *CircuitTermination) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
@@ -598,6 +597,7 @@ func (o *CircuitTermination) HasCable() bool {
func (o *CircuitTermination) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *CircuitTermination) SetCableNil() {
o.Cable.Set(nil)
@@ -664,7 +664,6 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CircuitTermination) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -697,6 +696,7 @@ func (o *CircuitTermination) HasLinkPeersType() bool {
func (o *CircuitTermination) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *CircuitTermination) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -803,6 +803,7 @@ func (o *CircuitTermination) HasCreated() bool {
func (o *CircuitTermination) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CircuitTermination) SetCreatedNil() {
o.Created.Set(nil)
@@ -845,6 +846,7 @@ func (o *CircuitTermination) HasLastUpdated() bool {
func (o *CircuitTermination) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CircuitTermination) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -879,9 +881,8 @@ func (o *CircuitTermination) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o CircuitTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -972,32 +973,31 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1079,5 +1079,3 @@ func (v *NullableCircuitTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go
index 44e0442eb..e1fce705a 100644
--- a/model_circuit_termination_request.go
+++ b/model_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{}
// CircuitTerminationRequest Adds support for custom fields and tags.
type CircuitTerminationRequest struct {
- Circuit BriefCircuitRequest `json:"circuit"`
- TermSide TerminationSide1 `json:"term_side"`
- TerminationType NullableString `json:"termination_type,omitempty"`
- TerminationId NullableInt32 `json:"termination_id,omitempty"`
+ Circuit CircuitTerminationRequestCircuit `json:"circuit"`
+ TermSide TerminationSide1 `json:"term_side"`
+ TerminationType NullableString `json:"termination_type,omitempty"`
+ TerminationId NullableInt32 `json:"termination_id,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -31,12 +31,12 @@ type CircuitTerminationRequest struct {
// ID of the local cross-connect
XconnectId *string `json:"xconnect_id,omitempty"`
// Patch panel ID and port number(s)
- PpInfo *string `json:"pp_info,omitempty"`
+ PpInfo *string `json:"pp_info,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide TerminationSide1) *CircuitTerminationRequest {
+func NewCircuitTerminationRequest(circuit CircuitTerminationRequestCircuit, termSide TerminationSide1) *CircuitTerminationRequest {
this := CircuitTerminationRequest{}
this.Circuit = circuit
this.TermSide = termSide
@@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest {
}
// GetCircuit returns the Circuit field value
-func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest {
+func (o *CircuitTerminationRequest) GetCircuit() CircuitTerminationRequestCircuit {
if o == nil {
- var ret BriefCircuitRequest
+ var ret CircuitTerminationRequestCircuit
return ret
}
@@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest {
// GetCircuitOk returns a tuple with the Circuit field value
// and a boolean to check if the value has been set.
-func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) {
+func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitTerminationRequestCircuit, bool) {
if o == nil {
return nil, false
}
@@ -81,11 +81,10 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)
}
// SetCircuit sets field value
-func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) {
+func (o *CircuitTerminationRequest) SetCircuit(v CircuitTerminationRequestCircuit) {
o.Circuit = v
}
-
// GetTermSide returns the TermSide field value
func (o *CircuitTerminationRequest) GetTermSide() TerminationSide1 {
if o == nil {
@@ -110,7 +109,6 @@ func (o *CircuitTerminationRequest) SetTermSide(v TerminationSide1) {
o.TermSide = v
}
-
// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CircuitTerminationRequest) GetTerminationType() string {
if o == nil || IsNil(o.TerminationType.Get()) {
@@ -143,6 +141,7 @@ func (o *CircuitTerminationRequest) HasTerminationType() bool {
func (o *CircuitTerminationRequest) SetTerminationType(v string) {
o.TerminationType.Set(&v)
}
+
// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil
func (o *CircuitTerminationRequest) SetTerminationTypeNil() {
o.TerminationType.Set(nil)
@@ -185,6 +184,7 @@ func (o *CircuitTerminationRequest) HasTerminationId() bool {
func (o *CircuitTerminationRequest) SetTerminationId(v int32) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *CircuitTerminationRequest) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -227,6 +227,7 @@ func (o *CircuitTerminationRequest) HasPortSpeed() bool {
func (o *CircuitTerminationRequest) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
+
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
func (o *CircuitTerminationRequest) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
@@ -269,6 +270,7 @@ func (o *CircuitTerminationRequest) HasUpstreamSpeed() bool {
func (o *CircuitTerminationRequest) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
+
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
func (o *CircuitTerminationRequest) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
@@ -472,7 +474,7 @@ func (o *CircuitTerminationRequest) SetCustomFields(v map[string]interface{}) {
}
func (o CircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -532,32 +534,31 @@ func (o *CircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -627,5 +628,3 @@ func (v *NullableCircuitTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_termination_request_circuit.go b/model_circuit_termination_request_circuit.go
new file mode 100644
index 000000000..d15ec8566
--- /dev/null
+++ b/model_circuit_termination_request_circuit.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// CircuitTerminationRequestCircuit - struct for CircuitTerminationRequestCircuit
+type CircuitTerminationRequestCircuit struct {
+ BriefCircuitRequest *BriefCircuitRequest
+ Int32 *int32
+}
+
+// BriefCircuitRequestAsCircuitTerminationRequestCircuit is a convenience function that returns BriefCircuitRequest wrapped in CircuitTerminationRequestCircuit
+func BriefCircuitRequestAsCircuitTerminationRequestCircuit(v *BriefCircuitRequest) CircuitTerminationRequestCircuit {
+ return CircuitTerminationRequestCircuit{
+ BriefCircuitRequest: v,
+ }
+}
+
+// int32AsCircuitTerminationRequestCircuit is a convenience function that returns int32 wrapped in CircuitTerminationRequestCircuit
+func Int32AsCircuitTerminationRequestCircuit(v *int32) CircuitTerminationRequestCircuit {
+ return CircuitTerminationRequestCircuit{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *CircuitTerminationRequestCircuit) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefCircuitRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefCircuitRequest)
+ if err == nil {
+ jsonBriefCircuitRequest, _ := json.Marshal(dst.BriefCircuitRequest)
+ if string(jsonBriefCircuitRequest) == "{}" { // empty struct
+ dst.BriefCircuitRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefCircuitRequest); err != nil {
+ dst.BriefCircuitRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefCircuitRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefCircuitRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(CircuitTerminationRequestCircuit)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(CircuitTerminationRequestCircuit)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src CircuitTerminationRequestCircuit) MarshalJSON() ([]byte, error) {
+ if src.BriefCircuitRequest != nil {
+ return json.Marshal(&src.BriefCircuitRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *CircuitTerminationRequestCircuit) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefCircuitRequest != nil {
+ return obj.BriefCircuitRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableCircuitTerminationRequestCircuit struct {
+ value *CircuitTerminationRequestCircuit
+ isSet bool
+}
+
+func (v NullableCircuitTerminationRequestCircuit) Get() *CircuitTerminationRequestCircuit {
+ return v.value
+}
+
+func (v *NullableCircuitTerminationRequestCircuit) Set(val *CircuitTerminationRequestCircuit) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCircuitTerminationRequestCircuit) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCircuitTerminationRequestCircuit) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCircuitTerminationRequestCircuit(val *CircuitTerminationRequestCircuit) *NullableCircuitTerminationRequestCircuit {
+ return &NullableCircuitTerminationRequestCircuit{value: val, isSet: true}
+}
+
+func (v NullableCircuitTerminationRequestCircuit) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCircuitTerminationRequestCircuit) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_circuit_type.go b/model_circuit_type.go
index 20d45ffbb..b3ec9f54f 100644
--- a/model_circuit_type.go
+++ b/model_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CircuitType type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &CircuitType{}
// CircuitType Adds support for custom fields and tags.
type CircuitType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *CircuitType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CircuitType) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *CircuitType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CircuitType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *CircuitType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *CircuitType) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *CircuitType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *CircuitType) GetSlug() string {
if o == nil {
@@ -217,7 +213,6 @@ 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) {
@@ -378,6 +373,7 @@ func (o *CircuitType) HasCreated() bool {
func (o *CircuitType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CircuitType) SetCreatedNil() {
o.Created.Set(nil)
@@ -420,6 +416,7 @@ func (o *CircuitType) HasLastUpdated() bool {
func (o *CircuitType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CircuitType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -463,7 +460,7 @@ func (o *CircuitType) SetCircuitCount(v int64) {
}
func (o CircuitType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -523,32 +520,31 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -619,5 +615,3 @@ func (v *NullableCircuitType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go
index 80e3ff6e8..01d6290ec 100644
--- a/model_circuit_type_request.go
+++ b/model_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &CircuitTypeRequest{}
// CircuitTypeRequest Adds support for custom fields and tags.
type CircuitTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *CircuitTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *CircuitTypeRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ 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) {
@@ -229,7 +227,7 @@ func (o *CircuitTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o CircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *CircuitTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableCircuitTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go
index 5aff3ae2e..4515e0683 100644
--- a/model_circuits_circuit_group_assignments_list_priority_parameter.go
+++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type CircuitsCircuitGroupAssignmentsListPriorityParameter string
// List of circuits_circuit_group_assignments_list_priority_parameter
const (
- CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive"
- CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary"
+ CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive"
+ CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary"
CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "secondary"
- CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary"
+ CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary"
)
// All allowed values of CircuitsCircuitGroupAssignmentsListPriorityParameter enum
@@ -112,4 +112,3 @@ func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Unmarshal
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go
index 75ca2d718..161774523 100644
--- a/model_circuits_circuit_terminations_list_cable_end_parameter.go
+++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableCircuitsCircuitTerminationsListCableEndParameter) UnmarshalJSON
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_circuits_circuits_list_distance_unit_parameter.go b/model_circuits_circuits_list_distance_unit_parameter.go
index 4db9ac9bc..588fb6e4b 100644
--- a/model_circuits_circuits_list_distance_unit_parameter.go
+++ b/model_circuits_circuits_list_distance_unit_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ type CircuitsCircuitsListDistanceUnitParameter string
const (
CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_FT CircuitsCircuitsListDistanceUnitParameter = "ft"
CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_KM CircuitsCircuitsListDistanceUnitParameter = "km"
- CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_M CircuitsCircuitsListDistanceUnitParameter = "m"
+ CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_M CircuitsCircuitsListDistanceUnitParameter = "m"
CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_MI CircuitsCircuitsListDistanceUnitParameter = "mi"
)
@@ -112,4 +112,3 @@ func (v *NullableCircuitsCircuitsListDistanceUnitParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_cluster.go b/model_cluster.go
index e51fc6f8a..0c687b636 100644
--- a/model_cluster.go
+++ b/model_cluster.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Cluster type satisfies the MappedNullable interface at compile time
@@ -21,29 +21,29 @@ var _ MappedNullable = &Cluster{}
// Cluster Adds support for custom fields and tags.
type Cluster struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Type BriefClusterType `json:"type"`
- Group NullableBriefClusterGroup `json:"group,omitempty"`
- Status *ClusterStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Scope interface{} `json:"scope,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
- AllocatedVcpus *float64 `json:"allocated_vcpus,omitempty"`
- AllocatedMemory *int32 `json:"allocated_memory,omitempty"`
- AllocatedDisk *int32 `json:"allocated_disk,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Type BriefClusterType `json:"type"`
+ Group NullableBriefClusterGroup `json:"group,omitempty"`
+ Status *ClusterStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Scope interface{} `json:"scope,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ AllocatedVcpus *float64 `json:"allocated_vcpus,omitempty"`
+ AllocatedMemory *int32 `json:"allocated_memory,omitempty"`
+ AllocatedDisk *int32 `json:"allocated_disk,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -95,7 +95,6 @@ func (o *Cluster) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Cluster) GetUrl() string {
if o == nil {
@@ -120,7 +119,6 @@ func (o *Cluster) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Cluster) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -177,7 +175,6 @@ func (o *Cluster) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Cluster) GetName() string {
if o == nil {
@@ -202,7 +199,6 @@ func (o *Cluster) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
func (o *Cluster) GetType() BriefClusterType {
if o == nil {
@@ -227,7 +223,6 @@ func (o *Cluster) SetType(v BriefClusterType) {
o.Type = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Cluster) GetGroup() BriefClusterGroup {
if o == nil || IsNil(o.Group.Get()) {
@@ -260,6 +255,7 @@ func (o *Cluster) HasGroup() bool {
func (o *Cluster) SetGroup(v BriefClusterGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *Cluster) SetGroupNil() {
o.Group.Set(nil)
@@ -334,6 +330,7 @@ func (o *Cluster) HasTenant() bool {
func (o *Cluster) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Cluster) SetTenantNil() {
o.Tenant.Set(nil)
@@ -376,6 +373,7 @@ func (o *Cluster) HasScopeType() bool {
func (o *Cluster) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *Cluster) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -418,6 +416,7 @@ func (o *Cluster) HasScopeId() bool {
func (o *Cluster) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *Cluster) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -621,6 +620,7 @@ func (o *Cluster) HasCreated() bool {
func (o *Cluster) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Cluster) SetCreatedNil() {
o.Created.Set(nil)
@@ -663,6 +663,7 @@ func (o *Cluster) HasLastUpdated() bool {
func (o *Cluster) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Cluster) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -834,7 +835,7 @@ func (o *Cluster) SetAllocatedDisk(v int32) {
}
func (o Cluster) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -924,32 +925,31 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1030,5 +1030,3 @@ func (v *NullableCluster) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_group.go b/model_cluster_group.go
index 6cfa331c6..3324f9e93 100644
--- a/model_cluster_group.go
+++ b/model_cluster_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ClusterGroup type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &ClusterGroup{}
// ClusterGroup Adds support for custom fields and tags.
type ClusterGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- ClusterCount *int64 `json:"cluster_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ClusterCount *int64 `json:"cluster_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *ClusterGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ClusterGroup) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *ClusterGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ClusterGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *ClusterGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ClusterGroup) GetName() string {
if o == nil {
@@ -191,7 +188,6 @@ func (o *ClusterGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ClusterGroup) GetSlug() string {
if o == nil {
@@ -216,7 +212,6 @@ func (o *ClusterGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ClusterGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -345,6 +340,7 @@ func (o *ClusterGroup) HasCreated() bool {
func (o *ClusterGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ClusterGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -387,6 +383,7 @@ func (o *ClusterGroup) HasLastUpdated() bool {
func (o *ClusterGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ClusterGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -430,7 +427,7 @@ func (o *ClusterGroup) SetClusterCount(v int64) {
}
func (o ClusterGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -487,32 +484,31 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -582,5 +578,3 @@ func (v *NullableClusterGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go
index 23ee1f82d..ae66862f7 100644
--- a/model_cluster_group_request.go
+++ b/model_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ClusterGroupRequest{}
// ClusterGroupRequest Adds support for custom fields and tags.
type ClusterGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *ClusterGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ClusterGroupRequest) GetSlug() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *ClusterGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ClusterGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -196,7 +194,7 @@ func (o *ClusterGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ClusterGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,32 +233,31 @@ func (o *ClusterGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -323,5 +320,3 @@ func (v *NullableClusterGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_request.go b/model_cluster_request.go
index 06d4c5a5d..0c6630281 100644
--- a/model_cluster_request.go
+++ b/model_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &ClusterRequest{}
// ClusterRequest Adds support for custom fields and tags.
type ClusterRequest struct {
- Name string `json:"name"`
- Type BriefClusterTypeRequest `json:"type"`
- Group NullableBriefClusterGroupRequest `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Type ClusterRequestType `json:"type"`
+ Group NullableClusterRequestGroup `json:"group,omitempty"`
+ Status *ClusterStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _ClusterRequest ClusterRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest {
+func NewClusterRequest(name string, type_ ClusterRequestType) *ClusterRequest {
this := ClusterRequest{}
this.Name = name
this.Type = type_
@@ -79,11 +79,10 @@ func (o *ClusterRequest) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
-func (o *ClusterRequest) GetType() BriefClusterTypeRequest {
+func (o *ClusterRequest) GetType() ClusterRequestType {
if o == nil {
- var ret BriefClusterTypeRequest
+ var ret ClusterRequestType
return ret
}
@@ -92,7 +91,7 @@ func (o *ClusterRequest) GetType() BriefClusterTypeRequest {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) {
+func (o *ClusterRequest) GetTypeOk() (*ClusterRequestType, bool) {
if o == nil {
return nil, false
}
@@ -100,15 +99,14 @@ func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) {
}
// SetType sets field value
-func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) {
+func (o *ClusterRequest) SetType(v ClusterRequestType) {
o.Type = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest {
+func (o *ClusterRequest) GetGroup() ClusterRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefClusterGroupRequest
+ var ret ClusterRequestGroup
return ret
}
return *o.Group.Get()
@@ -117,7 +115,7 @@ func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) {
+func (o *ClusterRequest) GetGroupOk() (*ClusterRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -133,10 +131,11 @@ func (o *ClusterRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field.
-func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) {
+// SetGroup gets a reference to the given NullableClusterRequestGroup and assigns it to the Group field.
+func (o *ClusterRequest) SetGroup(v ClusterRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *ClusterRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -180,9 +179,9 @@ func (o *ClusterRequest) SetStatus(v ClusterStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ClusterRequest) GetTenant() BriefTenantRequest {
+func (o *ClusterRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -191,7 +190,7 @@ func (o *ClusterRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *ClusterRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -207,10 +206,11 @@ func (o *ClusterRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *ClusterRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *ClusterRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *ClusterRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -253,6 +253,7 @@ func (o *ClusterRequest) HasScopeType() bool {
func (o *ClusterRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *ClusterRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -295,6 +296,7 @@ func (o *ClusterRequest) HasScopeId() bool {
func (o *ClusterRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *ClusterRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -434,7 +436,7 @@ func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ClusterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -491,32 +493,31 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -585,5 +586,3 @@ func (v *NullableClusterRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_request_group.go b/model_cluster_request_group.go
new file mode 100644
index 000000000..36328b346
--- /dev/null
+++ b/model_cluster_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ClusterRequestGroup - struct for ClusterRequestGroup
+type ClusterRequestGroup struct {
+ BriefClusterGroupRequest *BriefClusterGroupRequest
+ Int32 *int32
+}
+
+// BriefClusterGroupRequestAsClusterRequestGroup is a convenience function that returns BriefClusterGroupRequest wrapped in ClusterRequestGroup
+func BriefClusterGroupRequestAsClusterRequestGroup(v *BriefClusterGroupRequest) ClusterRequestGroup {
+ return ClusterRequestGroup{
+ BriefClusterGroupRequest: v,
+ }
+}
+
+// int32AsClusterRequestGroup is a convenience function that returns int32 wrapped in ClusterRequestGroup
+func Int32AsClusterRequestGroup(v *int32) ClusterRequestGroup {
+ return ClusterRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ClusterRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefClusterGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefClusterGroupRequest)
+ if err == nil {
+ jsonBriefClusterGroupRequest, _ := json.Marshal(dst.BriefClusterGroupRequest)
+ if string(jsonBriefClusterGroupRequest) == "{}" { // empty struct
+ dst.BriefClusterGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefClusterGroupRequest); err != nil {
+ dst.BriefClusterGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefClusterGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefClusterGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ClusterRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ClusterRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ClusterRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefClusterGroupRequest != nil {
+ return json.Marshal(&src.BriefClusterGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ClusterRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefClusterGroupRequest != nil {
+ return obj.BriefClusterGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableClusterRequestGroup struct {
+ value *ClusterRequestGroup
+ isSet bool
+}
+
+func (v NullableClusterRequestGroup) Get() *ClusterRequestGroup {
+ return v.value
+}
+
+func (v *NullableClusterRequestGroup) Set(val *ClusterRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableClusterRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableClusterRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableClusterRequestGroup(val *ClusterRequestGroup) *NullableClusterRequestGroup {
+ return &NullableClusterRequestGroup{value: val, isSet: true}
+}
+
+func (v NullableClusterRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableClusterRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_cluster_request_type.go b/model_cluster_request_type.go
new file mode 100644
index 000000000..4b3b819c2
--- /dev/null
+++ b/model_cluster_request_type.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ClusterRequestType - struct for ClusterRequestType
+type ClusterRequestType struct {
+ BriefClusterTypeRequest *BriefClusterTypeRequest
+ Int32 *int32
+}
+
+// BriefClusterTypeRequestAsClusterRequestType is a convenience function that returns BriefClusterTypeRequest wrapped in ClusterRequestType
+func BriefClusterTypeRequestAsClusterRequestType(v *BriefClusterTypeRequest) ClusterRequestType {
+ return ClusterRequestType{
+ BriefClusterTypeRequest: v,
+ }
+}
+
+// int32AsClusterRequestType is a convenience function that returns int32 wrapped in ClusterRequestType
+func Int32AsClusterRequestType(v *int32) ClusterRequestType {
+ return ClusterRequestType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ClusterRequestType) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefClusterTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefClusterTypeRequest)
+ if err == nil {
+ jsonBriefClusterTypeRequest, _ := json.Marshal(dst.BriefClusterTypeRequest)
+ if string(jsonBriefClusterTypeRequest) == "{}" { // empty struct
+ dst.BriefClusterTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefClusterTypeRequest); err != nil {
+ dst.BriefClusterTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefClusterTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefClusterTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ClusterRequestType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ClusterRequestType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ClusterRequestType) MarshalJSON() ([]byte, error) {
+ if src.BriefClusterTypeRequest != nil {
+ return json.Marshal(&src.BriefClusterTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ClusterRequestType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefClusterTypeRequest != nil {
+ return obj.BriefClusterTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableClusterRequestType struct {
+ value *ClusterRequestType
+ isSet bool
+}
+
+func (v NullableClusterRequestType) Get() *ClusterRequestType {
+ return v.value
+}
+
+func (v *NullableClusterRequestType) Set(val *ClusterRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableClusterRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableClusterRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableClusterRequestType(val *ClusterRequestType) *NullableClusterRequestType {
+ return &NullableClusterRequestType{value: val, isSet: true}
+}
+
+func (v NullableClusterRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableClusterRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_cluster_status.go b/model_cluster_status.go
index 06b4a2284..db5018e3a 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ClusterStatus{}
// ClusterStatus struct for ClusterStatus
type ClusterStatus struct {
- Value *ClusterStatusValue `json:"value,omitempty"`
- Label *ClusterStatusLabel `json:"label,omitempty"`
+ Value *ClusterStatusValue `json:"value,omitempty"`
+ Label *ClusterStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) {
}
func (o ClusterStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go
index 0a8637f93..7514c0e2a 100644
--- a/model_cluster_status_label.go
+++ b/model_cluster_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type ClusterStatusLabel string
// List of Cluster_status_label
const (
- CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned"
- CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging"
- CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active"
+ CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned"
+ CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging"
+ CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active"
CLUSTERSTATUSLABEL_DECOMMISSIONING ClusterStatusLabel = "Decommissioning"
- CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline"
+ CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline"
)
// All allowed values of ClusterStatusLabel enum
@@ -114,4 +114,3 @@ 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
index cfac37064..1480b4392 100644
--- a/model_cluster_status_value.go
+++ b/model_cluster_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type ClusterStatusValue string
// List of Cluster_status_value
const (
- CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned"
- CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging"
- CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active"
+ CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned"
+ CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging"
+ CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active"
CLUSTERSTATUSVALUE_DECOMMISSIONING ClusterStatusValue = "decommissioning"
- CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline"
+ CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline"
)
// All allowed values of ClusterStatusValue enum
@@ -114,4 +114,3 @@ 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 7824fa1ad..2623e09a5 100644
--- a/model_cluster_type.go
+++ b/model_cluster_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ClusterType type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &ClusterType{}
// ClusterType Adds support for custom fields and tags.
type ClusterType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- ClusterCount *int64 `json:"cluster_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ClusterCount *int64 `json:"cluster_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *ClusterType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ClusterType) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *ClusterType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ClusterType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *ClusterType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ClusterType) GetName() string {
if o == nil {
@@ -191,7 +188,6 @@ func (o *ClusterType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ClusterType) GetSlug() string {
if o == nil {
@@ -216,7 +212,6 @@ func (o *ClusterType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ClusterType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -345,6 +340,7 @@ func (o *ClusterType) HasCreated() bool {
func (o *ClusterType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ClusterType) SetCreatedNil() {
o.Created.Set(nil)
@@ -387,6 +383,7 @@ func (o *ClusterType) HasLastUpdated() bool {
func (o *ClusterType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ClusterType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -430,7 +427,7 @@ func (o *ClusterType) SetClusterCount(v int64) {
}
func (o ClusterType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -487,32 +484,31 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -582,5 +578,3 @@ func (v *NullableClusterType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go
index e3d8f69d6..b49d14609 100644
--- a/model_cluster_type_request.go
+++ b/model_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ClusterTypeRequest{}
// ClusterTypeRequest Adds support for custom fields and tags.
type ClusterTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *ClusterTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ClusterTypeRequest) GetSlug() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *ClusterTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ClusterTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -196,7 +194,7 @@ func (o *ClusterTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ClusterTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,32 +233,31 @@ func (o *ClusterTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -323,5 +320,3 @@ func (v *NullableClusterTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_config_context.go b/model_config_context.go
index cf51bc202..5af09878d 100644
--- a/model_config_context.go
+++ b/model_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConfigContext type satisfies the MappedNullable interface at compile time
@@ -21,35 +21,35 @@ var _ MappedNullable = &ConfigContext{}
// ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []Region `json:"regions,omitempty"`
- SiteGroups []SiteGroup `json:"site_groups,omitempty"`
- Sites []Site `json:"sites,omitempty"`
- Locations []Location `json:"locations,omitempty"`
- DeviceTypes []DeviceType `json:"device_types,omitempty"`
- Roles []DeviceRole `json:"roles,omitempty"`
- Platforms []Platform `json:"platforms,omitempty"`
- ClusterTypes []ClusterType `json:"cluster_types,omitempty"`
- ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"`
- Clusters []Cluster `json:"clusters,omitempty"`
- TenantGroups []TenantGroup `json:"tenant_groups,omitempty"`
- Tenants []Tenant `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- DataSource *BriefDataSource `json:"data_source,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ Regions []Region `json:"regions,omitempty"`
+ SiteGroups []SiteGroup `json:"site_groups,omitempty"`
+ Sites []Site `json:"sites,omitempty"`
+ Locations []Location `json:"locations,omitempty"`
+ DeviceTypes []DeviceType `json:"device_types,omitempty"`
+ Roles []DeviceRole `json:"roles,omitempty"`
+ Platforms []Platform `json:"platforms,omitempty"`
+ ClusterTypes []ClusterType `json:"cluster_types,omitempty"`
+ ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"`
+ Clusters []Cluster `json:"clusters,omitempty"`
+ TenantGroups []TenantGroup `json:"tenant_groups,omitempty"`
+ Tenants []Tenant `json:"tenants,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ DataSource *BriefDataSource `json:"data_source,omitempty"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile BriefDataFile `json:"data_file"`
- DataSynced NullableTime `json:"data_synced,omitempty"`
- Data interface{} `json:"data"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DataPath string `json:"data_path"`
+ DataFile BriefDataFile `json:"data_file"`
+ DataSynced NullableTime `json:"data_synced,omitempty"`
+ Data interface{} `json:"data"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -103,7 +103,6 @@ func (o *ConfigContext) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConfigContext) GetUrl() string {
if o == nil {
@@ -128,7 +127,6 @@ func (o *ConfigContext) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ConfigContext) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -185,7 +183,6 @@ func (o *ConfigContext) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ConfigContext) GetName() string {
if o == nil {
@@ -210,7 +207,6 @@ func (o *ConfigContext) SetName(v string) {
o.Name = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *ConfigContext) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -779,7 +775,6 @@ func (o *ConfigContext) SetDataPath(v string) {
o.DataPath = v
}
-
// GetDataFile returns the DataFile field value
func (o *ConfigContext) GetDataFile() BriefDataFile {
if o == nil {
@@ -804,7 +799,6 @@ func (o *ConfigContext) SetDataFile(v BriefDataFile) {
o.DataFile = v
}
-
// GetDataSynced returns the DataSynced field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConfigContext) GetDataSynced() time.Time {
if o == nil || IsNil(o.DataSynced.Get()) {
@@ -837,6 +831,7 @@ func (o *ConfigContext) HasDataSynced() bool {
func (o *ConfigContext) SetDataSynced(v time.Time) {
o.DataSynced.Set(&v)
}
+
// SetDataSyncedNil sets the value for DataSynced to be an explicit nil
func (o *ConfigContext) SetDataSyncedNil() {
o.DataSynced.Set(nil)
@@ -873,7 +868,6 @@ func (o *ConfigContext) SetData(v interface{}) {
o.Data = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConfigContext) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
@@ -906,6 +900,7 @@ func (o *ConfigContext) HasCreated() bool {
func (o *ConfigContext) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConfigContext) SetCreatedNil() {
o.Created.Set(nil)
@@ -948,6 +943,7 @@ func (o *ConfigContext) HasLastUpdated() bool {
func (o *ConfigContext) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConfigContext) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -959,7 +955,7 @@ func (o *ConfigContext) UnsetLastUpdated() {
}
func (o ConfigContext) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1064,32 +1060,31 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1175,5 +1170,3 @@ func (v *NullableConfigContext) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_config_context_request.go b/model_config_context_request.go
index 56c30e263..0b024f1ff 100644
--- a/model_config_context_request.go
+++ b/model_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,25 +20,25 @@ var _ MappedNullable = &ConfigContextRequest{}
// ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConfigContextRequest struct {
- Name string `json:"name"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []int32 `json:"regions,omitempty"`
- SiteGroups []int32 `json:"site_groups,omitempty"`
- Sites []int32 `json:"sites,omitempty"`
- Locations []int32 `json:"locations,omitempty"`
- DeviceTypes []int32 `json:"device_types,omitempty"`
- Roles []int32 `json:"roles,omitempty"`
- Platforms []int32 `json:"platforms,omitempty"`
- ClusterTypes []int32 `json:"cluster_types,omitempty"`
- ClusterGroups []int32 `json:"cluster_groups,omitempty"`
- Clusters []int32 `json:"clusters,omitempty"`
- TenantGroups []int32 `json:"tenant_groups,omitempty"`
- Tenants []int32 `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
- Data interface{} `json:"data"`
+ Name string `json:"name"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ Regions []int32 `json:"regions,omitempty"`
+ SiteGroups []int32 `json:"site_groups,omitempty"`
+ Sites []int32 `json:"sites,omitempty"`
+ Locations []int32 `json:"locations,omitempty"`
+ DeviceTypes []int32 `json:"device_types,omitempty"`
+ Roles []int32 `json:"roles,omitempty"`
+ Platforms []int32 `json:"platforms,omitempty"`
+ ClusterTypes []int32 `json:"cluster_types,omitempty"`
+ ClusterGroups []int32 `json:"cluster_groups,omitempty"`
+ Clusters []int32 `json:"clusters,omitempty"`
+ TenantGroups []int32 `json:"tenant_groups,omitempty"`
+ Tenants []int32 `json:"tenants,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
+ Data interface{} `json:"data"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *ConfigContextRequest) SetName(v string) {
o.Name = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *ConfigContextRequest) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -601,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest {
+func (o *ConfigContextRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -611,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *ConfigContextRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -627,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *ConfigContextRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
@@ -658,9 +657,8 @@ func (o *ConfigContextRequest) SetData(v interface{}) {
o.Data = v
}
-
func (o ConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -743,32 +741,31 @@ func (o *ConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -845,5 +842,3 @@ func (v *NullableConfigContextRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_config_context_request_data_source.go b/model_config_context_request_data_source.go
new file mode 100644
index 000000000..76a204829
--- /dev/null
+++ b/model_config_context_request_data_source.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ConfigContextRequestDataSource - struct for ConfigContextRequestDataSource
+type ConfigContextRequestDataSource struct {
+ BriefDataSourceRequest *BriefDataSourceRequest
+ Int32 *int32
+}
+
+// BriefDataSourceRequestAsConfigContextRequestDataSource is a convenience function that returns BriefDataSourceRequest wrapped in ConfigContextRequestDataSource
+func BriefDataSourceRequestAsConfigContextRequestDataSource(v *BriefDataSourceRequest) ConfigContextRequestDataSource {
+ return ConfigContextRequestDataSource{
+ BriefDataSourceRequest: v,
+ }
+}
+
+// int32AsConfigContextRequestDataSource is a convenience function that returns int32 wrapped in ConfigContextRequestDataSource
+func Int32AsConfigContextRequestDataSource(v *int32) ConfigContextRequestDataSource {
+ return ConfigContextRequestDataSource{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ConfigContextRequestDataSource) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefDataSourceRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDataSourceRequest)
+ if err == nil {
+ jsonBriefDataSourceRequest, _ := json.Marshal(dst.BriefDataSourceRequest)
+ if string(jsonBriefDataSourceRequest) == "{}" { // empty struct
+ dst.BriefDataSourceRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDataSourceRequest); err != nil {
+ dst.BriefDataSourceRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDataSourceRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDataSourceRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ConfigContextRequestDataSource)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ConfigContextRequestDataSource)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ConfigContextRequestDataSource) MarshalJSON() ([]byte, error) {
+ if src.BriefDataSourceRequest != nil {
+ return json.Marshal(&src.BriefDataSourceRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ConfigContextRequestDataSource) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDataSourceRequest != nil {
+ return obj.BriefDataSourceRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableConfigContextRequestDataSource struct {
+ value *ConfigContextRequestDataSource
+ isSet bool
+}
+
+func (v NullableConfigContextRequestDataSource) Get() *ConfigContextRequestDataSource {
+ return v.value
+}
+
+func (v *NullableConfigContextRequestDataSource) Set(val *ConfigContextRequestDataSource) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConfigContextRequestDataSource) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConfigContextRequestDataSource) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConfigContextRequestDataSource(val *ConfigContextRequestDataSource) *NullableConfigContextRequestDataSource {
+ return &NullableConfigContextRequestDataSource{value: val, isSet: true}
+}
+
+func (v NullableConfigContextRequestDataSource) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConfigContextRequestDataSource) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_config_template.go b/model_config_template.go
index 9f7a2dff3..c899648c6 100644
--- a/model_config_template.go
+++ b/model_config_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time
@@ -21,24 +21,32 @@ var _ MappedNullable = &ConfigTemplate{}
// ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
type ConfigTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
Description *string `json:"description,omitempty"`
- // Any additional parameters to pass when constructing the Jinja2 environment.
+ // Any additional parameters to pass when constructing the Jinja environment
EnvironmentParams interface{} `json:"environment_params,omitempty"`
- // Jinja2 template code.
+ // Jinja template code.
TemplateCode string `json:"template_code"`
- DataSource *BriefDataSource `json:"data_source,omitempty"`
+ // Defaults to text/plain; charset=utf-8
+ MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
+ // Extension to append to the rendered filename
+ FileExtension *string `json:"file_extension,omitempty"`
+ // Download file as attachment
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *BriefDataSource `json:"data_source,omitempty"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile *BriefDataFile `json:"data_file,omitempty"`
- DataSynced NullableTime `json:"data_synced,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DataPath string `json:"data_path"`
+ DataFile *BriefDataFile `json:"data_file,omitempty"`
+ DataSynced NullableTime `json:"data_synced,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +99,6 @@ func (o *ConfigTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConfigTemplate) GetUrl() string {
if o == nil {
@@ -116,7 +123,6 @@ func (o *ConfigTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ConfigTemplate) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -173,7 +179,6 @@ func (o *ConfigTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ConfigTemplate) GetName() string {
if o == nil {
@@ -198,7 +203,6 @@ func (o *ConfigTemplate) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ConfigTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -288,6 +292,133 @@ func (o *ConfigTemplate) SetTemplateCode(v string) {
o.TemplateCode = v
}
+// GetMimeType returns the MimeType field value if set, zero value otherwise.
+func (o *ConfigTemplate) GetMimeType() string {
+ if o == nil || IsNil(o.MimeType) {
+ var ret string
+ return ret
+ }
+ return *o.MimeType
+}
+
+// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplate) GetMimeTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.MimeType) {
+ return nil, false
+ }
+ return o.MimeType, true
+}
+
+// HasMimeType returns a boolean if a field has been set.
+func (o *ConfigTemplate) HasMimeType() bool {
+ if o != nil && !IsNil(o.MimeType) {
+ return true
+ }
+
+ return false
+}
+
+// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
+func (o *ConfigTemplate) SetMimeType(v string) {
+ o.MimeType = &v
+}
+
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *ConfigTemplate) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplate) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *ConfigTemplate) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *ConfigTemplate) SetFileName(v string) {
+ o.FileName = &v
+}
+
+// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
+func (o *ConfigTemplate) GetFileExtension() string {
+ if o == nil || IsNil(o.FileExtension) {
+ var ret string
+ return ret
+ }
+ return *o.FileExtension
+}
+
+// GetFileExtensionOk returns a tuple with the FileExtension field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplate) GetFileExtensionOk() (*string, bool) {
+ if o == nil || IsNil(o.FileExtension) {
+ return nil, false
+ }
+ return o.FileExtension, true
+}
+
+// HasFileExtension returns a boolean if a field has been set.
+func (o *ConfigTemplate) HasFileExtension() bool {
+ if o != nil && !IsNil(o.FileExtension) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileExtension gets a reference to the given string and assigns it to the FileExtension field.
+func (o *ConfigTemplate) SetFileExtension(v string) {
+ o.FileExtension = &v
+}
+
+// GetAsAttachment returns the AsAttachment field value if set, zero value otherwise.
+func (o *ConfigTemplate) GetAsAttachment() bool {
+ if o == nil || IsNil(o.AsAttachment) {
+ var ret bool
+ return ret
+ }
+ return *o.AsAttachment
+}
+
+// GetAsAttachmentOk returns a tuple with the AsAttachment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplate) GetAsAttachmentOk() (*bool, bool) {
+ if o == nil || IsNil(o.AsAttachment) {
+ return nil, false
+ }
+ return o.AsAttachment, true
+}
+
+// HasAsAttachment returns a boolean if a field has been set.
+func (o *ConfigTemplate) HasAsAttachment() bool {
+ if o != nil && !IsNil(o.AsAttachment) {
+ return true
+ }
+
+ return false
+}
+
+// SetAsAttachment gets a reference to the given bool and assigns it to the AsAttachment field.
+func (o *ConfigTemplate) SetAsAttachment(v bool) {
+ o.AsAttachment = &v
+}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
func (o *ConfigTemplate) GetDataSource() BriefDataSource {
@@ -345,7 +476,6 @@ func (o *ConfigTemplate) SetDataPath(v string) {
o.DataPath = v
}
-
// GetDataFile returns the DataFile field value if set, zero value otherwise.
func (o *ConfigTemplate) GetDataFile() BriefDataFile {
if o == nil || IsNil(o.DataFile) {
@@ -410,6 +540,7 @@ func (o *ConfigTemplate) HasDataSynced() bool {
func (o *ConfigTemplate) SetDataSynced(v time.Time) {
o.DataSynced.Set(&v)
}
+
// SetDataSyncedNil sets the value for DataSynced to be an explicit nil
func (o *ConfigTemplate) SetDataSyncedNil() {
o.DataSynced.Set(nil)
@@ -484,6 +615,7 @@ func (o *ConfigTemplate) HasCreated() bool {
func (o *ConfigTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConfigTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -526,6 +658,7 @@ func (o *ConfigTemplate) HasLastUpdated() bool {
func (o *ConfigTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConfigTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -537,7 +670,7 @@ func (o *ConfigTemplate) UnsetLastUpdated() {
}
func (o ConfigTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -560,6 +693,18 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) {
toSerialize["environment_params"] = o.EnvironmentParams
}
toSerialize["template_code"] = o.TemplateCode
+ if !IsNil(o.MimeType) {
+ toSerialize["mime_type"] = o.MimeType
+ }
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
+ if !IsNil(o.FileExtension) {
+ toSerialize["file_extension"] = o.FileExtension
+ }
+ if !IsNil(o.AsAttachment) {
+ toSerialize["as_attachment"] = o.AsAttachment
+ }
if !IsNil(o.DataSource) {
toSerialize["data_source"] = o.DataSource
}
@@ -602,32 +747,31 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -652,6 +796,10 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
+ delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
+ delete(additionalProperties, "file_extension")
+ delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
delete(additionalProperties, "data_path")
delete(additionalProperties, "data_file")
@@ -700,5 +848,3 @@ func (v *NullableConfigTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_config_template_request.go b/model_config_template_request.go
index e5a9ada75..7bf7a5b2f 100644
--- a/model_config_template_request.go
+++ b/model_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,22 @@ var _ MappedNullable = &ConfigTemplateRequest{}
// ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
type ConfigTemplateRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
Description *string `json:"description,omitempty"`
- // Any additional parameters to pass when constructing the Jinja2 environment.
+ // Any additional parameters to pass when constructing the Jinja environment
EnvironmentParams interface{} `json:"environment_params,omitempty"`
- // Jinja2 template code.
+ // Jinja template code.
TemplateCode string `json:"template_code"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ // Defaults to text/plain; charset=utf-8
+ MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
+ // Extension to append to the rendered filename
+ FileExtension *string `json:"file_extension,omitempty"`
+ // Download file as attachment
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +84,6 @@ func (o *ConfigTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ConfigTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -166,11 +173,138 @@ func (o *ConfigTemplateRequest) SetTemplateCode(v string) {
o.TemplateCode = v
}
+// GetMimeType returns the MimeType field value if set, zero value otherwise.
+func (o *ConfigTemplateRequest) GetMimeType() string {
+ if o == nil || IsNil(o.MimeType) {
+ var ret string
+ return ret
+ }
+ return *o.MimeType
+}
+
+// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplateRequest) GetMimeTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.MimeType) {
+ return nil, false
+ }
+ return o.MimeType, true
+}
+
+// HasMimeType returns a boolean if a field has been set.
+func (o *ConfigTemplateRequest) HasMimeType() bool {
+ if o != nil && !IsNil(o.MimeType) {
+ return true
+ }
+
+ return false
+}
+
+// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
+func (o *ConfigTemplateRequest) SetMimeType(v string) {
+ o.MimeType = &v
+}
+
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *ConfigTemplateRequest) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplateRequest) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *ConfigTemplateRequest) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *ConfigTemplateRequest) SetFileName(v string) {
+ o.FileName = &v
+}
+
+// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
+func (o *ConfigTemplateRequest) GetFileExtension() string {
+ if o == nil || IsNil(o.FileExtension) {
+ var ret string
+ return ret
+ }
+ return *o.FileExtension
+}
+
+// GetFileExtensionOk returns a tuple with the FileExtension field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplateRequest) GetFileExtensionOk() (*string, bool) {
+ if o == nil || IsNil(o.FileExtension) {
+ return nil, false
+ }
+ return o.FileExtension, true
+}
+
+// HasFileExtension returns a boolean if a field has been set.
+func (o *ConfigTemplateRequest) HasFileExtension() bool {
+ if o != nil && !IsNil(o.FileExtension) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileExtension gets a reference to the given string and assigns it to the FileExtension field.
+func (o *ConfigTemplateRequest) SetFileExtension(v string) {
+ o.FileExtension = &v
+}
+
+// GetAsAttachment returns the AsAttachment field value if set, zero value otherwise.
+func (o *ConfigTemplateRequest) GetAsAttachment() bool {
+ if o == nil || IsNil(o.AsAttachment) {
+ var ret bool
+ return ret
+ }
+ return *o.AsAttachment
+}
+
+// GetAsAttachmentOk returns a tuple with the AsAttachment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ConfigTemplateRequest) GetAsAttachmentOk() (*bool, bool) {
+ if o == nil || IsNil(o.AsAttachment) {
+ return nil, false
+ }
+ return o.AsAttachment, true
+}
+
+// HasAsAttachment returns a boolean if a field has been set.
+func (o *ConfigTemplateRequest) HasAsAttachment() bool {
+ if o != nil && !IsNil(o.AsAttachment) {
+ return true
+ }
+
+ return false
+}
+
+// SetAsAttachment gets a reference to the given bool and assigns it to the AsAttachment field.
+func (o *ConfigTemplateRequest) SetAsAttachment(v bool) {
+ o.AsAttachment = &v
+}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest {
+func (o *ConfigTemplateRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -178,7 +312,7 @@ func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *ConfigTemplateRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -194,8 +328,8 @@ func (o *ConfigTemplateRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *ConfigTemplateRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
@@ -232,7 +366,7 @@ func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) {
}
func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -249,6 +383,18 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize["environment_params"] = o.EnvironmentParams
}
toSerialize["template_code"] = o.TemplateCode
+ if !IsNil(o.MimeType) {
+ toSerialize["mime_type"] = o.MimeType
+ }
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
+ if !IsNil(o.FileExtension) {
+ toSerialize["file_extension"] = o.FileExtension
+ }
+ if !IsNil(o.AsAttachment) {
+ toSerialize["as_attachment"] = o.AsAttachment
+ }
if !IsNil(o.DataSource) {
toSerialize["data_source"] = o.DataSource
}
@@ -274,32 +420,31 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -320,6 +465,10 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
+ delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
+ delete(additionalProperties, "file_extension")
+ delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
delete(additionalProperties, "tags")
o.AdditionalProperties = additionalProperties
@@ -363,5 +512,3 @@ func (v *NullableConfigTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port.go b/model_console_port.go
index a5c3fdff4..834c87abf 100644
--- a/model_console_port.go
+++ b/model_console_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConsolePort type satisfies the MappedNullable interface at compile time
@@ -21,34 +21,34 @@ var _ MappedNullable = &ConsolePort{}
// ConsolePort Adds support for custom fields and tags.
type ConsolePort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortType `json:"type,omitempty"`
- Speed NullableConsolePortSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortType `json:"type,omitempty"`
+ Speed NullableConsolePortSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _ConsolePort ConsolePort
@@ -102,7 +102,6 @@ func (o *ConsolePort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConsolePort) GetUrl() string {
if o == nil {
@@ -127,7 +126,6 @@ func (o *ConsolePort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ConsolePort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -184,7 +182,6 @@ func (o *ConsolePort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *ConsolePort) GetDevice() BriefDevice {
if o == nil {
@@ -209,7 +206,6 @@ func (o *ConsolePort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsolePort) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -242,6 +238,7 @@ func (o *ConsolePort) HasModule() bool {
func (o *ConsolePort) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ConsolePort) SetModuleNil() {
o.Module.Set(nil)
@@ -276,7 +273,6 @@ func (o *ConsolePort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsolePort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -373,6 +369,7 @@ func (o *ConsolePort) HasSpeed() bool {
func (o *ConsolePort) SetSpeed(v ConsolePortSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *ConsolePort) SetSpeedNil() {
o.Speed.Set(nil)
@@ -479,6 +476,7 @@ func (o *ConsolePort) HasCable() bool {
func (o *ConsolePort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *ConsolePort) SetCableNil() {
o.Cable.Set(nil)
@@ -545,7 +543,6 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsolePort) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -578,6 +575,7 @@ func (o *ConsolePort) HasLinkPeersType() bool {
func (o *ConsolePort) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *ConsolePort) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -653,6 +651,7 @@ func (o *ConsolePort) HasConnectedEndpointsType() bool {
func (o *ConsolePort) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *ConsolePort) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -687,7 +686,6 @@ func (o *ConsolePort) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConsolePort) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -784,6 +782,7 @@ func (o *ConsolePort) HasCreated() bool {
func (o *ConsolePort) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConsolePort) SetCreatedNil() {
o.Created.Set(nil)
@@ -826,6 +825,7 @@ func (o *ConsolePort) HasLastUpdated() bool {
func (o *ConsolePort) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConsolePort) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -860,9 +860,8 @@ func (o *ConsolePort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o ConsolePort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -952,32 +951,31 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1059,5 +1057,3 @@ func (v *NullableConsolePort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_request.go b/model_console_port_request.go
index f3a3c9885..ab213a243 100644
--- a/model_console_port_request.go
+++ b/model_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &ConsolePortRequest{}
// ConsolePortRequest Adds support for custom fields and tags.
type ConsolePortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortTypeValue `json:"type,omitempty"`
- Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest {
+func NewConsolePortRequest(device BriefInterfaceRequestDevice, name string) *ConsolePortRequest {
this := ConsolePortRequest{}
this.Device = device
this.Name = name
@@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest {
}
// GetDevice returns the Device field value
-func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest {
+func (o *ConsolePortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *ConsolePortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,15 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *ConsolePortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsolePortRequest) GetModule() BriefModuleRequest {
+func (o *ConsolePortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -93,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *ConsolePortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -109,10 +108,11 @@ func (o *ConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *ConsolePortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ConsolePortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -147,7 +147,6 @@ func (o *ConsolePortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsolePortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -244,6 +243,7 @@ func (o *ConsolePortRequest) HasSpeed() bool {
func (o *ConsolePortRequest) SetSpeed(v ConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *ConsolePortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -383,7 +383,7 @@ func (o *ConsolePortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ConsolePortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -437,32 +437,31 @@ func (o *ConsolePortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -530,5 +529,3 @@ func (v *NullableConsolePortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_request_module.go b/model_console_port_request_module.go
new file mode 100644
index 000000000..e11cdfb36
--- /dev/null
+++ b/model_console_port_request_module.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ConsolePortRequestModule - struct for ConsolePortRequestModule
+type ConsolePortRequestModule struct {
+ BriefModuleRequest *BriefModuleRequest
+ Int32 *int32
+}
+
+// BriefModuleRequestAsConsolePortRequestModule is a convenience function that returns BriefModuleRequest wrapped in ConsolePortRequestModule
+func BriefModuleRequestAsConsolePortRequestModule(v *BriefModuleRequest) ConsolePortRequestModule {
+ return ConsolePortRequestModule{
+ BriefModuleRequest: v,
+ }
+}
+
+// int32AsConsolePortRequestModule is a convenience function that returns int32 wrapped in ConsolePortRequestModule
+func Int32AsConsolePortRequestModule(v *int32) ConsolePortRequestModule {
+ return ConsolePortRequestModule{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ConsolePortRequestModule) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefModuleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefModuleRequest)
+ if err == nil {
+ jsonBriefModuleRequest, _ := json.Marshal(dst.BriefModuleRequest)
+ if string(jsonBriefModuleRequest) == "{}" { // empty struct
+ dst.BriefModuleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefModuleRequest); err != nil {
+ dst.BriefModuleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefModuleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefModuleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ConsolePortRequestModule)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ConsolePortRequestModule)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ConsolePortRequestModule) MarshalJSON() ([]byte, error) {
+ if src.BriefModuleRequest != nil {
+ return json.Marshal(&src.BriefModuleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ConsolePortRequestModule) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefModuleRequest != nil {
+ return obj.BriefModuleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableConsolePortRequestModule struct {
+ value *ConsolePortRequestModule
+ isSet bool
+}
+
+func (v NullableConsolePortRequestModule) Get() *ConsolePortRequestModule {
+ return v.value
+}
+
+func (v *NullableConsolePortRequestModule) Set(val *ConsolePortRequestModule) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortRequestModule) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortRequestModule) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortRequestModule(val *ConsolePortRequestModule) *NullableConsolePortRequestModule {
+ return &NullableConsolePortRequestModule{value: val, isSet: true}
+}
+
+func (v NullableConsolePortRequestModule) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortRequestModule) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go
index 7d7bf075b..df56c9405 100644
--- a/model_console_port_request_speed.go
+++ b/model_console_port_request_speed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ type ConsolePortRequestSpeed int32
// List of ConsolePortRequest_speed
const (
- CONSOLEPORTREQUESTSPEED__1200 ConsolePortRequestSpeed = 1200
- CONSOLEPORTREQUESTSPEED__2400 ConsolePortRequestSpeed = 2400
- CONSOLEPORTREQUESTSPEED__4800 ConsolePortRequestSpeed = 4800
- CONSOLEPORTREQUESTSPEED__9600 ConsolePortRequestSpeed = 9600
- CONSOLEPORTREQUESTSPEED__19200 ConsolePortRequestSpeed = 19200
- CONSOLEPORTREQUESTSPEED__38400 ConsolePortRequestSpeed = 38400
- CONSOLEPORTREQUESTSPEED__57600 ConsolePortRequestSpeed = 57600
+ CONSOLEPORTREQUESTSPEED__1200 ConsolePortRequestSpeed = 1200
+ CONSOLEPORTREQUESTSPEED__2400 ConsolePortRequestSpeed = 2400
+ CONSOLEPORTREQUESTSPEED__4800 ConsolePortRequestSpeed = 4800
+ CONSOLEPORTREQUESTSPEED__9600 ConsolePortRequestSpeed = 9600
+ CONSOLEPORTREQUESTSPEED__19200 ConsolePortRequestSpeed = 19200
+ CONSOLEPORTREQUESTSPEED__38400 ConsolePortRequestSpeed = 38400
+ CONSOLEPORTREQUESTSPEED__57600 ConsolePortRequestSpeed = 57600
CONSOLEPORTREQUESTSPEED__115200 ConsolePortRequestSpeed = 115200
)
@@ -120,4 +120,3 @@ 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 b0f141476..02f871163 100644
--- a/model_console_port_speed.go
+++ b/model_console_port_speed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ConsolePortSpeed{}
// ConsolePortSpeed struct for ConsolePortSpeed
type ConsolePortSpeed struct {
- Value *ConsolePortSpeedValue `json:"value,omitempty"`
- Label *ConsolePortSpeedLabel `json:"label,omitempty"`
+ Value *ConsolePortSpeedValue `json:"value,omitempty"`
+ Label *ConsolePortSpeedLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ConsolePortSpeed) SetLabel(v ConsolePortSpeedLabel) {
}
func (o ConsolePortSpeed) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableConsolePortSpeed) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go
index 54958f0ab..03d997fa3 100644
--- a/model_console_port_speed_label.go
+++ b/model_console_port_speed_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ type ConsolePortSpeedLabel string
// List of ConsolePort_speed_label
const (
- CONSOLEPORTSPEEDLABEL__1200_BPS ConsolePortSpeedLabel = "1200 bps"
- CONSOLEPORTSPEEDLABEL__2400_BPS ConsolePortSpeedLabel = "2400 bps"
- CONSOLEPORTSPEEDLABEL__4800_BPS ConsolePortSpeedLabel = "4800 bps"
- CONSOLEPORTSPEEDLABEL__9600_BPS ConsolePortSpeedLabel = "9600 bps"
- CONSOLEPORTSPEEDLABEL__19_2_KBPS ConsolePortSpeedLabel = "19.2 kbps"
- CONSOLEPORTSPEEDLABEL__38_4_KBPS ConsolePortSpeedLabel = "38.4 kbps"
- CONSOLEPORTSPEEDLABEL__57_6_KBPS ConsolePortSpeedLabel = "57.6 kbps"
+ CONSOLEPORTSPEEDLABEL__1200_BPS ConsolePortSpeedLabel = "1200 bps"
+ CONSOLEPORTSPEEDLABEL__2400_BPS ConsolePortSpeedLabel = "2400 bps"
+ CONSOLEPORTSPEEDLABEL__4800_BPS ConsolePortSpeedLabel = "4800 bps"
+ CONSOLEPORTSPEEDLABEL__9600_BPS ConsolePortSpeedLabel = "9600 bps"
+ CONSOLEPORTSPEEDLABEL__19_2_KBPS ConsolePortSpeedLabel = "19.2 kbps"
+ CONSOLEPORTSPEEDLABEL__38_4_KBPS ConsolePortSpeedLabel = "38.4 kbps"
+ CONSOLEPORTSPEEDLABEL__57_6_KBPS ConsolePortSpeedLabel = "57.6 kbps"
CONSOLEPORTSPEEDLABEL__115_2_KBPS ConsolePortSpeedLabel = "115.2 kbps"
)
@@ -120,4 +120,3 @@ func (v *NullableConsolePortSpeedLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go
index c35c1316c..56818c52d 100644
--- a/model_console_port_speed_value.go
+++ b/model_console_port_speed_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ type ConsolePortSpeedValue int32
// List of ConsolePort_speed_value
const (
- CONSOLEPORTSPEEDVALUE__1200 ConsolePortSpeedValue = 1200
- CONSOLEPORTSPEEDVALUE__2400 ConsolePortSpeedValue = 2400
- CONSOLEPORTSPEEDVALUE__4800 ConsolePortSpeedValue = 4800
- CONSOLEPORTSPEEDVALUE__9600 ConsolePortSpeedValue = 9600
- CONSOLEPORTSPEEDVALUE__19200 ConsolePortSpeedValue = 19200
- CONSOLEPORTSPEEDVALUE__38400 ConsolePortSpeedValue = 38400
- CONSOLEPORTSPEEDVALUE__57600 ConsolePortSpeedValue = 57600
+ CONSOLEPORTSPEEDVALUE__1200 ConsolePortSpeedValue = 1200
+ CONSOLEPORTSPEEDVALUE__2400 ConsolePortSpeedValue = 2400
+ CONSOLEPORTSPEEDVALUE__4800 ConsolePortSpeedValue = 4800
+ CONSOLEPORTSPEEDVALUE__9600 ConsolePortSpeedValue = 9600
+ CONSOLEPORTSPEEDVALUE__19200 ConsolePortSpeedValue = 19200
+ CONSOLEPORTSPEEDVALUE__38400 ConsolePortSpeedValue = 38400
+ CONSOLEPORTSPEEDVALUE__57600 ConsolePortSpeedValue = 57600
CONSOLEPORTSPEEDVALUE__115200 ConsolePortSpeedValue = 115200
)
@@ -120,4 +120,3 @@ 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 c054a75b1..92a2b11d9 100644
--- a/model_console_port_template.go
+++ b/model_console_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConsolePortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ConsolePortTemplate{}
// ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConsolePortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *ConsolePortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConsolePortTemplate) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *ConsolePortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ConsolePortTemplate) GetDisplay() string {
if o == nil {
@@ -134,7 +132,6 @@ func (o *ConsolePortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -167,6 +164,7 @@ func (o *ConsolePortTemplate) HasDeviceType() bool {
func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ConsolePortTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -209,6 +207,7 @@ func (o *ConsolePortTemplate) HasModuleType() bool {
func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ConsolePortTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -243,7 +242,6 @@ func (o *ConsolePortTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsolePortTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -372,6 +370,7 @@ func (o *ConsolePortTemplate) HasCreated() bool {
func (o *ConsolePortTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConsolePortTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -414,6 +413,7 @@ func (o *ConsolePortTemplate) HasLastUpdated() bool {
func (o *ConsolePortTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConsolePortTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -425,7 +425,7 @@ func (o *ConsolePortTemplate) UnsetLastUpdated() {
}
func (o ConsolePortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -480,32 +480,31 @@ func (o *ConsolePortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -574,5 +573,3 @@ func (v *NullableConsolePortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go
index 2d204211b..957eb0c5f 100644
--- a/model_console_port_template_request.go
+++ b/model_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &ConsolePortTemplateRequest{}
// ConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConsolePortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortTypeValue `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *ConsolePortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *ConsolePortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ConsolePortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *ConsolePortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *ConsolePortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ConsolePortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -159,7 +161,6 @@ func (o *ConsolePortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsolePortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -257,7 +258,7 @@ func (o *ConsolePortTemplateRequest) SetDescription(v string) {
}
func (o ConsolePortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -300,32 +301,31 @@ func (o *ConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -389,5 +389,3 @@ func (v *NullableConsolePortTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_template_request_device_type.go b/model_console_port_template_request_device_type.go
new file mode 100644
index 000000000..057e94b68
--- /dev/null
+++ b/model_console_port_template_request_device_type.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ConsolePortTemplateRequestDeviceType - struct for ConsolePortTemplateRequestDeviceType
+type ConsolePortTemplateRequestDeviceType struct {
+ BriefDeviceTypeRequest *BriefDeviceTypeRequest
+ Int32 *int32
+}
+
+// BriefDeviceTypeRequestAsConsolePortTemplateRequestDeviceType is a convenience function that returns BriefDeviceTypeRequest wrapped in ConsolePortTemplateRequestDeviceType
+func BriefDeviceTypeRequestAsConsolePortTemplateRequestDeviceType(v *BriefDeviceTypeRequest) ConsolePortTemplateRequestDeviceType {
+ return ConsolePortTemplateRequestDeviceType{
+ BriefDeviceTypeRequest: v,
+ }
+}
+
+// int32AsConsolePortTemplateRequestDeviceType is a convenience function that returns int32 wrapped in ConsolePortTemplateRequestDeviceType
+func Int32AsConsolePortTemplateRequestDeviceType(v *int32) ConsolePortTemplateRequestDeviceType {
+ return ConsolePortTemplateRequestDeviceType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ConsolePortTemplateRequestDeviceType) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefDeviceTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceTypeRequest)
+ if err == nil {
+ jsonBriefDeviceTypeRequest, _ := json.Marshal(dst.BriefDeviceTypeRequest)
+ if string(jsonBriefDeviceTypeRequest) == "{}" { // empty struct
+ dst.BriefDeviceTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceTypeRequest); err != nil {
+ dst.BriefDeviceTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ConsolePortTemplateRequestDeviceType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ConsolePortTemplateRequestDeviceType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ConsolePortTemplateRequestDeviceType) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceTypeRequest != nil {
+ return json.Marshal(&src.BriefDeviceTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ConsolePortTemplateRequestDeviceType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceTypeRequest != nil {
+ return obj.BriefDeviceTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableConsolePortTemplateRequestDeviceType struct {
+ value *ConsolePortTemplateRequestDeviceType
+ isSet bool
+}
+
+func (v NullableConsolePortTemplateRequestDeviceType) Get() *ConsolePortTemplateRequestDeviceType {
+ return v.value
+}
+
+func (v *NullableConsolePortTemplateRequestDeviceType) Set(val *ConsolePortTemplateRequestDeviceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortTemplateRequestDeviceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortTemplateRequestDeviceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortTemplateRequestDeviceType(val *ConsolePortTemplateRequestDeviceType) *NullableConsolePortTemplateRequestDeviceType {
+ return &NullableConsolePortTemplateRequestDeviceType{value: val, isSet: true}
+}
+
+func (v NullableConsolePortTemplateRequestDeviceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortTemplateRequestDeviceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_template_request_module_type.go b/model_console_port_template_request_module_type.go
new file mode 100644
index 000000000..c7291d8a8
--- /dev/null
+++ b/model_console_port_template_request_module_type.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ConsolePortTemplateRequestModuleType - struct for ConsolePortTemplateRequestModuleType
+type ConsolePortTemplateRequestModuleType struct {
+ BriefModuleTypeRequest *BriefModuleTypeRequest
+ Int32 *int32
+}
+
+// BriefModuleTypeRequestAsConsolePortTemplateRequestModuleType is a convenience function that returns BriefModuleTypeRequest wrapped in ConsolePortTemplateRequestModuleType
+func BriefModuleTypeRequestAsConsolePortTemplateRequestModuleType(v *BriefModuleTypeRequest) ConsolePortTemplateRequestModuleType {
+ return ConsolePortTemplateRequestModuleType{
+ BriefModuleTypeRequest: v,
+ }
+}
+
+// int32AsConsolePortTemplateRequestModuleType is a convenience function that returns int32 wrapped in ConsolePortTemplateRequestModuleType
+func Int32AsConsolePortTemplateRequestModuleType(v *int32) ConsolePortTemplateRequestModuleType {
+ return ConsolePortTemplateRequestModuleType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ConsolePortTemplateRequestModuleType) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefModuleTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefModuleTypeRequest)
+ if err == nil {
+ jsonBriefModuleTypeRequest, _ := json.Marshal(dst.BriefModuleTypeRequest)
+ if string(jsonBriefModuleTypeRequest) == "{}" { // empty struct
+ dst.BriefModuleTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefModuleTypeRequest); err != nil {
+ dst.BriefModuleTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefModuleTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefModuleTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ConsolePortTemplateRequestModuleType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ConsolePortTemplateRequestModuleType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ConsolePortTemplateRequestModuleType) MarshalJSON() ([]byte, error) {
+ if src.BriefModuleTypeRequest != nil {
+ return json.Marshal(&src.BriefModuleTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ConsolePortTemplateRequestModuleType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefModuleTypeRequest != nil {
+ return obj.BriefModuleTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableConsolePortTemplateRequestModuleType struct {
+ value *ConsolePortTemplateRequestModuleType
+ isSet bool
+}
+
+func (v NullableConsolePortTemplateRequestModuleType) Get() *ConsolePortTemplateRequestModuleType {
+ return v.value
+}
+
+func (v *NullableConsolePortTemplateRequestModuleType) Set(val *ConsolePortTemplateRequestModuleType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableConsolePortTemplateRequestModuleType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableConsolePortTemplateRequestModuleType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableConsolePortTemplateRequestModuleType(val *ConsolePortTemplateRequestModuleType) *NullableConsolePortTemplateRequestModuleType {
+ return &NullableConsolePortTemplateRequestModuleType{value: val, isSet: true}
+}
+
+func (v NullableConsolePortTemplateRequestModuleType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableConsolePortTemplateRequestModuleType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_console_port_type.go b/model_console_port_type.go
index 46e21b895..12c4b38a9 100644
--- a/model_console_port_type.go
+++ b/model_console_port_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ConsolePortType{}
// ConsolePortType struct for ConsolePortType
type ConsolePortType struct {
- Value *ConsolePortTypeValue `json:"value,omitempty"`
- Label *ConsolePortTypeLabel `json:"label,omitempty"`
+ Value *ConsolePortTypeValue `json:"value,omitempty"`
+ Label *ConsolePortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ConsolePortType) SetLabel(v ConsolePortTypeLabel) {
}
func (o ConsolePortType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableConsolePortType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go
index 5a8e1414b..3068251f2 100644
--- a/model_console_port_type_label.go
+++ b/model_console_port_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ type ConsolePortTypeLabel string
// List of ConsolePort_type_label
const (
- CONSOLEPORTTYPELABEL_DE_9 ConsolePortTypeLabel = "DE-9"
- CONSOLEPORTTYPELABEL_DB_25 ConsolePortTypeLabel = "DB-25"
- CONSOLEPORTTYPELABEL_RJ_11 ConsolePortTypeLabel = "RJ-11"
- CONSOLEPORTTYPELABEL_RJ_12 ConsolePortTypeLabel = "RJ-12"
- CONSOLEPORTTYPELABEL_RJ_45 ConsolePortTypeLabel = "RJ-45"
- CONSOLEPORTTYPELABEL_MINI_DIN_8 ConsolePortTypeLabel = "Mini-DIN 8"
- CONSOLEPORTTYPELABEL_USB_TYPE_A ConsolePortTypeLabel = "USB Type A"
- CONSOLEPORTTYPELABEL_USB_TYPE_B ConsolePortTypeLabel = "USB Type B"
- CONSOLEPORTTYPELABEL_USB_TYPE_C ConsolePortTypeLabel = "USB Type C"
- CONSOLEPORTTYPELABEL_USB_MINI_A ConsolePortTypeLabel = "USB Mini A"
- CONSOLEPORTTYPELABEL_USB_MINI_B ConsolePortTypeLabel = "USB Mini B"
- CONSOLEPORTTYPELABEL_USB_MICRO_A ConsolePortTypeLabel = "USB Micro A"
- CONSOLEPORTTYPELABEL_USB_MICRO_B ConsolePortTypeLabel = "USB Micro B"
+ CONSOLEPORTTYPELABEL_DE_9 ConsolePortTypeLabel = "DE-9"
+ CONSOLEPORTTYPELABEL_DB_25 ConsolePortTypeLabel = "DB-25"
+ CONSOLEPORTTYPELABEL_RJ_11 ConsolePortTypeLabel = "RJ-11"
+ CONSOLEPORTTYPELABEL_RJ_12 ConsolePortTypeLabel = "RJ-12"
+ CONSOLEPORTTYPELABEL_RJ_45 ConsolePortTypeLabel = "RJ-45"
+ CONSOLEPORTTYPELABEL_MINI_DIN_8 ConsolePortTypeLabel = "Mini-DIN 8"
+ CONSOLEPORTTYPELABEL_USB_TYPE_A ConsolePortTypeLabel = "USB Type A"
+ CONSOLEPORTTYPELABEL_USB_TYPE_B ConsolePortTypeLabel = "USB Type B"
+ CONSOLEPORTTYPELABEL_USB_TYPE_C ConsolePortTypeLabel = "USB Type C"
+ CONSOLEPORTTYPELABEL_USB_MINI_A ConsolePortTypeLabel = "USB Mini A"
+ CONSOLEPORTTYPELABEL_USB_MINI_B ConsolePortTypeLabel = "USB Mini B"
+ CONSOLEPORTTYPELABEL_USB_MICRO_A ConsolePortTypeLabel = "USB Micro A"
+ CONSOLEPORTTYPELABEL_USB_MICRO_B ConsolePortTypeLabel = "USB Micro B"
CONSOLEPORTTYPELABEL_USB_MICRO_AB ConsolePortTypeLabel = "USB Micro AB"
- CONSOLEPORTTYPELABEL_OTHER ConsolePortTypeLabel = "Other"
+ CONSOLEPORTTYPELABEL_OTHER ConsolePortTypeLabel = "Other"
)
// All allowed values of ConsolePortTypeLabel enum
@@ -134,4 +134,3 @@ func (v *NullableConsolePortTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go
index ceba807ee..35afb48a9 100644
--- a/model_console_port_type_value.go
+++ b/model_console_port_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ type ConsolePortTypeValue string
// List of ConsolePort_type_value
const (
- CONSOLEPORTTYPEVALUE_DE_9 ConsolePortTypeValue = "de-9"
- CONSOLEPORTTYPEVALUE_DB_25 ConsolePortTypeValue = "db-25"
- CONSOLEPORTTYPEVALUE_RJ_11 ConsolePortTypeValue = "rj-11"
- CONSOLEPORTTYPEVALUE_RJ_12 ConsolePortTypeValue = "rj-12"
- CONSOLEPORTTYPEVALUE_RJ_45 ConsolePortTypeValue = "rj-45"
- CONSOLEPORTTYPEVALUE_MINI_DIN_8 ConsolePortTypeValue = "mini-din-8"
- CONSOLEPORTTYPEVALUE_USB_A ConsolePortTypeValue = "usb-a"
- CONSOLEPORTTYPEVALUE_USB_B ConsolePortTypeValue = "usb-b"
- CONSOLEPORTTYPEVALUE_USB_C ConsolePortTypeValue = "usb-c"
- CONSOLEPORTTYPEVALUE_USB_MINI_A ConsolePortTypeValue = "usb-mini-a"
- CONSOLEPORTTYPEVALUE_USB_MINI_B ConsolePortTypeValue = "usb-mini-b"
- CONSOLEPORTTYPEVALUE_USB_MICRO_A ConsolePortTypeValue = "usb-micro-a"
- CONSOLEPORTTYPEVALUE_USB_MICRO_B ConsolePortTypeValue = "usb-micro-b"
+ CONSOLEPORTTYPEVALUE_DE_9 ConsolePortTypeValue = "de-9"
+ CONSOLEPORTTYPEVALUE_DB_25 ConsolePortTypeValue = "db-25"
+ CONSOLEPORTTYPEVALUE_RJ_11 ConsolePortTypeValue = "rj-11"
+ CONSOLEPORTTYPEVALUE_RJ_12 ConsolePortTypeValue = "rj-12"
+ CONSOLEPORTTYPEVALUE_RJ_45 ConsolePortTypeValue = "rj-45"
+ CONSOLEPORTTYPEVALUE_MINI_DIN_8 ConsolePortTypeValue = "mini-din-8"
+ CONSOLEPORTTYPEVALUE_USB_A ConsolePortTypeValue = "usb-a"
+ CONSOLEPORTTYPEVALUE_USB_B ConsolePortTypeValue = "usb-b"
+ CONSOLEPORTTYPEVALUE_USB_C ConsolePortTypeValue = "usb-c"
+ CONSOLEPORTTYPEVALUE_USB_MINI_A ConsolePortTypeValue = "usb-mini-a"
+ CONSOLEPORTTYPEVALUE_USB_MINI_B ConsolePortTypeValue = "usb-mini-b"
+ CONSOLEPORTTYPEVALUE_USB_MICRO_A ConsolePortTypeValue = "usb-micro-a"
+ CONSOLEPORTTYPEVALUE_USB_MICRO_B ConsolePortTypeValue = "usb-micro-b"
CONSOLEPORTTYPEVALUE_USB_MICRO_AB ConsolePortTypeValue = "usb-micro-ab"
- CONSOLEPORTTYPEVALUE_OTHER ConsolePortTypeValue = "other"
- CONSOLEPORTTYPEVALUE_EMPTY ConsolePortTypeValue = ""
+ CONSOLEPORTTYPEVALUE_OTHER ConsolePortTypeValue = "other"
+ CONSOLEPORTTYPEVALUE_EMPTY ConsolePortTypeValue = ""
)
// All allowed values of ConsolePortTypeValue enum
@@ -136,4 +136,3 @@ 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 885c645bc..567ab011c 100644
--- a/model_console_server_port.go
+++ b/model_console_server_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConsoleServerPort type satisfies the MappedNullable interface at compile time
@@ -21,34 +21,34 @@ var _ MappedNullable = &ConsoleServerPort{}
// ConsoleServerPort Adds support for custom fields and tags.
type ConsoleServerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortType `json:"type,omitempty"`
- Speed NullableConsolePortSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortType `json:"type,omitempty"`
+ Speed NullableConsolePortSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _ConsoleServerPort ConsoleServerPort
@@ -102,7 +102,6 @@ func (o *ConsoleServerPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConsoleServerPort) GetUrl() string {
if o == nil {
@@ -127,7 +126,6 @@ func (o *ConsoleServerPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ConsoleServerPort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -184,7 +182,6 @@ func (o *ConsoleServerPort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *ConsoleServerPort) GetDevice() BriefDevice {
if o == nil {
@@ -209,7 +206,6 @@ func (o *ConsoleServerPort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsoleServerPort) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -242,6 +238,7 @@ func (o *ConsoleServerPort) HasModule() bool {
func (o *ConsoleServerPort) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ConsoleServerPort) SetModuleNil() {
o.Module.Set(nil)
@@ -276,7 +273,6 @@ func (o *ConsoleServerPort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsoleServerPort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -373,6 +369,7 @@ func (o *ConsoleServerPort) HasSpeed() bool {
func (o *ConsoleServerPort) SetSpeed(v ConsolePortSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *ConsoleServerPort) SetSpeedNil() {
o.Speed.Set(nil)
@@ -479,6 +476,7 @@ func (o *ConsoleServerPort) HasCable() bool {
func (o *ConsoleServerPort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *ConsoleServerPort) SetCableNil() {
o.Cable.Set(nil)
@@ -545,7 +543,6 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsoleServerPort) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -578,6 +575,7 @@ func (o *ConsoleServerPort) HasLinkPeersType() bool {
func (o *ConsoleServerPort) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *ConsoleServerPort) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -653,6 +651,7 @@ func (o *ConsoleServerPort) HasConnectedEndpointsType() bool {
func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -687,7 +686,6 @@ func (o *ConsoleServerPort) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConsoleServerPort) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -784,6 +782,7 @@ func (o *ConsoleServerPort) HasCreated() bool {
func (o *ConsoleServerPort) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConsoleServerPort) SetCreatedNil() {
o.Created.Set(nil)
@@ -826,6 +825,7 @@ func (o *ConsoleServerPort) HasLastUpdated() bool {
func (o *ConsoleServerPort) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConsoleServerPort) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -860,9 +860,8 @@ func (o *ConsoleServerPort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o ConsoleServerPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -952,32 +951,31 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1059,5 +1057,3 @@ func (v *NullableConsoleServerPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go
index 2f7da549e..c1ddcefb1 100644
--- a/model_console_server_port_request.go
+++ b/model_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &ConsoleServerPortRequest{}
// ConsoleServerPortRequest Adds support for custom fields and tags.
type ConsoleServerPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortTypeValue `json:"type,omitempty"`
- Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest {
+func NewConsoleServerPortRequest(device BriefInterfaceRequestDevice, name string) *ConsoleServerPortRequest {
this := ConsoleServerPortRequest{}
this.Device = device
this.Name = name
@@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest {
}
// GetDevice returns the Device field value
-func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *ConsoleServerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,15 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *ConsoleServerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest {
+func (o *ConsoleServerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -93,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *ConsoleServerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -109,10 +108,11 @@ func (o *ConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *ConsoleServerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ConsoleServerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -147,7 +147,6 @@ func (o *ConsoleServerPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsoleServerPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -244,6 +243,7 @@ func (o *ConsoleServerPortRequest) HasSpeed() bool {
func (o *ConsoleServerPortRequest) SetSpeed(v ConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *ConsoleServerPortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -383,7 +383,7 @@ func (o *ConsoleServerPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ConsoleServerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -437,32 +437,31 @@ func (o *ConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -530,5 +529,3 @@ func (v *NullableConsoleServerPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go
index 3e0848926..01cfdec2a 100644
--- a/model_console_server_port_template.go
+++ b/model_console_server_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ConsoleServerPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ConsoleServerPortTemplate{}
// ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConsoleServerPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *ConsoleServerPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ConsoleServerPortTemplate) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *ConsoleServerPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ConsoleServerPortTemplate) GetDisplay() string {
if o == nil {
@@ -134,7 +132,6 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -167,6 +164,7 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool {
func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ConsoleServerPortTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -209,6 +207,7 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool {
func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ConsoleServerPortTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -243,7 +242,6 @@ func (o *ConsoleServerPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsoleServerPortTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -372,6 +370,7 @@ func (o *ConsoleServerPortTemplate) HasCreated() bool {
func (o *ConsoleServerPortTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ConsoleServerPortTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -414,6 +413,7 @@ func (o *ConsoleServerPortTemplate) HasLastUpdated() bool {
func (o *ConsoleServerPortTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ConsoleServerPortTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -425,7 +425,7 @@ func (o *ConsoleServerPortTemplate) UnsetLastUpdated() {
}
func (o ConsoleServerPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -480,32 +480,31 @@ func (o *ConsoleServerPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -574,5 +573,3 @@ func (v *NullableConsoleServerPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go
index 756333e53..7d8e8f71a 100644
--- a/model_console_server_port_template_request.go
+++ b/model_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{}
// ConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConsoleServerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *ConsolePortTypeValue `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *ConsolePortTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *ConsoleServerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ConsoleServerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *ConsoleServerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeReques
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ConsoleServerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -159,7 +161,6 @@ func (o *ConsoleServerPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ConsoleServerPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -257,7 +258,7 @@ func (o *ConsoleServerPortTemplateRequest) SetDescription(v string) {
}
func (o ConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -300,32 +301,31 @@ func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -389,5 +389,3 @@ func (v *NullableConsoleServerPortTemplateRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact.go b/model_contact.go
index d1a052635..881edc36b 100644
--- a/model_contact.go
+++ b/model_contact.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Contact type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &Contact{}
// Contact Adds support for custom fields and tags.
type Contact struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Group NullableBriefContactGroup `json:"group,omitempty"`
- Name string `json:"name"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Groups []ContactGroup `json:"groups,omitempty"`
+ Name string `json:"name"`
+ Title *string `json:"title,omitempty"`
+ Phone *string `json:"phone,omitempty"`
+ Email *string `json:"email,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Link *string `json:"link,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *Contact) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Contact) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *Contact) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Contact) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,47 +168,36 @@ func (o *Contact) SetDisplay(v string) {
o.Display = v
}
-
-// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Contact) GetGroup() BriefContactGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret BriefContactGroup
+// GetGroups returns the Groups field value if set, zero value otherwise.
+func (o *Contact) GetGroups() []ContactGroup {
+ if o == nil || IsNil(o.Groups) {
+ var ret []ContactGroup
return ret
}
- return *o.Group.Get()
+ return o.Groups
}
-// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
+// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Contact) GetGroupOk() (*BriefContactGroup, bool) {
- if o == nil {
+func (o *Contact) GetGroupsOk() ([]ContactGroup, bool) {
+ if o == nil || IsNil(o.Groups) {
return nil, false
}
- return o.Group.Get(), o.Group.IsSet()
+ return o.Groups, true
}
-// HasGroup returns a boolean if a field has been set.
-func (o *Contact) HasGroup() bool {
- if o != nil && o.Group.IsSet() {
+// HasGroups returns a boolean if a field has been set.
+func (o *Contact) HasGroups() bool {
+ if o != nil && !IsNil(o.Groups) {
return true
}
return false
}
-// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field.
-func (o *Contact) SetGroup(v BriefContactGroup) {
- o.Group.Set(&v)
-}
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *Contact) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *Contact) UnsetGroup() {
- o.Group.Unset()
+// SetGroups gets a reference to the given []ContactGroup and assigns it to the Groups field.
+func (o *Contact) SetGroups(v []ContactGroup) {
+ o.Groups = v
}
// GetName returns the Name field value
@@ -237,7 +224,6 @@ func (o *Contact) SetName(v string) {
o.Name = v
}
-
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *Contact) GetTitle() string {
if o == nil || IsNil(o.Title) {
@@ -558,6 +544,7 @@ func (o *Contact) HasCreated() bool {
func (o *Contact) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Contact) SetCreatedNil() {
o.Created.Set(nil)
@@ -600,6 +587,7 @@ func (o *Contact) HasLastUpdated() bool {
func (o *Contact) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Contact) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -611,7 +599,7 @@ func (o *Contact) UnsetLastUpdated() {
}
func (o Contact) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -626,8 +614,8 @@ func (o Contact) ToMap() (map[string]interface{}, error) {
toSerialize["display_url"] = o.DisplayUrl
}
toSerialize["display"] = o.Display
- if o.Group.IsSet() {
- toSerialize["group"] = o.Group.Get()
+ if !IsNil(o.Groups) {
+ toSerialize["groups"] = o.Groups
}
toSerialize["name"] = o.Name
if !IsNil(o.Title) {
@@ -684,32 +672,31 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -730,7 +717,7 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display_url")
delete(additionalProperties, "display")
- delete(additionalProperties, "group")
+ delete(additionalProperties, "groups")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
delete(additionalProperties, "phone")
@@ -784,5 +771,3 @@ func (v *NullableContact) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_assignment.go b/model_contact_assignment.go
index c733a88e8..1a530fcbb 100644
--- a/model_contact_assignment.go
+++ b/model_contact_assignment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ContactAssignment type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ContactAssignment{}
// ContactAssignment Adds support for custom fields and tags.
type ContactAssignment struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Object map[string]interface{} `json:"object"`
- Contact BriefContact `json:"contact"`
- Role NullableBriefContactRole `json:"role,omitempty"`
- Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Object map[string]interface{} `json:"object"`
+ Contact BriefContact `json:"contact"`
+ Role NullableBriefContactRole `json:"role,omitempty"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *ContactAssignment) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ContactAssignment) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *ContactAssignment) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ContactAssignment) GetDisplay() string {
if o == nil {
@@ -137,7 +135,6 @@ func (o *ContactAssignment) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *ContactAssignment) GetObjectType() string {
if o == nil {
@@ -162,7 +159,6 @@ func (o *ContactAssignment) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *ContactAssignment) GetObjectId() int64 {
if o == nil {
@@ -187,7 +183,6 @@ func (o *ContactAssignment) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetObject returns the Object field value
func (o *ContactAssignment) GetObject() map[string]interface{} {
if o == nil {
@@ -212,7 +207,6 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) {
o.Object = v
}
-
// GetContact returns the Contact field value
func (o *ContactAssignment) GetContact() BriefContact {
if o == nil {
@@ -237,7 +231,6 @@ func (o *ContactAssignment) SetContact(v BriefContact) {
o.Contact = v
}
-
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ContactAssignment) GetRole() BriefContactRole {
if o == nil || IsNil(o.Role.Get()) {
@@ -270,6 +263,7 @@ func (o *ContactAssignment) HasRole() bool {
func (o *ContactAssignment) SetRole(v BriefContactRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *ContactAssignment) SetRoleNil() {
o.Role.Set(nil)
@@ -408,6 +402,7 @@ func (o *ContactAssignment) HasCreated() bool {
func (o *ContactAssignment) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ContactAssignment) SetCreatedNil() {
o.Created.Set(nil)
@@ -450,6 +445,7 @@ func (o *ContactAssignment) HasLastUpdated() bool {
func (o *ContactAssignment) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ContactAssignment) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -461,7 +457,7 @@ func (o *ContactAssignment) UnsetLastUpdated() {
}
func (o ContactAssignment) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -519,32 +515,31 @@ func (o *ContactAssignment) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -615,5 +610,3 @@ func (v *NullableContactAssignment) 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 f90bb74de..1a0d88ae9 100644
--- a/model_contact_assignment_request.go
+++ b/model_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{}
// ContactAssignmentRequest Adds support for custom fields and tags.
type ContactAssignmentRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Contact BriefContactRequest `json:"contact"`
- Role NullableBriefContactRoleRequest `json:"role,omitempty"`
- Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Contact ContactAssignmentRequestContact `json:"contact"`
+ Role NullableContactAssignmentRequestRole `json:"role,omitempty"`
+ Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest {
+func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactAssignmentRequestContact) *ContactAssignmentRequest {
this := ContactAssignmentRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -76,7 +76,6 @@ func (o *ContactAssignmentRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *ContactAssignmentRequest) GetObjectId() int64 {
if o == nil {
@@ -101,11 +100,10 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetContact returns the Contact field value
-func (o *ContactAssignmentRequest) GetContact() BriefContactRequest {
+func (o *ContactAssignmentRequest) GetContact() ContactAssignmentRequestContact {
if o == nil {
- var ret BriefContactRequest
+ var ret ContactAssignmentRequestContact
return ret
}
@@ -114,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() BriefContactRequest {
// GetContactOk returns a tuple with the Contact field value
// and a boolean to check if the value has been set.
-func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) {
+func (o *ContactAssignmentRequest) GetContactOk() (*ContactAssignmentRequestContact, bool) {
if o == nil {
return nil, false
}
@@ -122,15 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) {
}
// SetContact sets field value
-func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) {
+func (o *ContactAssignmentRequest) SetContact(v ContactAssignmentRequestContact) {
o.Contact = v
}
-
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest {
+func (o *ContactAssignmentRequest) GetRole() ContactAssignmentRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefContactRoleRequest
+ var ret ContactAssignmentRequestRole
return ret
}
return *o.Role.Get()
@@ -139,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) {
+func (o *ContactAssignmentRequest) GetRoleOk() (*ContactAssignmentRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -155,10 +152,11 @@ func (o *ContactAssignmentRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field.
-func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) {
+// SetRole gets a reference to the given NullableContactAssignmentRequestRole and assigns it to the Role field.
+func (o *ContactAssignmentRequest) SetRole(v ContactAssignmentRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *ContactAssignmentRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -266,7 +264,7 @@ func (o *ContactAssignmentRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ContactAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,32 +308,31 @@ func (o *ContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -400,5 +397,3 @@ func (v *NullableContactAssignmentRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_assignment_request_contact.go b/model_contact_assignment_request_contact.go
new file mode 100644
index 000000000..b3db0b2d2
--- /dev/null
+++ b/model_contact_assignment_request_contact.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ContactAssignmentRequestContact - struct for ContactAssignmentRequestContact
+type ContactAssignmentRequestContact struct {
+ BriefContactRequest *BriefContactRequest
+ Int32 *int32
+}
+
+// BriefContactRequestAsContactAssignmentRequestContact is a convenience function that returns BriefContactRequest wrapped in ContactAssignmentRequestContact
+func BriefContactRequestAsContactAssignmentRequestContact(v *BriefContactRequest) ContactAssignmentRequestContact {
+ return ContactAssignmentRequestContact{
+ BriefContactRequest: v,
+ }
+}
+
+// int32AsContactAssignmentRequestContact is a convenience function that returns int32 wrapped in ContactAssignmentRequestContact
+func Int32AsContactAssignmentRequestContact(v *int32) ContactAssignmentRequestContact {
+ return ContactAssignmentRequestContact{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ContactAssignmentRequestContact) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefContactRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefContactRequest)
+ if err == nil {
+ jsonBriefContactRequest, _ := json.Marshal(dst.BriefContactRequest)
+ if string(jsonBriefContactRequest) == "{}" { // empty struct
+ dst.BriefContactRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefContactRequest); err != nil {
+ dst.BriefContactRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefContactRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefContactRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ContactAssignmentRequestContact)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ContactAssignmentRequestContact)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ContactAssignmentRequestContact) MarshalJSON() ([]byte, error) {
+ if src.BriefContactRequest != nil {
+ return json.Marshal(&src.BriefContactRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ContactAssignmentRequestContact) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefContactRequest != nil {
+ return obj.BriefContactRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableContactAssignmentRequestContact struct {
+ value *ContactAssignmentRequestContact
+ isSet bool
+}
+
+func (v NullableContactAssignmentRequestContact) Get() *ContactAssignmentRequestContact {
+ return v.value
+}
+
+func (v *NullableContactAssignmentRequestContact) Set(val *ContactAssignmentRequestContact) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableContactAssignmentRequestContact) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableContactAssignmentRequestContact) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableContactAssignmentRequestContact(val *ContactAssignmentRequestContact) *NullableContactAssignmentRequestContact {
+ return &NullableContactAssignmentRequestContact{value: val, isSet: true}
+}
+
+func (v NullableContactAssignmentRequestContact) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableContactAssignmentRequestContact) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_contact_assignment_request_role.go b/model_contact_assignment_request_role.go
new file mode 100644
index 000000000..9b8dd28f5
--- /dev/null
+++ b/model_contact_assignment_request_role.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ContactAssignmentRequestRole - struct for ContactAssignmentRequestRole
+type ContactAssignmentRequestRole struct {
+ BriefContactRoleRequest *BriefContactRoleRequest
+ Int32 *int32
+}
+
+// BriefContactRoleRequestAsContactAssignmentRequestRole is a convenience function that returns BriefContactRoleRequest wrapped in ContactAssignmentRequestRole
+func BriefContactRoleRequestAsContactAssignmentRequestRole(v *BriefContactRoleRequest) ContactAssignmentRequestRole {
+ return ContactAssignmentRequestRole{
+ BriefContactRoleRequest: v,
+ }
+}
+
+// int32AsContactAssignmentRequestRole is a convenience function that returns int32 wrapped in ContactAssignmentRequestRole
+func Int32AsContactAssignmentRequestRole(v *int32) ContactAssignmentRequestRole {
+ return ContactAssignmentRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ContactAssignmentRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefContactRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefContactRoleRequest)
+ if err == nil {
+ jsonBriefContactRoleRequest, _ := json.Marshal(dst.BriefContactRoleRequest)
+ if string(jsonBriefContactRoleRequest) == "{}" { // empty struct
+ dst.BriefContactRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefContactRoleRequest); err != nil {
+ dst.BriefContactRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefContactRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefContactRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ContactAssignmentRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ContactAssignmentRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ContactAssignmentRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefContactRoleRequest != nil {
+ return json.Marshal(&src.BriefContactRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ContactAssignmentRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefContactRoleRequest != nil {
+ return obj.BriefContactRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableContactAssignmentRequestRole struct {
+ value *ContactAssignmentRequestRole
+ isSet bool
+}
+
+func (v NullableContactAssignmentRequestRole) Get() *ContactAssignmentRequestRole {
+ return v.value
+}
+
+func (v *NullableContactAssignmentRequestRole) Set(val *ContactAssignmentRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableContactAssignmentRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableContactAssignmentRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableContactAssignmentRequestRole(val *ContactAssignmentRequestRole) *NullableContactAssignmentRequestRole {
+ return &NullableContactAssignmentRequestRole{value: val, isSet: true}
+}
+
+func (v NullableContactAssignmentRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableContactAssignmentRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_contact_group.go b/model_contact_group.go
index 2c3b0a48b..46ffb25df 100644
--- a/model_contact_group.go
+++ b/model_contact_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ContactGroup type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,21 @@ var _ MappedNullable = &ContactGroup{}
// ContactGroup Extends PrimaryModelSerializer to include MPTT support.
type ContactGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedContactGroup `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- ContactCount *int32 `json:"contact_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedContactGroup `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ContactCount *int32 `json:"contact_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +88,6 @@ func (o *ContactGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ContactGroup) GetUrl() string {
if o == nil {
@@ -112,7 +112,6 @@ func (o *ContactGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ContactGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +168,6 @@ func (o *ContactGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ContactGroup) GetName() string {
if o == nil {
@@ -194,7 +192,6 @@ func (o *ContactGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ContactGroup) GetSlug() string {
if o == nil {
@@ -219,7 +216,6 @@ func (o *ContactGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ContactGroup) GetParent() NestedContactGroup {
if o == nil || IsNil(o.Parent.Get()) {
@@ -252,6 +248,7 @@ func (o *ContactGroup) HasParent() bool {
func (o *ContactGroup) SetParent(v NestedContactGroup) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *ContactGroup) SetParentNil() {
o.Parent.Set(nil)
@@ -390,6 +387,7 @@ func (o *ContactGroup) HasCreated() bool {
func (o *ContactGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ContactGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -432,6 +430,7 @@ func (o *ContactGroup) HasLastUpdated() bool {
func (o *ContactGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ContactGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -474,6 +473,38 @@ func (o *ContactGroup) SetContactCount(v int32) {
o.ContactCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *ContactGroup) 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 *ContactGroup) 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 *ContactGroup) 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 *ContactGroup) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *ContactGroup) GetDepth() int32 {
if o == nil {
@@ -498,9 +529,8 @@ func (o *ContactGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o ContactGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -538,6 +568,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) {
if !IsNil(o.ContactCount) {
toSerialize["contact_count"] = o.ContactCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -562,32 +595,31 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -617,6 +649,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
delete(additionalProperties, "contact_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -659,5 +692,3 @@ func (v *NullableContactGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_group_request.go b/model_contact_group_request.go
index 31892c741..5feda978e 100644
--- a/model_contact_group_request.go
+++ b/model_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &ContactGroupRequest{}
// ContactGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type ContactGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedContactGroupRequest `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedContactGroupRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *ContactGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ContactGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *ContactGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ContactGroupRequest) GetParent() NestedContactGroupRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *ContactGroupRequest) HasParent() bool {
func (o *ContactGroupRequest) SetParent(v NestedContactGroupRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *ContactGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *ContactGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *ContactGroupRequest) 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 *ContactGroupRequest) 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 *ContactGroupRequest) 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 *ContactGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o ContactGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o ContactGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *ContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *ContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableContactGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_request.go b/model_contact_request.go
index 878594625..60fe658c0 100644
--- a/model_contact_request.go
+++ b/model_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &ContactRequest{}
// ContactRequest Adds support for custom fields and tags.
type ContactRequest struct {
- Group NullableBriefContactGroupRequest `json:"group,omitempty"`
- Name string `json:"name"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Name string `json:"name"`
+ Title *string `json:"title,omitempty"`
+ Phone *string `json:"phone,omitempty"`
+ Email *string `json:"email,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Link *string `json:"link,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,46 +54,36 @@ func NewContactRequestWithDefaults() *ContactRequest {
return &this
}
-// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ContactRequest) GetGroup() BriefContactGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret BriefContactGroupRequest
+// GetGroups returns the Groups field value if set, zero value otherwise.
+func (o *ContactRequest) GetGroups() []int32 {
+ if o == nil || IsNil(o.Groups) {
+ var ret []int32
return ret
}
- return *o.Group.Get()
+ return o.Groups
}
-// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
+// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) {
- if o == nil {
+func (o *ContactRequest) GetGroupsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Groups) {
return nil, false
}
- return o.Group.Get(), o.Group.IsSet()
+ return o.Groups, true
}
-// HasGroup returns a boolean if a field has been set.
-func (o *ContactRequest) HasGroup() bool {
- if o != nil && o.Group.IsSet() {
+// HasGroups returns a boolean if a field has been set.
+func (o *ContactRequest) HasGroups() bool {
+ if o != nil && !IsNil(o.Groups) {
return true
}
return false
}
-// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field.
-func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) {
- o.Group.Set(&v)
-}
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *ContactRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *ContactRequest) UnsetGroup() {
- o.Group.Unset()
+// SetGroups gets a reference to the given []int32 and assigns it to the Groups field.
+func (o *ContactRequest) SetGroups(v []int32) {
+ o.Groups = v
}
// GetName returns the Name field value
@@ -120,7 +110,6 @@ func (o *ContactRequest) SetName(v string) {
o.Name = v
}
-
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *ContactRequest) GetTitle() string {
if o == nil || IsNil(o.Title) {
@@ -410,7 +399,7 @@ func (o *ContactRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ContactRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -419,8 +408,8 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) {
func (o ContactRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if o.Group.IsSet() {
- toSerialize["group"] = o.Group.Get()
+ if !IsNil(o.Groups) {
+ toSerialize["groups"] = o.Groups
}
toSerialize["name"] = o.Name
if !IsNil(o.Title) {
@@ -468,32 +457,31 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -510,7 +498,7 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "group")
+ delete(additionalProperties, "groups")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
delete(additionalProperties, "phone")
@@ -562,5 +550,3 @@ func (v *NullableContactRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_role.go b/model_contact_role.go
index 9548761dc..c1ff4fb94 100644
--- a/model_contact_role.go
+++ b/model_contact_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ContactRole type satisfies the MappedNullable interface at compile time
@@ -21,17 +21,17 @@ var _ MappedNullable = &ContactRole{}
// ContactRole Adds support for custom fields and tags.
type ContactRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *ContactRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ContactRole) GetUrl() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *ContactRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ContactRole) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -165,7 +163,6 @@ func (o *ContactRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ContactRole) GetName() string {
if o == nil {
@@ -190,7 +187,6 @@ func (o *ContactRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ContactRole) GetSlug() string {
if o == nil {
@@ -215,7 +211,6 @@ func (o *ContactRole) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ContactRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -344,6 +339,7 @@ func (o *ContactRole) HasCreated() bool {
func (o *ContactRole) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ContactRole) SetCreatedNil() {
o.Created.Set(nil)
@@ -386,6 +382,7 @@ func (o *ContactRole) HasLastUpdated() bool {
func (o *ContactRole) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ContactRole) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -397,7 +394,7 @@ func (o *ContactRole) UnsetLastUpdated() {
}
func (o ContactRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -451,32 +448,31 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -545,5 +541,3 @@ func (v *NullableContactRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_contact_role_request.go b/model_contact_role_request.go
index 81926840d..95bb7fa41 100644
--- a/model_contact_role_request.go
+++ b/model_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ContactRoleRequest{}
// ContactRoleRequest Adds support for custom fields and tags.
type ContactRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *ContactRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ContactRoleRequest) GetSlug() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *ContactRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ContactRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -196,7 +194,7 @@ func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ContactRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,32 +233,31 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -323,5 +320,3 @@ func (v *NullableContactRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go
index 1524a27f8..5e7e9750e 100644
--- a/model_core_object_changes_list_action_parameter.go
+++ b/model_core_object_changes_list_action_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableCoreObjectChangesListActionParameter) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field.go b/model_custom_field.go
index cdc2082fa..8d09e3e1f 100644
--- a/model_custom_field.go
+++ b/model_custom_field.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CustomField type satisfies the MappedNullable interface at compile time
@@ -21,30 +21,30 @@ var _ MappedNullable = &CustomField{}
// CustomField Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomField struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- ObjectTypes []string `json:"object_types"`
- Type CustomFieldType `json:"type"`
- RelatedObjectType NullableString `json:"related_object_type,omitempty"`
- DataType string `json:"data_type"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ ObjectTypes []string `json:"object_types"`
+ Type CustomFieldType `json:"type"`
+ RelatedObjectType NullableString `json:"related_object_type,omitempty"`
+ DataType string `json:"data_type"`
// Internal field name
Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
Label *string `json:"label,omitempty"`
// Custom fields within the same group will be displayed together
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
Description *string `json:"description,omitempty"`
// This field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// The value of this field must be unique for the assigned object
Unique *bool `json:"unique,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"`
- UiVisible *CustomFieldUiVisible `json:"ui_visible,omitempty"`
- UiEditable *CustomFieldUiEditable `json:"ui_editable,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *CustomFieldUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *CustomFieldUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
@@ -58,11 +58,11 @@ type CustomField struct {
// Maximum allowed value (for numeric fields)
ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"`
// Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$
will limit values to exactly three uppercase letters.
- ValidationRegex *string `json:"validation_regex,omitempty"`
- ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -116,7 +116,6 @@ func (o *CustomField) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CustomField) GetUrl() string {
if o == nil {
@@ -141,7 +140,6 @@ func (o *CustomField) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CustomField) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -198,7 +196,6 @@ func (o *CustomField) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectTypes returns the ObjectTypes field value
func (o *CustomField) GetObjectTypes() []string {
if o == nil {
@@ -223,7 +220,6 @@ func (o *CustomField) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetType returns the Type field value
func (o *CustomField) GetType() CustomFieldType {
if o == nil {
@@ -248,7 +244,6 @@ func (o *CustomField) SetType(v CustomFieldType) {
o.Type = v
}
-
// GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CustomField) GetRelatedObjectType() string {
if o == nil || IsNil(o.RelatedObjectType.Get()) {
@@ -281,6 +276,7 @@ func (o *CustomField) HasRelatedObjectType() bool {
func (o *CustomField) SetRelatedObjectType(v string) {
o.RelatedObjectType.Set(&v)
}
+
// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
func (o *CustomField) SetRelatedObjectTypeNil() {
o.RelatedObjectType.Set(nil)
@@ -315,7 +311,6 @@ func (o *CustomField) SetDataType(v string) {
o.DataType = v
}
-
// GetName returns the Name field value
func (o *CustomField) GetName() string {
if o == nil {
@@ -340,7 +335,6 @@ func (o *CustomField) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *CustomField) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -791,6 +785,7 @@ func (o *CustomField) HasValidationMinimum() bool {
func (o *CustomField) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
+
// SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil
func (o *CustomField) SetValidationMinimumNil() {
o.ValidationMinimum.Set(nil)
@@ -833,6 +828,7 @@ func (o *CustomField) HasValidationMaximum() bool {
func (o *CustomField) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
+
// SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil
func (o *CustomField) SetValidationMaximumNil() {
o.ValidationMaximum.Set(nil)
@@ -907,6 +903,7 @@ func (o *CustomField) HasChoiceSet() bool {
func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) {
o.ChoiceSet.Set(&v)
}
+
// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil
func (o *CustomField) SetChoiceSetNil() {
o.ChoiceSet.Set(nil)
@@ -981,6 +978,7 @@ func (o *CustomField) HasCreated() bool {
func (o *CustomField) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CustomField) SetCreatedNil() {
o.Created.Set(nil)
@@ -1023,6 +1021,7 @@ func (o *CustomField) HasLastUpdated() bool {
func (o *CustomField) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CustomField) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1034,7 +1033,7 @@ func (o *CustomField) UnsetLastUpdated() {
}
func (o CustomField) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1140,32 +1139,31 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1252,5 +1250,3 @@ func (v *NullableCustomField) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go
index 7b08e10d9..7418386e0 100644
--- a/model_custom_field_choice_set.go
+++ b/model_custom_field_choice_set.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CustomFieldChoiceSet type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &CustomFieldChoiceSet{}
// CustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomFieldChoiceSet struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- BaseChoices *CustomFieldChoiceSetBaseChoices `json:"base_choices,omitempty"`
- ExtraChoices [][]interface{} `json:"extra_choices"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices *CustomFieldChoiceSetBaseChoices `json:"base_choices,omitempty"`
+ ExtraChoices [][]interface{} `json:"extra_choices"`
// Choices are automatically ordered alphabetically
- OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
- ChoicesCount *string `json:"choices_count,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
+ ChoicesCount *string `json:"choices_count,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *CustomFieldChoiceSet) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CustomFieldChoiceSet) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CustomFieldChoiceSet) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *CustomFieldChoiceSet) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *CustomFieldChoiceSet) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *CustomFieldChoiceSet) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CustomFieldChoiceSet) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -281,7 +277,6 @@ func (o *CustomFieldChoiceSet) SetExtraChoices(v [][]interface{}) {
o.ExtraChoices = v
}
-
// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise.
func (o *CustomFieldChoiceSet) GetOrderAlphabetically() bool {
if o == nil || IsNil(o.OrderAlphabetically) {
@@ -378,6 +373,7 @@ func (o *CustomFieldChoiceSet) HasCreated() bool {
func (o *CustomFieldChoiceSet) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CustomFieldChoiceSet) SetCreatedNil() {
o.Created.Set(nil)
@@ -420,6 +416,7 @@ func (o *CustomFieldChoiceSet) HasLastUpdated() bool {
func (o *CustomFieldChoiceSet) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CustomFieldChoiceSet) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -431,7 +428,7 @@ func (o *CustomFieldChoiceSet) UnsetLastUpdated() {
}
func (o CustomFieldChoiceSet) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -488,32 +485,31 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -583,5 +579,3 @@ func (v *NullableCustomFieldChoiceSet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go
index d3a48fdc6..a37dc8b92 100644
--- a/model_custom_field_choice_set_base_choices.go
+++ b/model_custom_field_choice_set_base_choices.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldChoiceSetBaseChoices{}
// CustomFieldChoiceSetBaseChoices struct for CustomFieldChoiceSetBaseChoices
type CustomFieldChoiceSetBaseChoices struct {
- Value *CustomFieldChoiceSetBaseChoicesValue `json:"value,omitempty"`
- Label *CustomFieldChoiceSetBaseChoicesLabel `json:"label,omitempty"`
+ Value *CustomFieldChoiceSetBaseChoicesValue `json:"value,omitempty"`
+ Label *CustomFieldChoiceSetBaseChoicesLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v CustomFieldChoiceSetBaseCho
}
func (o CustomFieldChoiceSetBaseChoices) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCustomFieldChoiceSetBaseChoices) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go
index b82e997cd..eed838ce1 100644
--- a/model_custom_field_choice_set_base_choices_label.go
+++ b/model_custom_field_choice_set_base_choices_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CustomFieldChoiceSetBaseChoicesLabel string
// List of CustomFieldChoiceSet_base_choices_label
const (
- CUSTOMFIELDCHOICESETBASECHOICESLABEL_IATA__AIRPORT_CODES CustomFieldChoiceSetBaseChoicesLabel = "IATA (Airport codes)"
- CUSTOMFIELDCHOICESETBASECHOICESLABEL_ISO_3166__COUNTRY_CODES CustomFieldChoiceSetBaseChoicesLabel = "ISO 3166 (Country codes)"
+ CUSTOMFIELDCHOICESETBASECHOICESLABEL_IATA__AIRPORT_CODES CustomFieldChoiceSetBaseChoicesLabel = "IATA (Airport codes)"
+ CUSTOMFIELDCHOICESETBASECHOICESLABEL_ISO_3166__COUNTRY_CODES CustomFieldChoiceSetBaseChoicesLabel = "ISO 3166 (Country codes)"
CUSTOMFIELDCHOICESETBASECHOICESLABEL_UN_LOCODE__LOCATION_CODES CustomFieldChoiceSetBaseChoicesLabel = "UN/LOCODE (Location codes)"
)
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldChoiceSetBaseChoicesLabel) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go
index 077689c67..a9958eaf3 100644
--- a/model_custom_field_choice_set_base_choices_value.go
+++ b/model_custom_field_choice_set_base_choices_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CustomFieldChoiceSetBaseChoicesValue string
// List of CustomFieldChoiceSet_base_choices_value
const (
- CUSTOMFIELDCHOICESETBASECHOICESVALUE_IATA CustomFieldChoiceSetBaseChoicesValue = "IATA"
- CUSTOMFIELDCHOICESETBASECHOICESVALUE_ISO_3166 CustomFieldChoiceSetBaseChoicesValue = "ISO_3166"
+ CUSTOMFIELDCHOICESETBASECHOICESVALUE_IATA CustomFieldChoiceSetBaseChoicesValue = "IATA"
+ CUSTOMFIELDCHOICESETBASECHOICESVALUE_ISO_3166 CustomFieldChoiceSetBaseChoicesValue = "ISO_3166"
CUSTOMFIELDCHOICESETBASECHOICESVALUE_UN_LOCODE CustomFieldChoiceSetBaseChoicesValue = "UN_LOCODE"
)
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldChoiceSetBaseChoicesValue) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go
index 69a0b6786..70e243f3f 100644
--- a/model_custom_field_choice_set_request.go
+++ b/model_custom_field_choice_set_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &CustomFieldChoiceSetRequest{}
// CustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- BaseChoices *CustomFieldChoiceSetBaseChoicesValue `json:"base_choices,omitempty"`
- ExtraChoices [][]interface{} `json:"extra_choices"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices *CustomFieldChoiceSetBaseChoicesValue `json:"base_choices,omitempty"`
+ ExtraChoices [][]interface{} `json:"extra_choices"`
// Choices are automatically ordered alphabetically
- OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
+ OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *CustomFieldChoiceSetRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CustomFieldChoiceSetRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -163,7 +162,6 @@ func (o *CustomFieldChoiceSetRequest) SetExtraChoices(v [][]interface{}) {
o.ExtraChoices = v
}
-
// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise.
func (o *CustomFieldChoiceSetRequest) GetOrderAlphabetically() bool {
if o == nil || IsNil(o.OrderAlphabetically) {
@@ -197,7 +195,7 @@ func (o *CustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) {
}
func (o CustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -236,32 +234,31 @@ func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -324,5 +321,3 @@ func (v *NullableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go
index 4baf466c8..01a28c5e3 100644
--- a/model_custom_field_filter_logic.go
+++ b/model_custom_field_filter_logic.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldFilterLogic{}
// CustomFieldFilterLogic struct for CustomFieldFilterLogic
type CustomFieldFilterLogic struct {
- Value *CustomFieldFilterLogicValue `json:"value,omitempty"`
- Label *CustomFieldFilterLogicLabel `json:"label,omitempty"`
+ Value *CustomFieldFilterLogicValue `json:"value,omitempty"`
+ Label *CustomFieldFilterLogicLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CustomFieldFilterLogic) SetLabel(v CustomFieldFilterLogicLabel) {
}
func (o CustomFieldFilterLogic) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCustomFieldFilterLogic) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go
index 04292ff9f..b34552df6 100644
--- a/model_custom_field_filter_logic_label.go
+++ b/model_custom_field_filter_logic_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type CustomFieldFilterLogicLabel string
// List of CustomField_filter_logic_label
const (
CUSTOMFIELDFILTERLOGICLABEL_DISABLED CustomFieldFilterLogicLabel = "Disabled"
- CUSTOMFIELDFILTERLOGICLABEL_LOOSE CustomFieldFilterLogicLabel = "Loose"
- CUSTOMFIELDFILTERLOGICLABEL_EXACT CustomFieldFilterLogicLabel = "Exact"
+ CUSTOMFIELDFILTERLOGICLABEL_LOOSE CustomFieldFilterLogicLabel = "Loose"
+ CUSTOMFIELDFILTERLOGICLABEL_EXACT CustomFieldFilterLogicLabel = "Exact"
)
// All allowed values of CustomFieldFilterLogicLabel enum
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldFilterLogicLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go
index f93ed2b28..6399672c3 100644
--- a/model_custom_field_filter_logic_value.go
+++ b/model_custom_field_filter_logic_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type CustomFieldFilterLogicValue string
// List of CustomField_filter_logic_value
const (
CUSTOMFIELDFILTERLOGICVALUE_DISABLED CustomFieldFilterLogicValue = "disabled"
- CUSTOMFIELDFILTERLOGICVALUE_LOOSE CustomFieldFilterLogicValue = "loose"
- CUSTOMFIELDFILTERLOGICVALUE_EXACT CustomFieldFilterLogicValue = "exact"
+ CUSTOMFIELDFILTERLOGICVALUE_LOOSE CustomFieldFilterLogicValue = "loose"
+ CUSTOMFIELDFILTERLOGICVALUE_EXACT CustomFieldFilterLogicValue = "exact"
)
// All allowed values of CustomFieldFilterLogicValue enum
@@ -110,4 +110,3 @@ 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 8973e70be..894829031 100644
--- a/model_custom_field_request.go
+++ b/model_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,25 +20,25 @@ var _ MappedNullable = &CustomFieldRequest{}
// CustomFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomFieldRequest struct {
- ObjectTypes []string `json:"object_types"`
- Type CustomFieldTypeValue `json:"type"`
- RelatedObjectType NullableString `json:"related_object_type,omitempty"`
+ ObjectTypes []string `json:"object_types"`
+ Type CustomFieldTypeValue `json:"type"`
+ RelatedObjectType NullableString `json:"related_object_type,omitempty"`
// Internal field name
Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
Label *string `json:"label,omitempty"`
// Custom fields within the same group will be displayed together
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
Description *string `json:"description,omitempty"`
// This field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// The value of this field must be unique for the assigned object
Unique *bool `json:"unique,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"`
- UiVisible *CustomFieldUiVisibleValue `json:"ui_visible,omitempty"`
- UiEditable *CustomFieldUiEditableValue `json:"ui_editable,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"`
+ UiVisible *CustomFieldUiVisibleValue `json:"ui_visible,omitempty"`
+ UiEditable *CustomFieldUiEditableValue `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
@@ -52,9 +52,9 @@ type CustomFieldRequest struct {
// Maximum allowed value (for numeric fields)
ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"`
// Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$
will limit values to exactly three uppercase letters.
- ValidationRegex *string `json:"validation_regex,omitempty"`
- ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldRequestChoiceSet `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -104,7 +104,6 @@ func (o *CustomFieldRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetType returns the Type field value
func (o *CustomFieldRequest) GetType() CustomFieldTypeValue {
if o == nil {
@@ -129,7 +128,6 @@ func (o *CustomFieldRequest) SetType(v CustomFieldTypeValue) {
o.Type = v
}
-
// GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CustomFieldRequest) GetRelatedObjectType() string {
if o == nil || IsNil(o.RelatedObjectType.Get()) {
@@ -162,6 +160,7 @@ func (o *CustomFieldRequest) HasRelatedObjectType() bool {
func (o *CustomFieldRequest) SetRelatedObjectType(v string) {
o.RelatedObjectType.Set(&v)
}
+
// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
func (o *CustomFieldRequest) SetRelatedObjectTypeNil() {
o.RelatedObjectType.Set(nil)
@@ -196,7 +195,6 @@ func (o *CustomFieldRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *CustomFieldRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -647,6 +645,7 @@ func (o *CustomFieldRequest) HasValidationMinimum() bool {
func (o *CustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
+
// SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil
func (o *CustomFieldRequest) SetValidationMinimumNil() {
o.ValidationMinimum.Set(nil)
@@ -689,6 +688,7 @@ func (o *CustomFieldRequest) HasValidationMaximum() bool {
func (o *CustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
+
// SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil
func (o *CustomFieldRequest) SetValidationMaximumNil() {
o.ValidationMaximum.Set(nil)
@@ -732,9 +732,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) {
}
// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest {
+func (o *CustomFieldRequest) GetChoiceSet() CustomFieldRequestChoiceSet {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret BriefCustomFieldChoiceSetRequest
+ var ret CustomFieldRequestChoiceSet
return ret
}
return *o.ChoiceSet.Get()
@@ -743,7 +743,7 @@ func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest {
// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) {
+func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldRequestChoiceSet, bool) {
if o == nil {
return nil, false
}
@@ -759,10 +759,11 @@ func (o *CustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
-func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldRequestChoiceSet and assigns it to the ChoiceSet field.
+func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldRequestChoiceSet) {
o.ChoiceSet.Set(&v)
}
+
// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil
func (o *CustomFieldRequest) SetChoiceSetNil() {
o.ChoiceSet.Set(nil)
@@ -806,7 +807,7 @@ func (o *CustomFieldRequest) SetComments(v string) {
}
func (o CustomFieldRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -895,32 +896,31 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1000,5 +1000,3 @@ func (v *NullableCustomFieldRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_request_choice_set.go b/model_custom_field_request_choice_set.go
new file mode 100644
index 000000000..db5d0e22d
--- /dev/null
+++ b/model_custom_field_request_choice_set.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// CustomFieldRequestChoiceSet - struct for CustomFieldRequestChoiceSet
+type CustomFieldRequestChoiceSet struct {
+ BriefCustomFieldChoiceSetRequest *BriefCustomFieldChoiceSetRequest
+ Int32 *int32
+}
+
+// BriefCustomFieldChoiceSetRequestAsCustomFieldRequestChoiceSet is a convenience function that returns BriefCustomFieldChoiceSetRequest wrapped in CustomFieldRequestChoiceSet
+func BriefCustomFieldChoiceSetRequestAsCustomFieldRequestChoiceSet(v *BriefCustomFieldChoiceSetRequest) CustomFieldRequestChoiceSet {
+ return CustomFieldRequestChoiceSet{
+ BriefCustomFieldChoiceSetRequest: v,
+ }
+}
+
+// int32AsCustomFieldRequestChoiceSet is a convenience function that returns int32 wrapped in CustomFieldRequestChoiceSet
+func Int32AsCustomFieldRequestChoiceSet(v *int32) CustomFieldRequestChoiceSet {
+ return CustomFieldRequestChoiceSet{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *CustomFieldRequestChoiceSet) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefCustomFieldChoiceSetRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefCustomFieldChoiceSetRequest)
+ if err == nil {
+ jsonBriefCustomFieldChoiceSetRequest, _ := json.Marshal(dst.BriefCustomFieldChoiceSetRequest)
+ if string(jsonBriefCustomFieldChoiceSetRequest) == "{}" { // empty struct
+ dst.BriefCustomFieldChoiceSetRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefCustomFieldChoiceSetRequest); err != nil {
+ dst.BriefCustomFieldChoiceSetRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefCustomFieldChoiceSetRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefCustomFieldChoiceSetRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(CustomFieldRequestChoiceSet)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(CustomFieldRequestChoiceSet)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src CustomFieldRequestChoiceSet) MarshalJSON() ([]byte, error) {
+ if src.BriefCustomFieldChoiceSetRequest != nil {
+ return json.Marshal(&src.BriefCustomFieldChoiceSetRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *CustomFieldRequestChoiceSet) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefCustomFieldChoiceSetRequest != nil {
+ return obj.BriefCustomFieldChoiceSetRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableCustomFieldRequestChoiceSet struct {
+ value *CustomFieldRequestChoiceSet
+ isSet bool
+}
+
+func (v NullableCustomFieldRequestChoiceSet) Get() *CustomFieldRequestChoiceSet {
+ return v.value
+}
+
+func (v *NullableCustomFieldRequestChoiceSet) Set(val *CustomFieldRequestChoiceSet) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCustomFieldRequestChoiceSet) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCustomFieldRequestChoiceSet) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCustomFieldRequestChoiceSet(val *CustomFieldRequestChoiceSet) *NullableCustomFieldRequestChoiceSet {
+ return &NullableCustomFieldRequestChoiceSet{value: val, isSet: true}
+}
+
+func (v NullableCustomFieldRequestChoiceSet) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCustomFieldRequestChoiceSet) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_custom_field_type.go b/model_custom_field_type.go
index c055f212b..74e6b50b9 100644
--- a/model_custom_field_type.go
+++ b/model_custom_field_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldType{}
// CustomFieldType struct for CustomFieldType
type CustomFieldType struct {
- Value *CustomFieldTypeValue `json:"value,omitempty"`
- Label *CustomFieldTypeLabel `json:"label,omitempty"`
+ Value *CustomFieldTypeValue `json:"value,omitempty"`
+ Label *CustomFieldTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CustomFieldType) SetLabel(v CustomFieldTypeLabel) {
}
func (o CustomFieldType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCustomFieldType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go
index 37067c0f8..dc1973f81 100644
--- a/model_custom_field_type_label.go
+++ b/model_custom_field_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,19 +20,19 @@ type CustomFieldTypeLabel string
// List of CustomField_type_label
const (
- CUSTOMFIELDTYPELABEL_TEXT CustomFieldTypeLabel = "Text"
- CUSTOMFIELDTYPELABEL_TEXT__LONG CustomFieldTypeLabel = "Text (long)"
- CUSTOMFIELDTYPELABEL_INTEGER CustomFieldTypeLabel = "Integer"
- CUSTOMFIELDTYPELABEL_DECIMAL CustomFieldTypeLabel = "Decimal"
+ CUSTOMFIELDTYPELABEL_TEXT CustomFieldTypeLabel = "Text"
+ CUSTOMFIELDTYPELABEL_TEXT__LONG CustomFieldTypeLabel = "Text (long)"
+ CUSTOMFIELDTYPELABEL_INTEGER CustomFieldTypeLabel = "Integer"
+ CUSTOMFIELDTYPELABEL_DECIMAL CustomFieldTypeLabel = "Decimal"
CUSTOMFIELDTYPELABEL_BOOLEAN__TRUE_FALSE CustomFieldTypeLabel = "Boolean (true/false)"
- CUSTOMFIELDTYPELABEL_DATE CustomFieldTypeLabel = "Date"
- CUSTOMFIELDTYPELABEL_DATE__TIME CustomFieldTypeLabel = "Date & time"
- CUSTOMFIELDTYPELABEL_URL CustomFieldTypeLabel = "URL"
- CUSTOMFIELDTYPELABEL_JSON CustomFieldTypeLabel = "JSON"
- CUSTOMFIELDTYPELABEL_SELECTION CustomFieldTypeLabel = "Selection"
- CUSTOMFIELDTYPELABEL_MULTIPLE_SELECTION CustomFieldTypeLabel = "Multiple selection"
- CUSTOMFIELDTYPELABEL_OBJECT CustomFieldTypeLabel = "Object"
- CUSTOMFIELDTYPELABEL_MULTIPLE_OBJECTS CustomFieldTypeLabel = "Multiple objects"
+ CUSTOMFIELDTYPELABEL_DATE CustomFieldTypeLabel = "Date"
+ CUSTOMFIELDTYPELABEL_DATE__TIME CustomFieldTypeLabel = "Date & time"
+ CUSTOMFIELDTYPELABEL_URL CustomFieldTypeLabel = "URL"
+ CUSTOMFIELDTYPELABEL_JSON CustomFieldTypeLabel = "JSON"
+ CUSTOMFIELDTYPELABEL_SELECTION CustomFieldTypeLabel = "Selection"
+ CUSTOMFIELDTYPELABEL_MULTIPLE_SELECTION CustomFieldTypeLabel = "Multiple selection"
+ CUSTOMFIELDTYPELABEL_OBJECT CustomFieldTypeLabel = "Object"
+ CUSTOMFIELDTYPELABEL_MULTIPLE_OBJECTS CustomFieldTypeLabel = "Multiple objects"
)
// All allowed values of CustomFieldTypeLabel enum
@@ -130,4 +130,3 @@ func (v *NullableCustomFieldTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go
index 9e487b8ab..231a581c4 100644
--- a/model_custom_field_type_value.go
+++ b/model_custom_field_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ type CustomFieldTypeValue string
// List of CustomField_type_value
const (
- CUSTOMFIELDTYPEVALUE_TEXT CustomFieldTypeValue = "text"
- CUSTOMFIELDTYPEVALUE_LONGTEXT CustomFieldTypeValue = "longtext"
- CUSTOMFIELDTYPEVALUE_INTEGER CustomFieldTypeValue = "integer"
- CUSTOMFIELDTYPEVALUE_DECIMAL CustomFieldTypeValue = "decimal"
- CUSTOMFIELDTYPEVALUE_BOOLEAN CustomFieldTypeValue = "boolean"
- CUSTOMFIELDTYPEVALUE_DATE CustomFieldTypeValue = "date"
- CUSTOMFIELDTYPEVALUE_DATETIME CustomFieldTypeValue = "datetime"
- CUSTOMFIELDTYPEVALUE_URL CustomFieldTypeValue = "url"
- CUSTOMFIELDTYPEVALUE_JSON CustomFieldTypeValue = "json"
- CUSTOMFIELDTYPEVALUE_SELECT CustomFieldTypeValue = "select"
+ CUSTOMFIELDTYPEVALUE_TEXT CustomFieldTypeValue = "text"
+ CUSTOMFIELDTYPEVALUE_LONGTEXT CustomFieldTypeValue = "longtext"
+ CUSTOMFIELDTYPEVALUE_INTEGER CustomFieldTypeValue = "integer"
+ CUSTOMFIELDTYPEVALUE_DECIMAL CustomFieldTypeValue = "decimal"
+ CUSTOMFIELDTYPEVALUE_BOOLEAN CustomFieldTypeValue = "boolean"
+ CUSTOMFIELDTYPEVALUE_DATE CustomFieldTypeValue = "date"
+ CUSTOMFIELDTYPEVALUE_DATETIME CustomFieldTypeValue = "datetime"
+ CUSTOMFIELDTYPEVALUE_URL CustomFieldTypeValue = "url"
+ CUSTOMFIELDTYPEVALUE_JSON CustomFieldTypeValue = "json"
+ CUSTOMFIELDTYPEVALUE_SELECT CustomFieldTypeValue = "select"
CUSTOMFIELDTYPEVALUE_MULTISELECT CustomFieldTypeValue = "multiselect"
- CUSTOMFIELDTYPEVALUE_OBJECT CustomFieldTypeValue = "object"
+ CUSTOMFIELDTYPEVALUE_OBJECT CustomFieldTypeValue = "object"
CUSTOMFIELDTYPEVALUE_MULTIOBJECT CustomFieldTypeValue = "multiobject"
)
@@ -130,4 +130,3 @@ func (v *NullableCustomFieldTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go
index 759b2939e..d18146b43 100644
--- a/model_custom_field_ui_editable.go
+++ b/model_custom_field_ui_editable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldUiEditable{}
// CustomFieldUiEditable struct for CustomFieldUiEditable
type CustomFieldUiEditable struct {
- Value *CustomFieldUiEditableValue `json:"value,omitempty"`
- Label *CustomFieldUiEditableLabel `json:"label,omitempty"`
+ Value *CustomFieldUiEditableValue `json:"value,omitempty"`
+ Label *CustomFieldUiEditableLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CustomFieldUiEditable) SetLabel(v CustomFieldUiEditableLabel) {
}
func (o CustomFieldUiEditable) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCustomFieldUiEditable) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go
index 33e81cc1f..5c33c12dd 100644
--- a/model_custom_field_ui_editable_label.go
+++ b/model_custom_field_ui_editable_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CustomFieldUiEditableLabel string
// List of CustomField_ui_editable_label
const (
- CUSTOMFIELDUIEDITABLELABEL_YES CustomFieldUiEditableLabel = "Yes"
- CUSTOMFIELDUIEDITABLELABEL_NO CustomFieldUiEditableLabel = "No"
+ CUSTOMFIELDUIEDITABLELABEL_YES CustomFieldUiEditableLabel = "Yes"
+ CUSTOMFIELDUIEDITABLELABEL_NO CustomFieldUiEditableLabel = "No"
CUSTOMFIELDUIEDITABLELABEL_HIDDEN CustomFieldUiEditableLabel = "Hidden"
)
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldUiEditableLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go
index 6888e4cd1..de5353ed4 100644
--- a/model_custom_field_ui_editable_value.go
+++ b/model_custom_field_ui_editable_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type CustomFieldUiEditableValue string
// List of CustomField_ui_editable_value
const (
- CUSTOMFIELDUIEDITABLEVALUE_YES CustomFieldUiEditableValue = "yes"
- CUSTOMFIELDUIEDITABLEVALUE_NO CustomFieldUiEditableValue = "no"
+ CUSTOMFIELDUIEDITABLEVALUE_YES CustomFieldUiEditableValue = "yes"
+ CUSTOMFIELDUIEDITABLEVALUE_NO CustomFieldUiEditableValue = "no"
CUSTOMFIELDUIEDITABLEVALUE_HIDDEN CustomFieldUiEditableValue = "hidden"
)
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldUiEditableValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go
index f0ce469e1..362d66fe8 100644
--- a/model_custom_field_ui_visible.go
+++ b/model_custom_field_ui_visible.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldUiVisible{}
// CustomFieldUiVisible struct for CustomFieldUiVisible
type CustomFieldUiVisible struct {
- Value *CustomFieldUiVisibleValue `json:"value,omitempty"`
- Label *CustomFieldUiVisibleLabel `json:"label,omitempty"`
+ Value *CustomFieldUiVisibleValue `json:"value,omitempty"`
+ Label *CustomFieldUiVisibleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *CustomFieldUiVisible) SetLabel(v CustomFieldUiVisibleLabel) {
}
func (o CustomFieldUiVisible) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableCustomFieldUiVisible) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go
index 31deb78d0..433892704 100644
--- a/model_custom_field_ui_visible_label.go
+++ b/model_custom_field_ui_visible_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableCustomFieldUiVisibleLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go
index 935989f1c..b4598444f 100644
--- a/model_custom_field_ui_visible_value.go
+++ b/model_custom_field_ui_visible_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ 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 8473e6767..327203c1c 100644
--- a/model_custom_link.go
+++ b/model_custom_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the CustomLink type satisfies the MappedNullable interface at compile time
@@ -21,25 +21,25 @@ var _ MappedNullable = &CustomLink{}
// CustomLink Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomLink struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
// Jinja2 template code for link text
LinkText string `json:"link_text"`
// Jinja2 template code for link URL
LinkUrl string `json:"link_url"`
- Weight *int32 `json:"weight,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
- NewWindow *bool `json:"new_window,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ NewWindow *bool `json:"new_window,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -93,7 +93,6 @@ func (o *CustomLink) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *CustomLink) GetUrl() string {
if o == nil {
@@ -118,7 +117,6 @@ func (o *CustomLink) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *CustomLink) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -175,7 +173,6 @@ func (o *CustomLink) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectTypes returns the ObjectTypes field value
func (o *CustomLink) GetObjectTypes() []string {
if o == nil {
@@ -200,7 +197,6 @@ func (o *CustomLink) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *CustomLink) GetName() string {
if o == nil {
@@ -225,7 +221,6 @@ func (o *CustomLink) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CustomLink) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -282,7 +277,6 @@ func (o *CustomLink) SetLinkText(v string) {
o.LinkText = v
}
-
// GetLinkUrl returns the LinkUrl field value
func (o *CustomLink) GetLinkUrl() string {
if o == nil {
@@ -307,7 +301,6 @@ func (o *CustomLink) SetLinkUrl(v string) {
o.LinkUrl = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *CustomLink) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -468,6 +461,7 @@ func (o *CustomLink) HasCreated() bool {
func (o *CustomLink) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *CustomLink) SetCreatedNil() {
o.Created.Set(nil)
@@ -510,6 +504,7 @@ func (o *CustomLink) HasLastUpdated() bool {
func (o *CustomLink) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *CustomLink) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -521,7 +516,7 @@ func (o *CustomLink) UnsetLastUpdated() {
}
func (o CustomLink) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -585,32 +580,31 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -683,5 +677,3 @@ func (v *NullableCustomLink) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go
index beb02bbcd..3211831ec 100644
--- a/model_custom_link_button_class.go
+++ b/model_custom_link_button_class.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ type CustomLinkButtonClass string
// List of CustomLink_button_class
const (
- CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default"
- CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue"
- CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo"
- CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple"
- CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink"
- CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red"
- CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange"
- CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow"
- CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green"
- CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal"
- CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan"
- CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray"
- CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black"
- CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white"
+ CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default"
+ CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue"
+ CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo"
+ CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple"
+ CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink"
+ CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red"
+ CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange"
+ CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow"
+ CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green"
+ CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal"
+ CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan"
+ CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray"
+ CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black"
+ CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white"
CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark"
)
@@ -134,4 +134,3 @@ 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 82c9144cf..0458c5c18 100644
--- a/model_custom_link_request.go
+++ b/model_custom_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,18 +21,18 @@ var _ MappedNullable = &CustomLinkRequest{}
// CustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomLinkRequest struct {
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
// Jinja2 template code for link text
LinkText string `json:"link_text"`
// Jinja2 template code for link URL
LinkUrl string `json:"link_url"`
- Weight *int32 `json:"weight,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
- NewWindow *bool `json:"new_window,omitempty"`
+ NewWindow *bool `json:"new_window,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *CustomLinkRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *CustomLinkRequest) GetName() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *CustomLinkRequest) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CustomLinkRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -165,7 +163,6 @@ func (o *CustomLinkRequest) SetLinkText(v string) {
o.LinkText = v
}
-
// GetLinkUrl returns the LinkUrl field value
func (o *CustomLinkRequest) GetLinkUrl() string {
if o == nil {
@@ -190,7 +187,6 @@ func (o *CustomLinkRequest) SetLinkUrl(v string) {
o.LinkUrl = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *CustomLinkRequest) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -320,7 +316,7 @@ func (o *CustomLinkRequest) SetNewWindow(v bool) {
}
func (o CustomLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -369,32 +365,31 @@ func (o *CustomLinkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -461,5 +456,3 @@ func (v *NullableCustomLinkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_dashboard.go b/model_dashboard.go
index 8b976cef1..c875aac61 100644
--- a/model_dashboard.go
+++ b/model_dashboard.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &Dashboard{}
// Dashboard struct for Dashboard
type Dashboard struct {
- Layout interface{} `json:"layout,omitempty"`
- Config interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -110,7 +110,7 @@ func (o *Dashboard) SetConfig(v interface{}) {
}
func (o Dashboard) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -190,5 +190,3 @@ func (v *NullableDashboard) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_dashboard_request.go b/model_dashboard_request.go
index ded11c934..b480bd71e 100644
--- a/model_dashboard_request.go
+++ b/model_dashboard_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DashboardRequest{}
// DashboardRequest struct for DashboardRequest
type DashboardRequest struct {
- Layout interface{} `json:"layout,omitempty"`
- Config interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -110,7 +110,7 @@ func (o *DashboardRequest) SetConfig(v interface{}) {
}
func (o DashboardRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -190,5 +190,3 @@ func (v *NullableDashboardRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_file.go b/model_data_file.go
index 1822f2c36..19ff31e1a 100644
--- a/model_data_file.go
+++ b/model_data_file.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DataFile type satisfies the MappedNullable interface at compile time
@@ -21,17 +21,17 @@ var _ MappedNullable = &DataFile{}
// DataFile Adds support for custom fields and tags.
type DataFile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Source BriefDataSource `json:"source"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Source BriefDataSource `json:"source"`
// File path relative to the data source's root
- Path string `json:"path"`
+ Path string `json:"path"`
LastUpdated time.Time `json:"last_updated"`
- Size int32 `json:"size"`
+ Size int32 `json:"size"`
// SHA256 hash of the file data
- Hash string `json:"hash"`
+ Hash string `json:"hash"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *DataFile) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DataFile) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *DataFile) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DataFile) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *DataFile) SetDisplay(v string) {
o.Display = v
}
-
// GetSource returns the Source field value
func (o *DataFile) GetSource() BriefDataSource {
if o == nil {
@@ -193,7 +190,6 @@ func (o *DataFile) SetSource(v BriefDataSource) {
o.Source = v
}
-
// GetPath returns the Path field value
func (o *DataFile) GetPath() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *DataFile) SetPath(v string) {
o.Path = v
}
-
// GetLastUpdated returns the LastUpdated field value
func (o *DataFile) GetLastUpdated() time.Time {
if o == nil {
@@ -243,7 +238,6 @@ func (o *DataFile) SetLastUpdated(v time.Time) {
o.LastUpdated = v
}
-
// GetSize returns the Size field value
func (o *DataFile) GetSize() int32 {
if o == nil {
@@ -268,7 +262,6 @@ func (o *DataFile) SetSize(v int32) {
o.Size = v
}
-
// GetHash returns the Hash field value
func (o *DataFile) GetHash() string {
if o == nil {
@@ -293,9 +286,8 @@ func (o *DataFile) SetHash(v string) {
o.Hash = v
}
-
func (o DataFile) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -340,32 +332,31 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -432,5 +423,3 @@ func (v *NullableDataFile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_source.go b/model_data_source.go
index f2a9fbb89..94e08e802 100644
--- a/model_data_source.go
+++ b/model_data_source.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DataSource type satisfies the MappedNullable interface at compile time
@@ -21,25 +21,26 @@ var _ MappedNullable = &DataSource{}
// DataSource Adds support for custom fields and tags.
type DataSource struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Type DataSourceType `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Status DataSourceStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Parameters interface{} `json:"parameters,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Type DataSourceType `json:"type"`
+ SourceUrl string `json:"source_url"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Status DataSourceStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ SyncInterval NullableDataSourceSyncInterval `json:"sync_interval,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
- IgnoreRules *string `json:"ignore_rules,omitempty"`
- Comments *string `json:"comments,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- LastSynced NullableTime `json:"last_synced,omitempty"`
- FileCount *int64 `json:"file_count,omitempty"`
+ IgnoreRules *string `json:"ignore_rules,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ LastSynced NullableTime `json:"last_synced,omitempty"`
+ FileCount *int64 `json:"file_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -93,7 +94,6 @@ func (o *DataSource) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DataSource) GetUrl() string {
if o == nil {
@@ -118,7 +118,6 @@ func (o *DataSource) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DataSource) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -175,7 +174,6 @@ func (o *DataSource) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *DataSource) GetName() string {
if o == nil {
@@ -200,7 +198,6 @@ func (o *DataSource) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
func (o *DataSource) GetType() DataSourceType {
if o == nil {
@@ -225,7 +222,6 @@ func (o *DataSource) SetType(v DataSourceType) {
o.Type = v
}
-
// GetSourceUrl returns the SourceUrl field value
func (o *DataSource) GetSourceUrl() string {
if o == nil {
@@ -250,7 +246,6 @@ func (o *DataSource) SetSourceUrl(v string) {
o.SourceUrl = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *DataSource) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -307,7 +302,6 @@ func (o *DataSource) SetStatus(v DataSourceStatus) {
o.Status = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DataSource) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -340,6 +334,49 @@ func (o *DataSource) SetDescription(v string) {
o.Description = &v
}
+// GetSyncInterval returns the SyncInterval field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DataSource) GetSyncInterval() DataSourceSyncInterval {
+ if o == nil || IsNil(o.SyncInterval.Get()) {
+ var ret DataSourceSyncInterval
+ return ret
+ }
+ return *o.SyncInterval.Get()
+}
+
+// GetSyncIntervalOk returns a tuple with the SyncInterval field value if set, nil otherwise
+// and a 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) GetSyncIntervalOk() (*DataSourceSyncInterval, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SyncInterval.Get(), o.SyncInterval.IsSet()
+}
+
+// HasSyncInterval returns a boolean if a field has been set.
+func (o *DataSource) HasSyncInterval() bool {
+ if o != nil && o.SyncInterval.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSyncInterval gets a reference to the given NullableDataSourceSyncInterval and assigns it to the SyncInterval field.
+func (o *DataSource) SetSyncInterval(v DataSourceSyncInterval) {
+ o.SyncInterval.Set(&v)
+}
+
+// SetSyncIntervalNil sets the value for SyncInterval to be an explicit nil
+func (o *DataSource) SetSyncIntervalNil() {
+ o.SyncInterval.Set(nil)
+}
+
+// UnsetSyncInterval ensures that no value is present for SyncInterval, not even an explicit nil
+func (o *DataSource) UnsetSyncInterval() {
+ o.SyncInterval.Unset()
+}
+
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DataSource) GetParameters() interface{} {
if o == nil {
@@ -501,6 +538,7 @@ func (o *DataSource) HasCreated() bool {
func (o *DataSource) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DataSource) SetCreatedNil() {
o.Created.Set(nil)
@@ -543,6 +581,7 @@ func (o *DataSource) HasLastUpdated() bool {
func (o *DataSource) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DataSource) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -585,6 +624,7 @@ func (o *DataSource) HasLastSynced() bool {
func (o *DataSource) SetLastSynced(v time.Time) {
o.LastSynced.Set(&v)
}
+
// SetLastSyncedNil sets the value for LastSynced to be an explicit nil
func (o *DataSource) SetLastSyncedNil() {
o.LastSynced.Set(nil)
@@ -628,7 +668,7 @@ func (o *DataSource) SetFileCount(v int64) {
}
func (o DataSource) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -653,6 +693,9 @@ func (o DataSource) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.SyncInterval.IsSet() {
+ toSerialize["sync_interval"] = o.SyncInterval.Get()
+ }
if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
@@ -701,32 +744,31 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -753,6 +795,7 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "enabled")
delete(additionalProperties, "status")
delete(additionalProperties, "description")
+ delete(additionalProperties, "sync_interval")
delete(additionalProperties, "parameters")
delete(additionalProperties, "ignore_rules")
delete(additionalProperties, "comments")
@@ -802,5 +845,3 @@ func (v *NullableDataSource) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_source_request.go b/model_data_source_request.go
index a68f27d07..e1085e4cb 100644
--- a/model_data_source_request.go
+++ b/model_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,17 @@ var _ MappedNullable = &DataSourceRequest{}
// DataSourceRequest Adds support for custom fields and tags.
type DataSourceRequest struct {
- Name string `json:"name"`
- Type DataSourceTypeValue `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Parameters interface{} `json:"parameters,omitempty"`
+ Name string `json:"name"`
+ Type DataSourceTypeValue `json:"type"`
+ SourceUrl string `json:"source_url"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ SyncInterval NullableDataSourceSyncInterval `json:"sync_interval,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
- IgnoreRules *string `json:"ignore_rules,omitempty"`
- Comments *string `json:"comments,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IgnoreRules *string `json:"ignore_rules,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +80,6 @@ func (o *DataSourceRequest) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
func (o *DataSourceRequest) GetType() DataSourceTypeValue {
if o == nil {
@@ -104,7 +104,6 @@ func (o *DataSourceRequest) SetType(v DataSourceTypeValue) {
o.Type = v
}
-
// GetSourceUrl returns the SourceUrl field value
func (o *DataSourceRequest) GetSourceUrl() string {
if o == nil {
@@ -129,7 +128,6 @@ func (o *DataSourceRequest) SetSourceUrl(v string) {
o.SourceUrl = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *DataSourceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -194,6 +192,49 @@ func (o *DataSourceRequest) SetDescription(v string) {
o.Description = &v
}
+// GetSyncInterval returns the SyncInterval field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DataSourceRequest) GetSyncInterval() DataSourceSyncInterval {
+ if o == nil || IsNil(o.SyncInterval.Get()) {
+ var ret DataSourceSyncInterval
+ return ret
+ }
+ return *o.SyncInterval.Get()
+}
+
+// GetSyncIntervalOk returns a tuple with the SyncInterval field value if set, nil otherwise
+// and a 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) GetSyncIntervalOk() (*DataSourceSyncInterval, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SyncInterval.Get(), o.SyncInterval.IsSet()
+}
+
+// HasSyncInterval returns a boolean if a field has been set.
+func (o *DataSourceRequest) HasSyncInterval() bool {
+ if o != nil && o.SyncInterval.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSyncInterval gets a reference to the given NullableDataSourceSyncInterval and assigns it to the SyncInterval field.
+func (o *DataSourceRequest) SetSyncInterval(v DataSourceSyncInterval) {
+ o.SyncInterval.Set(&v)
+}
+
+// SetSyncIntervalNil sets the value for SyncInterval to be an explicit nil
+func (o *DataSourceRequest) SetSyncIntervalNil() {
+ o.SyncInterval.Set(nil)
+}
+
+// UnsetSyncInterval ensures that no value is present for SyncInterval, not even an explicit nil
+func (o *DataSourceRequest) UnsetSyncInterval() {
+ o.SyncInterval.Unset()
+}
+
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DataSourceRequest) GetParameters() interface{} {
if o == nil {
@@ -324,7 +365,7 @@ func (o *DataSourceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o DataSourceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -342,6 +383,9 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.SyncInterval.IsSet() {
+ toSerialize["sync_interval"] = o.SyncInterval.Get()
+ }
if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
@@ -374,32 +418,31 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -421,6 +464,7 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "source_url")
delete(additionalProperties, "enabled")
delete(additionalProperties, "description")
+ delete(additionalProperties, "sync_interval")
delete(additionalProperties, "parameters")
delete(additionalProperties, "ignore_rules")
delete(additionalProperties, "comments")
@@ -466,5 +510,3 @@ func (v *NullableDataSourceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_source_status.go b/model_data_source_status.go
index f2e830f0a..899665390 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DataSourceStatus{}
// DataSourceStatus struct for DataSourceStatus
type DataSourceStatus struct {
- Value *DataSourceStatusValue `json:"value,omitempty"`
- Label *DataSourceStatusLabel `json:"label,omitempty"`
+ Value *DataSourceStatusValue `json:"value,omitempty"`
+ Label *DataSourceStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) {
}
func (o DataSourceStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go
index 243ef0914..6a5f5245e 100644
--- a/model_data_source_status_label.go
+++ b/model_data_source_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type DataSourceStatusLabel string
// List of DataSource_status_label
const (
- DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New"
- DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued"
- DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing"
+ DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New"
+ DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued"
+ DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing"
DATASOURCESTATUSLABEL_COMPLETED DataSourceStatusLabel = "Completed"
- DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed"
+ DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed"
)
// All allowed values of DataSourceStatusLabel enum
@@ -114,4 +114,3 @@ 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
index 34117fc8e..7c1f2b3a0 100644
--- a/model_data_source_status_value.go
+++ b/model_data_source_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type DataSourceStatusValue string
// List of DataSource_status_value
const (
- DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new"
- DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued"
- DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing"
+ DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new"
+ DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued"
+ DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing"
DATASOURCESTATUSVALUE_COMPLETED DataSourceStatusValue = "completed"
- DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed"
+ DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed"
)
// All allowed values of DataSourceStatusValue enum
@@ -114,4 +114,3 @@ func (v *NullableDataSourceStatusValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_data_source_sync_interval.go b/model_data_source_sync_interval.go
new file mode 100644
index 000000000..38206aa1f
--- /dev/null
+++ b/model_data_source_sync_interval.go
@@ -0,0 +1,118 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DataSourceSyncInterval * `1` - Minutely * `60` - Hourly * `720` - 12 hours * `1440` - Daily * `10080` - Weekly * `43200` - 30 days
+type DataSourceSyncInterval int32
+
+// List of DataSource_sync_interval
+const (
+ DATASOURCESYNCINTERVAL__1 DataSourceSyncInterval = 1
+ DATASOURCESYNCINTERVAL__60 DataSourceSyncInterval = 60
+ DATASOURCESYNCINTERVAL__720 DataSourceSyncInterval = 720
+ DATASOURCESYNCINTERVAL__1440 DataSourceSyncInterval = 1440
+ DATASOURCESYNCINTERVAL__10080 DataSourceSyncInterval = 10080
+ DATASOURCESYNCINTERVAL__43200 DataSourceSyncInterval = 43200
+)
+
+// All allowed values of DataSourceSyncInterval enum
+var AllowedDataSourceSyncIntervalEnumValues = []DataSourceSyncInterval{
+ 1,
+ 60,
+ 720,
+ 1440,
+ 10080,
+ 43200,
+}
+
+func (v *DataSourceSyncInterval) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DataSourceSyncInterval(value)
+ for _, existing := range AllowedDataSourceSyncIntervalEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DataSourceSyncInterval", value)
+}
+
+// NewDataSourceSyncIntervalFromValue returns a pointer to a valid DataSourceSyncInterval
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDataSourceSyncIntervalFromValue(v int32) (*DataSourceSyncInterval, error) {
+ ev := DataSourceSyncInterval(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DataSourceSyncInterval: valid values are %v", v, AllowedDataSourceSyncIntervalEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DataSourceSyncInterval) IsValid() bool {
+ for _, existing := range AllowedDataSourceSyncIntervalEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to DataSource_sync_interval value
+func (v DataSourceSyncInterval) Ptr() *DataSourceSyncInterval {
+ return &v
+}
+
+type NullableDataSourceSyncInterval struct {
+ value *DataSourceSyncInterval
+ isSet bool
+}
+
+func (v NullableDataSourceSyncInterval) Get() *DataSourceSyncInterval {
+ return v.value
+}
+
+func (v *NullableDataSourceSyncInterval) Set(val *DataSourceSyncInterval) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDataSourceSyncInterval) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDataSourceSyncInterval) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDataSourceSyncInterval(val *DataSourceSyncInterval) *NullableDataSourceSyncInterval {
+ return &NullableDataSourceSyncInterval{value: val, isSet: true}
+}
+
+func (v NullableDataSourceSyncInterval) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDataSourceSyncInterval) 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 bdcf438c8..f82a37ef8 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DataSourceType{}
// DataSourceType struct for DataSourceType
type DataSourceType struct {
- Value *DataSourceTypeValue `json:"value,omitempty"`
- Label *DataSourceTypeLabel `json:"label,omitempty"`
+ Value *DataSourceTypeValue `json:"value,omitempty"`
+ Label *DataSourceTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) {
}
func (o DataSourceType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go
index f5ed5ac24..af01e67ab 100644
--- a/model_data_source_type_label.go
+++ b/model_data_source_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type DataSourceTypeLabel string
// List of DataSource_type_label
const (
- DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------"
- DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local"
- DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git"
+ DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------"
+ DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local"
+ DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git"
DATASOURCETYPELABEL_AMAZON_S3 DataSourceTypeLabel = "Amazon S3"
)
@@ -112,4 +112,3 @@ 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
index b5e366f6c..7e7a02a5d 100644
--- a/model_data_source_type_value.go
+++ b/model_data_source_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type DataSourceTypeValue string
// List of DataSource_type_value
const (
- DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local"
- DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git"
+ DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local"
+ DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git"
DATASOURCETYPEVALUE_AMAZON_S3 DataSourceTypeValue = "amazon-s3"
)
@@ -110,4 +110,3 @@ func (v *NullableDataSourceTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go
index dbb4bc55d..ae89cd6f8 100644
--- a/model_dcim_cables_list_length_unit_parameter.go
+++ b/model_dcim_cables_list_length_unit_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ const (
DCIMCABLESLISTLENGTHUNITPARAMETER_FT DcimCablesListLengthUnitParameter = "ft"
DCIMCABLESLISTLENGTHUNITPARAMETER_IN DcimCablesListLengthUnitParameter = "in"
DCIMCABLESLISTLENGTHUNITPARAMETER_KM DcimCablesListLengthUnitParameter = "km"
- DCIMCABLESLISTLENGTHUNITPARAMETER_M DcimCablesListLengthUnitParameter = "m"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_M DcimCablesListLengthUnitParameter = "m"
DCIMCABLESLISTLENGTHUNITPARAMETER_MI DcimCablesListLengthUnitParameter = "mi"
)
@@ -116,4 +116,3 @@ func (v *NullableDcimCablesListLengthUnitParameter) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go
index 15586a718..1ddec378c 100644
--- a/model_dcim_console_port_templates_list_type_parameter.go
+++ b/model_dcim_console_port_templates_list_type_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type DcimConsolePortTemplatesListTypeParameter string
// List of dcim_console_port_templates_list_type_parameter
const (
- DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimConsolePortTemplatesListTypeParameter = "Other"
+ DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimConsolePortTemplatesListTypeParameter = "Other"
DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_SERIAL DcimConsolePortTemplatesListTypeParameter = "Serial"
- DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_USB DcimConsolePortTemplatesListTypeParameter = "USB"
+ DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_USB DcimConsolePortTemplatesListTypeParameter = "USB"
)
// All allowed values of DcimConsolePortTemplatesListTypeParameter enum
@@ -110,4 +110,3 @@ func (v *NullableDcimConsolePortTemplatesListTypeParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go
index c59b0da7d..9a4dacaeb 100644
--- a/model_dcim_console_ports_list_speed_parameter.go
+++ b/model_dcim_console_ports_list_speed_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ type DcimConsolePortsListSpeedParameter int32
// List of dcim_console_ports_list_speed_parameter
const (
DCIMCONSOLEPORTSLISTSPEEDPARAMETER__115200 DcimConsolePortsListSpeedParameter = 115200
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__1200 DcimConsolePortsListSpeedParameter = 1200
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__19200 DcimConsolePortsListSpeedParameter = 19200
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__2400 DcimConsolePortsListSpeedParameter = 2400
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__38400 DcimConsolePortsListSpeedParameter = 38400
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__4800 DcimConsolePortsListSpeedParameter = 4800
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__57600 DcimConsolePortsListSpeedParameter = 57600
- DCIMCONSOLEPORTSLISTSPEEDPARAMETER__9600 DcimConsolePortsListSpeedParameter = 9600
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__1200 DcimConsolePortsListSpeedParameter = 1200
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__19200 DcimConsolePortsListSpeedParameter = 19200
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__2400 DcimConsolePortsListSpeedParameter = 2400
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__38400 DcimConsolePortsListSpeedParameter = 38400
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__4800 DcimConsolePortsListSpeedParameter = 4800
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__57600 DcimConsolePortsListSpeedParameter = 57600
+ DCIMCONSOLEPORTSLISTSPEEDPARAMETER__9600 DcimConsolePortsListSpeedParameter = 9600
)
// All allowed values of DcimConsolePortsListSpeedParameter enum
@@ -120,4 +120,3 @@ func (v *NullableDcimConsolePortsListSpeedParameter) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go
index d9c231ad0..990c4126c 100644
--- a/model_dcim_device_types_list_airflow_parameter.go
+++ b/model_dcim_device_types_list_airflow_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,12 +23,12 @@ const (
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_BOTTOM_TO_TOP DcimDeviceTypesListAirflowParameter = "bottom-to-top"
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimDeviceTypesListAirflowParameter = "front-to-rear"
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimDeviceTypesListAirflowParameter = "left-to-right"
- DCIMDEVICETYPESLISTAIRFLOWPARAMETER_MIXED DcimDeviceTypesListAirflowParameter = "mixed"
- DCIMDEVICETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimDeviceTypesListAirflowParameter = "passive"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_MIXED DcimDeviceTypesListAirflowParameter = "mixed"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimDeviceTypesListAirflowParameter = "passive"
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimDeviceTypesListAirflowParameter = "rear-to-front"
- DCIMDEVICETYPESLISTAIRFLOWPARAMETER_REAR_TO_SIDE DcimDeviceTypesListAirflowParameter = "rear-to-side"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_REAR_TO_SIDE DcimDeviceTypesListAirflowParameter = "rear-to-side"
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimDeviceTypesListAirflowParameter = "right-to-left"
- DCIMDEVICETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimDeviceTypesListAirflowParameter = "side-to-rear"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimDeviceTypesListAirflowParameter = "side-to-rear"
DCIMDEVICETYPESLISTAIRFLOWPARAMETER_TOP_TO_BOTTOM DcimDeviceTypesListAirflowParameter = "top-to-bottom"
)
@@ -124,4 +124,3 @@ func (v *NullableDcimDeviceTypesListAirflowParameter) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go
index 0b2ddd6d9..45c9695db 100644
--- a/model_dcim_device_types_list_weight_unit_parameter.go
+++ b/model_dcim_device_types_list_weight_unit_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type DcimDeviceTypesListWeightUnitParameter string
// List of dcim_device_types_list_weight_unit_parameter
const (
- DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_G DcimDeviceTypesListWeightUnitParameter = "g"
+ DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_G DcimDeviceTypesListWeightUnitParameter = "g"
DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_KG DcimDeviceTypesListWeightUnitParameter = "kg"
DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_LB DcimDeviceTypesListWeightUnitParameter = "lb"
DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_OZ DcimDeviceTypesListWeightUnitParameter = "oz"
@@ -112,4 +112,3 @@ func (v *NullableDcimDeviceTypesListWeightUnitParameter) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go
index 72b59ae21..723160253 100644
--- a/model_dcim_devices_render_config_create_format_parameter.go
+++ b/model_dcim_devices_render_config_create_format_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DcimDevicesRenderConfigCreateFormatParameter string
// List of dcim_devices_render_config_create_format_parameter
const (
DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_JSON DcimDevicesRenderConfigCreateFormatParameter = "json"
- DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_TXT DcimDevicesRenderConfigCreateFormatParameter = "txt"
+ DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_TXT DcimDevicesRenderConfigCreateFormatParameter = "txt"
)
// All allowed values of DcimDevicesRenderConfigCreateFormatParameter enum
@@ -108,4 +108,3 @@ func (v *NullableDcimDevicesRenderConfigCreateFormatParameter) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go
deleted file mode 100644
index 99b0770d5..000000000
--- a/model_dcim_interfaces_list_mode_parameter.go
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 4.2.2 (4.2)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// DcimInterfacesListModeParameter the model 'DcimInterfacesListModeParameter'
-type DcimInterfacesListModeParameter string
-
-// List of dcim_interfaces_list_mode_parameter
-const (
- DCIMINTERFACESLISTMODEPARAMETER_ACCESS DcimInterfacesListModeParameter = "access"
- DCIMINTERFACESLISTMODEPARAMETER_Q_IN_Q DcimInterfacesListModeParameter = "q-in-q"
- DCIMINTERFACESLISTMODEPARAMETER_TAGGED DcimInterfacesListModeParameter = "tagged"
- DCIMINTERFACESLISTMODEPARAMETER_TAGGED_ALL DcimInterfacesListModeParameter = "tagged-all"
-)
-
-// All allowed values of DcimInterfacesListModeParameter enum
-var AllowedDcimInterfacesListModeParameterEnumValues = []DcimInterfacesListModeParameter{
- "access",
- "q-in-q",
- "tagged",
- "tagged-all",
-}
-
-func (v *DcimInterfacesListModeParameter) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := DcimInterfacesListModeParameter(value)
- for _, existing := range AllowedDcimInterfacesListModeParameterEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid DcimInterfacesListModeParameter", value)
-}
-
-// NewDcimInterfacesListModeParameterFromValue returns a pointer to a valid DcimInterfacesListModeParameter
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewDcimInterfacesListModeParameterFromValue(v string) (*DcimInterfacesListModeParameter, error) {
- ev := DcimInterfacesListModeParameter(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for DcimInterfacesListModeParameter: valid values are %v", v, AllowedDcimInterfacesListModeParameterEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v DcimInterfacesListModeParameter) IsValid() bool {
- for _, existing := range AllowedDcimInterfacesListModeParameterEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to dcim_interfaces_list_mode_parameter value
-func (v DcimInterfacesListModeParameter) Ptr() *DcimInterfacesListModeParameter {
- return &v
-}
-
-type NullableDcimInterfacesListModeParameter struct {
- value *DcimInterfacesListModeParameter
- isSet bool
-}
-
-func (v NullableDcimInterfacesListModeParameter) Get() *DcimInterfacesListModeParameter {
- return v.value
-}
-
-func (v *NullableDcimInterfacesListModeParameter) Set(val *DcimInterfacesListModeParameter) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableDcimInterfacesListModeParameter) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableDcimInterfacesListModeParameter) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableDcimInterfacesListModeParameter(val *DcimInterfacesListModeParameter) *NullableDcimInterfacesListModeParameter {
- return &NullableDcimInterfacesListModeParameter{value: val, isSet: true}
-}
-
-func (v NullableDcimInterfacesListModeParameter) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableDcimInterfacesListModeParameter) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go
index eba2f0ecd..888e525aa 100644
--- a/model_dcim_module_types_list_airflow_parameter.go
+++ b/model_dcim_module_types_list_airflow_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,10 +22,10 @@ type DcimModuleTypesListAirflowParameter string
const (
DCIMMODULETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimModuleTypesListAirflowParameter = "front-to-rear"
DCIMMODULETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimModuleTypesListAirflowParameter = "left-to-right"
- DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive"
+ DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive"
DCIMMODULETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimModuleTypesListAirflowParameter = "rear-to-front"
DCIMMODULETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimModuleTypesListAirflowParameter = "right-to-left"
- DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear"
+ DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear"
)
// All allowed values of DcimModuleTypesListAirflowParameter enum
@@ -116,4 +116,3 @@ func (v *NullableDcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go
index 28f125675..13f19db17 100644
--- a/model_dcim_power_feeds_list_phase_parameter.go
+++ b/model_dcim_power_feeds_list_phase_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DcimPowerFeedsListPhaseParameter string
// List of dcim_power_feeds_list_phase_parameter
const (
DCIMPOWERFEEDSLISTPHASEPARAMETER_SINGLE_PHASE DcimPowerFeedsListPhaseParameter = "single-phase"
- DCIMPOWERFEEDSLISTPHASEPARAMETER_THREE_PHASE DcimPowerFeedsListPhaseParameter = "three-phase"
+ DCIMPOWERFEEDSLISTPHASEPARAMETER_THREE_PHASE DcimPowerFeedsListPhaseParameter = "three-phase"
)
// All allowed values of DcimPowerFeedsListPhaseParameter enum
@@ -108,4 +108,3 @@ func (v *NullableDcimPowerFeedsListPhaseParameter) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go
index 13ec03157..4669e71b7 100644
--- a/model_dcim_power_feeds_list_supply_parameter.go
+++ b/model_dcim_power_feeds_list_supply_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableDcimPowerFeedsListSupplyParameter) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go
index 170fa43b2..ec8d6dda1 100644
--- a/model_dcim_power_feeds_list_type_parameter.go
+++ b/model_dcim_power_feeds_list_type_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type DcimPowerFeedsListTypeParameter string
// List of dcim_power_feeds_list_type_parameter
const (
- DCIMPOWERFEEDSLISTTYPEPARAMETER_PRIMARY DcimPowerFeedsListTypeParameter = "primary"
+ DCIMPOWERFEEDSLISTTYPEPARAMETER_PRIMARY DcimPowerFeedsListTypeParameter = "primary"
DCIMPOWERFEEDSLISTTYPEPARAMETER_REDUNDANT DcimPowerFeedsListTypeParameter = "redundant"
)
@@ -108,4 +108,3 @@ func (v *NullableDcimPowerFeedsListTypeParameter) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go
index 22a9c6529..6a8a971b4 100644
--- a/model_dcim_power_outlet_templates_list_type_parameter.go
+++ b/model_dcim_power_outlet_templates_list_type_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ type DcimPowerOutletTemplatesListTypeParameter string
// List of dcim_power_outlet_templates_list_type_parameter
const (
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerOutletTemplatesListTypeParameter = "California Style"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_DC DcimPowerOutletTemplatesListTypeParameter = "DC"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerOutletTemplatesListTypeParameter = "IEC 60309"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerOutletTemplatesListTypeParameter = "IEC 60320"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerOutletTemplatesListTypeParameter = "IEC 60906-1"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerOutletTemplatesListTypeParameter = "California Style"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_DC DcimPowerOutletTemplatesListTypeParameter = "DC"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerOutletTemplatesListTypeParameter = "IEC 60309"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerOutletTemplatesListTypeParameter = "IEC 60320"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerOutletTemplatesListTypeParameter = "IEC 60906-1"
DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_ITA_INTERNATIONAL DcimPowerOutletTemplatesListTypeParameter = "ITA/International"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerOutletTemplatesListTypeParameter = "Molex"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Locking)"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerOutletTemplatesListTypeParameter = "Molex"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Locking)"
DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__NON_LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Non-locking)"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerOutletTemplatesListTypeParameter = "Other"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerOutletTemplatesListTypeParameter = "Proprietary"
- DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_USB DcimPowerOutletTemplatesListTypeParameter = "USB"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerOutletTemplatesListTypeParameter = "Other"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerOutletTemplatesListTypeParameter = "Proprietary"
+ DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_USB DcimPowerOutletTemplatesListTypeParameter = "USB"
)
// All allowed values of DcimPowerOutletTemplatesListTypeParameter enum
@@ -128,4 +128,3 @@ func (v *NullableDcimPowerOutletTemplatesListTypeParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go
index 7cdd56075..b84448692 100644
--- a/model_dcim_power_port_templates_list_type_parameter.go
+++ b/model_dcim_power_port_templates_list_type_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ type DcimPowerPortTemplatesListTypeParameter string
// List of dcim_power_port_templates_list_type_parameter
const (
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerPortTemplatesListTypeParameter = "California Style"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_DC DcimPowerPortTemplatesListTypeParameter = "DC"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerPortTemplatesListTypeParameter = "IEC 60309"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerPortTemplatesListTypeParameter = "IEC 60320"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerPortTemplatesListTypeParameter = "IEC 60906-1"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerPortTemplatesListTypeParameter = "California Style"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_DC DcimPowerPortTemplatesListTypeParameter = "DC"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerPortTemplatesListTypeParameter = "IEC 60309"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerPortTemplatesListTypeParameter = "IEC 60320"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerPortTemplatesListTypeParameter = "IEC 60906-1"
DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_INTERNATIONAL_ITA DcimPowerPortTemplatesListTypeParameter = "International/ITA"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerPortTemplatesListTypeParameter = "Molex"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Locking)"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerPortTemplatesListTypeParameter = "Molex"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Locking)"
DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__NON_LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Non-locking)"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerPortTemplatesListTypeParameter = "Other"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerPortTemplatesListTypeParameter = "Proprietary"
- DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_USB DcimPowerPortTemplatesListTypeParameter = "USB"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerPortTemplatesListTypeParameter = "Other"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerPortTemplatesListTypeParameter = "Proprietary"
+ DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_USB DcimPowerPortTemplatesListTypeParameter = "USB"
)
// All allowed values of DcimPowerPortTemplatesListTypeParameter enum
@@ -128,4 +128,3 @@ func (v *NullableDcimPowerPortTemplatesListTypeParameter) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go
index 032bc989a..e83089c6b 100644
--- a/model_dcim_rack_types_list_outer_unit_parameter.go
+++ b/model_dcim_rack_types_list_outer_unit_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableDcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go
index 21bd12c9c..ba57bf22c 100644
--- a/model_dcim_racks_elevation_retrieve_face_parameter.go
+++ b/model_dcim_racks_elevation_retrieve_face_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DcimRacksElevationRetrieveFaceParameter string
// List of dcim_racks_elevation_retrieve_face_parameter
const (
DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_FRONT DcimRacksElevationRetrieveFaceParameter = "front"
- DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_REAR DcimRacksElevationRetrieveFaceParameter = "rear"
+ DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_REAR DcimRacksElevationRetrieveFaceParameter = "rear"
)
// All allowed values of DcimRacksElevationRetrieveFaceParameter enum
@@ -108,4 +108,3 @@ func (v *NullableDcimRacksElevationRetrieveFaceParameter) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go
index 27347f189..1b1baa886 100644
--- a/model_dcim_racks_elevation_retrieve_render_parameter.go
+++ b/model_dcim_racks_elevation_retrieve_render_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DcimRacksElevationRetrieveRenderParameter string
// List of dcim_racks_elevation_retrieve_render_parameter
const (
DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_JSON DcimRacksElevationRetrieveRenderParameter = "json"
- DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_SVG DcimRacksElevationRetrieveRenderParameter = "svg"
+ DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_SVG DcimRacksElevationRetrieveRenderParameter = "svg"
)
// All allowed values of DcimRacksElevationRetrieveRenderParameter enum
@@ -108,4 +108,3 @@ func (v *NullableDcimRacksElevationRetrieveRenderParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go
index 916e4cfbb..55d85f68c 100644
--- a/model_dcim_racks_list_airflow_parameter.go
+++ b/model_dcim_racks_list_airflow_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableDcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_device.go b/model_device.go
index 344ff3c35..3f497b0a6 100644
--- a/model_device.go
+++ b/model_device.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Device type satisfies the MappedNullable interface at compile time
@@ -21,60 +21,60 @@ var _ MappedNullable = &Device{}
// Device Adds support for custom fields and tags.
type Device struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name NullableString `json:"name"`
- DeviceType *BriefDeviceType `json:"device_type,omitempty"`
- Role *BriefDeviceRole `json:"role,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Platform NullableBriefPlatform `json:"platform,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name NullableString `json:"name"`
+ DeviceType *BriefDeviceType `json:"device_type,omitempty"`
+ Role *BriefDeviceRole `json:"role,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Platform NullableBriefPlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site *BriefSite `json:"site,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Site *BriefSite `json:"site,omitempty"`
Location NullableBriefLocation `json:"location,omitempty"`
- Rack NullableBriefRack `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFace `json:"face,omitempty"`
+ Rack NullableBriefRack `json:"rack,omitempty"`
+ Position NullableFloat64 `json:"position,omitempty"`
+ Face *DeviceFace `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- ParentDevice NullableNestedDevice `json:"parent_device,omitempty"`
- Status *DeviceStatus `json:"status,omitempty"`
- Airflow *DeviceAirflow `json:"airflow,omitempty"`
- PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
- PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
- OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"`
- Cluster NullableBriefCluster `json:"cluster,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ ParentDevice NullableNestedDevice `json:"parent_device,omitempty"`
+ Status *DeviceStatus `json:"status,omitempty"`
+ Airflow *DeviceAirflow `json:"airflow,omitempty"`
+ PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
+ PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
+ OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"`
+ Cluster NullableBriefCluster `json:"cluster,omitempty"`
VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ VcPosition NullableInt32 `json:"vc_position,omitempty"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description string `json:"description"`
- Comments *string `json:"comments,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description string `json:"description"`
+ Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- ConsolePortCount *int32 `json:"console_port_count,omitempty"`
- ConsoleServerPortCount *int32 `json:"console_server_port_count,omitempty"`
- PowerPortCount *int32 `json:"power_port_count,omitempty"`
- PowerOutletCount *int32 `json:"power_outlet_count,omitempty"`
- InterfaceCount *int32 `json:"interface_count,omitempty"`
- FrontPortCount *int32 `json:"front_port_count,omitempty"`
- RearPortCount *int32 `json:"rear_port_count,omitempty"`
- DeviceBayCount *int32 `json:"device_bay_count,omitempty"`
- ModuleBayCount *int32 `json:"module_bay_count,omitempty"`
- InventoryItemCount *int32 `json:"inventory_item_count,omitempty"`
- AdditionalProperties map[string]interface{}
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ConsolePortCount *int32 `json:"console_port_count,omitempty"`
+ ConsoleServerPortCount *int32 `json:"console_server_port_count,omitempty"`
+ PowerPortCount *int32 `json:"power_port_count,omitempty"`
+ PowerOutletCount *int32 `json:"power_outlet_count,omitempty"`
+ InterfaceCount *int32 `json:"interface_count,omitempty"`
+ FrontPortCount *int32 `json:"front_port_count,omitempty"`
+ RearPortCount *int32 `json:"rear_port_count,omitempty"`
+ DeviceBayCount *int32 `json:"device_bay_count,omitempty"`
+ ModuleBayCount *int32 `json:"module_bay_count,omitempty"`
+ InventoryItemCount *int32 `json:"inventory_item_count,omitempty"`
+ AdditionalProperties map[string]interface{}
}
type _Device Device
@@ -125,7 +125,6 @@ func (o *Device) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Device) GetUrl() string {
if o == nil {
@@ -150,7 +149,6 @@ func (o *Device) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Device) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -207,7 +205,6 @@ func (o *Device) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
// If the value is explicit nil, the zero value for string will be returned
func (o *Device) GetName() string {
@@ -234,7 +231,6 @@ func (o *Device) SetName(v string) {
o.Name.Set(&v)
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
func (o *Device) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType) {
@@ -331,6 +327,7 @@ func (o *Device) HasTenant() bool {
func (o *Device) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Device) SetTenantNil() {
o.Tenant.Set(nil)
@@ -373,6 +370,7 @@ func (o *Device) HasPlatform() bool {
func (o *Device) SetPlatform(v BriefPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *Device) SetPlatformNil() {
o.Platform.Set(nil)
@@ -447,6 +445,7 @@ func (o *Device) HasAssetTag() bool {
func (o *Device) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *Device) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -521,6 +520,7 @@ func (o *Device) HasLocation() bool {
func (o *Device) SetLocation(v BriefLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *Device) SetLocationNil() {
o.Location.Set(nil)
@@ -563,6 +563,7 @@ func (o *Device) HasRack() bool {
func (o *Device) SetRack(v BriefRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *Device) SetRackNil() {
o.Rack.Set(nil)
@@ -605,6 +606,7 @@ func (o *Device) HasPosition() bool {
func (o *Device) SetPosition(v float64) {
o.Position.Set(&v)
}
+
// SetPositionNil sets the value for Position to be an explicit nil
func (o *Device) SetPositionNil() {
o.Position.Set(nil)
@@ -679,6 +681,7 @@ func (o *Device) HasLatitude() bool {
func (o *Device) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *Device) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -721,6 +724,7 @@ func (o *Device) HasLongitude() bool {
func (o *Device) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *Device) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -763,6 +767,7 @@ func (o *Device) HasParentDevice() bool {
func (o *Device) SetParentDevice(v NestedDevice) {
o.ParentDevice.Set(&v)
}
+
// SetParentDeviceNil sets the value for ParentDevice to be an explicit nil
func (o *Device) SetParentDeviceNil() {
o.ParentDevice.Set(nil)
@@ -869,6 +874,7 @@ func (o *Device) HasPrimaryIp() bool {
func (o *Device) SetPrimaryIp(v BriefIPAddress) {
o.PrimaryIp.Set(&v)
}
+
// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil
func (o *Device) SetPrimaryIpNil() {
o.PrimaryIp.Set(nil)
@@ -911,6 +917,7 @@ func (o *Device) HasPrimaryIp4() bool {
func (o *Device) SetPrimaryIp4(v BriefIPAddress) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *Device) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -953,6 +960,7 @@ func (o *Device) HasPrimaryIp6() bool {
func (o *Device) SetPrimaryIp6(v BriefIPAddress) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *Device) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -995,6 +1003,7 @@ func (o *Device) HasOobIp() bool {
func (o *Device) SetOobIp(v BriefIPAddress) {
o.OobIp.Set(&v)
}
+
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *Device) SetOobIpNil() {
o.OobIp.Set(nil)
@@ -1037,6 +1046,7 @@ func (o *Device) HasCluster() bool {
func (o *Device) SetCluster(v BriefCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *Device) SetClusterNil() {
o.Cluster.Set(nil)
@@ -1079,6 +1089,7 @@ func (o *Device) HasVirtualChassis() bool {
func (o *Device) SetVirtualChassis(v BriefVirtualChassis) {
o.VirtualChassis.Set(&v)
}
+
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *Device) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
@@ -1121,6 +1132,7 @@ func (o *Device) HasVcPosition() bool {
func (o *Device) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
+
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *Device) SetVcPositionNil() {
o.VcPosition.Set(nil)
@@ -1163,6 +1175,7 @@ func (o *Device) HasVcPriority() bool {
func (o *Device) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
+
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *Device) SetVcPriorityNil() {
o.VcPriority.Set(nil)
@@ -1197,7 +1210,6 @@ func (o *Device) SetDescription(v string) {
o.Description = v
}
-
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *Device) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -1262,6 +1274,7 @@ func (o *Device) HasConfigTemplate() bool {
func (o *Device) SetConfigTemplate(v BriefConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *Device) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1401,6 +1414,7 @@ func (o *Device) HasCreated() bool {
func (o *Device) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Device) SetCreatedNil() {
o.Created.Set(nil)
@@ -1443,6 +1457,7 @@ func (o *Device) HasLastUpdated() bool {
func (o *Device) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Device) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1774,7 +1789,7 @@ func (o *Device) SetInventoryItemCount(v int32) {
}
func (o Device) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1936,32 +1951,31 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -2066,5 +2080,3 @@ func (v *NullableDevice) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_airflow.go b/model_device_airflow.go
index 519ad4628..b07ffa5c8 100644
--- a/model_device_airflow.go
+++ b/model_device_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceAirflow{}
// DeviceAirflow struct for DeviceAirflow
type DeviceAirflow struct {
- Value *DeviceAirflowValue `json:"value,omitempty"`
- Label *DeviceAirflowLabel `json:"label,omitempty"`
+ Value *DeviceAirflowValue `json:"value,omitempty"`
+ Label *DeviceAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceAirflow) SetLabel(v DeviceAirflowLabel) {
}
func (o DeviceAirflow) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go
index e1d0322e5..3534b05c4 100644
--- a/model_device_airflow_label.go
+++ b/model_device_airflow_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,12 +24,12 @@ const (
DEVICEAIRFLOWLABEL_REAR_TO_FRONT DeviceAirflowLabel = "Rear to front"
DEVICEAIRFLOWLABEL_LEFT_TO_RIGHT DeviceAirflowLabel = "Left to right"
DEVICEAIRFLOWLABEL_RIGHT_TO_LEFT DeviceAirflowLabel = "Right to left"
- DEVICEAIRFLOWLABEL_SIDE_TO_REAR DeviceAirflowLabel = "Side to rear"
- DEVICEAIRFLOWLABEL_REAR_TO_SIDE DeviceAirflowLabel = "Rear to side"
+ DEVICEAIRFLOWLABEL_SIDE_TO_REAR DeviceAirflowLabel = "Side to rear"
+ DEVICEAIRFLOWLABEL_REAR_TO_SIDE DeviceAirflowLabel = "Rear to side"
DEVICEAIRFLOWLABEL_BOTTOM_TO_TOP DeviceAirflowLabel = "Bottom to top"
DEVICEAIRFLOWLABEL_TOP_TO_BOTTOM DeviceAirflowLabel = "Top to bottom"
- DEVICEAIRFLOWLABEL_PASSIVE DeviceAirflowLabel = "Passive"
- DEVICEAIRFLOWLABEL_MIXED DeviceAirflowLabel = "Mixed"
+ DEVICEAIRFLOWLABEL_PASSIVE DeviceAirflowLabel = "Passive"
+ DEVICEAIRFLOWLABEL_MIXED DeviceAirflowLabel = "Mixed"
)
// All allowed values of DeviceAirflowLabel enum
@@ -124,4 +124,3 @@ func (v *NullableDeviceAirflowLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go
index e0670fc4a..3fa34758c 100644
--- a/model_device_airflow_value.go
+++ b/model_device_airflow_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,13 +24,13 @@ const (
DEVICEAIRFLOWVALUE_REAR_TO_FRONT DeviceAirflowValue = "rear-to-front"
DEVICEAIRFLOWVALUE_LEFT_TO_RIGHT DeviceAirflowValue = "left-to-right"
DEVICEAIRFLOWVALUE_RIGHT_TO_LEFT DeviceAirflowValue = "right-to-left"
- DEVICEAIRFLOWVALUE_SIDE_TO_REAR DeviceAirflowValue = "side-to-rear"
- DEVICEAIRFLOWVALUE_REAR_TO_SIDE DeviceAirflowValue = "rear-to-side"
+ DEVICEAIRFLOWVALUE_SIDE_TO_REAR DeviceAirflowValue = "side-to-rear"
+ DEVICEAIRFLOWVALUE_REAR_TO_SIDE DeviceAirflowValue = "rear-to-side"
DEVICEAIRFLOWVALUE_BOTTOM_TO_TOP DeviceAirflowValue = "bottom-to-top"
DEVICEAIRFLOWVALUE_TOP_TO_BOTTOM DeviceAirflowValue = "top-to-bottom"
- DEVICEAIRFLOWVALUE_PASSIVE DeviceAirflowValue = "passive"
- DEVICEAIRFLOWVALUE_MIXED DeviceAirflowValue = "mixed"
- DEVICEAIRFLOWVALUE_EMPTY DeviceAirflowValue = ""
+ DEVICEAIRFLOWVALUE_PASSIVE DeviceAirflowValue = "passive"
+ DEVICEAIRFLOWVALUE_MIXED DeviceAirflowValue = "mixed"
+ DEVICEAIRFLOWVALUE_EMPTY DeviceAirflowValue = ""
)
// All allowed values of DeviceAirflowValue enum
@@ -126,4 +126,3 @@ 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 8d0372c55..5bd6d4580 100644
--- a/model_device_bay.go
+++ b/model_device_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DeviceBay type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &DeviceBay{}
// DeviceBay Adds support for custom fields and tags.
type DeviceBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
+ InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *DeviceBay) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DeviceBay) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *DeviceBay) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DeviceBay) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *DeviceBay) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *DeviceBay) GetDevice() BriefDevice {
if o == nil {
@@ -193,7 +190,6 @@ func (o *DeviceBay) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *DeviceBay) GetName() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *DeviceBay) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *DeviceBay) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -315,6 +310,7 @@ func (o *DeviceBay) HasInstalledDevice() bool {
func (o *DeviceBay) SetInstalledDevice(v BriefDevice) {
o.InstalledDevice.Set(&v)
}
+
// SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
func (o *DeviceBay) SetInstalledDeviceNil() {
o.InstalledDevice.Set(nil)
@@ -421,6 +417,7 @@ func (o *DeviceBay) HasCreated() bool {
func (o *DeviceBay) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceBay) SetCreatedNil() {
o.Created.Set(nil)
@@ -463,6 +460,7 @@ func (o *DeviceBay) HasLastUpdated() bool {
func (o *DeviceBay) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceBay) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -474,7 +472,7 @@ func (o *DeviceBay) UnsetLastUpdated() {
}
func (o DeviceBay) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -534,32 +532,31 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -630,5 +627,3 @@ func (v *NullableDeviceBay) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_bay_request.go b/model_device_bay_request.go
index 1ce9bdd3c..f5f3f7ad1 100644
--- a/model_device_bay_request.go
+++ b/model_device_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{}
// DeviceBayRequest Adds support for custom fields and tags.
type DeviceBayRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
+ InstalledDevice NullableDeviceBayRequestInstalledDevice `json:"installed_device,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest {
+func NewDeviceBayRequest(device BriefInterfaceRequestDevice, name string) *DeviceBayRequest {
this := DeviceBayRequest{}
this.Device = device
this.Name = name
@@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest {
}
// GetDevice returns the Device field value
-func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest {
+func (o *DeviceBayRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *DeviceBayRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -72,11 +72,10 @@ func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) {
+func (o *DeviceBayRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *DeviceBayRequest) GetName() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *DeviceBayRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *DeviceBayRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -167,9 +165,9 @@ func (o *DeviceBayRequest) SetDescription(v string) {
}
// GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest {
+func (o *DeviceBayRequest) GetInstalledDevice() DeviceBayRequestInstalledDevice {
if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret BriefDeviceRequest
+ var ret DeviceBayRequestInstalledDevice
return ret
}
return *o.InstalledDevice.Get()
@@ -178,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest {
// GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceBayRequestInstalledDevice, bool) {
if o == nil {
return nil, false
}
@@ -194,10 +192,11 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool {
return false
}
-// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field.
-func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) {
+// SetInstalledDevice gets a reference to the given NullableDeviceBayRequestInstalledDevice and assigns it to the InstalledDevice field.
+func (o *DeviceBayRequest) SetInstalledDevice(v DeviceBayRequestInstalledDevice) {
o.InstalledDevice.Set(&v)
}
+
// SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
func (o *DeviceBayRequest) SetInstalledDeviceNil() {
o.InstalledDevice.Set(nil)
@@ -273,7 +272,7 @@ func (o *DeviceBayRequest) SetCustomFields(v map[string]interface{}) {
}
func (o DeviceBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -318,32 +317,31 @@ func (o *DeviceBayRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -408,5 +406,3 @@ func (v *NullableDeviceBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_bay_request_installed_device.go b/model_device_bay_request_installed_device.go
new file mode 100644
index 000000000..5e9ce3fcb
--- /dev/null
+++ b/model_device_bay_request_installed_device.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceBayRequestInstalledDevice - struct for DeviceBayRequestInstalledDevice
+type DeviceBayRequestInstalledDevice struct {
+ BriefDeviceRequest *BriefDeviceRequest
+ Int32 *int32
+}
+
+// BriefDeviceRequestAsDeviceBayRequestInstalledDevice is a convenience function that returns BriefDeviceRequest wrapped in DeviceBayRequestInstalledDevice
+func BriefDeviceRequestAsDeviceBayRequestInstalledDevice(v *BriefDeviceRequest) DeviceBayRequestInstalledDevice {
+ return DeviceBayRequestInstalledDevice{
+ BriefDeviceRequest: v,
+ }
+}
+
+// int32AsDeviceBayRequestInstalledDevice is a convenience function that returns int32 wrapped in DeviceBayRequestInstalledDevice
+func Int32AsDeviceBayRequestInstalledDevice(v *int32) DeviceBayRequestInstalledDevice {
+ return DeviceBayRequestInstalledDevice{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceBayRequestInstalledDevice) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefDeviceRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceRequest)
+ if err == nil {
+ jsonBriefDeviceRequest, _ := json.Marshal(dst.BriefDeviceRequest)
+ if string(jsonBriefDeviceRequest) == "{}" { // empty struct
+ dst.BriefDeviceRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceRequest); err != nil {
+ dst.BriefDeviceRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceBayRequestInstalledDevice)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceBayRequestInstalledDevice)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceBayRequestInstalledDevice) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceRequest != nil {
+ return json.Marshal(&src.BriefDeviceRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceBayRequestInstalledDevice) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceRequest != nil {
+ return obj.BriefDeviceRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceBayRequestInstalledDevice struct {
+ value *DeviceBayRequestInstalledDevice
+ isSet bool
+}
+
+func (v NullableDeviceBayRequestInstalledDevice) Get() *DeviceBayRequestInstalledDevice {
+ return v.value
+}
+
+func (v *NullableDeviceBayRequestInstalledDevice) Set(val *DeviceBayRequestInstalledDevice) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceBayRequestInstalledDevice) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceBayRequestInstalledDevice) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceBayRequestInstalledDevice(val *DeviceBayRequestInstalledDevice) *NullableDeviceBayRequestInstalledDevice {
+ return &NullableDeviceBayRequestInstalledDevice{value: val, isSet: true}
+}
+
+func (v NullableDeviceBayRequestInstalledDevice) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceBayRequestInstalledDevice) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_bay_template.go b/model_device_bay_template.go
index 12756a3a3..4d91e00ec 100644
--- a/model_device_bay_template.go
+++ b/model_device_bay_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DeviceBayTemplate type satisfies the MappedNullable interface at compile time
@@ -21,17 +21,17 @@ var _ MappedNullable = &DeviceBayTemplate{}
// DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type DeviceBayTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType BriefDeviceType `json:"device_type"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *DeviceBayTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DeviceBayTemplate) GetUrl() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *DeviceBayTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *DeviceBayTemplate) GetDisplay() string {
if o == nil {
@@ -133,7 +131,6 @@ func (o *DeviceBayTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value
func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType {
if o == nil {
@@ -158,7 +155,6 @@ func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType = v
}
-
// GetName returns the Name field value
func (o *DeviceBayTemplate) GetName() string {
if o == nil {
@@ -183,7 +179,6 @@ func (o *DeviceBayTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *DeviceBayTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -280,6 +275,7 @@ func (o *DeviceBayTemplate) HasCreated() bool {
func (o *DeviceBayTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceBayTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -322,6 +318,7 @@ func (o *DeviceBayTemplate) HasLastUpdated() bool {
func (o *DeviceBayTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceBayTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -333,7 +330,7 @@ func (o *DeviceBayTemplate) UnsetLastUpdated() {
}
func (o DeviceBayTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -381,32 +378,31 @@ func (o *DeviceBayTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -473,5 +469,3 @@ func (v *NullableDeviceBayTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go
index 55f0c6c6b..ab4f5bb4a 100644
--- a/model_device_bay_template_request.go
+++ b/model_device_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &DeviceBayTemplateRequest{}
// DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type DeviceBayTemplateRequest struct {
- DeviceType BriefDeviceTypeRequest `json:"device_type"`
+ DeviceType DeviceBayTemplateRequestDeviceType `json:"device_type"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest {
+func NewDeviceBayTemplateRequest(deviceType DeviceBayTemplateRequestDeviceType, name string) *DeviceBayTemplateRequest {
this := DeviceBayTemplateRequest{}
this.DeviceType = deviceType
this.Name = name
@@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest {
}
// GetDeviceType returns the DeviceType field value
-func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
@@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, b
}
// SetDeviceType sets field value
-func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = v
}
-
// GetName returns the Name field value
func (o *DeviceBayTemplateRequest) GetName() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *DeviceBayTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *DeviceBayTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -165,7 +163,7 @@ func (o *DeviceBayTemplateRequest) SetDescription(v string) {
}
func (o DeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -201,32 +199,31 @@ func (o *DeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -288,5 +285,3 @@ func (v *NullableDeviceBayTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_bay_template_request_device_type.go b/model_device_bay_template_request_device_type.go
new file mode 100644
index 000000000..0a0fe0c07
--- /dev/null
+++ b/model_device_bay_template_request_device_type.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceBayTemplateRequestDeviceType - struct for DeviceBayTemplateRequestDeviceType
+type DeviceBayTemplateRequestDeviceType struct {
+ BriefDeviceTypeRequest *BriefDeviceTypeRequest
+ Int32 *int32
+}
+
+// BriefDeviceTypeRequestAsDeviceBayTemplateRequestDeviceType is a convenience function that returns BriefDeviceTypeRequest wrapped in DeviceBayTemplateRequestDeviceType
+func BriefDeviceTypeRequestAsDeviceBayTemplateRequestDeviceType(v *BriefDeviceTypeRequest) DeviceBayTemplateRequestDeviceType {
+ return DeviceBayTemplateRequestDeviceType{
+ BriefDeviceTypeRequest: v,
+ }
+}
+
+// int32AsDeviceBayTemplateRequestDeviceType is a convenience function that returns int32 wrapped in DeviceBayTemplateRequestDeviceType
+func Int32AsDeviceBayTemplateRequestDeviceType(v *int32) DeviceBayTemplateRequestDeviceType {
+ return DeviceBayTemplateRequestDeviceType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceBayTemplateRequestDeviceType) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefDeviceTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceTypeRequest)
+ if err == nil {
+ jsonBriefDeviceTypeRequest, _ := json.Marshal(dst.BriefDeviceTypeRequest)
+ if string(jsonBriefDeviceTypeRequest) == "{}" { // empty struct
+ dst.BriefDeviceTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceTypeRequest); err != nil {
+ dst.BriefDeviceTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceBayTemplateRequestDeviceType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceBayTemplateRequestDeviceType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceBayTemplateRequestDeviceType) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceTypeRequest != nil {
+ return json.Marshal(&src.BriefDeviceTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceBayTemplateRequestDeviceType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceTypeRequest != nil {
+ return obj.BriefDeviceTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceBayTemplateRequestDeviceType struct {
+ value *DeviceBayTemplateRequestDeviceType
+ isSet bool
+}
+
+func (v NullableDeviceBayTemplateRequestDeviceType) Get() *DeviceBayTemplateRequestDeviceType {
+ return v.value
+}
+
+func (v *NullableDeviceBayTemplateRequestDeviceType) Set(val *DeviceBayTemplateRequestDeviceType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceBayTemplateRequestDeviceType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceBayTemplateRequestDeviceType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceBayTemplateRequestDeviceType(val *DeviceBayTemplateRequestDeviceType) *NullableDeviceBayTemplateRequestDeviceType {
+ return &NullableDeviceBayTemplateRequestDeviceType{value: val, isSet: true}
+}
+
+func (v NullableDeviceBayTemplateRequestDeviceType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceBayTemplateRequestDeviceType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_face.go b/model_device_face.go
index 4164683f7..d9ebe5c3a 100644
--- a/model_device_face.go
+++ b/model_device_face.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceFace{}
// DeviceFace struct for DeviceFace
type DeviceFace struct {
- Value *DeviceFaceValue `json:"value,omitempty"`
- Label *DeviceFaceLabel `json:"label,omitempty"`
+ Value *DeviceFaceValue `json:"value,omitempty"`
+ Label *DeviceFaceLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceFace) SetLabel(v DeviceFaceLabel) {
}
func (o DeviceFace) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceFace) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_face_label.go b/model_device_face_label.go
index f7daeafe1..a7e0b45da 100644
--- a/model_device_face_label.go
+++ b/model_device_face_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DeviceFaceLabel string
// List of Device_face_label
const (
DEVICEFACELABEL_FRONT DeviceFaceLabel = "Front"
- DEVICEFACELABEL_REAR DeviceFaceLabel = "Rear"
+ DEVICEFACELABEL_REAR DeviceFaceLabel = "Rear"
)
// All allowed values of DeviceFaceLabel enum
@@ -108,4 +108,3 @@ func (v *NullableDeviceFaceLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_device_face_value.go b/model_device_face_value.go
index 6f96b8508..c53f2b4a3 100644
--- a/model_device_face_value.go
+++ b/model_device_face_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DeviceFaceValue string
// List of Device_face_value
const (
DEVICEFACEVALUE_FRONT DeviceFaceValue = "front"
- DEVICEFACEVALUE_REAR DeviceFaceValue = "rear"
+ DEVICEFACEVALUE_REAR DeviceFaceValue = "rear"
DEVICEFACEVALUE_EMPTY DeviceFaceValue = ""
)
@@ -110,4 +110,3 @@ 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 e2657f800..1ccea4944 100644
--- a/model_device_role.go
+++ b/model_device_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,32 +12,35 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DeviceRole type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DeviceRole{}
-// DeviceRole Adds support for custom fields and tags.
+// DeviceRole Extends PrimaryModelSerializer to include MPTT support.
type DeviceRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
+ Parent NullableNestedDeviceRole `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -47,13 +50,14 @@ type _DeviceRole DeviceRole
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceRole(id int32, url string, display string, name string, slug string) *DeviceRole {
+func NewDeviceRole(id int32, url string, display string, name string, slug string, depth int32) *DeviceRole {
this := DeviceRole{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
+ this.Depth = depth
return &this
}
@@ -89,7 +93,6 @@ func (o *DeviceRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DeviceRole) GetUrl() string {
if o == nil {
@@ -114,7 +117,6 @@ func (o *DeviceRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DeviceRole) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +173,6 @@ func (o *DeviceRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *DeviceRole) GetName() string {
if o == nil {
@@ -196,7 +197,6 @@ func (o *DeviceRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *DeviceRole) GetSlug() string {
if o == nil {
@@ -221,7 +221,6 @@ func (o *DeviceRole) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *DeviceRole) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -318,6 +317,7 @@ func (o *DeviceRole) HasConfigTemplate() bool {
func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *DeviceRole) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -328,6 +328,49 @@ func (o *DeviceRole) UnsetConfigTemplate() {
o.ConfigTemplate.Unset()
}
+// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DeviceRole) GetParent() NestedDeviceRole {
+ if o == nil || IsNil(o.Parent.Get()) {
+ var ret NestedDeviceRole
+ return ret
+ }
+ return *o.Parent.Get()
+}
+
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *DeviceRole) GetParentOk() (*NestedDeviceRole, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Parent.Get(), o.Parent.IsSet()
+}
+
+// HasParent returns a boolean if a field has been set.
+func (o *DeviceRole) HasParent() bool {
+ if o != nil && o.Parent.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetParent gets a reference to the given NullableNestedDeviceRole and assigns it to the Parent field.
+func (o *DeviceRole) SetParent(v NestedDeviceRole) {
+ o.Parent.Set(&v)
+}
+
+// SetParentNil sets the value for Parent to be an explicit nil
+func (o *DeviceRole) SetParentNil() {
+ o.Parent.Set(nil)
+}
+
+// UnsetParent ensures that no value is present for Parent, not even an explicit nil
+func (o *DeviceRole) UnsetParent() {
+ o.Parent.Unset()
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DeviceRole) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -456,6 +499,7 @@ func (o *DeviceRole) HasCreated() bool {
func (o *DeviceRole) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceRole) SetCreatedNil() {
o.Created.Set(nil)
@@ -498,6 +542,7 @@ func (o *DeviceRole) HasLastUpdated() bool {
func (o *DeviceRole) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceRole) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -572,8 +617,64 @@ func (o *DeviceRole) SetVirtualmachineCount(v int64) {
o.VirtualmachineCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetDepth returns the Depth field value
+func (o *DeviceRole) GetDepth() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Depth
+}
+
+// GetDepthOk returns a tuple with the Depth field value
+// and a boolean to check if the value has been set.
+func (o *DeviceRole) GetDepthOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Depth, true
+}
+
+// SetDepth sets field value
+func (o *DeviceRole) SetDepth(v int32) {
+ o.Depth = v
+}
+
func (o DeviceRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -599,6 +700,9 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) {
if o.ConfigTemplate.IsSet() {
toSerialize["config_template"] = o.ConfigTemplate.Get()
}
+ if o.Parent.IsSet() {
+ toSerialize["parent"] = o.Parent.Get()
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -620,6 +724,10 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) {
if !IsNil(o.VirtualmachineCount) {
toSerialize["virtualmachine_count"] = o.VirtualmachineCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -638,36 +746,36 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
+ "_depth",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -693,6 +801,7 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "color")
delete(additionalProperties, "vm_role")
delete(additionalProperties, "config_template")
+ delete(additionalProperties, "parent")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -700,6 +809,8 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "last_updated")
delete(additionalProperties, "device_count")
delete(additionalProperties, "virtualmachine_count")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -741,5 +852,3 @@ func (v *NullableDeviceRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_role_request.go b/model_device_role_request.go
index 4394222b2..493f94ed9 100644
--- a/model_device_role_request.go
+++ b/model_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -18,17 +18,19 @@ import (
// checks if the DeviceRoleRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DeviceRoleRequest{}
-// DeviceRoleRequest Adds support for custom fields and tags.
+// DeviceRoleRequest Extends PrimaryModelSerializer to include MPTT support.
type DeviceRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
+ Parent NullableNestedDeviceRoleRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +79,6 @@ func (o *DeviceRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *DeviceRoleRequest) GetSlug() string {
if o == nil {
@@ -102,7 +103,6 @@ func (o *DeviceRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *DeviceRoleRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -168,9 +168,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *DeviceRoleRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -179,7 +179,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest {
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *DeviceRoleRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -195,10 +195,11 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *DeviceRoleRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *DeviceRoleRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -209,6 +210,49 @@ func (o *DeviceRoleRequest) UnsetConfigTemplate() {
o.ConfigTemplate.Unset()
}
+// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *DeviceRoleRequest) GetParent() NestedDeviceRoleRequest {
+ if o == nil || IsNil(o.Parent.Get()) {
+ var ret NestedDeviceRoleRequest
+ return ret
+ }
+ return *o.Parent.Get()
+}
+
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *DeviceRoleRequest) GetParentOk() (*NestedDeviceRoleRequest, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Parent.Get(), o.Parent.IsSet()
+}
+
+// HasParent returns a boolean if a field has been set.
+func (o *DeviceRoleRequest) HasParent() bool {
+ if o != nil && o.Parent.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetParent gets a reference to the given NullableNestedDeviceRoleRequest and assigns it to the Parent field.
+func (o *DeviceRoleRequest) SetParent(v NestedDeviceRoleRequest) {
+ o.Parent.Set(&v)
+}
+
+// SetParentNil sets the value for Parent to be an explicit nil
+func (o *DeviceRoleRequest) SetParentNil() {
+ o.Parent.Set(nil)
+}
+
+// UnsetParent ensures that no value is present for Parent, not even an explicit nil
+func (o *DeviceRoleRequest) UnsetParent() {
+ o.Parent.Unset()
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DeviceRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -305,8 +349,40 @@ func (o *DeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *DeviceRoleRequest) 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 *DeviceRoleRequest) 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 *DeviceRoleRequest) 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 *DeviceRoleRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o DeviceRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -326,6 +402,9 @@ func (o DeviceRoleRequest) ToMap() (map[string]interface{}, error) {
if o.ConfigTemplate.IsSet() {
toSerialize["config_template"] = o.ConfigTemplate.Get()
}
+ if o.Parent.IsSet() {
+ toSerialize["parent"] = o.Parent.Get()
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -335,6 +414,9 @@ func (o DeviceRoleRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -354,32 +436,31 @@ func (o *DeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -401,9 +482,11 @@ func (o *DeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "color")
delete(additionalProperties, "vm_role")
delete(additionalProperties, "config_template")
+ delete(additionalProperties, "parent")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -445,5 +528,3 @@ func (v *NullableDeviceRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_role_request_config_template.go b/model_device_role_request_config_template.go
new file mode 100644
index 000000000..961cf2050
--- /dev/null
+++ b/model_device_role_request_config_template.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceRoleRequestConfigTemplate - struct for DeviceRoleRequestConfigTemplate
+type DeviceRoleRequestConfigTemplate struct {
+ BriefConfigTemplateRequest *BriefConfigTemplateRequest
+ Int32 *int32
+}
+
+// BriefConfigTemplateRequestAsDeviceRoleRequestConfigTemplate is a convenience function that returns BriefConfigTemplateRequest wrapped in DeviceRoleRequestConfigTemplate
+func BriefConfigTemplateRequestAsDeviceRoleRequestConfigTemplate(v *BriefConfigTemplateRequest) DeviceRoleRequestConfigTemplate {
+ return DeviceRoleRequestConfigTemplate{
+ BriefConfigTemplateRequest: v,
+ }
+}
+
+// int32AsDeviceRoleRequestConfigTemplate is a convenience function that returns int32 wrapped in DeviceRoleRequestConfigTemplate
+func Int32AsDeviceRoleRequestConfigTemplate(v *int32) DeviceRoleRequestConfigTemplate {
+ return DeviceRoleRequestConfigTemplate{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceRoleRequestConfigTemplate) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefConfigTemplateRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefConfigTemplateRequest)
+ if err == nil {
+ jsonBriefConfigTemplateRequest, _ := json.Marshal(dst.BriefConfigTemplateRequest)
+ if string(jsonBriefConfigTemplateRequest) == "{}" { // empty struct
+ dst.BriefConfigTemplateRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefConfigTemplateRequest); err != nil {
+ dst.BriefConfigTemplateRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefConfigTemplateRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefConfigTemplateRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceRoleRequestConfigTemplate)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceRoleRequestConfigTemplate)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceRoleRequestConfigTemplate) MarshalJSON() ([]byte, error) {
+ if src.BriefConfigTemplateRequest != nil {
+ return json.Marshal(&src.BriefConfigTemplateRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceRoleRequestConfigTemplate) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefConfigTemplateRequest != nil {
+ return obj.BriefConfigTemplateRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceRoleRequestConfigTemplate struct {
+ value *DeviceRoleRequestConfigTemplate
+ isSet bool
+}
+
+func (v NullableDeviceRoleRequestConfigTemplate) Get() *DeviceRoleRequestConfigTemplate {
+ return v.value
+}
+
+func (v *NullableDeviceRoleRequestConfigTemplate) Set(val *DeviceRoleRequestConfigTemplate) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceRoleRequestConfigTemplate) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceRoleRequestConfigTemplate) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceRoleRequestConfigTemplate(val *DeviceRoleRequestConfigTemplate) *NullableDeviceRoleRequestConfigTemplate {
+ return &NullableDeviceRoleRequestConfigTemplate{value: val, isSet: true}
+}
+
+func (v NullableDeviceRoleRequestConfigTemplate) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceRoleRequestConfigTemplate) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_status.go b/model_device_status.go
index 7628b97ca..3254204b0 100644
--- a/model_device_status.go
+++ b/model_device_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceStatus{}
// DeviceStatus struct for DeviceStatus
type DeviceStatus struct {
- Value *DeviceStatusValue `json:"value,omitempty"`
- Label *DeviceStatusLabel `json:"label,omitempty"`
+ Value *DeviceStatusValue `json:"value,omitempty"`
+ Label *DeviceStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceStatus) SetLabel(v DeviceStatusLabel) {
}
func (o DeviceStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_status_label.go b/model_device_status_label.go
index a4c2f7ead..3d7911a86 100644
--- a/model_device_status_label.go
+++ b/model_device_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type DeviceStatusLabel string
// List of Device_status_label
const (
- DEVICESTATUSLABEL_OFFLINE DeviceStatusLabel = "Offline"
- DEVICESTATUSLABEL_ACTIVE DeviceStatusLabel = "Active"
- DEVICESTATUSLABEL_PLANNED DeviceStatusLabel = "Planned"
- DEVICESTATUSLABEL_STAGED DeviceStatusLabel = "Staged"
- DEVICESTATUSLABEL_FAILED DeviceStatusLabel = "Failed"
- DEVICESTATUSLABEL_INVENTORY DeviceStatusLabel = "Inventory"
+ DEVICESTATUSLABEL_OFFLINE DeviceStatusLabel = "Offline"
+ DEVICESTATUSLABEL_ACTIVE DeviceStatusLabel = "Active"
+ DEVICESTATUSLABEL_PLANNED DeviceStatusLabel = "Planned"
+ DEVICESTATUSLABEL_STAGED DeviceStatusLabel = "Staged"
+ DEVICESTATUSLABEL_FAILED DeviceStatusLabel = "Failed"
+ DEVICESTATUSLABEL_INVENTORY DeviceStatusLabel = "Inventory"
DEVICESTATUSLABEL_DECOMMISSIONING DeviceStatusLabel = "Decommissioning"
)
@@ -118,4 +118,3 @@ func (v *NullableDeviceStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_device_status_value.go b/model_device_status_value.go
index de503ca73..b23f93eeb 100644
--- a/model_device_status_value.go
+++ b/model_device_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type DeviceStatusValue string
// List of Device_status_value
const (
- DEVICESTATUSVALUE_OFFLINE DeviceStatusValue = "offline"
- DEVICESTATUSVALUE_ACTIVE DeviceStatusValue = "active"
- DEVICESTATUSVALUE_PLANNED DeviceStatusValue = "planned"
- DEVICESTATUSVALUE_STAGED DeviceStatusValue = "staged"
- DEVICESTATUSVALUE_FAILED DeviceStatusValue = "failed"
- DEVICESTATUSVALUE_INVENTORY DeviceStatusValue = "inventory"
+ DEVICESTATUSVALUE_OFFLINE DeviceStatusValue = "offline"
+ DEVICESTATUSVALUE_ACTIVE DeviceStatusValue = "active"
+ DEVICESTATUSVALUE_PLANNED DeviceStatusValue = "planned"
+ DEVICESTATUSVALUE_STAGED DeviceStatusValue = "staged"
+ DEVICESTATUSVALUE_FAILED DeviceStatusValue = "failed"
+ DEVICESTATUSVALUE_INVENTORY DeviceStatusValue = "inventory"
DEVICESTATUSVALUE_DECOMMISSIONING DeviceStatusValue = "decommissioning"
)
@@ -118,4 +118,3 @@ 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 c939f345e..a563689d0 100644
--- a/model_device_type.go
+++ b/model_device_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DeviceType type satisfies the MappedNullable interface at compile time
@@ -21,45 +21,45 @@ var _ MappedNullable = &DeviceType{}
// DeviceType Adds support for custom fields and tags.
type DeviceType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- UHeight *float64 `json:"u_height,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ UHeight *float64 `json:"u_height,omitempty"`
// Devices of this type are excluded when calculating rack utilization.
ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"`
// Device consumes both front and rear rack faces.
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"`
- Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
- FrontImage NullableString `json:"front_image,omitempty"`
- RearImage NullableString `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- ConsolePortTemplateCount int32 `json:"console_port_template_count"`
- ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"`
- PowerPortTemplateCount int32 `json:"power_port_template_count"`
- PowerOutletTemplateCount int32 `json:"power_outlet_template_count"`
- InterfaceTemplateCount int32 `json:"interface_template_count"`
- FrontPortTemplateCount int32 `json:"front_port_template_count"`
- RearPortTemplateCount int32 `json:"rear_port_template_count"`
- DeviceBayTemplateCount int32 `json:"device_bay_template_count"`
- ModuleBayTemplateCount int32 `json:"module_bay_template_count"`
- InventoryItemTemplateCount int32 `json:"inventory_item_template_count"`
- AdditionalProperties map[string]interface{}
+ IsFullDepth *bool `json:"is_full_depth,omitempty"`
+ SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"`
+ Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
+ FrontImage NullableString `json:"front_image,omitempty"`
+ RearImage NullableString `json:"rear_image,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ ConsolePortTemplateCount int32 `json:"console_port_template_count"`
+ ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"`
+ PowerPortTemplateCount int32 `json:"power_port_template_count"`
+ PowerOutletTemplateCount int32 `json:"power_outlet_template_count"`
+ InterfaceTemplateCount int32 `json:"interface_template_count"`
+ FrontPortTemplateCount int32 `json:"front_port_template_count"`
+ RearPortTemplateCount int32 `json:"rear_port_template_count"`
+ DeviceBayTemplateCount int32 `json:"device_bay_template_count"`
+ ModuleBayTemplateCount int32 `json:"module_bay_template_count"`
+ InventoryItemTemplateCount int32 `json:"inventory_item_template_count"`
+ AdditionalProperties map[string]interface{}
}
type _DeviceType DeviceType
@@ -125,7 +125,6 @@ func (o *DeviceType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DeviceType) GetUrl() string {
if o == nil {
@@ -150,7 +149,6 @@ func (o *DeviceType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DeviceType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -207,7 +205,6 @@ func (o *DeviceType) SetDisplay(v string) {
o.Display = v
}
-
// GetManufacturer returns the Manufacturer field value
func (o *DeviceType) GetManufacturer() BriefManufacturer {
if o == nil {
@@ -232,7 +229,6 @@ func (o *DeviceType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceType) GetDefaultPlatform() BriefPlatform {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
@@ -265,6 +261,7 @@ func (o *DeviceType) HasDefaultPlatform() bool {
func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) {
o.DefaultPlatform.Set(&v)
}
+
// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
func (o *DeviceType) SetDefaultPlatformNil() {
o.DefaultPlatform.Set(nil)
@@ -299,7 +296,6 @@ func (o *DeviceType) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *DeviceType) GetSlug() string {
if o == nil {
@@ -324,7 +320,6 @@ func (o *DeviceType) SetSlug(v string) {
o.Slug = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *DeviceType) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -485,6 +480,7 @@ func (o *DeviceType) HasSubdeviceRole() bool {
func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) {
o.SubdeviceRole.Set(&v)
}
+
// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil
func (o *DeviceType) SetSubdeviceRoleNil() {
o.SubdeviceRole.Set(nil)
@@ -527,6 +523,7 @@ func (o *DeviceType) HasAirflow() bool {
func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *DeviceType) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -569,6 +566,7 @@ func (o *DeviceType) HasWeight() bool {
func (o *DeviceType) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *DeviceType) SetWeightNil() {
o.Weight.Set(nil)
@@ -611,6 +609,7 @@ func (o *DeviceType) HasWeightUnit() bool {
func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *DeviceType) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -653,6 +652,7 @@ func (o *DeviceType) HasFrontImage() bool {
func (o *DeviceType) SetFrontImage(v string) {
o.FrontImage.Set(&v)
}
+
// SetFrontImageNil sets the value for FrontImage to be an explicit nil
func (o *DeviceType) SetFrontImageNil() {
o.FrontImage.Set(nil)
@@ -695,6 +695,7 @@ func (o *DeviceType) HasRearImage() bool {
func (o *DeviceType) SetRearImage(v string) {
o.RearImage.Set(&v)
}
+
// SetRearImageNil sets the value for RearImage to be an explicit nil
func (o *DeviceType) SetRearImageNil() {
o.RearImage.Set(nil)
@@ -865,6 +866,7 @@ func (o *DeviceType) HasCreated() bool {
func (o *DeviceType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceType) SetCreatedNil() {
o.Created.Set(nil)
@@ -907,6 +909,7 @@ func (o *DeviceType) HasLastUpdated() bool {
func (o *DeviceType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -973,7 +976,6 @@ func (o *DeviceType) SetConsolePortTemplateCount(v int32) {
o.ConsolePortTemplateCount = v
}
-
// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value
func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 {
if o == nil {
@@ -998,7 +1000,6 @@ func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) {
o.ConsoleServerPortTemplateCount = v
}
-
// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value
func (o *DeviceType) GetPowerPortTemplateCount() int32 {
if o == nil {
@@ -1023,7 +1024,6 @@ func (o *DeviceType) SetPowerPortTemplateCount(v int32) {
o.PowerPortTemplateCount = v
}
-
// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value
func (o *DeviceType) GetPowerOutletTemplateCount() int32 {
if o == nil {
@@ -1048,7 +1048,6 @@ func (o *DeviceType) SetPowerOutletTemplateCount(v int32) {
o.PowerOutletTemplateCount = v
}
-
// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value
func (o *DeviceType) GetInterfaceTemplateCount() int32 {
if o == nil {
@@ -1073,7 +1072,6 @@ func (o *DeviceType) SetInterfaceTemplateCount(v int32) {
o.InterfaceTemplateCount = v
}
-
// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value
func (o *DeviceType) GetFrontPortTemplateCount() int32 {
if o == nil {
@@ -1098,7 +1096,6 @@ func (o *DeviceType) SetFrontPortTemplateCount(v int32) {
o.FrontPortTemplateCount = v
}
-
// GetRearPortTemplateCount returns the RearPortTemplateCount field value
func (o *DeviceType) GetRearPortTemplateCount() int32 {
if o == nil {
@@ -1123,7 +1120,6 @@ func (o *DeviceType) SetRearPortTemplateCount(v int32) {
o.RearPortTemplateCount = v
}
-
// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value
func (o *DeviceType) GetDeviceBayTemplateCount() int32 {
if o == nil {
@@ -1148,7 +1144,6 @@ func (o *DeviceType) SetDeviceBayTemplateCount(v int32) {
o.DeviceBayTemplateCount = v
}
-
// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value
func (o *DeviceType) GetModuleBayTemplateCount() int32 {
if o == nil {
@@ -1173,7 +1168,6 @@ func (o *DeviceType) SetModuleBayTemplateCount(v int32) {
o.ModuleBayTemplateCount = v
}
-
// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value
func (o *DeviceType) GetInventoryItemTemplateCount() int32 {
if o == nil {
@@ -1198,9 +1192,8 @@ func (o *DeviceType) SetInventoryItemTemplateCount(v int32) {
o.InventoryItemTemplateCount = v
}
-
func (o DeviceType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1315,32 +1308,31 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1433,5 +1425,3 @@ func (v *NullableDeviceType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go
index 060d83149..0901fdd61 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeAirflow{}
// DeviceTypeAirflow struct for DeviceTypeAirflow
type DeviceTypeAirflow struct {
- Value *DeviceAirflowValue `json:"value,omitempty"`
- Label *DeviceAirflowLabel `json:"label,omitempty"`
+ Value *DeviceAirflowValue `json:"value,omitempty"`
+ Label *DeviceAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) {
}
func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceTypeAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_type_request.go b/model_device_type_request.go
index fa59f54e1..37b0823bf 100644
--- a/model_device_type_request.go
+++ b/model_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "os"
"fmt"
+ "os"
)
// checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time
@@ -21,27 +21,27 @@ var _ MappedNullable = &DeviceTypeRequest{}
// DeviceTypeRequest Adds support for custom fields and tags.
type DeviceTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ DefaultPlatform NullableDeviceTypeRequestDefaultPlatform `json:"default_platform,omitempty"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- UHeight *float64 `json:"u_height,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ UHeight *float64 `json:"u_height,omitempty"`
// Devices of this type are excluded when calculating rack utilization.
ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"`
// Device consumes both front and rear rack faces.
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- SubdeviceRole 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"`
+ 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{}
}
@@ -51,7 +51,7 @@ type _DeviceTypeRequest DeviceTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest {
+func NewDeviceTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string) *DeviceTypeRequest {
this := DeviceTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -72,9 +72,9 @@ func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *DeviceTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -83,7 +83,7 @@ func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -91,15 +91,14 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool
}
// SetManufacturer sets field value
-func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *DeviceTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest {
+func (o *DeviceTypeRequest) GetDefaultPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.DefaultPlatform.Get()
@@ -108,7 +107,7 @@ func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest {
// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -124,10 +123,11 @@ func (o *DeviceTypeRequest) HasDefaultPlatform() bool {
return false
}
-// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field.
-func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) {
+// SetDefaultPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the DefaultPlatform field.
+func (o *DeviceTypeRequest) SetDefaultPlatform(v DeviceTypeRequestDefaultPlatform) {
o.DefaultPlatform.Set(&v)
}
+
// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
func (o *DeviceTypeRequest) SetDefaultPlatformNil() {
o.DefaultPlatform.Set(nil)
@@ -162,7 +162,6 @@ func (o *DeviceTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *DeviceTypeRequest) GetSlug() string {
if o == nil {
@@ -187,7 +186,6 @@ func (o *DeviceTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *DeviceTypeRequest) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -348,6 +346,7 @@ func (o *DeviceTypeRequest) HasSubdeviceRole() bool {
func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) {
o.SubdeviceRole.Set(&v)
}
+
// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil
func (o *DeviceTypeRequest) SetSubdeviceRoleNil() {
o.SubdeviceRole.Set(nil)
@@ -390,6 +389,7 @@ func (o *DeviceTypeRequest) HasAirflow() bool {
func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *DeviceTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -432,6 +432,7 @@ func (o *DeviceTypeRequest) HasWeight() bool {
func (o *DeviceTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *DeviceTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -474,6 +475,7 @@ func (o *DeviceTypeRequest) HasWeightUnit() bool {
func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *DeviceTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -677,7 +679,7 @@ func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -754,32 +756,31 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -855,5 +856,3 @@ func (v *NullableDeviceTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go
index 06411a4d6..4f8b27f44 100644
--- a/model_device_type_request_airflow.go
+++ b/model_device_type_request_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,13 +24,13 @@ const (
DEVICETYPEREQUESTAIRFLOW_REAR_TO_FRONT DeviceTypeRequestAirflow = "rear-to-front"
DEVICETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT DeviceTypeRequestAirflow = "left-to-right"
DEVICETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT DeviceTypeRequestAirflow = "right-to-left"
- DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear"
- DEVICETYPEREQUESTAIRFLOW_REAR_TO_SIDE DeviceTypeRequestAirflow = "rear-to-side"
+ DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear"
+ DEVICETYPEREQUESTAIRFLOW_REAR_TO_SIDE DeviceTypeRequestAirflow = "rear-to-side"
DEVICETYPEREQUESTAIRFLOW_BOTTOM_TO_TOP DeviceTypeRequestAirflow = "bottom-to-top"
DEVICETYPEREQUESTAIRFLOW_TOP_TO_BOTTOM DeviceTypeRequestAirflow = "top-to-bottom"
- DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive"
- DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed"
- DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = ""
+ DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive"
+ DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed"
+ DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = ""
)
// All allowed values of DeviceTypeRequestAirflow enum
@@ -126,4 +126,3 @@ func (v *NullableDeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_device_type_request_default_platform.go b/model_device_type_request_default_platform.go
new file mode 100644
index 000000000..1174b8482
--- /dev/null
+++ b/model_device_type_request_default_platform.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceTypeRequestDefaultPlatform - struct for DeviceTypeRequestDefaultPlatform
+type DeviceTypeRequestDefaultPlatform struct {
+ BriefPlatformRequest *BriefPlatformRequest
+ Int32 *int32
+}
+
+// BriefPlatformRequestAsDeviceTypeRequestDefaultPlatform is a convenience function that returns BriefPlatformRequest wrapped in DeviceTypeRequestDefaultPlatform
+func BriefPlatformRequestAsDeviceTypeRequestDefaultPlatform(v *BriefPlatformRequest) DeviceTypeRequestDefaultPlatform {
+ return DeviceTypeRequestDefaultPlatform{
+ BriefPlatformRequest: v,
+ }
+}
+
+// int32AsDeviceTypeRequestDefaultPlatform is a convenience function that returns int32 wrapped in DeviceTypeRequestDefaultPlatform
+func Int32AsDeviceTypeRequestDefaultPlatform(v *int32) DeviceTypeRequestDefaultPlatform {
+ return DeviceTypeRequestDefaultPlatform{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceTypeRequestDefaultPlatform) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefPlatformRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefPlatformRequest)
+ if err == nil {
+ jsonBriefPlatformRequest, _ := json.Marshal(dst.BriefPlatformRequest)
+ if string(jsonBriefPlatformRequest) == "{}" { // empty struct
+ dst.BriefPlatformRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefPlatformRequest); err != nil {
+ dst.BriefPlatformRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefPlatformRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefPlatformRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceTypeRequestDefaultPlatform)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceTypeRequestDefaultPlatform)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceTypeRequestDefaultPlatform) MarshalJSON() ([]byte, error) {
+ if src.BriefPlatformRequest != nil {
+ return json.Marshal(&src.BriefPlatformRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceTypeRequestDefaultPlatform) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefPlatformRequest != nil {
+ return obj.BriefPlatformRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceTypeRequestDefaultPlatform struct {
+ value *DeviceTypeRequestDefaultPlatform
+ isSet bool
+}
+
+func (v NullableDeviceTypeRequestDefaultPlatform) Get() *DeviceTypeRequestDefaultPlatform {
+ return v.value
+}
+
+func (v *NullableDeviceTypeRequestDefaultPlatform) Set(val *DeviceTypeRequestDefaultPlatform) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceTypeRequestDefaultPlatform) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceTypeRequestDefaultPlatform) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceTypeRequestDefaultPlatform(val *DeviceTypeRequestDefaultPlatform) *NullableDeviceTypeRequestDefaultPlatform {
+ return &NullableDeviceTypeRequestDefaultPlatform{value: val, isSet: true}
+}
+
+func (v NullableDeviceTypeRequestDefaultPlatform) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceTypeRequestDefaultPlatform) 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
index 714911d3b..6ddb17d65 100644
--- a/model_device_type_request_subdevice_role.go
+++ b/model_device_type_request_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type DeviceTypeRequestSubdeviceRole string
// List of DeviceTypeRequest_subdevice_role
const (
DEVICETYPEREQUESTSUBDEVICEROLE_PARENT DeviceTypeRequestSubdeviceRole = "parent"
- DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child"
- DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = ""
+ DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child"
+ DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = ""
)
// All allowed values of DeviceTypeRequestSubdeviceRole enum
@@ -110,4 +110,3 @@ 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
index 04f2c9176..bbb53a2b4 100644
--- a/model_device_type_request_weight_unit.go
+++ b/model_device_type_request_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ 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_KG DeviceTypeRequestWeightUnit = "kg"
+ DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g"
+ DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb"
+ DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz"
DEVICETYPEREQUESTWEIGHTUNIT_EMPTY DeviceTypeRequestWeightUnit = ""
)
@@ -114,4 +114,3 @@ 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 726e2d125..f83638d77 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeSubdeviceRole{}
// DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole
type DeviceTypeSubdeviceRole struct {
- Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"`
- Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"`
+ Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"`
+ Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) {
}
func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go
index d96e2ba37..85ed4788c 100644
--- a/model_device_type_subdevice_role_label.go
+++ b/model_device_type_subdevice_role_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type DeviceTypeSubdeviceRoleLabel string
// List of DeviceType_subdevice_role_label
const (
DEVICETYPESUBDEVICEROLELABEL_PARENT DeviceTypeSubdeviceRoleLabel = "Parent"
- DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child"
+ DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child"
)
// All allowed values of DeviceTypeSubdeviceRoleLabel enum
@@ -108,4 +108,3 @@ 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
index 4b7d186f6..26567b2a0 100644
--- a/model_device_type_subdevice_role_value.go
+++ b/model_device_type_subdevice_role_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type DeviceTypeSubdeviceRoleValue string
// List of DeviceType_subdevice_role_value
const (
DEVICETYPESUBDEVICEROLEVALUE_PARENT DeviceTypeSubdeviceRoleValue = "parent"
- DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child"
- DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = ""
+ DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child"
+ DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = ""
)
// All allowed values of DeviceTypeSubdeviceRoleValue enum
@@ -110,4 +110,3 @@ 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 f9c14eb75..477b67467 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeWeightUnit{}
// DeviceTypeWeightUnit struct for DeviceTypeWeightUnit
type DeviceTypeWeightUnit struct {
- Value *DeviceTypeWeightUnitValue `json:"value,omitempty"`
- Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"`
+ Value *DeviceTypeWeightUnitValue `json:"value,omitempty"`
+ Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) {
}
func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go
index 9fea36631..59a29ae28 100644
--- a/model_device_type_weight_unit_label.go
+++ b/model_device_type_weight_unit_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ 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"
+ DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams"
+ DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds"
+ DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces"
)
// All allowed values of DeviceTypeWeightUnitLabel enum
@@ -112,4 +112,3 @@ 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
index c3997d29d..d19707637 100644
--- a/model_device_type_weight_unit_value.go
+++ b/model_device_type_weight_unit_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ 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_KG DeviceTypeWeightUnitValue = "kg"
+ DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g"
+ DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb"
+ DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz"
DEVICETYPEWEIGHTUNITVALUE_EMPTY DeviceTypeWeightUnitValue = ""
)
@@ -114,4 +114,3 @@ 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 0d97eb66e..f2cc3eeeb 100644
--- a/model_device_with_config_context.go
+++ b/model_device_with_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the DeviceWithConfigContext type satisfies the MappedNullable interface at compile time
@@ -21,61 +21,61 @@ var _ MappedNullable = &DeviceWithConfigContext{}
// DeviceWithConfigContext Adds support for custom fields and tags.
type DeviceWithConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name NullableString `json:"name,omitempty"`
- DeviceType BriefDeviceType `json:"device_type"`
- Role BriefDeviceRole `json:"role"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Platform NullableBriefPlatform `json:"platform,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType BriefDeviceType `json:"device_type"`
+ Role BriefDeviceRole `json:"role"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Platform NullableBriefPlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site BriefSite `json:"site"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Site BriefSite `json:"site"`
Location NullableBriefLocation `json:"location,omitempty"`
- Rack NullableBriefRack `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFace `json:"face,omitempty"`
+ Rack NullableBriefRack `json:"rack,omitempty"`
+ Position NullableFloat64 `json:"position,omitempty"`
+ Face *DeviceFace `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- ParentDevice NullableNestedDevice `json:"parent_device,omitempty"`
- Status *DeviceStatus `json:"status,omitempty"`
- Airflow *DeviceAirflow `json:"airflow,omitempty"`
- PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
- PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
- OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"`
- Cluster NullableBriefCluster `json:"cluster,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ ParentDevice NullableNestedDevice `json:"parent_device,omitempty"`
+ Status *DeviceStatus `json:"status,omitempty"`
+ Airflow *DeviceAirflow `json:"airflow,omitempty"`
+ PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
+ PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
+ OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"`
+ Cluster NullableBriefCluster `json:"cluster,omitempty"`
VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ VcPosition NullableInt32 `json:"vc_position,omitempty"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
- ConfigContext interface{} `json:"config_context,omitempty"`
+ ConfigContext interface{} `json:"config_context,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- ConsolePortCount int32 `json:"console_port_count"`
- ConsoleServerPortCount int32 `json:"console_server_port_count"`
- PowerPortCount int32 `json:"power_port_count"`
- PowerOutletCount int32 `json:"power_outlet_count"`
- InterfaceCount *int32 `json:"interface_count,omitempty"`
- FrontPortCount int32 `json:"front_port_count"`
- RearPortCount int32 `json:"rear_port_count"`
- DeviceBayCount int32 `json:"device_bay_count"`
- ModuleBayCount int32 `json:"module_bay_count"`
- InventoryItemCount int32 `json:"inventory_item_count"`
- AdditionalProperties map[string]interface{}
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ ConsolePortCount int32 `json:"console_port_count"`
+ ConsoleServerPortCount int32 `json:"console_server_port_count"`
+ PowerPortCount int32 `json:"power_port_count"`
+ PowerOutletCount int32 `json:"power_outlet_count"`
+ InterfaceCount *int32 `json:"interface_count,omitempty"`
+ FrontPortCount int32 `json:"front_port_count"`
+ RearPortCount int32 `json:"rear_port_count"`
+ DeviceBayCount int32 `json:"device_bay_count"`
+ ModuleBayCount int32 `json:"module_bay_count"`
+ InventoryItemCount int32 `json:"inventory_item_count"`
+ AdditionalProperties map[string]interface{}
}
type _DeviceWithConfigContext DeviceWithConfigContext
@@ -136,7 +136,6 @@ func (o *DeviceWithConfigContext) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *DeviceWithConfigContext) GetUrl() string {
if o == nil {
@@ -161,7 +160,6 @@ func (o *DeviceWithConfigContext) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *DeviceWithConfigContext) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -218,7 +216,6 @@ func (o *DeviceWithConfigContext) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceWithConfigContext) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
@@ -251,6 +248,7 @@ func (o *DeviceWithConfigContext) HasName() bool {
func (o *DeviceWithConfigContext) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *DeviceWithConfigContext) SetNameNil() {
o.Name.Set(nil)
@@ -285,7 +283,6 @@ func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) {
o.DeviceType = v
}
-
// GetRole returns the Role field value
func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole {
if o == nil {
@@ -310,7 +307,6 @@ func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) {
o.Role = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceWithConfigContext) GetTenant() BriefTenant {
if o == nil || IsNil(o.Tenant.Get()) {
@@ -343,6 +339,7 @@ func (o *DeviceWithConfigContext) HasTenant() bool {
func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *DeviceWithConfigContext) SetTenantNil() {
o.Tenant.Set(nil)
@@ -385,6 +382,7 @@ func (o *DeviceWithConfigContext) HasPlatform() bool {
func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *DeviceWithConfigContext) SetPlatformNil() {
o.Platform.Set(nil)
@@ -459,6 +457,7 @@ func (o *DeviceWithConfigContext) HasAssetTag() bool {
func (o *DeviceWithConfigContext) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *DeviceWithConfigContext) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -493,7 +492,6 @@ func (o *DeviceWithConfigContext) SetSite(v BriefSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceWithConfigContext) GetLocation() BriefLocation {
if o == nil || IsNil(o.Location.Get()) {
@@ -526,6 +524,7 @@ func (o *DeviceWithConfigContext) HasLocation() bool {
func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *DeviceWithConfigContext) SetLocationNil() {
o.Location.Set(nil)
@@ -568,6 +567,7 @@ func (o *DeviceWithConfigContext) HasRack() bool {
func (o *DeviceWithConfigContext) SetRack(v BriefRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *DeviceWithConfigContext) SetRackNil() {
o.Rack.Set(nil)
@@ -610,6 +610,7 @@ func (o *DeviceWithConfigContext) HasPosition() bool {
func (o *DeviceWithConfigContext) SetPosition(v float64) {
o.Position.Set(&v)
}
+
// SetPositionNil sets the value for Position to be an explicit nil
func (o *DeviceWithConfigContext) SetPositionNil() {
o.Position.Set(nil)
@@ -684,6 +685,7 @@ func (o *DeviceWithConfigContext) HasLatitude() bool {
func (o *DeviceWithConfigContext) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *DeviceWithConfigContext) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -726,6 +728,7 @@ func (o *DeviceWithConfigContext) HasLongitude() bool {
func (o *DeviceWithConfigContext) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *DeviceWithConfigContext) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -768,6 +771,7 @@ func (o *DeviceWithConfigContext) HasParentDevice() bool {
func (o *DeviceWithConfigContext) SetParentDevice(v NestedDevice) {
o.ParentDevice.Set(&v)
}
+
// SetParentDeviceNil sets the value for ParentDevice to be an explicit nil
func (o *DeviceWithConfigContext) SetParentDeviceNil() {
o.ParentDevice.Set(nil)
@@ -874,6 +878,7 @@ func (o *DeviceWithConfigContext) HasPrimaryIp() bool {
func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) {
o.PrimaryIp.Set(&v)
}
+
// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil
func (o *DeviceWithConfigContext) SetPrimaryIpNil() {
o.PrimaryIp.Set(nil)
@@ -916,6 +921,7 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool {
func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *DeviceWithConfigContext) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -958,6 +964,7 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool {
func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *DeviceWithConfigContext) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -1000,6 +1007,7 @@ func (o *DeviceWithConfigContext) HasOobIp() bool {
func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) {
o.OobIp.Set(&v)
}
+
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *DeviceWithConfigContext) SetOobIpNil() {
o.OobIp.Set(nil)
@@ -1042,6 +1050,7 @@ func (o *DeviceWithConfigContext) HasCluster() bool {
func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *DeviceWithConfigContext) SetClusterNil() {
o.Cluster.Set(nil)
@@ -1084,6 +1093,7 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool {
func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) {
o.VirtualChassis.Set(&v)
}
+
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *DeviceWithConfigContext) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
@@ -1126,6 +1136,7 @@ func (o *DeviceWithConfigContext) HasVcPosition() bool {
func (o *DeviceWithConfigContext) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
+
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *DeviceWithConfigContext) SetVcPositionNil() {
o.VcPosition.Set(nil)
@@ -1168,6 +1179,7 @@ func (o *DeviceWithConfigContext) HasVcPriority() bool {
func (o *DeviceWithConfigContext) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
+
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *DeviceWithConfigContext) SetVcPriorityNil() {
o.VcPriority.Set(nil)
@@ -1274,6 +1286,7 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool {
func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *DeviceWithConfigContext) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1446,6 +1459,7 @@ func (o *DeviceWithConfigContext) HasCreated() bool {
func (o *DeviceWithConfigContext) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceWithConfigContext) SetCreatedNil() {
o.Created.Set(nil)
@@ -1488,6 +1502,7 @@ func (o *DeviceWithConfigContext) HasLastUpdated() bool {
func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceWithConfigContext) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1522,7 +1537,6 @@ func (o *DeviceWithConfigContext) SetConsolePortCount(v int32) {
o.ConsolePortCount = v
}
-
// GetConsoleServerPortCount returns the ConsoleServerPortCount field value
func (o *DeviceWithConfigContext) GetConsoleServerPortCount() int32 {
if o == nil {
@@ -1547,7 +1561,6 @@ func (o *DeviceWithConfigContext) SetConsoleServerPortCount(v int32) {
o.ConsoleServerPortCount = v
}
-
// GetPowerPortCount returns the PowerPortCount field value
func (o *DeviceWithConfigContext) GetPowerPortCount() int32 {
if o == nil {
@@ -1572,7 +1585,6 @@ func (o *DeviceWithConfigContext) SetPowerPortCount(v int32) {
o.PowerPortCount = v
}
-
// GetPowerOutletCount returns the PowerOutletCount field value
func (o *DeviceWithConfigContext) GetPowerOutletCount() int32 {
if o == nil {
@@ -1597,7 +1609,6 @@ func (o *DeviceWithConfigContext) SetPowerOutletCount(v int32) {
o.PowerOutletCount = v
}
-
// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise.
func (o *DeviceWithConfigContext) GetInterfaceCount() int32 {
if o == nil || IsNil(o.InterfaceCount) {
@@ -1654,7 +1665,6 @@ func (o *DeviceWithConfigContext) SetFrontPortCount(v int32) {
o.FrontPortCount = v
}
-
// GetRearPortCount returns the RearPortCount field value
func (o *DeviceWithConfigContext) GetRearPortCount() int32 {
if o == nil {
@@ -1679,7 +1689,6 @@ func (o *DeviceWithConfigContext) SetRearPortCount(v int32) {
o.RearPortCount = v
}
-
// GetDeviceBayCount returns the DeviceBayCount field value
func (o *DeviceWithConfigContext) GetDeviceBayCount() int32 {
if o == nil {
@@ -1704,7 +1713,6 @@ func (o *DeviceWithConfigContext) SetDeviceBayCount(v int32) {
o.DeviceBayCount = v
}
-
// GetModuleBayCount returns the ModuleBayCount field value
func (o *DeviceWithConfigContext) GetModuleBayCount() int32 {
if o == nil {
@@ -1729,7 +1737,6 @@ func (o *DeviceWithConfigContext) SetModuleBayCount(v int32) {
o.ModuleBayCount = v
}
-
// GetInventoryItemCount returns the InventoryItemCount field value
func (o *DeviceWithConfigContext) GetInventoryItemCount() int32 {
if o == nil {
@@ -1754,9 +1761,8 @@ func (o *DeviceWithConfigContext) SetInventoryItemCount(v int32) {
o.InventoryItemCount = v
}
-
func (o DeviceWithConfigContext) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1911,32 +1917,31 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -2042,5 +2047,3 @@ func (v *NullableDeviceWithConfigContext) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go
index eeb10872c..f73c7bd90 100644
--- a/model_device_with_config_context_request.go
+++ b/model_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,41 +20,41 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{}
// DeviceWithConfigContextRequest Adds support for custom fields and tags.
type DeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType BriefDeviceTypeRequest `json:"device_type"`
- Role BriefDeviceRoleRequest `json:"role"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceBayTemplateRequestDeviceType `json:"device_type"`
+ Role DeviceWithConfigContextRequestRole `json:"role"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site BriefSiteRequest `json:"site"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFaceValue `json:"face,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Position NullableFloat64 `json:"position,omitempty"`
+ Face *DeviceFaceValue `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Status *DeviceStatusValue `json:"status,omitempty"`
- Airflow *DeviceAirflowValue `json:"airflow,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Status *DeviceStatusValue `json:"status,omitempty"`
+ Airflow *DeviceAirflowValue `json:"airflow,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ OobIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"oob_ip,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ VirtualChassis NullableDeviceWithConfigContextRequestVirtualChassis `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 NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -64,7 +64,7 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest {
+func NewDeviceWithConfigContextRequest(deviceType DeviceBayTemplateRequestDeviceType, role DeviceWithConfigContextRequestRole, site DeviceWithConfigContextRequestSite) *DeviceWithConfigContextRequest {
this := DeviceWithConfigContextRequest{}
this.DeviceType = deviceType
this.Role = role
@@ -112,6 +112,7 @@ func (o *DeviceWithConfigContextRequest) HasName() bool {
func (o *DeviceWithConfigContextRequest) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetNameNil() {
o.Name.Set(nil)
@@ -123,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
@@ -134,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -142,15 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequ
}
// SetDeviceType sets field value
-func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = v
}
-
// GetRole returns the Role field value
-func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *DeviceWithConfigContextRequest) GetRole() DeviceWithConfigContextRequestRole {
if o == nil {
- var ret BriefDeviceRoleRequest
+ var ret DeviceWithConfigContextRequestRole
return ret
}
@@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceWithConfigContextRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -167,15 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, b
}
// SetRole sets field value
-func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+func (o *DeviceWithConfigContextRequest) SetRole(v DeviceWithConfigContextRequestRole) {
o.Role = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *DeviceWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -184,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -200,10 +199,11 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *DeviceWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *DeviceWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -242,10 +242,11 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *DeviceWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -320,6 +321,7 @@ func (o *DeviceWithConfigContextRequest) HasAssetTag() bool {
func (o *DeviceWithConfigContextRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -331,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *DeviceWithConfigContextRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -342,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -350,15 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+func (o *DeviceWithConfigContextRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest {
+func (o *DeviceWithConfigContextRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -367,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -383,10 +384,11 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *DeviceWithConfigContextRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -398,9 +400,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() {
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest {
+func (o *DeviceWithConfigContextRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -409,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -425,10 +427,11 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *DeviceWithConfigContextRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -471,6 +474,7 @@ func (o *DeviceWithConfigContextRequest) HasPosition() bool {
func (o *DeviceWithConfigContextRequest) SetPosition(v float64) {
o.Position.Set(&v)
}
+
// SetPositionNil sets the value for Position to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetPositionNil() {
o.Position.Set(nil)
@@ -545,6 +549,7 @@ func (o *DeviceWithConfigContextRequest) HasLatitude() bool {
func (o *DeviceWithConfigContextRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -587,6 +592,7 @@ func (o *DeviceWithConfigContextRequest) HasLongitude() bool {
func (o *DeviceWithConfigContextRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -662,9 +668,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -673,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -689,10 +695,11 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -704,9 +711,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -715,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -731,10 +738,11 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -746,9 +754,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() {
}
// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetOobIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OobIp.Get()
@@ -757,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -773,10 +781,11 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field.
-func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) {
+// SetOobIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OobIp field.
+func (o *DeviceWithConfigContextRequest) SetOobIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OobIp.Set(&v)
}
+
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetOobIpNil() {
o.OobIp.Set(nil)
@@ -788,9 +797,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *DeviceWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -799,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest {
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -815,10 +824,11 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *DeviceWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -830,9 +840,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() {
}
// GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest {
+func (o *DeviceWithConfigContextRequest) GetVirtualChassis() DeviceWithConfigContextRequestVirtualChassis {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret BriefVirtualChassisRequest
+ var ret DeviceWithConfigContextRequestVirtualChassis
return ret
}
return *o.VirtualChassis.Get()
@@ -841,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassis
// GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*DeviceWithConfigContextRequestVirtualChassis, bool) {
if o == nil {
return nil, false
}
@@ -857,10 +867,11 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field.
-func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) {
+// SetVirtualChassis gets a reference to the given NullableDeviceWithConfigContextRequestVirtualChassis and assigns it to the VirtualChassis field.
+func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v DeviceWithConfigContextRequestVirtualChassis) {
o.VirtualChassis.Set(&v)
}
+
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
@@ -903,6 +914,7 @@ func (o *DeviceWithConfigContextRequest) HasVcPosition() bool {
func (o *DeviceWithConfigContextRequest) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
+
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetVcPositionNil() {
o.VcPosition.Set(nil)
@@ -945,6 +957,7 @@ func (o *DeviceWithConfigContextRequest) HasVcPriority() bool {
func (o *DeviceWithConfigContextRequest) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
+
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetVcPriorityNil() {
o.VcPriority.Set(nil)
@@ -1020,9 +1033,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *DeviceWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -1031,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplate
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -1047,10 +1060,11 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1159,7 +1173,7 @@ func (o *DeviceWithConfigContextRequest) SetCustomFields(v map[string]interface{
}
func (o DeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1269,32 +1283,31 @@ func (o *DeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1381,5 +1394,3 @@ func (v *NullableDeviceWithConfigContextRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_device_with_config_context_request_cluster.go b/model_device_with_config_context_request_cluster.go
new file mode 100644
index 000000000..1034ef025
--- /dev/null
+++ b/model_device_with_config_context_request_cluster.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestCluster - struct for DeviceWithConfigContextRequestCluster
+type DeviceWithConfigContextRequestCluster struct {
+ BriefClusterRequest *BriefClusterRequest
+ Int32 *int32
+}
+
+// BriefClusterRequestAsDeviceWithConfigContextRequestCluster is a convenience function that returns BriefClusterRequest wrapped in DeviceWithConfigContextRequestCluster
+func BriefClusterRequestAsDeviceWithConfigContextRequestCluster(v *BriefClusterRequest) DeviceWithConfigContextRequestCluster {
+ return DeviceWithConfigContextRequestCluster{
+ BriefClusterRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestCluster is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestCluster
+func Int32AsDeviceWithConfigContextRequestCluster(v *int32) DeviceWithConfigContextRequestCluster {
+ return DeviceWithConfigContextRequestCluster{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestCluster) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefClusterRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefClusterRequest)
+ if err == nil {
+ jsonBriefClusterRequest, _ := json.Marshal(dst.BriefClusterRequest)
+ if string(jsonBriefClusterRequest) == "{}" { // empty struct
+ dst.BriefClusterRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefClusterRequest); err != nil {
+ dst.BriefClusterRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefClusterRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefClusterRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestCluster)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestCluster)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestCluster) MarshalJSON() ([]byte, error) {
+ if src.BriefClusterRequest != nil {
+ return json.Marshal(&src.BriefClusterRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestCluster) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefClusterRequest != nil {
+ return obj.BriefClusterRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestCluster struct {
+ value *DeviceWithConfigContextRequestCluster
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestCluster) Get() *DeviceWithConfigContextRequestCluster {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestCluster) Set(val *DeviceWithConfigContextRequestCluster) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestCluster) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestCluster) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestCluster(val *DeviceWithConfigContextRequestCluster) *NullableDeviceWithConfigContextRequestCluster {
+ return &NullableDeviceWithConfigContextRequestCluster{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestCluster) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestCluster) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_location.go b/model_device_with_config_context_request_location.go
new file mode 100644
index 000000000..a56bb0073
--- /dev/null
+++ b/model_device_with_config_context_request_location.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestLocation - struct for DeviceWithConfigContextRequestLocation
+type DeviceWithConfigContextRequestLocation struct {
+ BriefLocationRequest *BriefLocationRequest
+ Int32 *int32
+}
+
+// BriefLocationRequestAsDeviceWithConfigContextRequestLocation is a convenience function that returns BriefLocationRequest wrapped in DeviceWithConfigContextRequestLocation
+func BriefLocationRequestAsDeviceWithConfigContextRequestLocation(v *BriefLocationRequest) DeviceWithConfigContextRequestLocation {
+ return DeviceWithConfigContextRequestLocation{
+ BriefLocationRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestLocation is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestLocation
+func Int32AsDeviceWithConfigContextRequestLocation(v *int32) DeviceWithConfigContextRequestLocation {
+ return DeviceWithConfigContextRequestLocation{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestLocation) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefLocationRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefLocationRequest)
+ if err == nil {
+ jsonBriefLocationRequest, _ := json.Marshal(dst.BriefLocationRequest)
+ if string(jsonBriefLocationRequest) == "{}" { // empty struct
+ dst.BriefLocationRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefLocationRequest); err != nil {
+ dst.BriefLocationRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefLocationRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefLocationRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestLocation)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestLocation)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestLocation) MarshalJSON() ([]byte, error) {
+ if src.BriefLocationRequest != nil {
+ return json.Marshal(&src.BriefLocationRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestLocation) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefLocationRequest != nil {
+ return obj.BriefLocationRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestLocation struct {
+ value *DeviceWithConfigContextRequestLocation
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestLocation) Get() *DeviceWithConfigContextRequestLocation {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestLocation) Set(val *DeviceWithConfigContextRequestLocation) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestLocation) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestLocation) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestLocation(val *DeviceWithConfigContextRequestLocation) *NullableDeviceWithConfigContextRequestLocation {
+ return &NullableDeviceWithConfigContextRequestLocation{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestLocation) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestLocation) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_primary_ip4.go b/model_device_with_config_context_request_primary_ip4.go
new file mode 100644
index 000000000..8b1c99005
--- /dev/null
+++ b/model_device_with_config_context_request_primary_ip4.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestPrimaryIp4 - struct for DeviceWithConfigContextRequestPrimaryIp4
+type DeviceWithConfigContextRequestPrimaryIp4 struct {
+ BriefIPAddressRequest *BriefIPAddressRequest
+ Int32 *int32
+}
+
+// BriefIPAddressRequestAsDeviceWithConfigContextRequestPrimaryIp4 is a convenience function that returns BriefIPAddressRequest wrapped in DeviceWithConfigContextRequestPrimaryIp4
+func BriefIPAddressRequestAsDeviceWithConfigContextRequestPrimaryIp4(v *BriefIPAddressRequest) DeviceWithConfigContextRequestPrimaryIp4 {
+ return DeviceWithConfigContextRequestPrimaryIp4{
+ BriefIPAddressRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestPrimaryIp4 is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestPrimaryIp4
+func Int32AsDeviceWithConfigContextRequestPrimaryIp4(v *int32) DeviceWithConfigContextRequestPrimaryIp4 {
+ return DeviceWithConfigContextRequestPrimaryIp4{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestPrimaryIp4) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefIPAddressRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefIPAddressRequest)
+ if err == nil {
+ jsonBriefIPAddressRequest, _ := json.Marshal(dst.BriefIPAddressRequest)
+ if string(jsonBriefIPAddressRequest) == "{}" { // empty struct
+ dst.BriefIPAddressRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefIPAddressRequest); err != nil {
+ dst.BriefIPAddressRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefIPAddressRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefIPAddressRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestPrimaryIp4)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestPrimaryIp4)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestPrimaryIp4) MarshalJSON() ([]byte, error) {
+ if src.BriefIPAddressRequest != nil {
+ return json.Marshal(&src.BriefIPAddressRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestPrimaryIp4) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefIPAddressRequest != nil {
+ return obj.BriefIPAddressRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestPrimaryIp4 struct {
+ value *DeviceWithConfigContextRequestPrimaryIp4
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestPrimaryIp4) Get() *DeviceWithConfigContextRequestPrimaryIp4 {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestPrimaryIp4) Set(val *DeviceWithConfigContextRequestPrimaryIp4) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestPrimaryIp4) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestPrimaryIp4) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestPrimaryIp4(val *DeviceWithConfigContextRequestPrimaryIp4) *NullableDeviceWithConfigContextRequestPrimaryIp4 {
+ return &NullableDeviceWithConfigContextRequestPrimaryIp4{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestPrimaryIp4) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestPrimaryIp4) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_rack.go b/model_device_with_config_context_request_rack.go
new file mode 100644
index 000000000..bafe280de
--- /dev/null
+++ b/model_device_with_config_context_request_rack.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestRack - struct for DeviceWithConfigContextRequestRack
+type DeviceWithConfigContextRequestRack struct {
+ BriefRackRequest *BriefRackRequest
+ Int32 *int32
+}
+
+// BriefRackRequestAsDeviceWithConfigContextRequestRack is a convenience function that returns BriefRackRequest wrapped in DeviceWithConfigContextRequestRack
+func BriefRackRequestAsDeviceWithConfigContextRequestRack(v *BriefRackRequest) DeviceWithConfigContextRequestRack {
+ return DeviceWithConfigContextRequestRack{
+ BriefRackRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestRack is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestRack
+func Int32AsDeviceWithConfigContextRequestRack(v *int32) DeviceWithConfigContextRequestRack {
+ return DeviceWithConfigContextRequestRack{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestRack) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRackRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRackRequest)
+ if err == nil {
+ jsonBriefRackRequest, _ := json.Marshal(dst.BriefRackRequest)
+ if string(jsonBriefRackRequest) == "{}" { // empty struct
+ dst.BriefRackRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRackRequest); err != nil {
+ dst.BriefRackRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRackRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRackRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestRack)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestRack)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestRack) MarshalJSON() ([]byte, error) {
+ if src.BriefRackRequest != nil {
+ return json.Marshal(&src.BriefRackRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestRack) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRackRequest != nil {
+ return obj.BriefRackRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestRack struct {
+ value *DeviceWithConfigContextRequestRack
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestRack) Get() *DeviceWithConfigContextRequestRack {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestRack) Set(val *DeviceWithConfigContextRequestRack) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestRack) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestRack) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestRack(val *DeviceWithConfigContextRequestRack) *NullableDeviceWithConfigContextRequestRack {
+ return &NullableDeviceWithConfigContextRequestRack{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestRack) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestRack) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_role.go b/model_device_with_config_context_request_role.go
new file mode 100644
index 000000000..5b827c06c
--- /dev/null
+++ b/model_device_with_config_context_request_role.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestRole - struct for DeviceWithConfigContextRequestRole
+type DeviceWithConfigContextRequestRole struct {
+ BriefDeviceRoleRequest *BriefDeviceRoleRequest
+ Int32 *int32
+}
+
+// BriefDeviceRoleRequestAsDeviceWithConfigContextRequestRole is a convenience function that returns BriefDeviceRoleRequest wrapped in DeviceWithConfigContextRequestRole
+func BriefDeviceRoleRequestAsDeviceWithConfigContextRequestRole(v *BriefDeviceRoleRequest) DeviceWithConfigContextRequestRole {
+ return DeviceWithConfigContextRequestRole{
+ BriefDeviceRoleRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestRole is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestRole
+func Int32AsDeviceWithConfigContextRequestRole(v *int32) DeviceWithConfigContextRequestRole {
+ return DeviceWithConfigContextRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefDeviceRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceRoleRequest)
+ if err == nil {
+ jsonBriefDeviceRoleRequest, _ := json.Marshal(dst.BriefDeviceRoleRequest)
+ if string(jsonBriefDeviceRoleRequest) == "{}" { // empty struct
+ dst.BriefDeviceRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceRoleRequest); err != nil {
+ dst.BriefDeviceRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceRoleRequest != nil {
+ return json.Marshal(&src.BriefDeviceRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceRoleRequest != nil {
+ return obj.BriefDeviceRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestRole struct {
+ value *DeviceWithConfigContextRequestRole
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestRole) Get() *DeviceWithConfigContextRequestRole {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestRole) Set(val *DeviceWithConfigContextRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestRole(val *DeviceWithConfigContextRequestRole) *NullableDeviceWithConfigContextRequestRole {
+ return &NullableDeviceWithConfigContextRequestRole{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_site.go b/model_device_with_config_context_request_site.go
new file mode 100644
index 000000000..1c4a3a585
--- /dev/null
+++ b/model_device_with_config_context_request_site.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestSite - struct for DeviceWithConfigContextRequestSite
+type DeviceWithConfigContextRequestSite struct {
+ BriefSiteRequest *BriefSiteRequest
+ Int32 *int32
+}
+
+// BriefSiteRequestAsDeviceWithConfigContextRequestSite is a convenience function that returns BriefSiteRequest wrapped in DeviceWithConfigContextRequestSite
+func BriefSiteRequestAsDeviceWithConfigContextRequestSite(v *BriefSiteRequest) DeviceWithConfigContextRequestSite {
+ return DeviceWithConfigContextRequestSite{
+ BriefSiteRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestSite is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestSite
+func Int32AsDeviceWithConfigContextRequestSite(v *int32) DeviceWithConfigContextRequestSite {
+ return DeviceWithConfigContextRequestSite{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestSite) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefSiteRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefSiteRequest)
+ if err == nil {
+ jsonBriefSiteRequest, _ := json.Marshal(dst.BriefSiteRequest)
+ if string(jsonBriefSiteRequest) == "{}" { // empty struct
+ dst.BriefSiteRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefSiteRequest); err != nil {
+ dst.BriefSiteRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefSiteRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefSiteRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestSite)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestSite)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestSite) MarshalJSON() ([]byte, error) {
+ if src.BriefSiteRequest != nil {
+ return json.Marshal(&src.BriefSiteRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestSite) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefSiteRequest != nil {
+ return obj.BriefSiteRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestSite struct {
+ value *DeviceWithConfigContextRequestSite
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestSite) Get() *DeviceWithConfigContextRequestSite {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestSite) Set(val *DeviceWithConfigContextRequestSite) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestSite) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestSite) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestSite(val *DeviceWithConfigContextRequestSite) *NullableDeviceWithConfigContextRequestSite {
+ return &NullableDeviceWithConfigContextRequestSite{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestSite) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestSite) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_device_with_config_context_request_virtual_chassis.go b/model_device_with_config_context_request_virtual_chassis.go
new file mode 100644
index 000000000..f18ff79e7
--- /dev/null
+++ b/model_device_with_config_context_request_virtual_chassis.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// DeviceWithConfigContextRequestVirtualChassis - struct for DeviceWithConfigContextRequestVirtualChassis
+type DeviceWithConfigContextRequestVirtualChassis struct {
+ BriefVirtualChassisRequest *BriefVirtualChassisRequest
+ Int32 *int32
+}
+
+// BriefVirtualChassisRequestAsDeviceWithConfigContextRequestVirtualChassis is a convenience function that returns BriefVirtualChassisRequest wrapped in DeviceWithConfigContextRequestVirtualChassis
+func BriefVirtualChassisRequestAsDeviceWithConfigContextRequestVirtualChassis(v *BriefVirtualChassisRequest) DeviceWithConfigContextRequestVirtualChassis {
+ return DeviceWithConfigContextRequestVirtualChassis{
+ BriefVirtualChassisRequest: v,
+ }
+}
+
+// int32AsDeviceWithConfigContextRequestVirtualChassis is a convenience function that returns int32 wrapped in DeviceWithConfigContextRequestVirtualChassis
+func Int32AsDeviceWithConfigContextRequestVirtualChassis(v *int32) DeviceWithConfigContextRequestVirtualChassis {
+ return DeviceWithConfigContextRequestVirtualChassis{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *DeviceWithConfigContextRequestVirtualChassis) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefVirtualChassisRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVirtualChassisRequest)
+ if err == nil {
+ jsonBriefVirtualChassisRequest, _ := json.Marshal(dst.BriefVirtualChassisRequest)
+ if string(jsonBriefVirtualChassisRequest) == "{}" { // empty struct
+ dst.BriefVirtualChassisRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVirtualChassisRequest); err != nil {
+ dst.BriefVirtualChassisRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVirtualChassisRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVirtualChassisRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(DeviceWithConfigContextRequestVirtualChassis)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(DeviceWithConfigContextRequestVirtualChassis)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src DeviceWithConfigContextRequestVirtualChassis) MarshalJSON() ([]byte, error) {
+ if src.BriefVirtualChassisRequest != nil {
+ return json.Marshal(&src.BriefVirtualChassisRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *DeviceWithConfigContextRequestVirtualChassis) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVirtualChassisRequest != nil {
+ return obj.BriefVirtualChassisRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableDeviceWithConfigContextRequestVirtualChassis struct {
+ value *DeviceWithConfigContextRequestVirtualChassis
+ isSet bool
+}
+
+func (v NullableDeviceWithConfigContextRequestVirtualChassis) Get() *DeviceWithConfigContextRequestVirtualChassis {
+ return v.value
+}
+
+func (v *NullableDeviceWithConfigContextRequestVirtualChassis) Set(val *DeviceWithConfigContextRequestVirtualChassis) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceWithConfigContextRequestVirtualChassis) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceWithConfigContextRequestVirtualChassis) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceWithConfigContextRequestVirtualChassis(val *DeviceWithConfigContextRequestVirtualChassis) *NullableDeviceWithConfigContextRequestVirtualChassis {
+ return &NullableDeviceWithConfigContextRequestVirtualChassis{value: val, isSet: true}
+}
+
+func (v NullableDeviceWithConfigContextRequestVirtualChassis) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceWithConfigContextRequestVirtualChassis) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_encryption.go b/model_encryption.go
index 656fe08b0..9d9747f73 100644
--- a/model_encryption.go
+++ b/model_encryption.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,9 +26,9 @@ const (
ENCRYPTION_AES_192_GCM Encryption = "aes-192-gcm"
ENCRYPTION_AES_256_CBC Encryption = "aes-256-cbc"
ENCRYPTION_AES_256_GCM Encryption = "aes-256-gcm"
- ENCRYPTION__3DES_CBC Encryption = "3des-cbc"
- ENCRYPTION_DES_CBC Encryption = "des-cbc"
- ENCRYPTION_EMPTY Encryption = ""
+ ENCRYPTION__3DES_CBC Encryption = "3des-cbc"
+ ENCRYPTION_DES_CBC Encryption = "des-cbc"
+ ENCRYPTION_EMPTY Encryption = ""
)
// All allowed values of Encryption enum
@@ -122,4 +122,3 @@ func (v *NullableEncryption) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_end.go b/model_end.go
index 28f9776f1..23160e3aa 100644
--- a/model_end.go
+++ b/model_end.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableEnd) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_end_1.go b/model_end_1.go
index 4d3886d92..f9b3bb5e5 100644
--- a/model_end_1.go
+++ b/model_end_1.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableEnd1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_event.go b/model_event.go
index 8215ed3be..385630c7d 100644
--- a/model_event.go
+++ b/model_event.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,10 +23,10 @@ const (
EVENT_OBJECT_CREATED Event = "object_created"
EVENT_OBJECT_UPDATED Event = "object_updated"
EVENT_OBJECT_DELETED Event = "object_deleted"
- EVENT_JOB_STARTED Event = "job_started"
- EVENT_JOB_COMPLETED Event = "job_completed"
- EVENT_JOB_FAILED Event = "job_failed"
- EVENT_JOB_ERRORED Event = "job_errored"
+ EVENT_JOB_STARTED Event = "job_started"
+ EVENT_JOB_COMPLETED Event = "job_completed"
+ EVENT_JOB_FAILED Event = "job_failed"
+ EVENT_JOB_ERRORED Event = "job_errored"
)
// All allowed values of Event enum
@@ -118,4 +118,3 @@ func (v *NullableEvent) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_event_rule.go b/model_event_rule.go
index 482409572..5001592aa 100644
--- a/model_event_rule.go
+++ b/model_event_rule.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the EventRule type satisfies the MappedNullable interface at compile time
@@ -21,26 +21,26 @@ var _ MappedNullable = &EventRule{}
// EventRule Adds support for custom fields and tags.
type EventRule struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
// The types of event which will trigger this rule.
EventTypes []EventRuleEventTypesInner `json:"event_types"`
// A set of conditions which determine whether the event will be generated.
- Conditions interface{} `json:"conditions,omitempty"`
- ActionType EventRuleActionType `json:"action_type"`
- ActionObjectType string `json:"action_object_type"`
- ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
- ActionObject map[string]interface{} `json:"action_object"`
- Description *string `json:"description,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType EventRuleActionType `json:"action_type"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ ActionObject map[string]interface{} `json:"action_object"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -96,7 +96,6 @@ func (o *EventRule) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *EventRule) GetUrl() string {
if o == nil {
@@ -121,7 +120,6 @@ func (o *EventRule) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *EventRule) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -178,7 +176,6 @@ func (o *EventRule) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectTypes returns the ObjectTypes field value
func (o *EventRule) GetObjectTypes() []string {
if o == nil {
@@ -203,7 +200,6 @@ func (o *EventRule) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *EventRule) GetName() string {
if o == nil {
@@ -228,7 +224,6 @@ func (o *EventRule) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *EventRule) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -285,7 +280,6 @@ func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) {
o.EventTypes = v
}
-
// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventRule) GetConditions() interface{} {
if o == nil {
@@ -343,7 +337,6 @@ func (o *EventRule) SetActionType(v EventRuleActionType) {
o.ActionType = v
}
-
// GetActionObjectType returns the ActionObjectType field value
func (o *EventRule) GetActionObjectType() string {
if o == nil {
@@ -368,7 +361,6 @@ 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()) {
@@ -401,6 +393,7 @@ func (o *EventRule) HasActionObjectId() bool {
func (o *EventRule) SetActionObjectId(v int64) {
o.ActionObjectId.Set(&v)
}
+
// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
func (o *EventRule) SetActionObjectIdNil() {
o.ActionObjectId.Set(nil)
@@ -435,7 +428,6 @@ 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) {
@@ -564,6 +556,7 @@ func (o *EventRule) HasCreated() bool {
func (o *EventRule) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *EventRule) SetCreatedNil() {
o.Created.Set(nil)
@@ -606,6 +599,7 @@ func (o *EventRule) HasLastUpdated() bool {
func (o *EventRule) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *EventRule) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -617,7 +611,7 @@ func (o *EventRule) UnsetLastUpdated() {
}
func (o EventRule) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -688,32 +682,31 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -789,5 +782,3 @@ func (v *NullableEventRule) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go
index b5a63a51e..4f2c303ff 100644
--- a/model_event_rule_action_type.go
+++ b/model_event_rule_action_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &EventRuleActionType{}
// EventRuleActionType struct for EventRuleActionType
type EventRuleActionType struct {
- Value *EventRuleActionTypeValue `json:"value,omitempty"`
- Label *EventRuleActionTypeLabel `json:"label,omitempty"`
+ Value *EventRuleActionTypeValue `json:"value,omitempty"`
+ Label *EventRuleActionTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *EventRuleActionType) SetLabel(v EventRuleActionTypeLabel) {
}
func (o EventRuleActionType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableEventRuleActionType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go
index a8ed8b364..3d2b45f7c 100644
--- a/model_event_rule_action_type_label.go
+++ b/model_event_rule_action_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type EventRuleActionTypeLabel string
// List of EventRule_action_type_label
const (
- EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook"
- EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script"
+ EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook"
+ EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script"
EVENTRULEACTIONTYPELABEL_NOTIFICATION EventRuleActionTypeLabel = "Notification"
)
@@ -110,4 +110,3 @@ func (v *NullableEventRuleActionTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go
index 753a7d0cf..964b3de0f 100644
--- a/model_event_rule_action_type_value.go
+++ b/model_event_rule_action_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type EventRuleActionTypeValue string
// List of EventRule_action_type_value
const (
- EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook"
- EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script"
+ EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook"
+ EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script"
EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification"
)
@@ -110,4 +110,3 @@ func (v *NullableEventRuleActionTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go
index 42501d5ae..04a117d87 100644
--- a/model_event_rule_event_types_inner.go
+++ b/model_event_rule_event_types_inner.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,10 +23,10 @@ const (
EVENTRULEEVENTTYPESINNER_OBJECT_CREATED EventRuleEventTypesInner = "object_created"
EVENTRULEEVENTTYPESINNER_OBJECT_UPDATED EventRuleEventTypesInner = "object_updated"
EVENTRULEEVENTTYPESINNER_OBJECT_DELETED EventRuleEventTypesInner = "object_deleted"
- EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started"
- EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed"
- EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed"
- EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored"
+ EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started"
+ EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed"
+ EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed"
+ EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored"
)
// All allowed values of EventRuleEventTypesInner enum
@@ -118,4 +118,3 @@ func (v *NullableEventRuleEventTypesInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_event_rule_request.go b/model_event_rule_request.go
index e827ec030..64ea08aeb 100644
--- a/model_event_rule_request.go
+++ b/model_event_rule_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,18 +21,18 @@ var _ MappedNullable = &EventRuleRequest{}
// EventRuleRequest Adds support for custom fields and tags.
type EventRuleRequest struct {
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
// The types of event which will trigger this rule.
EventTypes []EventRuleEventTypesInner `json:"event_types"`
// A set of conditions which determine whether the event will be generated.
- Conditions interface{} `json:"conditions,omitempty"`
- ActionType EventRuleActionTypeValue `json:"action_type"`
- ActionObjectType string `json:"action_object_type"`
- ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
- Description *string `json:"description,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType EventRuleActionTypeValue `json:"action_type"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *EventRuleRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *EventRuleRequest) GetName() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *EventRuleRequest) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *EventRuleRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -166,7 +164,6 @@ func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) {
o.EventTypes = v
}
-
// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventRuleRequest) GetConditions() interface{} {
if o == nil {
@@ -224,7 +221,6 @@ func (o *EventRuleRequest) SetActionType(v EventRuleActionTypeValue) {
o.ActionType = v
}
-
// GetActionObjectType returns the ActionObjectType field value
func (o *EventRuleRequest) GetActionObjectType() string {
if o == nil {
@@ -249,7 +245,6 @@ 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()) {
@@ -282,6 +277,7 @@ func (o *EventRuleRequest) HasActionObjectId() bool {
func (o *EventRuleRequest) SetActionObjectId(v int64) {
o.ActionObjectId.Set(&v)
}
+
// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
func (o *EventRuleRequest) SetActionObjectIdNil() {
o.ActionObjectId.Set(nil)
@@ -389,7 +385,7 @@ func (o *EventRuleRequest) SetTags(v []NestedTagRequest) {
}
func (o EventRuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -443,32 +439,31 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -537,5 +532,3 @@ 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 9fa20731a..59a21fc2e 100644
--- a/model_export_template.go
+++ b/model_export_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ExportTemplate type satisfies the MappedNullable interface at compile time
@@ -21,28 +21,32 @@ var _ MappedNullable = &ExportTemplate{}
// ExportTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ExportTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset
.
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ // Any additional parameters to pass when constructing the Jinja environment
+ EnvironmentParams interface{} `json:"environment_params,omitempty"`
+ // Jinja template code.
TemplateCode string `json:"template_code"`
// Defaults to text/plain; charset=utf-8
MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
// Extension to append to the rendered filename
FileExtension *string `json:"file_extension,omitempty"`
// Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- DataSource *BriefDataSource `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *BriefDataSource `json:"data_source,omitempty"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile BriefDataFile `json:"data_file"`
- DataSynced NullableTime `json:"data_synced,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DataPath string `json:"data_path"`
+ DataFile BriefDataFile `json:"data_file"`
+ DataSynced NullableTime `json:"data_synced,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -97,7 +101,6 @@ func (o *ExportTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ExportTemplate) GetUrl() string {
if o == nil {
@@ -122,7 +125,6 @@ func (o *ExportTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ExportTemplate) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -179,7 +181,6 @@ func (o *ExportTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectTypes returns the ObjectTypes field value
func (o *ExportTemplate) GetObjectTypes() []string {
if o == nil {
@@ -204,7 +205,6 @@ func (o *ExportTemplate) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *ExportTemplate) GetName() string {
if o == nil {
@@ -229,7 +229,6 @@ func (o *ExportTemplate) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ExportTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -262,6 +261,39 @@ func (o *ExportTemplate) SetDescription(v string) {
o.Description = &v
}
+// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ExportTemplate) GetEnvironmentParams() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.EnvironmentParams
+}
+
+// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ExportTemplate) GetEnvironmentParamsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.EnvironmentParams) {
+ return nil, false
+ }
+ return &o.EnvironmentParams, true
+}
+
+// HasEnvironmentParams returns a boolean if a field has been set.
+func (o *ExportTemplate) HasEnvironmentParams() bool {
+ if o != nil && !IsNil(o.EnvironmentParams) {
+ return true
+ }
+
+ return false
+}
+
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *ExportTemplate) SetEnvironmentParams(v interface{}) {
+ o.EnvironmentParams = v
+}
+
// GetTemplateCode returns the TemplateCode field value
func (o *ExportTemplate) GetTemplateCode() string {
if o == nil {
@@ -286,7 +318,6 @@ func (o *ExportTemplate) SetTemplateCode(v string) {
o.TemplateCode = v
}
-
// GetMimeType returns the MimeType field value if set, zero value otherwise.
func (o *ExportTemplate) GetMimeType() string {
if o == nil || IsNil(o.MimeType) {
@@ -319,6 +350,38 @@ func (o *ExportTemplate) SetMimeType(v string) {
o.MimeType = &v
}
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *ExportTemplate) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ExportTemplate) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *ExportTemplate) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *ExportTemplate) SetFileName(v string) {
+ o.FileName = &v
+}
+
// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
func (o *ExportTemplate) GetFileExtension() string {
if o == nil || IsNil(o.FileExtension) {
@@ -439,7 +502,6 @@ func (o *ExportTemplate) SetDataPath(v string) {
o.DataPath = v
}
-
// GetDataFile returns the DataFile field value
func (o *ExportTemplate) GetDataFile() BriefDataFile {
if o == nil {
@@ -464,7 +526,6 @@ func (o *ExportTemplate) SetDataFile(v BriefDataFile) {
o.DataFile = v
}
-
// GetDataSynced returns the DataSynced field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ExportTemplate) GetDataSynced() time.Time {
if o == nil || IsNil(o.DataSynced.Get()) {
@@ -497,6 +558,7 @@ func (o *ExportTemplate) HasDataSynced() bool {
func (o *ExportTemplate) SetDataSynced(v time.Time) {
o.DataSynced.Set(&v)
}
+
// SetDataSyncedNil sets the value for DataSynced to be an explicit nil
func (o *ExportTemplate) SetDataSyncedNil() {
o.DataSynced.Set(nil)
@@ -539,6 +601,7 @@ func (o *ExportTemplate) HasCreated() bool {
func (o *ExportTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ExportTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -581,6 +644,7 @@ func (o *ExportTemplate) HasLastUpdated() bool {
func (o *ExportTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ExportTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -592,7 +656,7 @@ func (o *ExportTemplate) UnsetLastUpdated() {
}
func (o ExportTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -612,10 +676,16 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.EnvironmentParams != nil {
+ toSerialize["environment_params"] = o.EnvironmentParams
+ }
toSerialize["template_code"] = o.TemplateCode
if !IsNil(o.MimeType) {
toSerialize["mime_type"] = o.MimeType
}
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
if !IsNil(o.FileExtension) {
toSerialize["file_extension"] = o.FileExtension
}
@@ -661,32 +731,31 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -710,8 +779,10 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
+ delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
delete(additionalProperties, "file_extension")
delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
@@ -761,5 +832,3 @@ func (v *NullableExportTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_export_template_request.go b/model_export_template_request.go
index 3828e00b0..ebfc56e69 100644
--- a/model_export_template_request.go
+++ b/model_export_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,17 +21,21 @@ var _ MappedNullable = &ExportTemplateRequest{}
// ExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ExportTemplateRequest struct {
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset
.
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ // Any additional parameters to pass when constructing the Jinja environment
+ EnvironmentParams interface{} `json:"environment_params,omitempty"`
+ // Jinja template code.
TemplateCode string `json:"template_code"`
// Defaults to text/plain; charset=utf-8
MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
// Extension to append to the rendered filename
FileExtension *string `json:"file_extension,omitempty"`
// Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +85,6 @@ func (o *ExportTemplateRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *ExportTemplateRequest) GetName() string {
if o == nil {
@@ -106,7 +109,6 @@ func (o *ExportTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ExportTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -139,6 +141,39 @@ func (o *ExportTemplateRequest) SetDescription(v string) {
o.Description = &v
}
+// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ExportTemplateRequest) GetEnvironmentParams() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.EnvironmentParams
+}
+
+// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ExportTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.EnvironmentParams) {
+ return nil, false
+ }
+ return &o.EnvironmentParams, true
+}
+
+// HasEnvironmentParams returns a boolean if a field has been set.
+func (o *ExportTemplateRequest) HasEnvironmentParams() bool {
+ if o != nil && !IsNil(o.EnvironmentParams) {
+ return true
+ }
+
+ return false
+}
+
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *ExportTemplateRequest) SetEnvironmentParams(v interface{}) {
+ o.EnvironmentParams = v
+}
+
// GetTemplateCode returns the TemplateCode field value
func (o *ExportTemplateRequest) GetTemplateCode() string {
if o == nil {
@@ -163,7 +198,6 @@ func (o *ExportTemplateRequest) SetTemplateCode(v string) {
o.TemplateCode = v
}
-
// GetMimeType returns the MimeType field value if set, zero value otherwise.
func (o *ExportTemplateRequest) GetMimeType() string {
if o == nil || IsNil(o.MimeType) {
@@ -196,6 +230,38 @@ func (o *ExportTemplateRequest) SetMimeType(v string) {
o.MimeType = &v
}
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *ExportTemplateRequest) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ExportTemplateRequest) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *ExportTemplateRequest) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *ExportTemplateRequest) SetFileName(v string) {
+ o.FileName = &v
+}
+
// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
func (o *ExportTemplateRequest) GetFileExtension() string {
if o == nil || IsNil(o.FileExtension) {
@@ -261,9 +327,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest {
+func (o *ExportTemplateRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -271,7 +337,7 @@ func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *ExportTemplateRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -287,13 +353,13 @@ func (o *ExportTemplateRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *ExportTemplateRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
func (o ExportTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -307,10 +373,16 @@ func (o ExportTemplateRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.EnvironmentParams != nil {
+ toSerialize["environment_params"] = o.EnvironmentParams
+ }
toSerialize["template_code"] = o.TemplateCode
if !IsNil(o.MimeType) {
toSerialize["mime_type"] = o.MimeType
}
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
if !IsNil(o.FileExtension) {
toSerialize["file_extension"] = o.FileExtension
}
@@ -340,32 +412,31 @@ func (o *ExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -385,8 +456,10 @@ func (o *ExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
+ delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
delete(additionalProperties, "file_extension")
delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
@@ -431,5 +504,3 @@ func (v *NullableExportTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go
index c236be92e..ef79e0613 100644
--- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go
+++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type ExtrasCustomFieldChoiceSetsListBaseChoicesParameter string
// List of extras_custom_field_choice_sets_list_base_choices_parameter
const (
- EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_IATA ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "IATA"
- EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_ISO_3166 ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "ISO_3166"
+ EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_IATA ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "IATA"
+ EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_ISO_3166 ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "ISO_3166"
EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_UN_LOCODE ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "UN_LOCODE"
)
@@ -110,4 +110,3 @@ func (v *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) UnmarshalJ
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go
index edc9d3f1a..8b7e4d612 100644
--- a/model_extras_custom_fields_list_filter_logic_parameter.go
+++ b/model_extras_custom_fields_list_filter_logic_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type ExtrasCustomFieldsListFilterLogicParameter string
// List of extras_custom_fields_list_filter_logic_parameter
const (
EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_DISABLED ExtrasCustomFieldsListFilterLogicParameter = "disabled"
- EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_EXACT ExtrasCustomFieldsListFilterLogicParameter = "exact"
- EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_LOOSE ExtrasCustomFieldsListFilterLogicParameter = "loose"
+ EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_EXACT ExtrasCustomFieldsListFilterLogicParameter = "exact"
+ EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_LOOSE ExtrasCustomFieldsListFilterLogicParameter = "loose"
)
// All allowed values of ExtrasCustomFieldsListFilterLogicParameter enum
@@ -110,4 +110,3 @@ func (v *NullableExtrasCustomFieldsListFilterLogicParameter) UnmarshalJSON(src [
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go
index 1ebdee448..0b708cc95 100644
--- a/model_extras_custom_fields_list_ui_editable_parameter.go
+++ b/model_extras_custom_fields_list_ui_editable_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type ExtrasCustomFieldsListUiEditableParameter string
// List of extras_custom_fields_list_ui_editable_parameter
const (
EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_HIDDEN ExtrasCustomFieldsListUiEditableParameter = "hidden"
- EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_NO ExtrasCustomFieldsListUiEditableParameter = "no"
- EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_YES ExtrasCustomFieldsListUiEditableParameter = "yes"
+ EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_NO ExtrasCustomFieldsListUiEditableParameter = "no"
+ EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_YES ExtrasCustomFieldsListUiEditableParameter = "yes"
)
// All allowed values of ExtrasCustomFieldsListUiEditableParameter enum
@@ -110,4 +110,3 @@ func (v *NullableExtrasCustomFieldsListUiEditableParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go
index 2b83e5217..1bc215667 100644
--- a/model_extras_custom_fields_list_ui_visible_parameter.go
+++ b/model_extras_custom_fields_list_ui_visible_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableExtrasCustomFieldsListUiVisibleParameter) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go
index 03899a05b..b8c2576db 100644
--- a/model_extras_custom_links_list_button_class_parameter.go
+++ b/model_extras_custom_links_list_button_class_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string
// List of extras_custom_links_list_button_class_parameter
const (
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default"
EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white"
- EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white"
+ EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow"
)
// All allowed values of ExtrasCustomLinksListButtonClassParameter enum
@@ -134,4 +134,3 @@ func (v *NullableExtrasCustomLinksListButtonClassParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_fhrp_group.go b/model_fhrp_group.go
index f2289bb81..05a207434 100644
--- a/model_fhrp_group.go
+++ b/model_fhrp_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the FHRPGroup type satisfies the MappedNullable interface at compile time
@@ -21,22 +21,22 @@ 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"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Protocol BriefFHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
- AuthKey *string `json:"auth_key,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- IpAddresses []BriefIPAddress `json:"ip_addresses"`
+ Id int32 `json:"id"`
+ Name *string `json:"name,omitempty"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Protocol BriefFHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
+ AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
+ AuthKey *string `json:"auth_key,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ IpAddresses []BriefIPAddress `json:"ip_addresses"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *FHRPGroup) SetId(v int32) {
o.Id = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *FHRPGroup) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -146,7 +145,6 @@ func (o *FHRPGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *FHRPGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -203,7 +201,6 @@ func (o *FHRPGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetProtocol returns the Protocol field value
func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol {
if o == nil {
@@ -228,7 +225,6 @@ func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) {
o.Protocol = v
}
-
// GetGroupId returns the GroupId field value
func (o *FHRPGroup) GetGroupId() int32 {
if o == nil {
@@ -253,7 +249,6 @@ func (o *FHRPGroup) SetGroupId(v int32) {
o.GroupId = v
}
-
// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FHRPGroup) GetAuthType() AuthenticationType {
if o == nil || IsNil(o.AuthType.Get()) {
@@ -286,6 +281,7 @@ func (o *FHRPGroup) HasAuthType() bool {
func (o *FHRPGroup) SetAuthType(v AuthenticationType) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *FHRPGroup) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -488,6 +484,7 @@ func (o *FHRPGroup) HasCreated() bool {
func (o *FHRPGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *FHRPGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -530,6 +527,7 @@ func (o *FHRPGroup) HasLastUpdated() bool {
func (o *FHRPGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *FHRPGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -564,9 +562,8 @@ func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) {
o.IpAddresses = v
}
-
func (o FHRPGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -634,32 +631,31 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -733,5 +729,3 @@ func (v *NullableFHRPGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go
index b11bc7d2b..e58c7fb54 100644
--- a/model_fhrp_group_assignment.go
+++ b/model_fhrp_group_assignment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the FHRPGroupAssignment type satisfies the MappedNullable interface at compile time
@@ -21,16 +21,16 @@ var _ MappedNullable = &FHRPGroupAssignment{}
// FHRPGroupAssignment Adds support for custom fields and tags.
type FHRPGroupAssignment struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Group BriefFHRPGroup `json:"group"`
- InterfaceType string `json:"interface_type"`
- InterfaceId int64 `json:"interface_id"`
- Interface interface{} `json:"interface,omitempty"`
- Priority int32 `json:"priority"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Group BriefFHRPGroup `json:"group"`
+ InterfaceType string `json:"interface_type"`
+ InterfaceId int64 `json:"interface_id"`
+ Interface interface{} `json:"interface,omitempty"`
+ Priority int32 `json:"priority"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *FHRPGroupAssignment) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *FHRPGroupAssignment) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *FHRPGroupAssignment) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *FHRPGroupAssignment) GetDisplay() string {
if o == nil {
@@ -134,7 +132,6 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) {
o.Display = v
}
-
// GetGroup returns the Group field value
func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup {
if o == nil {
@@ -159,7 +156,6 @@ func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) {
o.Group = v
}
-
// GetInterfaceType returns the InterfaceType field value
func (o *FHRPGroupAssignment) GetInterfaceType() string {
if o == nil {
@@ -184,7 +180,6 @@ func (o *FHRPGroupAssignment) SetInterfaceType(v string) {
o.InterfaceType = v
}
-
// GetInterfaceId returns the InterfaceId field value
func (o *FHRPGroupAssignment) GetInterfaceId() int64 {
if o == nil {
@@ -209,7 +204,6 @@ func (o *FHRPGroupAssignment) SetInterfaceId(v int64) {
o.InterfaceId = v
}
-
// GetInterface returns the Interface field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FHRPGroupAssignment) GetInterface() interface{} {
if o == nil {
@@ -267,7 +261,6 @@ func (o *FHRPGroupAssignment) SetPriority(v int32) {
o.Priority = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FHRPGroupAssignment) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
@@ -300,6 +293,7 @@ func (o *FHRPGroupAssignment) HasCreated() bool {
func (o *FHRPGroupAssignment) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *FHRPGroupAssignment) SetCreatedNil() {
o.Created.Set(nil)
@@ -342,6 +336,7 @@ func (o *FHRPGroupAssignment) HasLastUpdated() bool {
func (o *FHRPGroupAssignment) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *FHRPGroupAssignment) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -353,7 +348,7 @@ func (o *FHRPGroupAssignment) UnsetLastUpdated() {
}
func (o FHRPGroupAssignment) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -402,32 +397,31 @@ func (o *FHRPGroupAssignment) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -495,5 +489,3 @@ func (v *NullableFHRPGroupAssignment) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go
index 21804bd95..7d67364c1 100644
--- a/model_fhrp_group_assignment_request.go
+++ b/model_fhrp_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{}
// FHRPGroupAssignmentRequest Adds support for custom fields and tags.
type FHRPGroupAssignmentRequest struct {
- Group BriefFHRPGroupRequest `json:"group"`
- InterfaceType string `json:"interface_type"`
- InterfaceId int64 `json:"interface_id"`
- Priority int32 `json:"priority"`
+ Group FHRPGroupAssignmentRequestGroup `json:"group"`
+ InterfaceType string `json:"interface_type"`
+ InterfaceId int64 `json:"interface_id"`
+ Priority int32 `json:"priority"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest {
+func NewFHRPGroupAssignmentRequest(group FHRPGroupAssignmentRequestGroup, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest {
this := FHRPGroupAssignmentRequest{}
this.Group = group
this.InterfaceType = interfaceType
@@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest {
}
// GetGroup returns the Group field value
-func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest {
+func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupAssignmentRequestGroup {
if o == nil {
- var ret BriefFHRPGroupRequest
+ var ret FHRPGroupAssignmentRequestGroup
return ret
}
@@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest {
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) {
+func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupAssignmentRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)
}
// SetGroup sets field value
-func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) {
+func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupAssignmentRequestGroup) {
o.Group = v
}
-
// GetInterfaceType returns the InterfaceType field value
func (o *FHRPGroupAssignmentRequest) GetInterfaceType() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *FHRPGroupAssignmentRequest) SetInterfaceType(v string) {
o.InterfaceType = v
}
-
// GetInterfaceId returns the InterfaceId field value
func (o *FHRPGroupAssignmentRequest) GetInterfaceId() int64 {
if o == nil {
@@ -124,7 +122,6 @@ func (o *FHRPGroupAssignmentRequest) SetInterfaceId(v int64) {
o.InterfaceId = v
}
-
// GetPriority returns the Priority field value
func (o *FHRPGroupAssignmentRequest) GetPriority() int32 {
if o == nil {
@@ -149,9 +146,8 @@ func (o *FHRPGroupAssignmentRequest) SetPriority(v int32) {
o.Priority = v
}
-
func (o FHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -185,32 +181,31 @@ func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -272,5 +267,3 @@ func (v *NullableFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_fhrp_group_assignment_request_group.go b/model_fhrp_group_assignment_request_group.go
new file mode 100644
index 000000000..0fa66d2f5
--- /dev/null
+++ b/model_fhrp_group_assignment_request_group.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// FHRPGroupAssignmentRequestGroup - struct for FHRPGroupAssignmentRequestGroup
+type FHRPGroupAssignmentRequestGroup struct {
+ BriefFHRPGroupRequest *BriefFHRPGroupRequest
+ Int32 *int32
+}
+
+// BriefFHRPGroupRequestAsFHRPGroupAssignmentRequestGroup is a convenience function that returns BriefFHRPGroupRequest wrapped in FHRPGroupAssignmentRequestGroup
+func BriefFHRPGroupRequestAsFHRPGroupAssignmentRequestGroup(v *BriefFHRPGroupRequest) FHRPGroupAssignmentRequestGroup {
+ return FHRPGroupAssignmentRequestGroup{
+ BriefFHRPGroupRequest: v,
+ }
+}
+
+// int32AsFHRPGroupAssignmentRequestGroup is a convenience function that returns int32 wrapped in FHRPGroupAssignmentRequestGroup
+func Int32AsFHRPGroupAssignmentRequestGroup(v *int32) FHRPGroupAssignmentRequestGroup {
+ return FHRPGroupAssignmentRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *FHRPGroupAssignmentRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefFHRPGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefFHRPGroupRequest)
+ if err == nil {
+ jsonBriefFHRPGroupRequest, _ := json.Marshal(dst.BriefFHRPGroupRequest)
+ if string(jsonBriefFHRPGroupRequest) == "{}" { // empty struct
+ dst.BriefFHRPGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefFHRPGroupRequest); err != nil {
+ dst.BriefFHRPGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefFHRPGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefFHRPGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(FHRPGroupAssignmentRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(FHRPGroupAssignmentRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src FHRPGroupAssignmentRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefFHRPGroupRequest != nil {
+ return json.Marshal(&src.BriefFHRPGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *FHRPGroupAssignmentRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefFHRPGroupRequest != nil {
+ return obj.BriefFHRPGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableFHRPGroupAssignmentRequestGroup struct {
+ value *FHRPGroupAssignmentRequestGroup
+ isSet bool
+}
+
+func (v NullableFHRPGroupAssignmentRequestGroup) Get() *FHRPGroupAssignmentRequestGroup {
+ return v.value
+}
+
+func (v *NullableFHRPGroupAssignmentRequestGroup) Set(val *FHRPGroupAssignmentRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFHRPGroupAssignmentRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFHRPGroupAssignmentRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFHRPGroupAssignmentRequestGroup(val *FHRPGroupAssignmentRequestGroup) *NullableFHRPGroupAssignmentRequestGroup {
+ return &NullableFHRPGroupAssignmentRequestGroup{value: val, isSet: true}
+}
+
+func (v NullableFHRPGroupAssignmentRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFHRPGroupAssignmentRequestGroup) 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 ae045eb6e..67e5e993e 100644
--- a/model_fhrp_group_request.go
+++ b/model_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &FHRPGroupRequest{}
// FHRPGroupRequest Adds support for custom fields and tags.
type FHRPGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Protocol BriefFHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
- AuthKey *string `json:"auth_key,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Protocol BriefFHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
+ AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
+ AuthKey *string `json:"auth_key,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -109,7 +109,6 @@ func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) {
o.Protocol = v
}
-
// GetGroupId returns the GroupId field value
func (o *FHRPGroupRequest) GetGroupId() int32 {
if o == nil {
@@ -134,7 +133,6 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) {
o.GroupId = v
}
-
// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FHRPGroupRequest) GetAuthType() AuthenticationType {
if o == nil || IsNil(o.AuthType.Get()) {
@@ -167,6 +165,7 @@ func (o *FHRPGroupRequest) HasAuthType() bool {
func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *FHRPGroupRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -338,7 +337,7 @@ func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -389,32 +388,31 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -481,5 +479,3 @@ func (v *NullableFHRPGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port.go b/model_front_port.go
index 1fa4cc66b..c5c1a86cb 100644
--- a/model_front_port.go
+++ b/model_front_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the FrontPort type satisfies the MappedNullable interface at compile time
@@ -21,33 +21,33 @@ var _ MappedNullable = &FrontPort{}
// FrontPort Adds support for custom fields and tags.
type FrontPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortType `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortType `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
RearPort FrontPortRearPort `json:"rear_port"`
// Mapped position on corresponding rear port
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -103,7 +103,6 @@ func (o *FrontPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *FrontPort) GetUrl() string {
if o == nil {
@@ -128,7 +127,6 @@ func (o *FrontPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *FrontPort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -185,7 +183,6 @@ func (o *FrontPort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *FrontPort) GetDevice() BriefDevice {
if o == nil {
@@ -210,7 +207,6 @@ func (o *FrontPort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FrontPort) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -243,6 +239,7 @@ func (o *FrontPort) HasModule() bool {
func (o *FrontPort) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *FrontPort) SetModuleNil() {
o.Module.Set(nil)
@@ -277,7 +274,6 @@ func (o *FrontPort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -334,7 +330,6 @@ func (o *FrontPort) SetType(v FrontPortType) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *FrontPort) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -391,7 +386,6 @@ func (o *FrontPort) SetRearPort(v FrontPortRearPort) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *FrontPort) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -520,6 +514,7 @@ func (o *FrontPort) HasCable() bool {
func (o *FrontPort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *FrontPort) SetCableNil() {
o.Cable.Set(nil)
@@ -586,7 +581,6 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FrontPort) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -619,6 +613,7 @@ func (o *FrontPort) HasLinkPeersType() bool {
func (o *FrontPort) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *FrontPort) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -725,6 +720,7 @@ func (o *FrontPort) HasCreated() bool {
func (o *FrontPort) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *FrontPort) SetCreatedNil() {
o.Created.Set(nil)
@@ -767,6 +763,7 @@ func (o *FrontPort) HasLastUpdated() bool {
func (o *FrontPort) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *FrontPort) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -801,9 +798,8 @@ func (o *FrontPort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o FrontPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -889,32 +885,31 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -995,5 +990,3 @@ func (v *NullableFrontPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go
index 714cc4023..f62a7e508 100644
--- a/model_front_port_rear_port.go
+++ b/model_front_port_rear_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &FrontPortRearPort{}
// FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device)
type FrontPortRearPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Display string `json:"display"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *FrontPortRearPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *FrontPortRearPort) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *FrontPortRearPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *FrontPortRearPort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -160,7 +158,6 @@ func (o *FrontPortRearPort) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *FrontPortRearPort) GetName() string {
if o == nil {
@@ -185,7 +182,6 @@ func (o *FrontPortRearPort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPortRearPort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -251,7 +247,7 @@ func (o *FrontPortRearPort) SetDescription(v string) {
}
func (o FrontPortRearPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -294,32 +290,31 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -384,5 +379,3 @@ func (v *NullableFrontPortRearPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go
index b233a705d..9d2806185 100644
--- a/model_front_port_rear_port_request.go
+++ b/model_front_port_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,8 +22,8 @@ var _ MappedNullable = &FrontPortRearPortRequest{}
type FrontPortRearPortRequest struct {
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *FrontPortRearPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPortRearPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -137,7 +136,7 @@ func (o *FrontPortRearPortRequest) SetDescription(v string) {
}
func (o FrontPortRearPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -171,32 +170,31 @@ func (o *FrontPortRearPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -257,5 +255,3 @@ func (v *NullableFrontPortRearPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_request.go b/model_front_port_request.go
index 3c1281857..99f2fe2b5 100644
--- a/model_front_port_request.go
+++ b/model_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ var _ MappedNullable = &FrontPortRequest{}
// FrontPortRequest Adds support for custom fields and tags.
type FrontPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
RearPort FrontPortRearPortRequest `json:"rear_port"`
// Mapped position on corresponding rear port
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,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 BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest {
+func NewFrontPortRequest(device BriefInterfaceRequestDevice, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest {
this := FrontPortRequest{}
this.Device = device
this.Name = name
@@ -62,9 +62,9 @@ func NewFrontPortRequestWithDefaults() *FrontPortRequest {
}
// GetDevice returns the Device field value
-func (o *FrontPortRequest) GetDevice() BriefDeviceRequest {
+func (o *FrontPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -73,7 +73,7 @@ func (o *FrontPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *FrontPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -81,15 +81,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *FrontPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *FrontPortRequest) GetModule() BriefModuleRequest {
+func (o *FrontPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -98,7 +97,7 @@ func (o *FrontPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *FrontPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -114,10 +113,11 @@ func (o *FrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *FrontPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *FrontPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *FrontPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -152,7 +152,6 @@ func (o *FrontPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -209,7 +208,6 @@ func (o *FrontPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *FrontPortRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -266,7 +264,6 @@ func (o *FrontPortRequest) SetRearPort(v FrontPortRearPortRequest) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *FrontPortRequest) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -428,7 +425,7 @@ func (o *FrontPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o FrontPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -486,32 +483,31 @@ func (o *FrontPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -581,5 +577,3 @@ func (v *NullableFrontPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_template.go b/model_front_port_template.go
index 9e28613b2..dc126804c 100644
--- a/model_front_port_template.go
+++ b/model_front_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the FrontPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,22 +21,22 @@ var _ MappedNullable = &FrontPortTemplate{}
// FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type FrontPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortType `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort BriefRearPortTemplate `json:"rear_port"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortType `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort BriefRearPortTemplate `json:"rear_port"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *FrontPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *FrontPortTemplate) GetUrl() string {
if o == nil {
@@ -114,7 +113,6 @@ func (o *FrontPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *FrontPortTemplate) GetDisplay() string {
if o == nil {
@@ -139,7 +137,6 @@ func (o *FrontPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -172,6 +169,7 @@ func (o *FrontPortTemplate) HasDeviceType() bool {
func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *FrontPortTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -214,6 +212,7 @@ func (o *FrontPortTemplate) HasModuleType() bool {
func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *FrontPortTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -248,7 +247,6 @@ func (o *FrontPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPortTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -305,7 +303,6 @@ func (o *FrontPortTemplate) SetType(v FrontPortType) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *FrontPortTemplate) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -362,7 +359,6 @@ func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *FrontPortTemplate) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -459,6 +455,7 @@ func (o *FrontPortTemplate) HasCreated() bool {
func (o *FrontPortTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *FrontPortTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -501,6 +498,7 @@ func (o *FrontPortTemplate) HasLastUpdated() bool {
func (o *FrontPortTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *FrontPortTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -512,7 +510,7 @@ func (o *FrontPortTemplate) UnsetLastUpdated() {
}
func (o FrontPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -574,32 +572,31 @@ func (o *FrontPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -671,5 +668,3 @@ func (v *NullableFrontPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go
index 3eb0519cb..e15b64240 100644
--- a/model_front_port_template_request.go
+++ b/model_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{}
// FrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type FrontPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort BriefRearPortTemplateRequest `json:"rear_port"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort FrontPortTemplateRequestRearPort `json:"rear_port"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -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_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest {
+func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort FrontPortTemplateRequestRearPort) *FrontPortTemplateRequest {
this := FrontPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -57,9 +57,9 @@ func NewFrontPortTemplateRequestWithDefaults() *FrontPortTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *FrontPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -68,7 +68,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -84,10 +84,11 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *FrontPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *FrontPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -99,9 +100,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *FrontPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -110,7 +111,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -126,10 +127,11 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *FrontPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *FrontPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -164,7 +166,6 @@ func (o *FrontPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *FrontPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -221,7 +222,6 @@ func (o *FrontPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *FrontPortTemplateRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -255,9 +255,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value
-func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest {
+func (o *FrontPortTemplateRequest) GetRearPort() FrontPortTemplateRequestRearPort {
if o == nil {
- var ret BriefRearPortTemplateRequest
+ var ret FrontPortTemplateRequestRearPort
return ret
}
@@ -266,7 +266,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest {
// GetRearPortOk returns a tuple with the RearPort field value
// and a boolean to check if the value has been set.
-func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) {
+func (o *FrontPortTemplateRequest) GetRearPortOk() (*FrontPortTemplateRequestRearPort, bool) {
if o == nil {
return nil, false
}
@@ -274,11 +274,10 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateReques
}
// SetRearPort sets field value
-func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) {
+func (o *FrontPortTemplateRequest) SetRearPort(v FrontPortTemplateRequestRearPort) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *FrontPortTemplateRequest) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -344,7 +343,7 @@ func (o *FrontPortTemplateRequest) SetDescription(v string) {
}
func (o FrontPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -394,32 +393,31 @@ func (o *FrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -486,5 +484,3 @@ func (v *NullableFrontPortTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_template_request_rear_port.go b/model_front_port_template_request_rear_port.go
new file mode 100644
index 000000000..3edb3f77a
--- /dev/null
+++ b/model_front_port_template_request_rear_port.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// FrontPortTemplateRequestRearPort - struct for FrontPortTemplateRequestRearPort
+type FrontPortTemplateRequestRearPort struct {
+ BriefRearPortTemplateRequest *BriefRearPortTemplateRequest
+ Int32 *int32
+}
+
+// BriefRearPortTemplateRequestAsFrontPortTemplateRequestRearPort is a convenience function that returns BriefRearPortTemplateRequest wrapped in FrontPortTemplateRequestRearPort
+func BriefRearPortTemplateRequestAsFrontPortTemplateRequestRearPort(v *BriefRearPortTemplateRequest) FrontPortTemplateRequestRearPort {
+ return FrontPortTemplateRequestRearPort{
+ BriefRearPortTemplateRequest: v,
+ }
+}
+
+// int32AsFrontPortTemplateRequestRearPort is a convenience function that returns int32 wrapped in FrontPortTemplateRequestRearPort
+func Int32AsFrontPortTemplateRequestRearPort(v *int32) FrontPortTemplateRequestRearPort {
+ return FrontPortTemplateRequestRearPort{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *FrontPortTemplateRequestRearPort) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefRearPortTemplateRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRearPortTemplateRequest)
+ if err == nil {
+ jsonBriefRearPortTemplateRequest, _ := json.Marshal(dst.BriefRearPortTemplateRequest)
+ if string(jsonBriefRearPortTemplateRequest) == "{}" { // empty struct
+ dst.BriefRearPortTemplateRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRearPortTemplateRequest); err != nil {
+ dst.BriefRearPortTemplateRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRearPortTemplateRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRearPortTemplateRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(FrontPortTemplateRequestRearPort)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(FrontPortTemplateRequestRearPort)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src FrontPortTemplateRequestRearPort) MarshalJSON() ([]byte, error) {
+ if src.BriefRearPortTemplateRequest != nil {
+ return json.Marshal(&src.BriefRearPortTemplateRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *FrontPortTemplateRequestRearPort) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRearPortTemplateRequest != nil {
+ return obj.BriefRearPortTemplateRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableFrontPortTemplateRequestRearPort struct {
+ value *FrontPortTemplateRequestRearPort
+ isSet bool
+}
+
+func (v NullableFrontPortTemplateRequestRearPort) Get() *FrontPortTemplateRequestRearPort {
+ return v.value
+}
+
+func (v *NullableFrontPortTemplateRequestRearPort) Set(val *FrontPortTemplateRequestRearPort) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableFrontPortTemplateRequestRearPort) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableFrontPortTemplateRequestRearPort) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableFrontPortTemplateRequestRearPort(val *FrontPortTemplateRequestRearPort) *NullableFrontPortTemplateRequestRearPort {
+ return &NullableFrontPortTemplateRequestRearPort{value: val, isSet: true}
+}
+
+func (v NullableFrontPortTemplateRequestRearPort) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableFrontPortTemplateRequestRearPort) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_front_port_type.go b/model_front_port_type.go
index b9c07b83b..9609ef66f 100644
--- a/model_front_port_type.go
+++ b/model_front_port_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &FrontPortType{}
// FrontPortType struct for FrontPortType
type FrontPortType struct {
- Value *FrontPortTypeValue `json:"value,omitempty"`
- Label *FrontPortTypeLabel `json:"label,omitempty"`
+ Value *FrontPortTypeValue `json:"value,omitempty"`
+ Label *FrontPortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *FrontPortType) SetLabel(v FrontPortTypeLabel) {
}
func (o FrontPortType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableFrontPortType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go
index d9accb75b..a96a85906 100644
--- a/model_front_port_type_label.go
+++ b/model_front_port_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,61 +20,64 @@ 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_USB_TYPE_A FrontPortTypeLabel = "USB Type A"
- FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B"
- FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C"
- FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A"
- FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B"
- FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A"
- FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B"
+ FRONTPORTTYPELABEL__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_FC_PC FrontPortTypeLabel = "FC/PC"
+ FRONTPORTTYPELABEL_FC_UPC FrontPortTypeLabel = "FC/UPC"
+ FRONTPORTTYPELABEL_FC_APC FrontPortTypeLabel = "FC/APC"
+ FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC"
+ FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC"
+ FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC"
+ FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC"
+ FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH"
+ FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC"
+ FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC"
+ FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC"
+ FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5"
+ FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC"
+ FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC"
+ FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC"
+ FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO"
+ FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ"
+ FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC"
+ FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC"
+ FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC"
+ FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC"
+ FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST"
+ FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS"
+ FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN"
+ FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905"
+ FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906"
+ FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2"
+ FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4"
+ FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8"
+ FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice"
+ FRONTPORTTYPELABEL_USB_TYPE_A FrontPortTypeLabel = "USB Type A"
+ FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B"
+ FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C"
+ FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A"
+ FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B"
+ FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A"
+ FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B"
FRONTPORTTYPELABEL_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB"
- FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other"
+ FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other"
)
// All allowed values of FrontPortTypeLabel enum
@@ -98,6 +101,9 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{
"N Connector",
"MRJ21",
"FC",
+ "FC/PC",
+ "FC/UPC",
+ "FC/APC",
"LC",
"LC/PC",
"LC/UPC",
@@ -214,4 +220,3 @@ func (v *NullableFrontPortTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go
index 5e14486a5..8ae84d21b 100644
--- a/model_front_port_type_value.go
+++ b/model_front_port_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,66 +15,69 @@ import (
"fmt"
)
-// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `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
+// 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 * `fc-pc` - FC/PC * `fc-upc` - FC/UPC * `fc-apc` - FC/APC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other
type FrontPortTypeValue string
// List of FrontPort_type_value
const (
- FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c"
- FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c"
- FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c"
- FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c"
- FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c"
- FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c"
- FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c"
- FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c"
- FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c"
- FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45"
- FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p"
- FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p"
- FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p"
- FRONTPORTTYPEVALUE__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_USB_A FrontPortTypeValue = "usb-a"
- FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b"
- FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c"
- FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a"
- FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b"
- FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a"
- FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b"
+ FRONTPORTTYPEVALUE__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_FC_PC FrontPortTypeValue = "fc-pc"
+ FRONTPORTTYPEVALUE_FC_UPC FrontPortTypeValue = "fc-upc"
+ FRONTPORTTYPEVALUE_FC_APC FrontPortTypeValue = "fc-apc"
+ FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc"
+ FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc"
+ FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc"
+ FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc"
+ FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh"
+ FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc"
+ FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc"
+ FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc"
+ FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5"
+ FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc"
+ FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc"
+ FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc"
+ FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo"
+ FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj"
+ FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc"
+ FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc"
+ FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc"
+ FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc"
+ FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st"
+ FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs"
+ FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn"
+ FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905"
+ FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906"
+ FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2"
+ FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4"
+ FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8"
+ FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice"
+ FRONTPORTTYPEVALUE_USB_A FrontPortTypeValue = "usb-a"
+ FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b"
+ FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c"
+ FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a"
+ FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b"
+ FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a"
+ FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b"
FRONTPORTTYPEVALUE_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab"
- FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other"
+ FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other"
)
// All allowed values of FrontPortTypeValue enum
@@ -98,6 +101,9 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{
"n",
"mrj21",
"fc",
+ "fc-pc",
+ "fc-upc",
+ "fc-apc",
"lc",
"lc-pc",
"lc-upc",
@@ -214,4 +220,3 @@ 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 4ed66b473..c8a029167 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,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 interface{} `json:"object,omitempty"`
+ ObjectType string `json:"object_type"`
+ ObjectId int32 `json:"object_id"`
+ Object interface{} `json:"object,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *GenericObject) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *GenericObject) GetObjectId() int32 {
if o == nil {
@@ -96,7 +95,6 @@ func (o *GenericObject) SetObjectId(v int32) {
o.ObjectId = v
}
-
// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *GenericObject) GetObject() interface{} {
if o == nil {
@@ -131,7 +129,7 @@ func (o *GenericObject) SetObject(v interface{}) {
}
func (o GenericObject) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *GenericObject) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableGenericObject) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_generic_object_request.go b/model_generic_object_request.go
index 69362cc6f..8e50cba57 100644
--- a/model_generic_object_request.go
+++ b/model_generic_object_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &GenericObjectRequest{}
// GenericObjectRequest Minimal representation of some generic object identified by ContentType and PK.
type GenericObjectRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int32 `json:"object_id"`
+ ObjectType string `json:"object_type"`
+ ObjectId int32 `json:"object_id"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *GenericObjectRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *GenericObjectRequest) GetObjectId() int32 {
if o == nil {
@@ -95,9 +94,8 @@ func (o *GenericObjectRequest) SetObjectId(v int32) {
o.ObjectId = v
}
-
func (o GenericObjectRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *GenericObjectRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableGenericObjectRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_group.go b/model_group.go
index f3ae45d83..3dcf93ee0 100644
--- a/model_group.go
+++ b/model_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &Group{}
// Group Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Group struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Permissions []ObjectPermission `json:"permissions,omitempty"`
- UserCount *int32 `json:"user_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Permissions []ObjectPermission `json:"permissions,omitempty"`
+ UserCount *int32 `json:"user_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *Group) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Group) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *Group) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Group) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -160,7 +158,6 @@ func (o *Group) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Group) GetName() string {
if o == nil {
@@ -185,7 +182,6 @@ func (o *Group) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Group) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -283,7 +279,7 @@ func (o *Group) SetUserCount(v int32) {
}
func (o Group) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -329,32 +325,31 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -420,5 +415,3 @@ func (v *NullableGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_group_request.go b/model_group_request.go
index 6b393816d..2e730ebe3 100644
--- a/model_group_request.go
+++ b/model_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &GroupRequest{}
// GroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type GroupRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Permissions []int32 `json:"permissions,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Permissions []int32 `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *GroupRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *GroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -136,7 +135,7 @@ func (o *GroupRequest) SetPermissions(v []int32) {
}
func (o GroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -170,32 +169,31 @@ func (o *GroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -256,5 +254,3 @@ func (v *NullableGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_policy.go b/model_ike_policy.go
index 0ece00837..a889e5910 100644
--- a/model_ike_policy.go
+++ b/model_ike_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IKEPolicy type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &IKEPolicy{}
// IKEPolicy Adds support for custom fields and tags.
type IKEPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Version IKEPolicyVersion `json:"version"`
- Mode *IKEPolicyMode `json:"mode,omitempty"`
- Proposals []IKEProposal `json:"proposals,omitempty"`
- PresharedKey *string `json:"preshared_key,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version IKEPolicyVersion `json:"version"`
+ Mode *IKEPolicyMode `json:"mode,omitempty"`
+ Proposals []IKEProposal `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *IKEPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IKEPolicy) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *IKEPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IKEPolicy) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +167,6 @@ func (o *IKEPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *IKEPolicy) GetName() string {
if o == nil {
@@ -194,7 +191,6 @@ 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) {
@@ -251,7 +247,6 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) {
o.Version = v
}
-
// GetMode returns the Mode field value if set, zero value otherwise.
func (o *IKEPolicy) GetMode() IKEPolicyMode {
if o == nil || IsNil(o.Mode) {
@@ -476,6 +471,7 @@ func (o *IKEPolicy) HasCreated() bool {
func (o *IKEPolicy) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IKEPolicy) SetCreatedNil() {
o.Created.Set(nil)
@@ -518,6 +514,7 @@ func (o *IKEPolicy) HasLastUpdated() bool {
func (o *IKEPolicy) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IKEPolicy) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -529,7 +526,7 @@ func (o *IKEPolicy) UnsetLastUpdated() {
}
func (o IKEPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -595,32 +592,31 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -693,5 +689,3 @@ func (v *NullableIKEPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go
index 1a4a3d295..0a49dee8f 100644
--- a/model_ike_policy_mode.go
+++ b/model_ike_policy_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEPolicyMode{}
// IKEPolicyMode struct for IKEPolicyMode
type IKEPolicyMode struct {
- Value *IKEPolicyModeValue `json:"value,omitempty"`
- Label *IKEPolicyModeLabel `json:"label,omitempty"`
+ Value *IKEPolicyModeValue `json:"value,omitempty"`
+ Label *IKEPolicyModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEPolicyMode) SetLabel(v IKEPolicyModeLabel) {
}
func (o IKEPolicyMode) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEPolicyMode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go
index 21e20971c..a50d81d15 100644
--- a/model_ike_policy_mode_label.go
+++ b/model_ike_policy_mode_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type IKEPolicyModeLabel string
// List of IKEPolicy_mode_label
const (
IKEPOLICYMODELABEL_AGGRESSIVE IKEPolicyModeLabel = "Aggressive"
- IKEPOLICYMODELABEL_MAIN IKEPolicyModeLabel = "Main"
+ IKEPOLICYMODELABEL_MAIN IKEPolicyModeLabel = "Main"
)
// All allowed values of IKEPolicyModeLabel enum
@@ -108,4 +108,3 @@ func (v *NullableIKEPolicyModeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go
index 61585a11e..303332cf3 100644
--- a/model_ike_policy_mode_value.go
+++ b/model_ike_policy_mode_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type IKEPolicyModeValue string
// List of IKEPolicy_mode_value
const (
IKEPOLICYMODEVALUE_AGGRESSIVE IKEPolicyModeValue = "aggressive"
- IKEPOLICYMODEVALUE_MAIN IKEPolicyModeValue = "main"
+ IKEPOLICYMODEVALUE_MAIN IKEPolicyModeValue = "main"
)
// All allowed values of IKEPolicyModeValue enum
@@ -108,4 +108,3 @@ func (v *NullableIKEPolicyModeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go
index 93261817c..a5bbdc123 100644
--- a/model_ike_policy_request.go
+++ b/model_ike_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &IKEPolicyRequest{}
// IKEPolicyRequest Adds support for custom fields and tags.
type IKEPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Version IKEPolicyVersionValue `json:"version"`
- Mode *IKEPolicyModeValue `json:"mode,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PresharedKey *string `json:"preshared_key,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version IKEPolicyVersionValue `json:"version"`
+ Mode *IKEPolicyModeValue `json:"mode,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *IKEPolicyRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *IKEPolicyRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -134,7 +133,6 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) {
o.Version = v
}
-
// GetMode returns the Mode field value if set, zero value otherwise.
func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue {
if o == nil || IsNil(o.Mode) {
@@ -328,7 +326,7 @@ func (o *IKEPolicyRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IKEPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -379,32 +377,31 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -471,5 +468,3 @@ func (v *NullableIKEPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go
index 13e122db1..f062ff862 100644
--- a/model_ike_policy_version.go
+++ b/model_ike_policy_version.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEPolicyVersion{}
// IKEPolicyVersion struct for IKEPolicyVersion
type IKEPolicyVersion struct {
- Value *IKEPolicyVersionValue `json:"value,omitempty"`
- Label *IKEPolicyVersionLabel `json:"label,omitempty"`
+ Value *IKEPolicyVersionValue `json:"value,omitempty"`
+ Label *IKEPolicyVersionLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEPolicyVersion) SetLabel(v IKEPolicyVersionLabel) {
}
func (o IKEPolicyVersion) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEPolicyVersion) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go
index 7e06d5a11..46c5ec78f 100644
--- a/model_ike_policy_version_label.go
+++ b/model_ike_policy_version_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableIKEPolicyVersionLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go
index 9e0163800..57b900ade 100644
--- a/model_ike_policy_version_value.go
+++ b/model_ike_policy_version_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableIKEPolicyVersionValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal.go b/model_ike_proposal.go
index a32c7b694..348ff5a10 100644
--- a/model_ike_proposal.go
+++ b/model_ike_proposal.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IKEProposal type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &IKEProposal{}
// IKEProposal Adds support for custom fields and tags.
type IKEProposal struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"`
- EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"`
AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
- Group IKEProposalGroup `json:"group"`
+ 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,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *IKEProposal) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IKEProposal) GetUrl() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *IKEProposal) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IKEProposal) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -173,7 +171,6 @@ func (o *IKEProposal) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *IKEProposal) GetName() string {
if o == nil {
@@ -198,7 +195,6 @@ 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) {
@@ -255,7 +251,6 @@ func (o *IKEProposal) SetAuthenticationMethod(v IKEProposalAuthenticationMethod)
o.AuthenticationMethod = v
}
-
// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
func (o *IKEProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm {
if o == nil {
@@ -280,7 +275,6 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) {
o.EncryptionAlgorithm = v
}
-
// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm {
if o == nil || IsNil(o.AuthenticationAlgorithm) {
@@ -337,7 +331,6 @@ 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()) {
@@ -370,6 +363,7 @@ func (o *IKEProposal) HasSaLifetime() bool {
func (o *IKEProposal) SetSaLifetime(v int32) {
o.SaLifetime.Set(&v)
}
+
// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
func (o *IKEProposal) SetSaLifetimeNil() {
o.SaLifetime.Set(nil)
@@ -508,6 +502,7 @@ func (o *IKEProposal) HasCreated() bool {
func (o *IKEProposal) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IKEProposal) SetCreatedNil() {
o.Created.Set(nil)
@@ -550,6 +545,7 @@ func (o *IKEProposal) HasLastUpdated() bool {
func (o *IKEProposal) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IKEProposal) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -561,7 +557,7 @@ func (o *IKEProposal) UnsetLastUpdated() {
}
func (o IKEProposal) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -628,32 +624,31 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -727,5 +722,3 @@ func (v *NullableIKEProposal) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go
index 4bf0d5847..8dd14aaad 100644
--- a/model_ike_proposal_authentication_algorithm.go
+++ b/model_ike_proposal_authentication_algorithm.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalAuthenticationAlgorithm{}
// IKEProposalAuthenticationAlgorithm struct for IKEProposalAuthenticationAlgorithm
type IKEProposalAuthenticationAlgorithm struct {
- Value *IKEProposalAuthenticationAlgorithmValue `json:"value,omitempty"`
- Label *IKEProposalAuthenticationAlgorithmLabel `json:"label,omitempty"`
+ Value *IKEProposalAuthenticationAlgorithmValue `json:"value,omitempty"`
+ Label *IKEProposalAuthenticationAlgorithmLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEProposalAuthenticationAlgorithm) SetLabel(v IKEProposalAuthenticatio
}
func (o IKEProposalAuthenticationAlgorithm) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEProposalAuthenticationAlgorithm) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go
index 4d4a9595f..6a54671cc 100644
--- a/model_ike_proposal_authentication_algorithm_label.go
+++ b/model_ike_proposal_authentication_algorithm_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type IKEProposalAuthenticationAlgorithmLabel string
// List of IKEProposal_authentication_algorithm_label
const (
- IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_1_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-1 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_1_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-1 HMAC"
IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_256_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-256 HMAC"
IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_384_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-384 HMAC"
IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_512_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-512 HMAC"
- IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_MD5_HMAC IKEProposalAuthenticationAlgorithmLabel = "MD5 HMAC"
+ IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_MD5_HMAC IKEProposalAuthenticationAlgorithmLabel = "MD5 HMAC"
)
// All allowed values of IKEProposalAuthenticationAlgorithmLabel enum
@@ -114,4 +114,3 @@ func (v *NullableIKEProposalAuthenticationAlgorithmLabel) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go
index d63049d85..dc703edad 100644
--- a/model_ike_proposal_authentication_algorithm_value.go
+++ b/model_ike_proposal_authentication_algorithm_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type IKEProposalAuthenticationAlgorithmValue string
// List of IKEProposal_authentication_algorithm_value
const (
- IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA1 IKEProposalAuthenticationAlgorithmValue = "hmac-sha1"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA1 IKEProposalAuthenticationAlgorithmValue = "hmac-sha1"
IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA256 IKEProposalAuthenticationAlgorithmValue = "hmac-sha256"
IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA384 IKEProposalAuthenticationAlgorithmValue = "hmac-sha384"
IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA512 IKEProposalAuthenticationAlgorithmValue = "hmac-sha512"
- IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_MD5 IKEProposalAuthenticationAlgorithmValue = "hmac-md5"
+ IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_MD5 IKEProposalAuthenticationAlgorithmValue = "hmac-md5"
)
// All allowed values of IKEProposalAuthenticationAlgorithmValue enum
@@ -114,4 +114,3 @@ func (v *NullableIKEProposalAuthenticationAlgorithmValue) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go
index 1d751165c..8fd6ea4d4 100644
--- a/model_ike_proposal_authentication_method.go
+++ b/model_ike_proposal_authentication_method.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalAuthenticationMethod{}
// IKEProposalAuthenticationMethod struct for IKEProposalAuthenticationMethod
type IKEProposalAuthenticationMethod struct {
- Value *IKEProposalAuthenticationMethodValue `json:"value,omitempty"`
- Label *IKEProposalAuthenticationMethodLabel `json:"label,omitempty"`
+ Value *IKEProposalAuthenticationMethodValue `json:"value,omitempty"`
+ Label *IKEProposalAuthenticationMethodLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEProposalAuthenticationMethod) SetLabel(v IKEProposalAuthenticationMe
}
func (o IKEProposalAuthenticationMethod) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEProposalAuthenticationMethod) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go
index c639b2824..cd7f09a5f 100644
--- a/model_ike_proposal_authentication_method_label.go
+++ b/model_ike_proposal_authentication_method_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ type IKEProposalAuthenticationMethodLabel string
// List of IKEProposal_authentication_method_label
const (
IKEPROPOSALAUTHENTICATIONMETHODLABEL_PRE_SHARED_KEYS IKEProposalAuthenticationMethodLabel = "Pre-shared keys"
- IKEPROPOSALAUTHENTICATIONMETHODLABEL_CERTIFICATES IKEProposalAuthenticationMethodLabel = "Certificates"
- IKEPROPOSALAUTHENTICATIONMETHODLABEL_RSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "RSA signatures"
- IKEPROPOSALAUTHENTICATIONMETHODLABEL_DSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "DSA signatures"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_CERTIFICATES IKEProposalAuthenticationMethodLabel = "Certificates"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_RSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "RSA signatures"
+ IKEPROPOSALAUTHENTICATIONMETHODLABEL_DSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "DSA signatures"
)
// All allowed values of IKEProposalAuthenticationMethodLabel enum
@@ -112,4 +112,3 @@ func (v *NullableIKEProposalAuthenticationMethodLabel) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go
index c1ae90fe8..139cce68b 100644
--- a/model_ike_proposal_authentication_method_value.go
+++ b/model_ike_proposal_authentication_method_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type IKEProposalAuthenticationMethodValue string
// List of IKEProposal_authentication_method_value
const (
IKEPROPOSALAUTHENTICATIONMETHODVALUE_PRESHARED_KEYS IKEProposalAuthenticationMethodValue = "preshared-keys"
- IKEPROPOSALAUTHENTICATIONMETHODVALUE_CERTIFICATES IKEProposalAuthenticationMethodValue = "certificates"
+ IKEPROPOSALAUTHENTICATIONMETHODVALUE_CERTIFICATES IKEProposalAuthenticationMethodValue = "certificates"
IKEPROPOSALAUTHENTICATIONMETHODVALUE_RSA_SIGNATURES IKEProposalAuthenticationMethodValue = "rsa-signatures"
IKEPROPOSALAUTHENTICATIONMETHODVALUE_DSA_SIGNATURES IKEProposalAuthenticationMethodValue = "dsa-signatures"
)
@@ -112,4 +112,3 @@ func (v *NullableIKEProposalAuthenticationMethodValue) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go
index 195aa7328..23eb2806c 100644
--- a/model_ike_proposal_encryption_algorithm.go
+++ b/model_ike_proposal_encryption_algorithm.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalEncryptionAlgorithm{}
// IKEProposalEncryptionAlgorithm struct for IKEProposalEncryptionAlgorithm
type IKEProposalEncryptionAlgorithm struct {
- Value *IKEProposalEncryptionAlgorithmValue `json:"value,omitempty"`
- Label *IKEProposalEncryptionAlgorithmLabel `json:"label,omitempty"`
+ Value *IKEProposalEncryptionAlgorithmValue `json:"value,omitempty"`
+ Label *IKEProposalEncryptionAlgorithmLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEProposalEncryptionAlgorithm) SetLabel(v IKEProposalEncryptionAlgorit
}
func (o IKEProposalEncryptionAlgorithm) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEProposalEncryptionAlgorithm) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go
index 11daac3fc..3a8cc2eca 100644
--- a/model_ike_proposal_encryption_algorithm_label.go
+++ b/model_ike_proposal_encryption_algorithm_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,8 +26,8 @@ const (
IKEPROPOSALENCRYPTIONALGORITHMLABEL__192_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "192-bit AES (GCM)"
IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__CBC IKEProposalEncryptionAlgorithmLabel = "256-bit AES (CBC)"
IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "256-bit AES (GCM)"
- IKEPROPOSALENCRYPTIONALGORITHMLABEL__3_DES IKEProposalEncryptionAlgorithmLabel = "3DES"
- IKEPROPOSALENCRYPTIONALGORITHMLABEL_DES IKEProposalEncryptionAlgorithmLabel = "DES"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL__3_DES IKEProposalEncryptionAlgorithmLabel = "3DES"
+ IKEPROPOSALENCRYPTIONALGORITHMLABEL_DES IKEProposalEncryptionAlgorithmLabel = "DES"
)
// All allowed values of IKEProposalEncryptionAlgorithmLabel enum
@@ -120,4 +120,3 @@ func (v *NullableIKEProposalEncryptionAlgorithmLabel) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go
index 1135b7c0c..ceaea62c7 100644
--- a/model_ike_proposal_encryption_algorithm_value.go
+++ b/model_ike_proposal_encryption_algorithm_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,8 +26,8 @@ const (
IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_192_GCM IKEProposalEncryptionAlgorithmValue = "aes-192-gcm"
IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_CBC IKEProposalEncryptionAlgorithmValue = "aes-256-cbc"
IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_GCM IKEProposalEncryptionAlgorithmValue = "aes-256-gcm"
- IKEPROPOSALENCRYPTIONALGORITHMVALUE__3DES_CBC IKEProposalEncryptionAlgorithmValue = "3des-cbc"
- IKEPROPOSALENCRYPTIONALGORITHMVALUE_DES_CBC IKEProposalEncryptionAlgorithmValue = "des-cbc"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE__3DES_CBC IKEProposalEncryptionAlgorithmValue = "3des-cbc"
+ IKEPROPOSALENCRYPTIONALGORITHMVALUE_DES_CBC IKEProposalEncryptionAlgorithmValue = "des-cbc"
)
// All allowed values of IKEProposalEncryptionAlgorithmValue enum
@@ -120,4 +120,3 @@ func (v *NullableIKEProposalEncryptionAlgorithmValue) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go
index 524cd2dee..8aafcafb4 100644
--- a/model_ike_proposal_group.go
+++ b/model_ike_proposal_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalGroup{}
// IKEProposalGroup struct for IKEProposalGroup
type IKEProposalGroup struct {
- Value *IKEProposalGroupValue `json:"value,omitempty"`
- Label *IKEProposalGroupLabel `json:"label,omitempty"`
+ Value *IKEProposalGroupValue `json:"value,omitempty"`
+ Label *IKEProposalGroupLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IKEProposalGroup) SetLabel(v IKEProposalGroupLabel) {
}
func (o IKEProposalGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIKEProposalGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go
index 8439cb8c1..43ac26293 100644
--- a/model_ike_proposal_group_label.go
+++ b/model_ike_proposal_group_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type IKEProposalGroupLabel string
// List of IKEProposal_group_label
const (
- IKEPROPOSALGROUPLABEL_GROUP_1 IKEProposalGroupLabel = "Group 1"
- IKEPROPOSALGROUPLABEL_GROUP_2 IKEProposalGroupLabel = "Group 2"
- IKEPROPOSALGROUPLABEL_GROUP_5 IKEProposalGroupLabel = "Group 5"
+ IKEPROPOSALGROUPLABEL_GROUP_1 IKEProposalGroupLabel = "Group 1"
+ IKEPROPOSALGROUPLABEL_GROUP_2 IKEProposalGroupLabel = "Group 2"
+ IKEPROPOSALGROUPLABEL_GROUP_5 IKEProposalGroupLabel = "Group 5"
IKEPROPOSALGROUPLABEL_GROUP_14 IKEProposalGroupLabel = "Group 14"
IKEPROPOSALGROUPLABEL_GROUP_15 IKEProposalGroupLabel = "Group 15"
IKEPROPOSALGROUPLABEL_GROUP_16 IKEProposalGroupLabel = "Group 16"
@@ -152,4 +152,3 @@ func (v *NullableIKEProposalGroupLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go
index 9826da1e8..5a645f69a 100644
--- a/model_ike_proposal_group_value.go
+++ b/model_ike_proposal_group_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type IKEProposalGroupValue int32
// List of IKEProposal_group_value
const (
- IKEPROPOSALGROUPVALUE__1 IKEProposalGroupValue = 1
- IKEPROPOSALGROUPVALUE__2 IKEProposalGroupValue = 2
- IKEPROPOSALGROUPVALUE__5 IKEProposalGroupValue = 5
+ IKEPROPOSALGROUPVALUE__1 IKEProposalGroupValue = 1
+ IKEPROPOSALGROUPVALUE__2 IKEProposalGroupValue = 2
+ IKEPROPOSALGROUPVALUE__5 IKEProposalGroupValue = 5
IKEPROPOSALGROUPVALUE__14 IKEProposalGroupValue = 14
IKEPROPOSALGROUPVALUE__15 IKEProposalGroupValue = 15
IKEPROPOSALGROUPVALUE__16 IKEProposalGroupValue = 16
@@ -152,4 +152,3 @@ func (v *NullableIKEProposalGroupValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go
index b70050125..f6d2262d3 100644
--- a/model_ike_proposal_request.go
+++ b/model_ike_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &IKEProposalRequest{}
// IKEProposalRequest Adds support for custom fields and tags.
type IKEProposalRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
- EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"`
- Group IKEProposalGroupValue `json:"group"`
+ Group IKEProposalGroupValue `json:"group"`
// Security association lifetime (in seconds)
- SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ func (o *IKEProposalRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *IKEProposalRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -138,7 +137,6 @@ func (o *IKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthentication
o.AuthenticationMethod = v
}
-
// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
func (o *IKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
if o == nil {
@@ -163,7 +161,6 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor
o.EncryptionAlgorithm = v
}
-
// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise.
func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue {
if o == nil || IsNil(o.AuthenticationAlgorithm) {
@@ -220,7 +217,6 @@ 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()) {
@@ -253,6 +249,7 @@ func (o *IKEProposalRequest) HasSaLifetime() bool {
func (o *IKEProposalRequest) SetSaLifetime(v int32) {
o.SaLifetime.Set(&v)
}
+
// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
func (o *IKEProposalRequest) SetSaLifetimeNil() {
o.SaLifetime.Set(nil)
@@ -360,7 +357,7 @@ func (o *IKEProposalRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IKEProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -412,32 +409,31 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -505,5 +501,3 @@ 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 bafb0d16e..b3c4ab599 100644
--- a/model_image_attachment.go
+++ b/model_image_attachment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ImageAttachment type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &ImageAttachment{}
// ImageAttachment Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ImageAttachment struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Parent interface{} `json:"parent,omitempty"`
- Name *string `json:"name,omitempty"`
- Image string `json:"image"`
- ImageHeight int32 `json:"image_height"`
- ImageWidth int32 `json:"image_width"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Parent interface{} `json:"parent,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Image string `json:"image"`
+ ImageHeight int32 `json:"image_height"`
+ ImageWidth int32 `json:"image_width"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *ImageAttachment) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ImageAttachment) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *ImageAttachment) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ImageAttachment) GetDisplay() string {
if o == nil {
@@ -137,7 +135,6 @@ func (o *ImageAttachment) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *ImageAttachment) GetObjectType() string {
if o == nil {
@@ -162,7 +159,6 @@ func (o *ImageAttachment) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *ImageAttachment) GetObjectId() int64 {
if o == nil {
@@ -187,7 +183,6 @@ func (o *ImageAttachment) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageAttachment) GetParent() interface{} {
if o == nil {
@@ -277,7 +272,6 @@ func (o *ImageAttachment) SetImage(v string) {
o.Image = v
}
-
// GetImageHeight returns the ImageHeight field value
func (o *ImageAttachment) GetImageHeight() int32 {
if o == nil {
@@ -302,7 +296,6 @@ func (o *ImageAttachment) SetImageHeight(v int32) {
o.ImageHeight = v
}
-
// GetImageWidth returns the ImageWidth field value
func (o *ImageAttachment) GetImageWidth() int32 {
if o == nil {
@@ -327,7 +320,6 @@ func (o *ImageAttachment) SetImageWidth(v int32) {
o.ImageWidth = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageAttachment) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
@@ -360,6 +352,7 @@ func (o *ImageAttachment) HasCreated() bool {
func (o *ImageAttachment) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ImageAttachment) SetCreatedNil() {
o.Created.Set(nil)
@@ -402,6 +395,7 @@ func (o *ImageAttachment) HasLastUpdated() bool {
func (o *ImageAttachment) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ImageAttachment) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -413,7 +407,7 @@ func (o *ImageAttachment) UnsetLastUpdated() {
}
func (o ImageAttachment) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -467,32 +461,31 @@ func (o *ImageAttachment) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -562,5 +555,3 @@ func (v *NullableImageAttachment) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go
index 5a78871a4..9067134d6 100644
--- a/model_image_attachment_request.go
+++ b/model_image_attachment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "os"
"fmt"
+ "os"
)
// checks if the ImageAttachmentRequest type satisfies the MappedNullable interface at compile time
@@ -21,10 +21,10 @@ var _ MappedNullable = &ImageAttachmentRequest{}
// ImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ImageAttachmentRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Name *string `json:"name,omitempty"`
- Image *os.File `json:"image"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Name *string `json:"name,omitempty"`
+ Image *os.File `json:"image"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *ImageAttachmentRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *ImageAttachmentRequest) GetObjectId() int64 {
if o == nil {
@@ -99,7 +98,6 @@ func (o *ImageAttachmentRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *ImageAttachmentRequest) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -156,9 +154,8 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) {
o.Image = v
}
-
func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -193,32 +190,31 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -280,5 +276,3 @@ func (v *NullableImageAttachmentRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface.go b/model_interface.go
index d27265888..f228c5956 100644
--- a/model_interface.go
+++ b/model_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Interface type satisfies the MappedNullable interface at compile time
@@ -21,67 +21,67 @@ var _ MappedNullable = &Interface{}
// Interface Adds support for custom fields and tags.
type Interface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceType `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedInterface `json:"parent,omitempty"`
- Bridge NullableNestedInterface `json:"bridge,omitempty"`
- Lag NullableNestedInterface `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceType `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableNestedInterface `json:"parent,omitempty"`
+ Bridge NullableNestedInterface `json:"bridge,omitempty"`
+ Lag NullableNestedInterface `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
PrimaryMacAddress NullableBriefMACAddress `json:"primary_mac_address,omitempty"`
- MacAddresses []BriefMACAddress `json:"mac_addresses,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- Duplex NullableInterfaceDuplex `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ MacAddresses []BriefMACAddress `json:"mac_addresses,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *InterfaceMode `json:"mode,omitempty"`
- RfRole *InterfaceRfRole `json:"rf_role,omitempty"`
- RfChannel *InterfaceRfChannel `json:"rf_channel,omitempty"`
- PoeMode *InterfacePoeMode `json:"poe_mode,omitempty"`
- PoeType *InterfacePoeType `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceMode `json:"mode,omitempty"`
+ RfRole *InterfaceRfRole `json:"rf_role,omitempty"`
+ RfChannel *InterfaceRfChannel `json:"rf_channel,omitempty"`
+ PoeMode *InterfacePoeMode `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeType `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"`
- TaggedVlans []VLAN `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"`
+ RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
+ TxPower NullableInt32 `json:"tx_power,omitempty"`
+ UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"`
+ TaggedVlans []VLAN `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"`
VlanTranslationPolicy NullableBriefVLANTranslationPolicy `json:"vlan_translation_policy,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- WirelessLink NullableNestedWirelessLink `json:"wireless_link,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ WirelessLink NullableNestedWirelessLink `json:"wireless_link,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CountIpaddresses int32 `json:"count_ipaddresses"`
- CountFhrpGroups int32 `json:"count_fhrp_groups"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CountIpaddresses int32 `json:"count_ipaddresses"`
+ CountFhrpGroups int32 `json:"count_fhrp_groups"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _Interface Interface
@@ -138,7 +138,6 @@ func (o *Interface) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Interface) GetUrl() string {
if o == nil {
@@ -163,7 +162,6 @@ func (o *Interface) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Interface) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -220,7 +218,6 @@ func (o *Interface) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *Interface) GetDevice() BriefDevice {
if o == nil {
@@ -245,7 +242,6 @@ func (o *Interface) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetVdcs returns the Vdcs field value if set, zero value otherwise.
func (o *Interface) GetVdcs() []VirtualDeviceContext {
if o == nil || IsNil(o.Vdcs) {
@@ -310,6 +306,7 @@ func (o *Interface) HasModule() bool {
func (o *Interface) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *Interface) SetModuleNil() {
o.Module.Set(nil)
@@ -344,7 +341,6 @@ func (o *Interface) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *Interface) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -401,7 +397,6 @@ func (o *Interface) SetType(v InterfaceType) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *Interface) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -466,6 +461,7 @@ func (o *Interface) HasParent() bool {
func (o *Interface) SetParent(v NestedInterface) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *Interface) SetParentNil() {
o.Parent.Set(nil)
@@ -508,6 +504,7 @@ func (o *Interface) HasBridge() bool {
func (o *Interface) SetBridge(v NestedInterface) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *Interface) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -550,6 +547,7 @@ func (o *Interface) HasLag() bool {
func (o *Interface) SetLag(v NestedInterface) {
o.Lag.Set(&v)
}
+
// SetLagNil sets the value for Lag to be an explicit nil
func (o *Interface) SetLagNil() {
o.Lag.Set(nil)
@@ -592,6 +590,7 @@ func (o *Interface) HasMtu() bool {
func (o *Interface) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *Interface) SetMtuNil() {
o.Mtu.Set(nil)
@@ -634,6 +633,7 @@ func (o *Interface) HasMacAddress() bool {
func (o *Interface) SetMacAddress(v string) {
o.MacAddress.Set(&v)
}
+
// SetMacAddressNil sets the value for MacAddress to be an explicit nil
func (o *Interface) SetMacAddressNil() {
o.MacAddress.Set(nil)
@@ -676,6 +676,7 @@ func (o *Interface) HasPrimaryMacAddress() bool {
func (o *Interface) SetPrimaryMacAddress(v BriefMACAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *Interface) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -751,6 +752,7 @@ func (o *Interface) HasSpeed() bool {
func (o *Interface) SetSpeed(v int32) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *Interface) SetSpeedNil() {
o.Speed.Set(nil)
@@ -793,6 +795,7 @@ func (o *Interface) HasDuplex() bool {
func (o *Interface) SetDuplex(v InterfaceDuplex) {
o.Duplex.Set(&v)
}
+
// SetDuplexNil sets the value for Duplex to be an explicit nil
func (o *Interface) SetDuplexNil() {
o.Duplex.Set(nil)
@@ -835,6 +838,7 @@ func (o *Interface) HasWwn() bool {
func (o *Interface) SetWwn(v string) {
o.Wwn.Set(&v)
}
+
// SetWwnNil sets the value for Wwn to be an explicit nil
func (o *Interface) SetWwnNil() {
o.Wwn.Set(nil)
@@ -1101,6 +1105,7 @@ func (o *Interface) HasRfChannelFrequency() bool {
func (o *Interface) SetRfChannelFrequency(v float64) {
o.RfChannelFrequency.Set(&v)
}
+
// SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil
func (o *Interface) SetRfChannelFrequencyNil() {
o.RfChannelFrequency.Set(nil)
@@ -1143,6 +1148,7 @@ func (o *Interface) HasRfChannelWidth() bool {
func (o *Interface) SetRfChannelWidth(v float64) {
o.RfChannelWidth.Set(&v)
}
+
// SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil
func (o *Interface) SetRfChannelWidthNil() {
o.RfChannelWidth.Set(nil)
@@ -1185,6 +1191,7 @@ func (o *Interface) HasTxPower() bool {
func (o *Interface) SetTxPower(v int32) {
o.TxPower.Set(&v)
}
+
// SetTxPowerNil sets the value for TxPower to be an explicit nil
func (o *Interface) SetTxPowerNil() {
o.TxPower.Set(nil)
@@ -1227,6 +1234,7 @@ func (o *Interface) HasUntaggedVlan() bool {
func (o *Interface) SetUntaggedVlan(v BriefVLAN) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *Interface) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -1301,6 +1309,7 @@ func (o *Interface) HasQinqSvlan() bool {
func (o *Interface) SetQinqSvlan(v BriefVLAN) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *Interface) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -1343,6 +1352,7 @@ func (o *Interface) HasVlanTranslationPolicy() bool {
func (o *Interface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *Interface) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -1417,6 +1427,7 @@ func (o *Interface) HasCable() bool {
func (o *Interface) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *Interface) SetCableNil() {
o.Cable.Set(nil)
@@ -1491,6 +1502,7 @@ func (o *Interface) HasWirelessLink() bool {
func (o *Interface) SetWirelessLink(v NestedWirelessLink) {
o.WirelessLink.Set(&v)
}
+
// SetWirelessLinkNil sets the value for WirelessLink to be an explicit nil
func (o *Interface) SetWirelessLinkNil() {
o.WirelessLink.Set(nil)
@@ -1525,7 +1537,6 @@ func (o *Interface) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Interface) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -1558,6 +1569,7 @@ func (o *Interface) HasLinkPeersType() bool {
func (o *Interface) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *Interface) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -1632,6 +1644,7 @@ func (o *Interface) HasVrf() bool {
func (o *Interface) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *Interface) SetVrfNil() {
o.Vrf.Set(nil)
@@ -1674,6 +1687,7 @@ func (o *Interface) HasL2vpnTermination() bool {
func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) {
o.L2vpnTermination.Set(&v)
}
+
// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil
func (o *Interface) SetL2vpnTerminationNil() {
o.L2vpnTermination.Set(nil)
@@ -1749,6 +1763,7 @@ func (o *Interface) HasConnectedEndpointsType() bool {
func (o *Interface) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *Interface) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -1783,7 +1798,6 @@ func (o *Interface) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *Interface) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -1880,6 +1894,7 @@ func (o *Interface) HasCreated() bool {
func (o *Interface) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Interface) SetCreatedNil() {
o.Created.Set(nil)
@@ -1922,6 +1937,7 @@ func (o *Interface) HasLastUpdated() bool {
func (o *Interface) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Interface) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1956,7 +1972,6 @@ func (o *Interface) SetCountIpaddresses(v int32) {
o.CountIpaddresses = v
}
-
// GetCountFhrpGroups returns the CountFhrpGroups field value
func (o *Interface) GetCountFhrpGroups() int32 {
if o == nil {
@@ -1981,7 +1996,6 @@ func (o *Interface) SetCountFhrpGroups(v int32) {
o.CountFhrpGroups = v
}
-
// GetOccupied returns the Occupied field value
func (o *Interface) GetOccupied() bool {
if o == nil {
@@ -2006,9 +2020,8 @@ func (o *Interface) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o Interface) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -2185,32 +2198,31 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -2322,5 +2334,3 @@ func (v *NullableInterface) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_duplex.go b/model_interface_duplex.go
index fb0c6751a..57dc14464 100644
--- a/model_interface_duplex.go
+++ b/model_interface_duplex.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceDuplex{}
// InterfaceDuplex struct for InterfaceDuplex
type InterfaceDuplex struct {
- Value *InterfaceDuplexValue `json:"value,omitempty"`
- Label *InterfaceDuplexLabel `json:"label,omitempty"`
+ Value *InterfaceDuplexValue `json:"value,omitempty"`
+ Label *InterfaceDuplexLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceDuplex) SetLabel(v InterfaceDuplexLabel) {
}
func (o InterfaceDuplex) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceDuplex) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go
index babb88eb9..d2402322a 100644
--- a/model_interface_duplex_label.go
+++ b/model_interface_duplex_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableInterfaceDuplexLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go
index 7fc3a2d5c..3dfd30ac6 100644
--- a/model_interface_duplex_value.go
+++ b/model_interface_duplex_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type InterfaceDuplexValue string
// List of Interface_duplex_value
const (
- INTERFACEDUPLEXVALUE_HALF InterfaceDuplexValue = "half"
- INTERFACEDUPLEXVALUE_FULL InterfaceDuplexValue = "full"
- INTERFACEDUPLEXVALUE_AUTO InterfaceDuplexValue = "auto"
+ INTERFACEDUPLEXVALUE_HALF InterfaceDuplexValue = "half"
+ INTERFACEDUPLEXVALUE_FULL InterfaceDuplexValue = "full"
+ INTERFACEDUPLEXVALUE_AUTO InterfaceDuplexValue = "auto"
INTERFACEDUPLEXVALUE_EMPTY InterfaceDuplexValue = ""
)
@@ -112,4 +112,3 @@ 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 800a58972..099c5deef 100644
--- a/model_interface_mode.go
+++ b/model_interface_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceMode{}
// InterfaceMode struct for InterfaceMode
type InterfaceMode struct {
- Value *InterfaceModeValue `json:"value,omitempty"`
- Label *InterfaceModeLabel `json:"label,omitempty"`
+ Value *InterfaceModeValue `json:"value,omitempty"`
+ Label *InterfaceModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceMode) SetLabel(v InterfaceModeLabel) {
}
func (o InterfaceMode) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceMode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go
index 23eb98128..60c58eac7 100644
--- a/model_interface_mode_label.go
+++ b/model_interface_mode_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type InterfaceModeLabel string
// List of Interface_mode_label
const (
- INTERFACEMODELABEL_ACCESS InterfaceModeLabel = "Access"
- INTERFACEMODELABEL_TAGGED InterfaceModeLabel = "Tagged"
- INTERFACEMODELABEL_TAGGED__ALL InterfaceModeLabel = "Tagged (All)"
+ INTERFACEMODELABEL_ACCESS InterfaceModeLabel = "Access"
+ INTERFACEMODELABEL_TAGGED InterfaceModeLabel = "Tagged"
+ INTERFACEMODELABEL_TAGGED__ALL InterfaceModeLabel = "Tagged (All)"
INTERFACEMODELABEL_Q_IN_Q__802_1AD InterfaceModeLabel = "Q-in-Q (802.1ad)"
)
@@ -112,4 +112,3 @@ func (v *NullableInterfaceModeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go
index e695c5759..c3b1d3b35 100644
--- a/model_interface_mode_value.go
+++ b/model_interface_mode_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type InterfaceModeValue string
// List of Interface_mode_value
const (
- INTERFACEMODEVALUE_ACCESS InterfaceModeValue = "access"
- INTERFACEMODEVALUE_TAGGED InterfaceModeValue = "tagged"
+ INTERFACEMODEVALUE_ACCESS InterfaceModeValue = "access"
+ INTERFACEMODEVALUE_TAGGED InterfaceModeValue = "tagged"
INTERFACEMODEVALUE_TAGGED_ALL InterfaceModeValue = "tagged-all"
- INTERFACEMODEVALUE_Q_IN_Q InterfaceModeValue = "q-in-q"
- INTERFACEMODEVALUE_EMPTY InterfaceModeValue = ""
+ INTERFACEMODEVALUE_Q_IN_Q InterfaceModeValue = "q-in-q"
+ INTERFACEMODEVALUE_EMPTY InterfaceModeValue = ""
)
// All allowed values of InterfaceModeValue enum
@@ -114,4 +114,3 @@ 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 e20de9dc8..2e19dc4c0 100644
--- a/model_interface_poe_mode.go
+++ b/model_interface_poe_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfacePoeMode{}
// InterfacePoeMode struct for InterfacePoeMode
type InterfacePoeMode struct {
- Value *InterfacePoeModeValue `json:"value,omitempty"`
- Label *InterfacePoeModeLabel `json:"label,omitempty"`
+ Value *InterfacePoeModeValue `json:"value,omitempty"`
+ Label *InterfacePoeModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfacePoeMode) SetLabel(v InterfacePoeModeLabel) {
}
func (o InterfacePoeMode) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfacePoeMode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go
index 633167ac8..6d2a38144 100644
--- a/model_interface_poe_mode_label.go
+++ b/model_interface_poe_mode_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type InterfacePoeModeLabel string
// List of Interface_poe_mode_label
const (
- INTERFACEPOEMODELABEL_PD InterfacePoeModeLabel = "PD"
+ INTERFACEPOEMODELABEL_PD InterfacePoeModeLabel = "PD"
INTERFACEPOEMODELABEL_PSE InterfacePoeModeLabel = "PSE"
)
@@ -108,4 +108,3 @@ func (v *NullableInterfacePoeModeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go
index 2e99e4c5a..b3b6da0df 100644
--- a/model_interface_poe_mode_value.go
+++ b/model_interface_poe_mode_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type InterfacePoeModeValue string
// List of Interface_poe_mode_value
const (
- INTERFACEPOEMODEVALUE_PD InterfacePoeModeValue = "pd"
- INTERFACEPOEMODEVALUE_PSE InterfacePoeModeValue = "pse"
+ INTERFACEPOEMODEVALUE_PD InterfacePoeModeValue = "pd"
+ INTERFACEPOEMODEVALUE_PSE InterfacePoeModeValue = "pse"
INTERFACEPOEMODEVALUE_EMPTY InterfacePoeModeValue = ""
)
@@ -110,4 +110,3 @@ 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 48371c5cc..9c14e5d72 100644
--- a/model_interface_poe_type.go
+++ b/model_interface_poe_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfacePoeType{}
// InterfacePoeType struct for InterfacePoeType
type InterfacePoeType struct {
- Value *InterfacePoeTypeValue `json:"value,omitempty"`
- Label *InterfacePoeTypeLabel `json:"label,omitempty"`
+ Value *InterfacePoeTypeValue `json:"value,omitempty"`
+ Label *InterfacePoeTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfacePoeType) SetLabel(v InterfacePoeTypeLabel) {
}
func (o InterfacePoeType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfacePoeType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go
index 975afc212..50d91e5b7 100644
--- a/model_interface_poe_type_label.go
+++ b/model_interface_poe_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type InterfacePoeTypeLabel string
// List of Interface_poe_type_label
const (
- INTERFACEPOETYPELABEL__802_3AF__TYPE_1 InterfacePoeTypeLabel = "802.3af (Type 1)"
- INTERFACEPOETYPELABEL__802_3AT__TYPE_2 InterfacePoeTypeLabel = "802.3at (Type 2)"
- INTERFACEPOETYPELABEL__802_3BT__TYPE_3 InterfacePoeTypeLabel = "802.3bt (Type 3)"
- INTERFACEPOETYPELABEL__802_3BT__TYPE_4 InterfacePoeTypeLabel = "802.3bt (Type 4)"
+ INTERFACEPOETYPELABEL__802_3AF__TYPE_1 InterfacePoeTypeLabel = "802.3af (Type 1)"
+ INTERFACEPOETYPELABEL__802_3AT__TYPE_2 InterfacePoeTypeLabel = "802.3at (Type 2)"
+ INTERFACEPOETYPELABEL__802_3BT__TYPE_3 InterfacePoeTypeLabel = "802.3bt (Type 3)"
+ INTERFACEPOETYPELABEL__802_3BT__TYPE_4 InterfacePoeTypeLabel = "802.3bt (Type 4)"
INTERFACEPOETYPELABEL_PASSIVE_24_V__2_PAIR InterfacePoeTypeLabel = "Passive 24V (2-pair)"
INTERFACEPOETYPELABEL_PASSIVE_24_V__4_PAIR InterfacePoeTypeLabel = "Passive 24V (4-pair)"
INTERFACEPOETYPELABEL_PASSIVE_48_V__2_PAIR InterfacePoeTypeLabel = "Passive 48V (2-pair)"
@@ -120,4 +120,3 @@ func (v *NullableInterfacePoeTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go
index a8a709256..0af6f21a8 100644
--- a/model_interface_poe_type_value.go
+++ b/model_interface_poe_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,7 +28,7 @@ const (
INTERFACEPOETYPEVALUE_PASSIVE_24V_4PAIR InterfacePoeTypeValue = "passive-24v-4pair"
INTERFACEPOETYPEVALUE_PASSIVE_48V_2PAIR InterfacePoeTypeValue = "passive-48v-2pair"
INTERFACEPOETYPEVALUE_PASSIVE_48V_4PAIR InterfacePoeTypeValue = "passive-48v-4pair"
- INTERFACEPOETYPEVALUE_EMPTY InterfacePoeTypeValue = ""
+ INTERFACEPOETYPEVALUE_EMPTY InterfacePoeTypeValue = ""
)
// All allowed values of InterfacePoeTypeValue enum
@@ -122,4 +122,3 @@ 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 6969bf1c2..4b5b3781f 100644
--- a/model_interface_request.go
+++ b/model_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,45 +20,45 @@ var _ MappedNullable = &InterfaceRequest{}
// InterfaceRequest Adds support for custom fields and tags.
type InterfaceRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceTypeValue `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedInterfaceRequest `json:"parent,omitempty"`
- Bridge NullableNestedInterfaceRequest `json:"bridge,omitempty"`
- Lag NullableNestedInterfaceRequest `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableNestedInterfaceRequest `json:"parent,omitempty"`
+ Bridge NullableNestedInterfaceRequest `json:"bridge,omitempty"`
+ Lag NullableNestedInterfaceRequest `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *InterfaceModeValue `json:"mode,omitempty"`
- RfRole *InterfaceRfRoleValue `json:"rf_role,omitempty"`
- RfChannel *InterfaceRfChannelValue `json:"rf_channel,omitempty"`
- PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
- PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceModeValue `json:"mode,omitempty"`
+ RfRole *InterfaceRfRoleValue `json:"rf_role,omitempty"`
+ RfChannel *InterfaceRfChannelValue `json:"rf_channel,omitempty"`
+ PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"`
+ PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
+ RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
+ TxPower NullableInt32 `json:"tx_power,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ WirelessLans []int32 `json:"wireless_lans,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -68,7 +68,7 @@ type _InterfaceRequest InterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest {
+func NewInterfaceRequest(device BriefInterfaceRequestDevice, name string, type_ InterfaceTypeValue) *InterfaceRequest {
this := InterfaceRequest{}
this.Device = device
this.Name = name
@@ -85,9 +85,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest {
}
// GetDevice returns the Device field value
-func (o *InterfaceRequest) GetDevice() BriefDeviceRequest {
+func (o *InterfaceRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -96,7 +96,7 @@ func (o *InterfaceRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *InterfaceRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -104,11 +104,10 @@ func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) {
+func (o *InterfaceRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetVdcs returns the Vdcs field value if set, zero value otherwise.
func (o *InterfaceRequest) GetVdcs() []int32 {
if o == nil || IsNil(o.Vdcs) {
@@ -142,9 +141,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) {
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetModule() BriefModuleRequest {
+func (o *InterfaceRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -153,7 +152,7 @@ func (o *InterfaceRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *InterfaceRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -169,10 +168,11 @@ func (o *InterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *InterfaceRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *InterfaceRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *InterfaceRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -207,7 +207,6 @@ func (o *InterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InterfaceRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -264,7 +263,6 @@ func (o *InterfaceRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *InterfaceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -329,6 +327,7 @@ func (o *InterfaceRequest) HasParent() bool {
func (o *InterfaceRequest) SetParent(v NestedInterfaceRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *InterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -371,6 +370,7 @@ func (o *InterfaceRequest) HasBridge() bool {
func (o *InterfaceRequest) SetBridge(v NestedInterfaceRequest) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *InterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -413,6 +413,7 @@ func (o *InterfaceRequest) HasLag() bool {
func (o *InterfaceRequest) SetLag(v NestedInterfaceRequest) {
o.Lag.Set(&v)
}
+
// SetLagNil sets the value for Lag to be an explicit nil
func (o *InterfaceRequest) SetLagNil() {
o.Lag.Set(nil)
@@ -455,6 +456,7 @@ func (o *InterfaceRequest) HasMtu() bool {
func (o *InterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *InterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -466,9 +468,9 @@ func (o *InterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *InterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -477,7 +479,7 @@ func (o *InterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *InterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -493,10 +495,11 @@ func (o *InterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *InterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *InterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *InterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -539,6 +542,7 @@ func (o *InterfaceRequest) HasSpeed() bool {
func (o *InterfaceRequest) SetSpeed(v int32) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *InterfaceRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -581,6 +585,7 @@ func (o *InterfaceRequest) HasDuplex() bool {
func (o *InterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
+
// SetDuplexNil sets the value for Duplex to be an explicit nil
func (o *InterfaceRequest) SetDuplexNil() {
o.Duplex.Set(nil)
@@ -623,6 +628,7 @@ func (o *InterfaceRequest) HasWwn() bool {
func (o *InterfaceRequest) SetWwn(v string) {
o.Wwn.Set(&v)
}
+
// SetWwnNil sets the value for Wwn to be an explicit nil
func (o *InterfaceRequest) SetWwnNil() {
o.Wwn.Set(nil)
@@ -889,6 +895,7 @@ func (o *InterfaceRequest) HasRfChannelFrequency() bool {
func (o *InterfaceRequest) SetRfChannelFrequency(v float64) {
o.RfChannelFrequency.Set(&v)
}
+
// SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil
func (o *InterfaceRequest) SetRfChannelFrequencyNil() {
o.RfChannelFrequency.Set(nil)
@@ -931,6 +938,7 @@ func (o *InterfaceRequest) HasRfChannelWidth() bool {
func (o *InterfaceRequest) SetRfChannelWidth(v float64) {
o.RfChannelWidth.Set(&v)
}
+
// SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil
func (o *InterfaceRequest) SetRfChannelWidthNil() {
o.RfChannelWidth.Set(nil)
@@ -973,6 +981,7 @@ func (o *InterfaceRequest) HasTxPower() bool {
func (o *InterfaceRequest) SetTxPower(v int32) {
o.TxPower.Set(&v)
}
+
// SetTxPowerNil sets the value for TxPower to be an explicit nil
func (o *InterfaceRequest) SetTxPowerNil() {
o.TxPower.Set(nil)
@@ -984,9 +993,9 @@ func (o *InterfaceRequest) UnsetTxPower() {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *InterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -995,7 +1004,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *InterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1011,10 +1020,11 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *InterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *InterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -1058,9 +1068,9 @@ func (o *InterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *InterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -1069,7 +1079,7 @@ func (o *InterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *InterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1085,10 +1095,11 @@ func (o *InterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *InterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *InterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *InterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -1100,9 +1111,9 @@ func (o *InterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *InterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -1111,7 +1122,7 @@ func (o *InterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicy
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *InterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -1127,10 +1138,11 @@ func (o *InterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *InterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *InterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *InterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -1206,9 +1218,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *InterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -1217,7 +1229,7 @@ func (o *InterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *InterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -1233,10 +1245,11 @@ func (o *InterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *InterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *InterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -1312,7 +1325,7 @@ func (o *InterfaceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o InterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1437,32 +1450,31 @@ func (o *InterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1554,5 +1566,3 @@ func (v *NullableInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go
index 6419a645f..5b290ffd6 100644
--- a/model_interface_request_duplex.go
+++ b/model_interface_request_duplex.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type InterfaceRequestDuplex string
// List of InterfaceRequest_duplex
const (
- INTERFACEREQUESTDUPLEX_HALF InterfaceRequestDuplex = "half"
- INTERFACEREQUESTDUPLEX_FULL InterfaceRequestDuplex = "full"
- INTERFACEREQUESTDUPLEX_AUTO InterfaceRequestDuplex = "auto"
+ INTERFACEREQUESTDUPLEX_HALF InterfaceRequestDuplex = "half"
+ INTERFACEREQUESTDUPLEX_FULL InterfaceRequestDuplex = "full"
+ INTERFACEREQUESTDUPLEX_AUTO InterfaceRequestDuplex = "auto"
INTERFACEREQUESTDUPLEX_EMPTY InterfaceRequestDuplex = ""
)
@@ -112,4 +112,3 @@ func (v *NullableInterfaceRequestDuplex) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_request_primary_mac_address.go b/model_interface_request_primary_mac_address.go
new file mode 100644
index 000000000..0e28c9ec7
--- /dev/null
+++ b/model_interface_request_primary_mac_address.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// InterfaceRequestPrimaryMacAddress - struct for InterfaceRequestPrimaryMacAddress
+type InterfaceRequestPrimaryMacAddress struct {
+ BriefMACAddressRequest *BriefMACAddressRequest
+ Int32 *int32
+}
+
+// BriefMACAddressRequestAsInterfaceRequestPrimaryMacAddress is a convenience function that returns BriefMACAddressRequest wrapped in InterfaceRequestPrimaryMacAddress
+func BriefMACAddressRequestAsInterfaceRequestPrimaryMacAddress(v *BriefMACAddressRequest) InterfaceRequestPrimaryMacAddress {
+ return InterfaceRequestPrimaryMacAddress{
+ BriefMACAddressRequest: v,
+ }
+}
+
+// int32AsInterfaceRequestPrimaryMacAddress is a convenience function that returns int32 wrapped in InterfaceRequestPrimaryMacAddress
+func Int32AsInterfaceRequestPrimaryMacAddress(v *int32) InterfaceRequestPrimaryMacAddress {
+ return InterfaceRequestPrimaryMacAddress{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *InterfaceRequestPrimaryMacAddress) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefMACAddressRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefMACAddressRequest)
+ if err == nil {
+ jsonBriefMACAddressRequest, _ := json.Marshal(dst.BriefMACAddressRequest)
+ if string(jsonBriefMACAddressRequest) == "{}" { // empty struct
+ dst.BriefMACAddressRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefMACAddressRequest); err != nil {
+ dst.BriefMACAddressRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefMACAddressRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefMACAddressRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(InterfaceRequestPrimaryMacAddress)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(InterfaceRequestPrimaryMacAddress)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src InterfaceRequestPrimaryMacAddress) MarshalJSON() ([]byte, error) {
+ if src.BriefMACAddressRequest != nil {
+ return json.Marshal(&src.BriefMACAddressRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *InterfaceRequestPrimaryMacAddress) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefMACAddressRequest != nil {
+ return obj.BriefMACAddressRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableInterfaceRequestPrimaryMacAddress struct {
+ value *InterfaceRequestPrimaryMacAddress
+ isSet bool
+}
+
+func (v NullableInterfaceRequestPrimaryMacAddress) Get() *InterfaceRequestPrimaryMacAddress {
+ return v.value
+}
+
+func (v *NullableInterfaceRequestPrimaryMacAddress) Set(val *InterfaceRequestPrimaryMacAddress) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRequestPrimaryMacAddress) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRequestPrimaryMacAddress) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRequestPrimaryMacAddress(val *InterfaceRequestPrimaryMacAddress) *NullableInterfaceRequestPrimaryMacAddress {
+ return &NullableInterfaceRequestPrimaryMacAddress{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRequestPrimaryMacAddress) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRequestPrimaryMacAddress) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_request_untagged_vlan.go b/model_interface_request_untagged_vlan.go
new file mode 100644
index 000000000..e29a7a710
--- /dev/null
+++ b/model_interface_request_untagged_vlan.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// InterfaceRequestUntaggedVlan - struct for InterfaceRequestUntaggedVlan
+type InterfaceRequestUntaggedVlan struct {
+ BriefVLANRequest *BriefVLANRequest
+ Int32 *int32
+}
+
+// BriefVLANRequestAsInterfaceRequestUntaggedVlan is a convenience function that returns BriefVLANRequest wrapped in InterfaceRequestUntaggedVlan
+func BriefVLANRequestAsInterfaceRequestUntaggedVlan(v *BriefVLANRequest) InterfaceRequestUntaggedVlan {
+ return InterfaceRequestUntaggedVlan{
+ BriefVLANRequest: v,
+ }
+}
+
+// int32AsInterfaceRequestUntaggedVlan is a convenience function that returns int32 wrapped in InterfaceRequestUntaggedVlan
+func Int32AsInterfaceRequestUntaggedVlan(v *int32) InterfaceRequestUntaggedVlan {
+ return InterfaceRequestUntaggedVlan{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *InterfaceRequestUntaggedVlan) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefVLANRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVLANRequest)
+ if err == nil {
+ jsonBriefVLANRequest, _ := json.Marshal(dst.BriefVLANRequest)
+ if string(jsonBriefVLANRequest) == "{}" { // empty struct
+ dst.BriefVLANRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVLANRequest); err != nil {
+ dst.BriefVLANRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVLANRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVLANRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(InterfaceRequestUntaggedVlan)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(InterfaceRequestUntaggedVlan)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src InterfaceRequestUntaggedVlan) MarshalJSON() ([]byte, error) {
+ if src.BriefVLANRequest != nil {
+ return json.Marshal(&src.BriefVLANRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *InterfaceRequestUntaggedVlan) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVLANRequest != nil {
+ return obj.BriefVLANRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableInterfaceRequestUntaggedVlan struct {
+ value *InterfaceRequestUntaggedVlan
+ isSet bool
+}
+
+func (v NullableInterfaceRequestUntaggedVlan) Get() *InterfaceRequestUntaggedVlan {
+ return v.value
+}
+
+func (v *NullableInterfaceRequestUntaggedVlan) Set(val *InterfaceRequestUntaggedVlan) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRequestUntaggedVlan) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRequestUntaggedVlan) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRequestUntaggedVlan(val *InterfaceRequestUntaggedVlan) *NullableInterfaceRequestUntaggedVlan {
+ return &NullableInterfaceRequestUntaggedVlan{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRequestUntaggedVlan) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRequestUntaggedVlan) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_interface_request_vlan_translation_policy.go b/model_interface_request_vlan_translation_policy.go
new file mode 100644
index 000000000..dd536dab3
--- /dev/null
+++ b/model_interface_request_vlan_translation_policy.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// InterfaceRequestVlanTranslationPolicy - struct for InterfaceRequestVlanTranslationPolicy
+type InterfaceRequestVlanTranslationPolicy struct {
+ BriefVLANTranslationPolicyRequest *BriefVLANTranslationPolicyRequest
+ Int32 *int32
+}
+
+// BriefVLANTranslationPolicyRequestAsInterfaceRequestVlanTranslationPolicy is a convenience function that returns BriefVLANTranslationPolicyRequest wrapped in InterfaceRequestVlanTranslationPolicy
+func BriefVLANTranslationPolicyRequestAsInterfaceRequestVlanTranslationPolicy(v *BriefVLANTranslationPolicyRequest) InterfaceRequestVlanTranslationPolicy {
+ return InterfaceRequestVlanTranslationPolicy{
+ BriefVLANTranslationPolicyRequest: v,
+ }
+}
+
+// int32AsInterfaceRequestVlanTranslationPolicy is a convenience function that returns int32 wrapped in InterfaceRequestVlanTranslationPolicy
+func Int32AsInterfaceRequestVlanTranslationPolicy(v *int32) InterfaceRequestVlanTranslationPolicy {
+ return InterfaceRequestVlanTranslationPolicy{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *InterfaceRequestVlanTranslationPolicy) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefVLANTranslationPolicyRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVLANTranslationPolicyRequest)
+ if err == nil {
+ jsonBriefVLANTranslationPolicyRequest, _ := json.Marshal(dst.BriefVLANTranslationPolicyRequest)
+ if string(jsonBriefVLANTranslationPolicyRequest) == "{}" { // empty struct
+ dst.BriefVLANTranslationPolicyRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVLANTranslationPolicyRequest); err != nil {
+ dst.BriefVLANTranslationPolicyRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVLANTranslationPolicyRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVLANTranslationPolicyRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(InterfaceRequestVlanTranslationPolicy)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(InterfaceRequestVlanTranslationPolicy)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src InterfaceRequestVlanTranslationPolicy) MarshalJSON() ([]byte, error) {
+ if src.BriefVLANTranslationPolicyRequest != nil {
+ return json.Marshal(&src.BriefVLANTranslationPolicyRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *InterfaceRequestVlanTranslationPolicy) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVLANTranslationPolicyRequest != nil {
+ return obj.BriefVLANTranslationPolicyRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableInterfaceRequestVlanTranslationPolicy struct {
+ value *InterfaceRequestVlanTranslationPolicy
+ isSet bool
+}
+
+func (v NullableInterfaceRequestVlanTranslationPolicy) Get() *InterfaceRequestVlanTranslationPolicy {
+ return v.value
+}
+
+func (v *NullableInterfaceRequestVlanTranslationPolicy) Set(val *InterfaceRequestVlanTranslationPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInterfaceRequestVlanTranslationPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInterfaceRequestVlanTranslationPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInterfaceRequestVlanTranslationPolicy(val *InterfaceRequestVlanTranslationPolicy) *NullableInterfaceRequestVlanTranslationPolicy {
+ return &NullableInterfaceRequestVlanTranslationPolicy{value: val, isSet: true}
+}
+
+func (v NullableInterfaceRequestVlanTranslationPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInterfaceRequestVlanTranslationPolicy) 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 b8815229c..5dae57ebf 100644
--- a/model_interface_rf_channel.go
+++ b/model_interface_rf_channel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceRfChannel{}
// InterfaceRfChannel struct for InterfaceRfChannel
type InterfaceRfChannel struct {
- Value *InterfaceRfChannelValue `json:"value,omitempty"`
- Label *InterfaceRfChannelLabel `json:"label,omitempty"`
+ Value *InterfaceRfChannelValue `json:"value,omitempty"`
+ Label *InterfaceRfChannelLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceRfChannel) SetLabel(v InterfaceRfChannelLabel) {
}
func (o InterfaceRfChannel) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceRfChannel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go
index 1cc21cdd4..302902745 100644
--- a/model_interface_rf_channel_label.go
+++ b/model_interface_rf_channel_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,192 +20,192 @@ type InterfaceRfChannelLabel string
// List of Interface_rf_channel_label
const (
- INTERFACERFCHANNELLABEL__1__2412_MHZ InterfaceRfChannelLabel = "1 (2412 MHz)"
- INTERFACERFCHANNELLABEL__2__2417_MHZ InterfaceRfChannelLabel = "2 (2417 MHz)"
- INTERFACERFCHANNELLABEL__3__2422_MHZ InterfaceRfChannelLabel = "3 (2422 MHz)"
- INTERFACERFCHANNELLABEL__4__2427_MHZ InterfaceRfChannelLabel = "4 (2427 MHz)"
- INTERFACERFCHANNELLABEL__5__2432_MHZ InterfaceRfChannelLabel = "5 (2432 MHz)"
- INTERFACERFCHANNELLABEL__6__2437_MHZ InterfaceRfChannelLabel = "6 (2437 MHz)"
- INTERFACERFCHANNELLABEL__7__2442_MHZ InterfaceRfChannelLabel = "7 (2442 MHz)"
- INTERFACERFCHANNELLABEL__8__2447_MHZ InterfaceRfChannelLabel = "8 (2447 MHz)"
- INTERFACERFCHANNELLABEL__9__2452_MHZ InterfaceRfChannelLabel = "9 (2452 MHz)"
- INTERFACERFCHANNELLABEL__10__2457_MHZ InterfaceRfChannelLabel = "10 (2457 MHz)"
- INTERFACERFCHANNELLABEL__11__2462_MHZ InterfaceRfChannelLabel = "11 (2462 MHz)"
- INTERFACERFCHANNELLABEL__12__2467_MHZ InterfaceRfChannelLabel = "12 (2467 MHz)"
- INTERFACERFCHANNELLABEL__13__2472_MHZ InterfaceRfChannelLabel = "13 (2472 MHz)"
- INTERFACERFCHANNELLABEL__32__5160_20_MHZ InterfaceRfChannelLabel = "32 (5160/20 MHz)"
- INTERFACERFCHANNELLABEL__34__5170_40_MHZ InterfaceRfChannelLabel = "34 (5170/40 MHz)"
- INTERFACERFCHANNELLABEL__36__5180_20_MHZ InterfaceRfChannelLabel = "36 (5180/20 MHz)"
- INTERFACERFCHANNELLABEL__38__5190_40_MHZ InterfaceRfChannelLabel = "38 (5190/40 MHz)"
- INTERFACERFCHANNELLABEL__40__5200_20_MHZ InterfaceRfChannelLabel = "40 (5200/20 MHz)"
- INTERFACERFCHANNELLABEL__42__5210_80_MHZ InterfaceRfChannelLabel = "42 (5210/80 MHz)"
- INTERFACERFCHANNELLABEL__44__5220_20_MHZ InterfaceRfChannelLabel = "44 (5220/20 MHz)"
- INTERFACERFCHANNELLABEL__46__5230_40_MHZ InterfaceRfChannelLabel = "46 (5230/40 MHz)"
- INTERFACERFCHANNELLABEL__48__5240_20_MHZ InterfaceRfChannelLabel = "48 (5240/20 MHz)"
- INTERFACERFCHANNELLABEL__50__5250_160_MHZ InterfaceRfChannelLabel = "50 (5250/160 MHz)"
- INTERFACERFCHANNELLABEL__52__5260_20_MHZ InterfaceRfChannelLabel = "52 (5260/20 MHz)"
- INTERFACERFCHANNELLABEL__54__5270_40_MHZ InterfaceRfChannelLabel = "54 (5270/40 MHz)"
- INTERFACERFCHANNELLABEL__56__5280_20_MHZ InterfaceRfChannelLabel = "56 (5280/20 MHz)"
- INTERFACERFCHANNELLABEL__58__5290_80_MHZ InterfaceRfChannelLabel = "58 (5290/80 MHz)"
- INTERFACERFCHANNELLABEL__60__5300_20_MHZ InterfaceRfChannelLabel = "60 (5300/20 MHz)"
- INTERFACERFCHANNELLABEL__62__5310_40_MHZ InterfaceRfChannelLabel = "62 (5310/40 MHz)"
- INTERFACERFCHANNELLABEL__64__5320_20_MHZ InterfaceRfChannelLabel = "64 (5320/20 MHz)"
- INTERFACERFCHANNELLABEL__100__5500_20_MHZ InterfaceRfChannelLabel = "100 (5500/20 MHz)"
- INTERFACERFCHANNELLABEL__102__5510_40_MHZ InterfaceRfChannelLabel = "102 (5510/40 MHz)"
- INTERFACERFCHANNELLABEL__104__5520_20_MHZ InterfaceRfChannelLabel = "104 (5520/20 MHz)"
- INTERFACERFCHANNELLABEL__106__5530_80_MHZ InterfaceRfChannelLabel = "106 (5530/80 MHz)"
- INTERFACERFCHANNELLABEL__108__5540_20_MHZ InterfaceRfChannelLabel = "108 (5540/20 MHz)"
- INTERFACERFCHANNELLABEL__110__5550_40_MHZ InterfaceRfChannelLabel = "110 (5550/40 MHz)"
- INTERFACERFCHANNELLABEL__112__5560_20_MHZ InterfaceRfChannelLabel = "112 (5560/20 MHz)"
- INTERFACERFCHANNELLABEL__114__5570_160_MHZ InterfaceRfChannelLabel = "114 (5570/160 MHz)"
- INTERFACERFCHANNELLABEL__116__5580_20_MHZ InterfaceRfChannelLabel = "116 (5580/20 MHz)"
- INTERFACERFCHANNELLABEL__118__5590_40_MHZ InterfaceRfChannelLabel = "118 (5590/40 MHz)"
- INTERFACERFCHANNELLABEL__120__5600_20_MHZ InterfaceRfChannelLabel = "120 (5600/20 MHz)"
- INTERFACERFCHANNELLABEL__122__5610_80_MHZ InterfaceRfChannelLabel = "122 (5610/80 MHz)"
- INTERFACERFCHANNELLABEL__124__5620_20_MHZ InterfaceRfChannelLabel = "124 (5620/20 MHz)"
- INTERFACERFCHANNELLABEL__126__5630_40_MHZ InterfaceRfChannelLabel = "126 (5630/40 MHz)"
- INTERFACERFCHANNELLABEL__128__5640_20_MHZ InterfaceRfChannelLabel = "128 (5640/20 MHz)"
- INTERFACERFCHANNELLABEL__132__5660_20_MHZ InterfaceRfChannelLabel = "132 (5660/20 MHz)"
- INTERFACERFCHANNELLABEL__134__5670_40_MHZ InterfaceRfChannelLabel = "134 (5670/40 MHz)"
- INTERFACERFCHANNELLABEL__136__5680_20_MHZ InterfaceRfChannelLabel = "136 (5680/20 MHz)"
- INTERFACERFCHANNELLABEL__138__5690_80_MHZ InterfaceRfChannelLabel = "138 (5690/80 MHz)"
- INTERFACERFCHANNELLABEL__140__5700_20_MHZ InterfaceRfChannelLabel = "140 (5700/20 MHz)"
- INTERFACERFCHANNELLABEL__142__5710_40_MHZ InterfaceRfChannelLabel = "142 (5710/40 MHz)"
- INTERFACERFCHANNELLABEL__144__5720_20_MHZ InterfaceRfChannelLabel = "144 (5720/20 MHz)"
- INTERFACERFCHANNELLABEL__149__5745_20_MHZ InterfaceRfChannelLabel = "149 (5745/20 MHz)"
- INTERFACERFCHANNELLABEL__151__5755_40_MHZ InterfaceRfChannelLabel = "151 (5755/40 MHz)"
- INTERFACERFCHANNELLABEL__153__5765_20_MHZ InterfaceRfChannelLabel = "153 (5765/20 MHz)"
- INTERFACERFCHANNELLABEL__155__5775_80_MHZ InterfaceRfChannelLabel = "155 (5775/80 MHz)"
- INTERFACERFCHANNELLABEL__157__5785_20_MHZ InterfaceRfChannelLabel = "157 (5785/20 MHz)"
- INTERFACERFCHANNELLABEL__159__5795_40_MHZ InterfaceRfChannelLabel = "159 (5795/40 MHz)"
- INTERFACERFCHANNELLABEL__161__5805_20_MHZ InterfaceRfChannelLabel = "161 (5805/20 MHz)"
- INTERFACERFCHANNELLABEL__163__5815_160_MHZ InterfaceRfChannelLabel = "163 (5815/160 MHz)"
- INTERFACERFCHANNELLABEL__165__5825_20_MHZ InterfaceRfChannelLabel = "165 (5825/20 MHz)"
- INTERFACERFCHANNELLABEL__167__5835_40_MHZ InterfaceRfChannelLabel = "167 (5835/40 MHz)"
- INTERFACERFCHANNELLABEL__169__5845_20_MHZ InterfaceRfChannelLabel = "169 (5845/20 MHz)"
- INTERFACERFCHANNELLABEL__171__5855_80_MHZ InterfaceRfChannelLabel = "171 (5855/80 MHz)"
- INTERFACERFCHANNELLABEL__173__5865_20_MHZ InterfaceRfChannelLabel = "173 (5865/20 MHz)"
- INTERFACERFCHANNELLABEL__175__5875_40_MHZ InterfaceRfChannelLabel = "175 (5875/40 MHz)"
- INTERFACERFCHANNELLABEL__177__5885_20_MHZ InterfaceRfChannelLabel = "177 (5885/20 MHz)"
- INTERFACERFCHANNELLABEL__1__5955_20_MHZ InterfaceRfChannelLabel = "1 (5955/20 MHz)"
- INTERFACERFCHANNELLABEL__3__5965_40_MHZ InterfaceRfChannelLabel = "3 (5965/40 MHz)"
- INTERFACERFCHANNELLABEL__5__5975_20_MHZ InterfaceRfChannelLabel = "5 (5975/20 MHz)"
- INTERFACERFCHANNELLABEL__7__5985_80_MHZ InterfaceRfChannelLabel = "7 (5985/80 MHz)"
- INTERFACERFCHANNELLABEL__9__5995_20_MHZ InterfaceRfChannelLabel = "9 (5995/20 MHz)"
- INTERFACERFCHANNELLABEL__11__6005_40_MHZ InterfaceRfChannelLabel = "11 (6005/40 MHz)"
- INTERFACERFCHANNELLABEL__13__6015_20_MHZ InterfaceRfChannelLabel = "13 (6015/20 MHz)"
- INTERFACERFCHANNELLABEL__15__6025_160_MHZ InterfaceRfChannelLabel = "15 (6025/160 MHz)"
- INTERFACERFCHANNELLABEL__17__6035_20_MHZ InterfaceRfChannelLabel = "17 (6035/20 MHz)"
- INTERFACERFCHANNELLABEL__19__6045_40_MHZ InterfaceRfChannelLabel = "19 (6045/40 MHz)"
- INTERFACERFCHANNELLABEL__21__6055_20_MHZ InterfaceRfChannelLabel = "21 (6055/20 MHz)"
- INTERFACERFCHANNELLABEL__23__6065_80_MHZ InterfaceRfChannelLabel = "23 (6065/80 MHz)"
- INTERFACERFCHANNELLABEL__25__6075_20_MHZ InterfaceRfChannelLabel = "25 (6075/20 MHz)"
- INTERFACERFCHANNELLABEL__27__6085_40_MHZ InterfaceRfChannelLabel = "27 (6085/40 MHz)"
- INTERFACERFCHANNELLABEL__29__6095_20_MHZ InterfaceRfChannelLabel = "29 (6095/20 MHz)"
- INTERFACERFCHANNELLABEL__31__6105_320_MHZ InterfaceRfChannelLabel = "31 (6105/320 MHz)"
- INTERFACERFCHANNELLABEL__33__6115_20_MHZ InterfaceRfChannelLabel = "33 (6115/20 MHz)"
- INTERFACERFCHANNELLABEL__35__6125_40_MHZ InterfaceRfChannelLabel = "35 (6125/40 MHz)"
- INTERFACERFCHANNELLABEL__37__6135_20_MHZ InterfaceRfChannelLabel = "37 (6135/20 MHz)"
- INTERFACERFCHANNELLABEL__39__6145_80_MHZ InterfaceRfChannelLabel = "39 (6145/80 MHz)"
- INTERFACERFCHANNELLABEL__41__6155_20_MHZ InterfaceRfChannelLabel = "41 (6155/20 MHz)"
- INTERFACERFCHANNELLABEL__43__6165_40_MHZ InterfaceRfChannelLabel = "43 (6165/40 MHz)"
- INTERFACERFCHANNELLABEL__45__6175_20_MHZ InterfaceRfChannelLabel = "45 (6175/20 MHz)"
- INTERFACERFCHANNELLABEL__47__6185_160_MHZ InterfaceRfChannelLabel = "47 (6185/160 MHz)"
- INTERFACERFCHANNELLABEL__49__6195_20_MHZ InterfaceRfChannelLabel = "49 (6195/20 MHz)"
- INTERFACERFCHANNELLABEL__51__6205_40_MHZ InterfaceRfChannelLabel = "51 (6205/40 MHz)"
- INTERFACERFCHANNELLABEL__53__6215_20_MHZ InterfaceRfChannelLabel = "53 (6215/20 MHz)"
- INTERFACERFCHANNELLABEL__55__6225_80_MHZ InterfaceRfChannelLabel = "55 (6225/80 MHz)"
- INTERFACERFCHANNELLABEL__57__6235_20_MHZ InterfaceRfChannelLabel = "57 (6235/20 MHz)"
- INTERFACERFCHANNELLABEL__59__6245_40_MHZ InterfaceRfChannelLabel = "59 (6245/40 MHz)"
- INTERFACERFCHANNELLABEL__61__6255_20_MHZ InterfaceRfChannelLabel = "61 (6255/20 MHz)"
- INTERFACERFCHANNELLABEL__65__6275_20_MHZ InterfaceRfChannelLabel = "65 (6275/20 MHz)"
- INTERFACERFCHANNELLABEL__67__6285_40_MHZ InterfaceRfChannelLabel = "67 (6285/40 MHz)"
- INTERFACERFCHANNELLABEL__69__6295_20_MHZ InterfaceRfChannelLabel = "69 (6295/20 MHz)"
- INTERFACERFCHANNELLABEL__71__6305_80_MHZ InterfaceRfChannelLabel = "71 (6305/80 MHz)"
- INTERFACERFCHANNELLABEL__73__6315_20_MHZ InterfaceRfChannelLabel = "73 (6315/20 MHz)"
- INTERFACERFCHANNELLABEL__75__6325_40_MHZ InterfaceRfChannelLabel = "75 (6325/40 MHz)"
- INTERFACERFCHANNELLABEL__77__6335_20_MHZ InterfaceRfChannelLabel = "77 (6335/20 MHz)"
- INTERFACERFCHANNELLABEL__79__6345_160_MHZ InterfaceRfChannelLabel = "79 (6345/160 MHz)"
- INTERFACERFCHANNELLABEL__81__6355_20_MHZ InterfaceRfChannelLabel = "81 (6355/20 MHz)"
- INTERFACERFCHANNELLABEL__83__6365_40_MHZ InterfaceRfChannelLabel = "83 (6365/40 MHz)"
- INTERFACERFCHANNELLABEL__85__6375_20_MHZ InterfaceRfChannelLabel = "85 (6375/20 MHz)"
- INTERFACERFCHANNELLABEL__87__6385_80_MHZ InterfaceRfChannelLabel = "87 (6385/80 MHz)"
- INTERFACERFCHANNELLABEL__89__6395_20_MHZ InterfaceRfChannelLabel = "89 (6395/20 MHz)"
- INTERFACERFCHANNELLABEL__91__6405_40_MHZ InterfaceRfChannelLabel = "91 (6405/40 MHz)"
- INTERFACERFCHANNELLABEL__93__6415_20_MHZ InterfaceRfChannelLabel = "93 (6415/20 MHz)"
- INTERFACERFCHANNELLABEL__95__6425_320_MHZ InterfaceRfChannelLabel = "95 (6425/320 MHz)"
- INTERFACERFCHANNELLABEL__97__6435_20_MHZ InterfaceRfChannelLabel = "97 (6435/20 MHz)"
- INTERFACERFCHANNELLABEL__99__6445_40_MHZ InterfaceRfChannelLabel = "99 (6445/40 MHz)"
- INTERFACERFCHANNELLABEL__101__6455_20_MHZ InterfaceRfChannelLabel = "101 (6455/20 MHz)"
- INTERFACERFCHANNELLABEL__103__6465_80_MHZ InterfaceRfChannelLabel = "103 (6465/80 MHz)"
- INTERFACERFCHANNELLABEL__105__6475_20_MHZ InterfaceRfChannelLabel = "105 (6475/20 MHz)"
- INTERFACERFCHANNELLABEL__107__6485_40_MHZ InterfaceRfChannelLabel = "107 (6485/40 MHz)"
- INTERFACERFCHANNELLABEL__109__6495_20_MHZ InterfaceRfChannelLabel = "109 (6495/20 MHz)"
- INTERFACERFCHANNELLABEL__111__6505_160_MHZ InterfaceRfChannelLabel = "111 (6505/160 MHz)"
- INTERFACERFCHANNELLABEL__113__6515_20_MHZ InterfaceRfChannelLabel = "113 (6515/20 MHz)"
- INTERFACERFCHANNELLABEL__115__6525_40_MHZ InterfaceRfChannelLabel = "115 (6525/40 MHz)"
- INTERFACERFCHANNELLABEL__117__6535_20_MHZ InterfaceRfChannelLabel = "117 (6535/20 MHz)"
- INTERFACERFCHANNELLABEL__119__6545_80_MHZ InterfaceRfChannelLabel = "119 (6545/80 MHz)"
- INTERFACERFCHANNELLABEL__121__6555_20_MHZ InterfaceRfChannelLabel = "121 (6555/20 MHz)"
- INTERFACERFCHANNELLABEL__123__6565_40_MHZ InterfaceRfChannelLabel = "123 (6565/40 MHz)"
- INTERFACERFCHANNELLABEL__125__6575_20_MHZ InterfaceRfChannelLabel = "125 (6575/20 MHz)"
- INTERFACERFCHANNELLABEL__129__6595_20_MHZ InterfaceRfChannelLabel = "129 (6595/20 MHz)"
- INTERFACERFCHANNELLABEL__131__6605_40_MHZ InterfaceRfChannelLabel = "131 (6605/40 MHz)"
- INTERFACERFCHANNELLABEL__133__6615_20_MHZ InterfaceRfChannelLabel = "133 (6615/20 MHz)"
- INTERFACERFCHANNELLABEL__135__6625_80_MHZ InterfaceRfChannelLabel = "135 (6625/80 MHz)"
- INTERFACERFCHANNELLABEL__137__6635_20_MHZ InterfaceRfChannelLabel = "137 (6635/20 MHz)"
- INTERFACERFCHANNELLABEL__139__6645_40_MHZ InterfaceRfChannelLabel = "139 (6645/40 MHz)"
- INTERFACERFCHANNELLABEL__141__6655_20_MHZ InterfaceRfChannelLabel = "141 (6655/20 MHz)"
- INTERFACERFCHANNELLABEL__143__6665_160_MHZ InterfaceRfChannelLabel = "143 (6665/160 MHz)"
- INTERFACERFCHANNELLABEL__145__6675_20_MHZ InterfaceRfChannelLabel = "145 (6675/20 MHz)"
- INTERFACERFCHANNELLABEL__147__6685_40_MHZ InterfaceRfChannelLabel = "147 (6685/40 MHz)"
- INTERFACERFCHANNELLABEL__149__6695_20_MHZ InterfaceRfChannelLabel = "149 (6695/20 MHz)"
- INTERFACERFCHANNELLABEL__151__6705_80_MHZ InterfaceRfChannelLabel = "151 (6705/80 MHz)"
- INTERFACERFCHANNELLABEL__153__6715_20_MHZ InterfaceRfChannelLabel = "153 (6715/20 MHz)"
- INTERFACERFCHANNELLABEL__155__6725_40_MHZ InterfaceRfChannelLabel = "155 (6725/40 MHz)"
- INTERFACERFCHANNELLABEL__157__6735_20_MHZ InterfaceRfChannelLabel = "157 (6735/20 MHz)"
- INTERFACERFCHANNELLABEL__159__6745_320_MHZ InterfaceRfChannelLabel = "159 (6745/320 MHz)"
- INTERFACERFCHANNELLABEL__161__6755_20_MHZ InterfaceRfChannelLabel = "161 (6755/20 MHz)"
- INTERFACERFCHANNELLABEL__163__6765_40_MHZ InterfaceRfChannelLabel = "163 (6765/40 MHz)"
- INTERFACERFCHANNELLABEL__165__6775_20_MHZ InterfaceRfChannelLabel = "165 (6775/20 MHz)"
- INTERFACERFCHANNELLABEL__167__6785_80_MHZ InterfaceRfChannelLabel = "167 (6785/80 MHz)"
- INTERFACERFCHANNELLABEL__169__6795_20_MHZ InterfaceRfChannelLabel = "169 (6795/20 MHz)"
- INTERFACERFCHANNELLABEL__171__6805_40_MHZ InterfaceRfChannelLabel = "171 (6805/40 MHz)"
- INTERFACERFCHANNELLABEL__173__6815_20_MHZ InterfaceRfChannelLabel = "173 (6815/20 MHz)"
- INTERFACERFCHANNELLABEL__175__6825_160_MHZ InterfaceRfChannelLabel = "175 (6825/160 MHz)"
- INTERFACERFCHANNELLABEL__177__6835_20_MHZ InterfaceRfChannelLabel = "177 (6835/20 MHz)"
- INTERFACERFCHANNELLABEL__179__6845_40_MHZ InterfaceRfChannelLabel = "179 (6845/40 MHz)"
- INTERFACERFCHANNELLABEL__181__6855_20_MHZ InterfaceRfChannelLabel = "181 (6855/20 MHz)"
- INTERFACERFCHANNELLABEL__183__6865_80_MHZ InterfaceRfChannelLabel = "183 (6865/80 MHz)"
- INTERFACERFCHANNELLABEL__185__6875_20_MHZ InterfaceRfChannelLabel = "185 (6875/20 MHz)"
- INTERFACERFCHANNELLABEL__187__6885_40_MHZ InterfaceRfChannelLabel = "187 (6885/40 MHz)"
- INTERFACERFCHANNELLABEL__189__6895_20_MHZ InterfaceRfChannelLabel = "189 (6895/20 MHz)"
- INTERFACERFCHANNELLABEL__193__6915_20_MHZ InterfaceRfChannelLabel = "193 (6915/20 MHz)"
- INTERFACERFCHANNELLABEL__195__6925_40_MHZ InterfaceRfChannelLabel = "195 (6925/40 MHz)"
- INTERFACERFCHANNELLABEL__197__6935_20_MHZ InterfaceRfChannelLabel = "197 (6935/20 MHz)"
- INTERFACERFCHANNELLABEL__199__6945_80_MHZ InterfaceRfChannelLabel = "199 (6945/80 MHz)"
- INTERFACERFCHANNELLABEL__201__6955_20_MHZ InterfaceRfChannelLabel = "201 (6955/20 MHz)"
- INTERFACERFCHANNELLABEL__203__6965_40_MHZ InterfaceRfChannelLabel = "203 (6965/40 MHz)"
- INTERFACERFCHANNELLABEL__205__6975_20_MHZ InterfaceRfChannelLabel = "205 (6975/20 MHz)"
- INTERFACERFCHANNELLABEL__207__6985_160_MHZ InterfaceRfChannelLabel = "207 (6985/160 MHz)"
- INTERFACERFCHANNELLABEL__209__6995_20_MHZ InterfaceRfChannelLabel = "209 (6995/20 MHz)"
- INTERFACERFCHANNELLABEL__211__7005_40_MHZ InterfaceRfChannelLabel = "211 (7005/40 MHz)"
- INTERFACERFCHANNELLABEL__213__7015_20_MHZ InterfaceRfChannelLabel = "213 (7015/20 MHz)"
- INTERFACERFCHANNELLABEL__215__7025_80_MHZ InterfaceRfChannelLabel = "215 (7025/80 MHz)"
- INTERFACERFCHANNELLABEL__217__7035_20_MHZ InterfaceRfChannelLabel = "217 (7035/20 MHz)"
- INTERFACERFCHANNELLABEL__219__7045_40_MHZ InterfaceRfChannelLabel = "219 (7045/40 MHz)"
- INTERFACERFCHANNELLABEL__221__7055_20_MHZ InterfaceRfChannelLabel = "221 (7055/20 MHz)"
- INTERFACERFCHANNELLABEL__225__7075_20_MHZ InterfaceRfChannelLabel = "225 (7075/20 MHz)"
- INTERFACERFCHANNELLABEL__227__7085_40_MHZ InterfaceRfChannelLabel = "227 (7085/40 MHz)"
- INTERFACERFCHANNELLABEL__229__7095_20_MHZ InterfaceRfChannelLabel = "229 (7095/20 MHz)"
- INTERFACERFCHANNELLABEL__233__7115_20_MHZ InterfaceRfChannelLabel = "233 (7115/20 MHz)"
- INTERFACERFCHANNELLABEL__1__58_32_2_16_GHZ InterfaceRfChannelLabel = "1 (58.32/2.16 GHz)"
- INTERFACERFCHANNELLABEL__2__60_48_2_16_GHZ InterfaceRfChannelLabel = "2 (60.48/2.16 GHz)"
- INTERFACERFCHANNELLABEL__3__62_64_2_16_GHZ InterfaceRfChannelLabel = "3 (62.64/2.16 GHz)"
- INTERFACERFCHANNELLABEL__4__64_80_2_16_GHZ InterfaceRfChannelLabel = "4 (64.80/2.16 GHz)"
- INTERFACERFCHANNELLABEL__5__66_96_2_16_GHZ InterfaceRfChannelLabel = "5 (66.96/2.16 GHz)"
- INTERFACERFCHANNELLABEL__6__69_12_2_16_GHZ InterfaceRfChannelLabel = "6 (69.12/2.16 GHz)"
- INTERFACERFCHANNELLABEL__9__59_40_4_32_GHZ InterfaceRfChannelLabel = "9 (59.40/4.32 GHz)"
+ INTERFACERFCHANNELLABEL__1__2412_MHZ InterfaceRfChannelLabel = "1 (2412 MHz)"
+ INTERFACERFCHANNELLABEL__2__2417_MHZ InterfaceRfChannelLabel = "2 (2417 MHz)"
+ INTERFACERFCHANNELLABEL__3__2422_MHZ InterfaceRfChannelLabel = "3 (2422 MHz)"
+ INTERFACERFCHANNELLABEL__4__2427_MHZ InterfaceRfChannelLabel = "4 (2427 MHz)"
+ INTERFACERFCHANNELLABEL__5__2432_MHZ InterfaceRfChannelLabel = "5 (2432 MHz)"
+ INTERFACERFCHANNELLABEL__6__2437_MHZ InterfaceRfChannelLabel = "6 (2437 MHz)"
+ INTERFACERFCHANNELLABEL__7__2442_MHZ InterfaceRfChannelLabel = "7 (2442 MHz)"
+ INTERFACERFCHANNELLABEL__8__2447_MHZ InterfaceRfChannelLabel = "8 (2447 MHz)"
+ INTERFACERFCHANNELLABEL__9__2452_MHZ InterfaceRfChannelLabel = "9 (2452 MHz)"
+ INTERFACERFCHANNELLABEL__10__2457_MHZ InterfaceRfChannelLabel = "10 (2457 MHz)"
+ INTERFACERFCHANNELLABEL__11__2462_MHZ InterfaceRfChannelLabel = "11 (2462 MHz)"
+ INTERFACERFCHANNELLABEL__12__2467_MHZ InterfaceRfChannelLabel = "12 (2467 MHz)"
+ INTERFACERFCHANNELLABEL__13__2472_MHZ InterfaceRfChannelLabel = "13 (2472 MHz)"
+ INTERFACERFCHANNELLABEL__32__5160_20_MHZ InterfaceRfChannelLabel = "32 (5160/20 MHz)"
+ INTERFACERFCHANNELLABEL__34__5170_40_MHZ InterfaceRfChannelLabel = "34 (5170/40 MHz)"
+ INTERFACERFCHANNELLABEL__36__5180_20_MHZ InterfaceRfChannelLabel = "36 (5180/20 MHz)"
+ INTERFACERFCHANNELLABEL__38__5190_40_MHZ InterfaceRfChannelLabel = "38 (5190/40 MHz)"
+ INTERFACERFCHANNELLABEL__40__5200_20_MHZ InterfaceRfChannelLabel = "40 (5200/20 MHz)"
+ INTERFACERFCHANNELLABEL__42__5210_80_MHZ InterfaceRfChannelLabel = "42 (5210/80 MHz)"
+ INTERFACERFCHANNELLABEL__44__5220_20_MHZ InterfaceRfChannelLabel = "44 (5220/20 MHz)"
+ INTERFACERFCHANNELLABEL__46__5230_40_MHZ InterfaceRfChannelLabel = "46 (5230/40 MHz)"
+ INTERFACERFCHANNELLABEL__48__5240_20_MHZ InterfaceRfChannelLabel = "48 (5240/20 MHz)"
+ INTERFACERFCHANNELLABEL__50__5250_160_MHZ InterfaceRfChannelLabel = "50 (5250/160 MHz)"
+ INTERFACERFCHANNELLABEL__52__5260_20_MHZ InterfaceRfChannelLabel = "52 (5260/20 MHz)"
+ INTERFACERFCHANNELLABEL__54__5270_40_MHZ InterfaceRfChannelLabel = "54 (5270/40 MHz)"
+ INTERFACERFCHANNELLABEL__56__5280_20_MHZ InterfaceRfChannelLabel = "56 (5280/20 MHz)"
+ INTERFACERFCHANNELLABEL__58__5290_80_MHZ InterfaceRfChannelLabel = "58 (5290/80 MHz)"
+ INTERFACERFCHANNELLABEL__60__5300_20_MHZ InterfaceRfChannelLabel = "60 (5300/20 MHz)"
+ INTERFACERFCHANNELLABEL__62__5310_40_MHZ InterfaceRfChannelLabel = "62 (5310/40 MHz)"
+ INTERFACERFCHANNELLABEL__64__5320_20_MHZ InterfaceRfChannelLabel = "64 (5320/20 MHz)"
+ INTERFACERFCHANNELLABEL__100__5500_20_MHZ InterfaceRfChannelLabel = "100 (5500/20 MHz)"
+ INTERFACERFCHANNELLABEL__102__5510_40_MHZ InterfaceRfChannelLabel = "102 (5510/40 MHz)"
+ INTERFACERFCHANNELLABEL__104__5520_20_MHZ InterfaceRfChannelLabel = "104 (5520/20 MHz)"
+ INTERFACERFCHANNELLABEL__106__5530_80_MHZ InterfaceRfChannelLabel = "106 (5530/80 MHz)"
+ INTERFACERFCHANNELLABEL__108__5540_20_MHZ InterfaceRfChannelLabel = "108 (5540/20 MHz)"
+ INTERFACERFCHANNELLABEL__110__5550_40_MHZ InterfaceRfChannelLabel = "110 (5550/40 MHz)"
+ INTERFACERFCHANNELLABEL__112__5560_20_MHZ InterfaceRfChannelLabel = "112 (5560/20 MHz)"
+ INTERFACERFCHANNELLABEL__114__5570_160_MHZ InterfaceRfChannelLabel = "114 (5570/160 MHz)"
+ INTERFACERFCHANNELLABEL__116__5580_20_MHZ InterfaceRfChannelLabel = "116 (5580/20 MHz)"
+ INTERFACERFCHANNELLABEL__118__5590_40_MHZ InterfaceRfChannelLabel = "118 (5590/40 MHz)"
+ INTERFACERFCHANNELLABEL__120__5600_20_MHZ InterfaceRfChannelLabel = "120 (5600/20 MHz)"
+ INTERFACERFCHANNELLABEL__122__5610_80_MHZ InterfaceRfChannelLabel = "122 (5610/80 MHz)"
+ INTERFACERFCHANNELLABEL__124__5620_20_MHZ InterfaceRfChannelLabel = "124 (5620/20 MHz)"
+ INTERFACERFCHANNELLABEL__126__5630_40_MHZ InterfaceRfChannelLabel = "126 (5630/40 MHz)"
+ INTERFACERFCHANNELLABEL__128__5640_20_MHZ InterfaceRfChannelLabel = "128 (5640/20 MHz)"
+ INTERFACERFCHANNELLABEL__132__5660_20_MHZ InterfaceRfChannelLabel = "132 (5660/20 MHz)"
+ INTERFACERFCHANNELLABEL__134__5670_40_MHZ InterfaceRfChannelLabel = "134 (5670/40 MHz)"
+ INTERFACERFCHANNELLABEL__136__5680_20_MHZ InterfaceRfChannelLabel = "136 (5680/20 MHz)"
+ INTERFACERFCHANNELLABEL__138__5690_80_MHZ InterfaceRfChannelLabel = "138 (5690/80 MHz)"
+ INTERFACERFCHANNELLABEL__140__5700_20_MHZ InterfaceRfChannelLabel = "140 (5700/20 MHz)"
+ INTERFACERFCHANNELLABEL__142__5710_40_MHZ InterfaceRfChannelLabel = "142 (5710/40 MHz)"
+ INTERFACERFCHANNELLABEL__144__5720_20_MHZ InterfaceRfChannelLabel = "144 (5720/20 MHz)"
+ INTERFACERFCHANNELLABEL__149__5745_20_MHZ InterfaceRfChannelLabel = "149 (5745/20 MHz)"
+ INTERFACERFCHANNELLABEL__151__5755_40_MHZ InterfaceRfChannelLabel = "151 (5755/40 MHz)"
+ INTERFACERFCHANNELLABEL__153__5765_20_MHZ InterfaceRfChannelLabel = "153 (5765/20 MHz)"
+ INTERFACERFCHANNELLABEL__155__5775_80_MHZ InterfaceRfChannelLabel = "155 (5775/80 MHz)"
+ INTERFACERFCHANNELLABEL__157__5785_20_MHZ InterfaceRfChannelLabel = "157 (5785/20 MHz)"
+ INTERFACERFCHANNELLABEL__159__5795_40_MHZ InterfaceRfChannelLabel = "159 (5795/40 MHz)"
+ INTERFACERFCHANNELLABEL__161__5805_20_MHZ InterfaceRfChannelLabel = "161 (5805/20 MHz)"
+ INTERFACERFCHANNELLABEL__163__5815_160_MHZ InterfaceRfChannelLabel = "163 (5815/160 MHz)"
+ INTERFACERFCHANNELLABEL__165__5825_20_MHZ InterfaceRfChannelLabel = "165 (5825/20 MHz)"
+ INTERFACERFCHANNELLABEL__167__5835_40_MHZ InterfaceRfChannelLabel = "167 (5835/40 MHz)"
+ INTERFACERFCHANNELLABEL__169__5845_20_MHZ InterfaceRfChannelLabel = "169 (5845/20 MHz)"
+ INTERFACERFCHANNELLABEL__171__5855_80_MHZ InterfaceRfChannelLabel = "171 (5855/80 MHz)"
+ INTERFACERFCHANNELLABEL__173__5865_20_MHZ InterfaceRfChannelLabel = "173 (5865/20 MHz)"
+ INTERFACERFCHANNELLABEL__175__5875_40_MHZ InterfaceRfChannelLabel = "175 (5875/40 MHz)"
+ INTERFACERFCHANNELLABEL__177__5885_20_MHZ InterfaceRfChannelLabel = "177 (5885/20 MHz)"
+ INTERFACERFCHANNELLABEL__1__5955_20_MHZ InterfaceRfChannelLabel = "1 (5955/20 MHz)"
+ INTERFACERFCHANNELLABEL__3__5965_40_MHZ InterfaceRfChannelLabel = "3 (5965/40 MHz)"
+ INTERFACERFCHANNELLABEL__5__5975_20_MHZ InterfaceRfChannelLabel = "5 (5975/20 MHz)"
+ INTERFACERFCHANNELLABEL__7__5985_80_MHZ InterfaceRfChannelLabel = "7 (5985/80 MHz)"
+ INTERFACERFCHANNELLABEL__9__5995_20_MHZ InterfaceRfChannelLabel = "9 (5995/20 MHz)"
+ INTERFACERFCHANNELLABEL__11__6005_40_MHZ InterfaceRfChannelLabel = "11 (6005/40 MHz)"
+ INTERFACERFCHANNELLABEL__13__6015_20_MHZ InterfaceRfChannelLabel = "13 (6015/20 MHz)"
+ INTERFACERFCHANNELLABEL__15__6025_160_MHZ InterfaceRfChannelLabel = "15 (6025/160 MHz)"
+ INTERFACERFCHANNELLABEL__17__6035_20_MHZ InterfaceRfChannelLabel = "17 (6035/20 MHz)"
+ INTERFACERFCHANNELLABEL__19__6045_40_MHZ InterfaceRfChannelLabel = "19 (6045/40 MHz)"
+ INTERFACERFCHANNELLABEL__21__6055_20_MHZ InterfaceRfChannelLabel = "21 (6055/20 MHz)"
+ INTERFACERFCHANNELLABEL__23__6065_80_MHZ InterfaceRfChannelLabel = "23 (6065/80 MHz)"
+ INTERFACERFCHANNELLABEL__25__6075_20_MHZ InterfaceRfChannelLabel = "25 (6075/20 MHz)"
+ INTERFACERFCHANNELLABEL__27__6085_40_MHZ InterfaceRfChannelLabel = "27 (6085/40 MHz)"
+ INTERFACERFCHANNELLABEL__29__6095_20_MHZ InterfaceRfChannelLabel = "29 (6095/20 MHz)"
+ INTERFACERFCHANNELLABEL__31__6105_320_MHZ InterfaceRfChannelLabel = "31 (6105/320 MHz)"
+ INTERFACERFCHANNELLABEL__33__6115_20_MHZ InterfaceRfChannelLabel = "33 (6115/20 MHz)"
+ INTERFACERFCHANNELLABEL__35__6125_40_MHZ InterfaceRfChannelLabel = "35 (6125/40 MHz)"
+ INTERFACERFCHANNELLABEL__37__6135_20_MHZ InterfaceRfChannelLabel = "37 (6135/20 MHz)"
+ INTERFACERFCHANNELLABEL__39__6145_80_MHZ InterfaceRfChannelLabel = "39 (6145/80 MHz)"
+ INTERFACERFCHANNELLABEL__41__6155_20_MHZ InterfaceRfChannelLabel = "41 (6155/20 MHz)"
+ INTERFACERFCHANNELLABEL__43__6165_40_MHZ InterfaceRfChannelLabel = "43 (6165/40 MHz)"
+ INTERFACERFCHANNELLABEL__45__6175_20_MHZ InterfaceRfChannelLabel = "45 (6175/20 MHz)"
+ INTERFACERFCHANNELLABEL__47__6185_160_MHZ InterfaceRfChannelLabel = "47 (6185/160 MHz)"
+ INTERFACERFCHANNELLABEL__49__6195_20_MHZ InterfaceRfChannelLabel = "49 (6195/20 MHz)"
+ INTERFACERFCHANNELLABEL__51__6205_40_MHZ InterfaceRfChannelLabel = "51 (6205/40 MHz)"
+ INTERFACERFCHANNELLABEL__53__6215_20_MHZ InterfaceRfChannelLabel = "53 (6215/20 MHz)"
+ INTERFACERFCHANNELLABEL__55__6225_80_MHZ InterfaceRfChannelLabel = "55 (6225/80 MHz)"
+ INTERFACERFCHANNELLABEL__57__6235_20_MHZ InterfaceRfChannelLabel = "57 (6235/20 MHz)"
+ INTERFACERFCHANNELLABEL__59__6245_40_MHZ InterfaceRfChannelLabel = "59 (6245/40 MHz)"
+ INTERFACERFCHANNELLABEL__61__6255_20_MHZ InterfaceRfChannelLabel = "61 (6255/20 MHz)"
+ INTERFACERFCHANNELLABEL__65__6275_20_MHZ InterfaceRfChannelLabel = "65 (6275/20 MHz)"
+ INTERFACERFCHANNELLABEL__67__6285_40_MHZ InterfaceRfChannelLabel = "67 (6285/40 MHz)"
+ INTERFACERFCHANNELLABEL__69__6295_20_MHZ InterfaceRfChannelLabel = "69 (6295/20 MHz)"
+ INTERFACERFCHANNELLABEL__71__6305_80_MHZ InterfaceRfChannelLabel = "71 (6305/80 MHz)"
+ INTERFACERFCHANNELLABEL__73__6315_20_MHZ InterfaceRfChannelLabel = "73 (6315/20 MHz)"
+ INTERFACERFCHANNELLABEL__75__6325_40_MHZ InterfaceRfChannelLabel = "75 (6325/40 MHz)"
+ INTERFACERFCHANNELLABEL__77__6335_20_MHZ InterfaceRfChannelLabel = "77 (6335/20 MHz)"
+ INTERFACERFCHANNELLABEL__79__6345_160_MHZ InterfaceRfChannelLabel = "79 (6345/160 MHz)"
+ INTERFACERFCHANNELLABEL__81__6355_20_MHZ InterfaceRfChannelLabel = "81 (6355/20 MHz)"
+ INTERFACERFCHANNELLABEL__83__6365_40_MHZ InterfaceRfChannelLabel = "83 (6365/40 MHz)"
+ INTERFACERFCHANNELLABEL__85__6375_20_MHZ InterfaceRfChannelLabel = "85 (6375/20 MHz)"
+ INTERFACERFCHANNELLABEL__87__6385_80_MHZ InterfaceRfChannelLabel = "87 (6385/80 MHz)"
+ INTERFACERFCHANNELLABEL__89__6395_20_MHZ InterfaceRfChannelLabel = "89 (6395/20 MHz)"
+ INTERFACERFCHANNELLABEL__91__6405_40_MHZ InterfaceRfChannelLabel = "91 (6405/40 MHz)"
+ INTERFACERFCHANNELLABEL__93__6415_20_MHZ InterfaceRfChannelLabel = "93 (6415/20 MHz)"
+ INTERFACERFCHANNELLABEL__95__6425_320_MHZ InterfaceRfChannelLabel = "95 (6425/320 MHz)"
+ INTERFACERFCHANNELLABEL__97__6435_20_MHZ InterfaceRfChannelLabel = "97 (6435/20 MHz)"
+ INTERFACERFCHANNELLABEL__99__6445_40_MHZ InterfaceRfChannelLabel = "99 (6445/40 MHz)"
+ INTERFACERFCHANNELLABEL__101__6455_20_MHZ InterfaceRfChannelLabel = "101 (6455/20 MHz)"
+ INTERFACERFCHANNELLABEL__103__6465_80_MHZ InterfaceRfChannelLabel = "103 (6465/80 MHz)"
+ INTERFACERFCHANNELLABEL__105__6475_20_MHZ InterfaceRfChannelLabel = "105 (6475/20 MHz)"
+ INTERFACERFCHANNELLABEL__107__6485_40_MHZ InterfaceRfChannelLabel = "107 (6485/40 MHz)"
+ INTERFACERFCHANNELLABEL__109__6495_20_MHZ InterfaceRfChannelLabel = "109 (6495/20 MHz)"
+ INTERFACERFCHANNELLABEL__111__6505_160_MHZ InterfaceRfChannelLabel = "111 (6505/160 MHz)"
+ INTERFACERFCHANNELLABEL__113__6515_20_MHZ InterfaceRfChannelLabel = "113 (6515/20 MHz)"
+ INTERFACERFCHANNELLABEL__115__6525_40_MHZ InterfaceRfChannelLabel = "115 (6525/40 MHz)"
+ INTERFACERFCHANNELLABEL__117__6535_20_MHZ InterfaceRfChannelLabel = "117 (6535/20 MHz)"
+ INTERFACERFCHANNELLABEL__119__6545_80_MHZ InterfaceRfChannelLabel = "119 (6545/80 MHz)"
+ INTERFACERFCHANNELLABEL__121__6555_20_MHZ InterfaceRfChannelLabel = "121 (6555/20 MHz)"
+ INTERFACERFCHANNELLABEL__123__6565_40_MHZ InterfaceRfChannelLabel = "123 (6565/40 MHz)"
+ INTERFACERFCHANNELLABEL__125__6575_20_MHZ InterfaceRfChannelLabel = "125 (6575/20 MHz)"
+ INTERFACERFCHANNELLABEL__129__6595_20_MHZ InterfaceRfChannelLabel = "129 (6595/20 MHz)"
+ INTERFACERFCHANNELLABEL__131__6605_40_MHZ InterfaceRfChannelLabel = "131 (6605/40 MHz)"
+ INTERFACERFCHANNELLABEL__133__6615_20_MHZ InterfaceRfChannelLabel = "133 (6615/20 MHz)"
+ INTERFACERFCHANNELLABEL__135__6625_80_MHZ InterfaceRfChannelLabel = "135 (6625/80 MHz)"
+ INTERFACERFCHANNELLABEL__137__6635_20_MHZ InterfaceRfChannelLabel = "137 (6635/20 MHz)"
+ INTERFACERFCHANNELLABEL__139__6645_40_MHZ InterfaceRfChannelLabel = "139 (6645/40 MHz)"
+ INTERFACERFCHANNELLABEL__141__6655_20_MHZ InterfaceRfChannelLabel = "141 (6655/20 MHz)"
+ INTERFACERFCHANNELLABEL__143__6665_160_MHZ InterfaceRfChannelLabel = "143 (6665/160 MHz)"
+ INTERFACERFCHANNELLABEL__145__6675_20_MHZ InterfaceRfChannelLabel = "145 (6675/20 MHz)"
+ INTERFACERFCHANNELLABEL__147__6685_40_MHZ InterfaceRfChannelLabel = "147 (6685/40 MHz)"
+ INTERFACERFCHANNELLABEL__149__6695_20_MHZ InterfaceRfChannelLabel = "149 (6695/20 MHz)"
+ INTERFACERFCHANNELLABEL__151__6705_80_MHZ InterfaceRfChannelLabel = "151 (6705/80 MHz)"
+ INTERFACERFCHANNELLABEL__153__6715_20_MHZ InterfaceRfChannelLabel = "153 (6715/20 MHz)"
+ INTERFACERFCHANNELLABEL__155__6725_40_MHZ InterfaceRfChannelLabel = "155 (6725/40 MHz)"
+ INTERFACERFCHANNELLABEL__157__6735_20_MHZ InterfaceRfChannelLabel = "157 (6735/20 MHz)"
+ INTERFACERFCHANNELLABEL__159__6745_320_MHZ InterfaceRfChannelLabel = "159 (6745/320 MHz)"
+ INTERFACERFCHANNELLABEL__161__6755_20_MHZ InterfaceRfChannelLabel = "161 (6755/20 MHz)"
+ INTERFACERFCHANNELLABEL__163__6765_40_MHZ InterfaceRfChannelLabel = "163 (6765/40 MHz)"
+ INTERFACERFCHANNELLABEL__165__6775_20_MHZ InterfaceRfChannelLabel = "165 (6775/20 MHz)"
+ INTERFACERFCHANNELLABEL__167__6785_80_MHZ InterfaceRfChannelLabel = "167 (6785/80 MHz)"
+ INTERFACERFCHANNELLABEL__169__6795_20_MHZ InterfaceRfChannelLabel = "169 (6795/20 MHz)"
+ INTERFACERFCHANNELLABEL__171__6805_40_MHZ InterfaceRfChannelLabel = "171 (6805/40 MHz)"
+ INTERFACERFCHANNELLABEL__173__6815_20_MHZ InterfaceRfChannelLabel = "173 (6815/20 MHz)"
+ INTERFACERFCHANNELLABEL__175__6825_160_MHZ InterfaceRfChannelLabel = "175 (6825/160 MHz)"
+ INTERFACERFCHANNELLABEL__177__6835_20_MHZ InterfaceRfChannelLabel = "177 (6835/20 MHz)"
+ INTERFACERFCHANNELLABEL__179__6845_40_MHZ InterfaceRfChannelLabel = "179 (6845/40 MHz)"
+ INTERFACERFCHANNELLABEL__181__6855_20_MHZ InterfaceRfChannelLabel = "181 (6855/20 MHz)"
+ INTERFACERFCHANNELLABEL__183__6865_80_MHZ InterfaceRfChannelLabel = "183 (6865/80 MHz)"
+ INTERFACERFCHANNELLABEL__185__6875_20_MHZ InterfaceRfChannelLabel = "185 (6875/20 MHz)"
+ INTERFACERFCHANNELLABEL__187__6885_40_MHZ InterfaceRfChannelLabel = "187 (6885/40 MHz)"
+ INTERFACERFCHANNELLABEL__189__6895_20_MHZ InterfaceRfChannelLabel = "189 (6895/20 MHz)"
+ INTERFACERFCHANNELLABEL__193__6915_20_MHZ InterfaceRfChannelLabel = "193 (6915/20 MHz)"
+ INTERFACERFCHANNELLABEL__195__6925_40_MHZ InterfaceRfChannelLabel = "195 (6925/40 MHz)"
+ INTERFACERFCHANNELLABEL__197__6935_20_MHZ InterfaceRfChannelLabel = "197 (6935/20 MHz)"
+ INTERFACERFCHANNELLABEL__199__6945_80_MHZ InterfaceRfChannelLabel = "199 (6945/80 MHz)"
+ INTERFACERFCHANNELLABEL__201__6955_20_MHZ InterfaceRfChannelLabel = "201 (6955/20 MHz)"
+ INTERFACERFCHANNELLABEL__203__6965_40_MHZ InterfaceRfChannelLabel = "203 (6965/40 MHz)"
+ INTERFACERFCHANNELLABEL__205__6975_20_MHZ InterfaceRfChannelLabel = "205 (6975/20 MHz)"
+ INTERFACERFCHANNELLABEL__207__6985_160_MHZ InterfaceRfChannelLabel = "207 (6985/160 MHz)"
+ INTERFACERFCHANNELLABEL__209__6995_20_MHZ InterfaceRfChannelLabel = "209 (6995/20 MHz)"
+ INTERFACERFCHANNELLABEL__211__7005_40_MHZ InterfaceRfChannelLabel = "211 (7005/40 MHz)"
+ INTERFACERFCHANNELLABEL__213__7015_20_MHZ InterfaceRfChannelLabel = "213 (7015/20 MHz)"
+ INTERFACERFCHANNELLABEL__215__7025_80_MHZ InterfaceRfChannelLabel = "215 (7025/80 MHz)"
+ INTERFACERFCHANNELLABEL__217__7035_20_MHZ InterfaceRfChannelLabel = "217 (7035/20 MHz)"
+ INTERFACERFCHANNELLABEL__219__7045_40_MHZ InterfaceRfChannelLabel = "219 (7045/40 MHz)"
+ INTERFACERFCHANNELLABEL__221__7055_20_MHZ InterfaceRfChannelLabel = "221 (7055/20 MHz)"
+ INTERFACERFCHANNELLABEL__225__7075_20_MHZ InterfaceRfChannelLabel = "225 (7075/20 MHz)"
+ INTERFACERFCHANNELLABEL__227__7085_40_MHZ InterfaceRfChannelLabel = "227 (7085/40 MHz)"
+ INTERFACERFCHANNELLABEL__229__7095_20_MHZ InterfaceRfChannelLabel = "229 (7095/20 MHz)"
+ INTERFACERFCHANNELLABEL__233__7115_20_MHZ InterfaceRfChannelLabel = "233 (7115/20 MHz)"
+ INTERFACERFCHANNELLABEL__1__58_32_2_16_GHZ InterfaceRfChannelLabel = "1 (58.32/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__2__60_48_2_16_GHZ InterfaceRfChannelLabel = "2 (60.48/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__3__62_64_2_16_GHZ InterfaceRfChannelLabel = "3 (62.64/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__4__64_80_2_16_GHZ InterfaceRfChannelLabel = "4 (64.80/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__5__66_96_2_16_GHZ InterfaceRfChannelLabel = "5 (66.96/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__6__69_12_2_16_GHZ InterfaceRfChannelLabel = "6 (69.12/2.16 GHz)"
+ INTERFACERFCHANNELLABEL__9__59_40_4_32_GHZ InterfaceRfChannelLabel = "9 (59.40/4.32 GHz)"
INTERFACERFCHANNELLABEL__10__61_56_4_32_GHZ InterfaceRfChannelLabel = "10 (61.56/4.32 GHz)"
INTERFACERFCHANNELLABEL__11__63_72_4_32_GHZ InterfaceRfChannelLabel = "11 (63.72/4.32 GHz)"
INTERFACERFCHANNELLABEL__12__65_88_4_32_GHZ InterfaceRfChannelLabel = "12 (65.88/4.32 GHz)"
@@ -498,4 +498,3 @@ func (v *NullableInterfaceRfChannelLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go
index 425dd0b7c..f3f04f76f 100644
--- a/model_interface_rf_channel_value.go
+++ b/model_interface_rf_channel_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,192 +20,192 @@ type InterfaceRfChannelValue string
// List of Interface_rf_channel_value
const (
- INTERFACERFCHANNELVALUE__2_4G_1_2412_22 InterfaceRfChannelValue = "2.4g-1-2412-22"
- INTERFACERFCHANNELVALUE__2_4G_2_2417_22 InterfaceRfChannelValue = "2.4g-2-2417-22"
- INTERFACERFCHANNELVALUE__2_4G_3_2422_22 InterfaceRfChannelValue = "2.4g-3-2422-22"
- INTERFACERFCHANNELVALUE__2_4G_4_2427_22 InterfaceRfChannelValue = "2.4g-4-2427-22"
- INTERFACERFCHANNELVALUE__2_4G_5_2432_22 InterfaceRfChannelValue = "2.4g-5-2432-22"
- INTERFACERFCHANNELVALUE__2_4G_6_2437_22 InterfaceRfChannelValue = "2.4g-6-2437-22"
- INTERFACERFCHANNELVALUE__2_4G_7_2442_22 InterfaceRfChannelValue = "2.4g-7-2442-22"
- INTERFACERFCHANNELVALUE__2_4G_8_2447_22 InterfaceRfChannelValue = "2.4g-8-2447-22"
- INTERFACERFCHANNELVALUE__2_4G_9_2452_22 InterfaceRfChannelValue = "2.4g-9-2452-22"
- INTERFACERFCHANNELVALUE__2_4G_10_2457_22 InterfaceRfChannelValue = "2.4g-10-2457-22"
- INTERFACERFCHANNELVALUE__2_4G_11_2462_22 InterfaceRfChannelValue = "2.4g-11-2462-22"
- INTERFACERFCHANNELVALUE__2_4G_12_2467_22 InterfaceRfChannelValue = "2.4g-12-2467-22"
- INTERFACERFCHANNELVALUE__2_4G_13_2472_22 InterfaceRfChannelValue = "2.4g-13-2472-22"
- INTERFACERFCHANNELVALUE__5G_32_5160_20 InterfaceRfChannelValue = "5g-32-5160-20"
- INTERFACERFCHANNELVALUE__5G_34_5170_40 InterfaceRfChannelValue = "5g-34-5170-40"
- INTERFACERFCHANNELVALUE__5G_36_5180_20 InterfaceRfChannelValue = "5g-36-5180-20"
- INTERFACERFCHANNELVALUE__5G_38_5190_40 InterfaceRfChannelValue = "5g-38-5190-40"
- INTERFACERFCHANNELVALUE__5G_40_5200_20 InterfaceRfChannelValue = "5g-40-5200-20"
- INTERFACERFCHANNELVALUE__5G_42_5210_80 InterfaceRfChannelValue = "5g-42-5210-80"
- INTERFACERFCHANNELVALUE__5G_44_5220_20 InterfaceRfChannelValue = "5g-44-5220-20"
- INTERFACERFCHANNELVALUE__5G_46_5230_40 InterfaceRfChannelValue = "5g-46-5230-40"
- INTERFACERFCHANNELVALUE__5G_48_5240_20 InterfaceRfChannelValue = "5g-48-5240-20"
- INTERFACERFCHANNELVALUE__5G_50_5250_160 InterfaceRfChannelValue = "5g-50-5250-160"
- INTERFACERFCHANNELVALUE__5G_52_5260_20 InterfaceRfChannelValue = "5g-52-5260-20"
- INTERFACERFCHANNELVALUE__5G_54_5270_40 InterfaceRfChannelValue = "5g-54-5270-40"
- INTERFACERFCHANNELVALUE__5G_56_5280_20 InterfaceRfChannelValue = "5g-56-5280-20"
- INTERFACERFCHANNELVALUE__5G_58_5290_80 InterfaceRfChannelValue = "5g-58-5290-80"
- INTERFACERFCHANNELVALUE__5G_60_5300_20 InterfaceRfChannelValue = "5g-60-5300-20"
- INTERFACERFCHANNELVALUE__5G_62_5310_40 InterfaceRfChannelValue = "5g-62-5310-40"
- INTERFACERFCHANNELVALUE__5G_64_5320_20 InterfaceRfChannelValue = "5g-64-5320-20"
- INTERFACERFCHANNELVALUE__5G_100_5500_20 InterfaceRfChannelValue = "5g-100-5500-20"
- INTERFACERFCHANNELVALUE__5G_102_5510_40 InterfaceRfChannelValue = "5g-102-5510-40"
- INTERFACERFCHANNELVALUE__5G_104_5520_20 InterfaceRfChannelValue = "5g-104-5520-20"
- INTERFACERFCHANNELVALUE__5G_106_5530_80 InterfaceRfChannelValue = "5g-106-5530-80"
- INTERFACERFCHANNELVALUE__5G_108_5540_20 InterfaceRfChannelValue = "5g-108-5540-20"
- INTERFACERFCHANNELVALUE__5G_110_5550_40 InterfaceRfChannelValue = "5g-110-5550-40"
- INTERFACERFCHANNELVALUE__5G_112_5560_20 InterfaceRfChannelValue = "5g-112-5560-20"
- INTERFACERFCHANNELVALUE__5G_114_5570_160 InterfaceRfChannelValue = "5g-114-5570-160"
- INTERFACERFCHANNELVALUE__5G_116_5580_20 InterfaceRfChannelValue = "5g-116-5580-20"
- INTERFACERFCHANNELVALUE__5G_118_5590_40 InterfaceRfChannelValue = "5g-118-5590-40"
- INTERFACERFCHANNELVALUE__5G_120_5600_20 InterfaceRfChannelValue = "5g-120-5600-20"
- INTERFACERFCHANNELVALUE__5G_122_5610_80 InterfaceRfChannelValue = "5g-122-5610-80"
- INTERFACERFCHANNELVALUE__5G_124_5620_20 InterfaceRfChannelValue = "5g-124-5620-20"
- INTERFACERFCHANNELVALUE__5G_126_5630_40 InterfaceRfChannelValue = "5g-126-5630-40"
- INTERFACERFCHANNELVALUE__5G_128_5640_20 InterfaceRfChannelValue = "5g-128-5640-20"
- INTERFACERFCHANNELVALUE__5G_132_5660_20 InterfaceRfChannelValue = "5g-132-5660-20"
- INTERFACERFCHANNELVALUE__5G_134_5670_40 InterfaceRfChannelValue = "5g-134-5670-40"
- INTERFACERFCHANNELVALUE__5G_136_5680_20 InterfaceRfChannelValue = "5g-136-5680-20"
- INTERFACERFCHANNELVALUE__5G_138_5690_80 InterfaceRfChannelValue = "5g-138-5690-80"
- INTERFACERFCHANNELVALUE__5G_140_5700_20 InterfaceRfChannelValue = "5g-140-5700-20"
- INTERFACERFCHANNELVALUE__5G_142_5710_40 InterfaceRfChannelValue = "5g-142-5710-40"
- INTERFACERFCHANNELVALUE__5G_144_5720_20 InterfaceRfChannelValue = "5g-144-5720-20"
- INTERFACERFCHANNELVALUE__5G_149_5745_20 InterfaceRfChannelValue = "5g-149-5745-20"
- INTERFACERFCHANNELVALUE__5G_151_5755_40 InterfaceRfChannelValue = "5g-151-5755-40"
- INTERFACERFCHANNELVALUE__5G_153_5765_20 InterfaceRfChannelValue = "5g-153-5765-20"
- INTERFACERFCHANNELVALUE__5G_155_5775_80 InterfaceRfChannelValue = "5g-155-5775-80"
- INTERFACERFCHANNELVALUE__5G_157_5785_20 InterfaceRfChannelValue = "5g-157-5785-20"
- INTERFACERFCHANNELVALUE__5G_159_5795_40 InterfaceRfChannelValue = "5g-159-5795-40"
- INTERFACERFCHANNELVALUE__5G_161_5805_20 InterfaceRfChannelValue = "5g-161-5805-20"
- INTERFACERFCHANNELVALUE__5G_163_5815_160 InterfaceRfChannelValue = "5g-163-5815-160"
- INTERFACERFCHANNELVALUE__5G_165_5825_20 InterfaceRfChannelValue = "5g-165-5825-20"
- INTERFACERFCHANNELVALUE__5G_167_5835_40 InterfaceRfChannelValue = "5g-167-5835-40"
- INTERFACERFCHANNELVALUE__5G_169_5845_20 InterfaceRfChannelValue = "5g-169-5845-20"
- INTERFACERFCHANNELVALUE__5G_171_5855_80 InterfaceRfChannelValue = "5g-171-5855-80"
- INTERFACERFCHANNELVALUE__5G_173_5865_20 InterfaceRfChannelValue = "5g-173-5865-20"
- INTERFACERFCHANNELVALUE__5G_175_5875_40 InterfaceRfChannelValue = "5g-175-5875-40"
- INTERFACERFCHANNELVALUE__5G_177_5885_20 InterfaceRfChannelValue = "5g-177-5885-20"
- INTERFACERFCHANNELVALUE__6G_1_5955_20 InterfaceRfChannelValue = "6g-1-5955-20"
- INTERFACERFCHANNELVALUE__6G_3_5965_40 InterfaceRfChannelValue = "6g-3-5965-40"
- INTERFACERFCHANNELVALUE__6G_5_5975_20 InterfaceRfChannelValue = "6g-5-5975-20"
- INTERFACERFCHANNELVALUE__6G_7_5985_80 InterfaceRfChannelValue = "6g-7-5985-80"
- INTERFACERFCHANNELVALUE__6G_9_5995_20 InterfaceRfChannelValue = "6g-9-5995-20"
- INTERFACERFCHANNELVALUE__6G_11_6005_40 InterfaceRfChannelValue = "6g-11-6005-40"
- INTERFACERFCHANNELVALUE__6G_13_6015_20 InterfaceRfChannelValue = "6g-13-6015-20"
- INTERFACERFCHANNELVALUE__6G_15_6025_160 InterfaceRfChannelValue = "6g-15-6025-160"
- INTERFACERFCHANNELVALUE__6G_17_6035_20 InterfaceRfChannelValue = "6g-17-6035-20"
- INTERFACERFCHANNELVALUE__6G_19_6045_40 InterfaceRfChannelValue = "6g-19-6045-40"
- INTERFACERFCHANNELVALUE__6G_21_6055_20 InterfaceRfChannelValue = "6g-21-6055-20"
- INTERFACERFCHANNELVALUE__6G_23_6065_80 InterfaceRfChannelValue = "6g-23-6065-80"
- INTERFACERFCHANNELVALUE__6G_25_6075_20 InterfaceRfChannelValue = "6g-25-6075-20"
- INTERFACERFCHANNELVALUE__6G_27_6085_40 InterfaceRfChannelValue = "6g-27-6085-40"
- INTERFACERFCHANNELVALUE__6G_29_6095_20 InterfaceRfChannelValue = "6g-29-6095-20"
- INTERFACERFCHANNELVALUE__6G_31_6105_320 InterfaceRfChannelValue = "6g-31-6105-320"
- INTERFACERFCHANNELVALUE__6G_33_6115_20 InterfaceRfChannelValue = "6g-33-6115-20"
- INTERFACERFCHANNELVALUE__6G_35_6125_40 InterfaceRfChannelValue = "6g-35-6125-40"
- INTERFACERFCHANNELVALUE__6G_37_6135_20 InterfaceRfChannelValue = "6g-37-6135-20"
- INTERFACERFCHANNELVALUE__6G_39_6145_80 InterfaceRfChannelValue = "6g-39-6145-80"
- INTERFACERFCHANNELVALUE__6G_41_6155_20 InterfaceRfChannelValue = "6g-41-6155-20"
- INTERFACERFCHANNELVALUE__6G_43_6165_40 InterfaceRfChannelValue = "6g-43-6165-40"
- INTERFACERFCHANNELVALUE__6G_45_6175_20 InterfaceRfChannelValue = "6g-45-6175-20"
- INTERFACERFCHANNELVALUE__6G_47_6185_160 InterfaceRfChannelValue = "6g-47-6185-160"
- INTERFACERFCHANNELVALUE__6G_49_6195_20 InterfaceRfChannelValue = "6g-49-6195-20"
- INTERFACERFCHANNELVALUE__6G_51_6205_40 InterfaceRfChannelValue = "6g-51-6205-40"
- INTERFACERFCHANNELVALUE__6G_53_6215_20 InterfaceRfChannelValue = "6g-53-6215-20"
- INTERFACERFCHANNELVALUE__6G_55_6225_80 InterfaceRfChannelValue = "6g-55-6225-80"
- INTERFACERFCHANNELVALUE__6G_57_6235_20 InterfaceRfChannelValue = "6g-57-6235-20"
- INTERFACERFCHANNELVALUE__6G_59_6245_40 InterfaceRfChannelValue = "6g-59-6245-40"
- INTERFACERFCHANNELVALUE__6G_61_6255_20 InterfaceRfChannelValue = "6g-61-6255-20"
- INTERFACERFCHANNELVALUE__6G_65_6275_20 InterfaceRfChannelValue = "6g-65-6275-20"
- INTERFACERFCHANNELVALUE__6G_67_6285_40 InterfaceRfChannelValue = "6g-67-6285-40"
- INTERFACERFCHANNELVALUE__6G_69_6295_20 InterfaceRfChannelValue = "6g-69-6295-20"
- INTERFACERFCHANNELVALUE__6G_71_6305_80 InterfaceRfChannelValue = "6g-71-6305-80"
- INTERFACERFCHANNELVALUE__6G_73_6315_20 InterfaceRfChannelValue = "6g-73-6315-20"
- INTERFACERFCHANNELVALUE__6G_75_6325_40 InterfaceRfChannelValue = "6g-75-6325-40"
- INTERFACERFCHANNELVALUE__6G_77_6335_20 InterfaceRfChannelValue = "6g-77-6335-20"
- INTERFACERFCHANNELVALUE__6G_79_6345_160 InterfaceRfChannelValue = "6g-79-6345-160"
- INTERFACERFCHANNELVALUE__6G_81_6355_20 InterfaceRfChannelValue = "6g-81-6355-20"
- INTERFACERFCHANNELVALUE__6G_83_6365_40 InterfaceRfChannelValue = "6g-83-6365-40"
- INTERFACERFCHANNELVALUE__6G_85_6375_20 InterfaceRfChannelValue = "6g-85-6375-20"
- INTERFACERFCHANNELVALUE__6G_87_6385_80 InterfaceRfChannelValue = "6g-87-6385-80"
- INTERFACERFCHANNELVALUE__6G_89_6395_20 InterfaceRfChannelValue = "6g-89-6395-20"
- INTERFACERFCHANNELVALUE__6G_91_6405_40 InterfaceRfChannelValue = "6g-91-6405-40"
- INTERFACERFCHANNELVALUE__6G_93_6415_20 InterfaceRfChannelValue = "6g-93-6415-20"
- INTERFACERFCHANNELVALUE__6G_95_6425_320 InterfaceRfChannelValue = "6g-95-6425-320"
- INTERFACERFCHANNELVALUE__6G_97_6435_20 InterfaceRfChannelValue = "6g-97-6435-20"
- INTERFACERFCHANNELVALUE__6G_99_6445_40 InterfaceRfChannelValue = "6g-99-6445-40"
- INTERFACERFCHANNELVALUE__6G_101_6455_20 InterfaceRfChannelValue = "6g-101-6455-20"
- INTERFACERFCHANNELVALUE__6G_103_6465_80 InterfaceRfChannelValue = "6g-103-6465-80"
- INTERFACERFCHANNELVALUE__6G_105_6475_20 InterfaceRfChannelValue = "6g-105-6475-20"
- INTERFACERFCHANNELVALUE__6G_107_6485_40 InterfaceRfChannelValue = "6g-107-6485-40"
- INTERFACERFCHANNELVALUE__6G_109_6495_20 InterfaceRfChannelValue = "6g-109-6495-20"
- INTERFACERFCHANNELVALUE__6G_111_6505_160 InterfaceRfChannelValue = "6g-111-6505-160"
- INTERFACERFCHANNELVALUE__6G_113_6515_20 InterfaceRfChannelValue = "6g-113-6515-20"
- INTERFACERFCHANNELVALUE__6G_115_6525_40 InterfaceRfChannelValue = "6g-115-6525-40"
- INTERFACERFCHANNELVALUE__6G_117_6535_20 InterfaceRfChannelValue = "6g-117-6535-20"
- INTERFACERFCHANNELVALUE__6G_119_6545_80 InterfaceRfChannelValue = "6g-119-6545-80"
- INTERFACERFCHANNELVALUE__6G_121_6555_20 InterfaceRfChannelValue = "6g-121-6555-20"
- INTERFACERFCHANNELVALUE__6G_123_6565_40 InterfaceRfChannelValue = "6g-123-6565-40"
- INTERFACERFCHANNELVALUE__6G_125_6575_20 InterfaceRfChannelValue = "6g-125-6575-20"
- INTERFACERFCHANNELVALUE__6G_129_6595_20 InterfaceRfChannelValue = "6g-129-6595-20"
- INTERFACERFCHANNELVALUE__6G_131_6605_40 InterfaceRfChannelValue = "6g-131-6605-40"
- INTERFACERFCHANNELVALUE__6G_133_6615_20 InterfaceRfChannelValue = "6g-133-6615-20"
- INTERFACERFCHANNELVALUE__6G_135_6625_80 InterfaceRfChannelValue = "6g-135-6625-80"
- INTERFACERFCHANNELVALUE__6G_137_6635_20 InterfaceRfChannelValue = "6g-137-6635-20"
- INTERFACERFCHANNELVALUE__6G_139_6645_40 InterfaceRfChannelValue = "6g-139-6645-40"
- INTERFACERFCHANNELVALUE__6G_141_6655_20 InterfaceRfChannelValue = "6g-141-6655-20"
- INTERFACERFCHANNELVALUE__6G_143_6665_160 InterfaceRfChannelValue = "6g-143-6665-160"
- INTERFACERFCHANNELVALUE__6G_145_6675_20 InterfaceRfChannelValue = "6g-145-6675-20"
- INTERFACERFCHANNELVALUE__6G_147_6685_40 InterfaceRfChannelValue = "6g-147-6685-40"
- INTERFACERFCHANNELVALUE__6G_149_6695_20 InterfaceRfChannelValue = "6g-149-6695-20"
- INTERFACERFCHANNELVALUE__6G_151_6705_80 InterfaceRfChannelValue = "6g-151-6705-80"
- INTERFACERFCHANNELVALUE__6G_153_6715_20 InterfaceRfChannelValue = "6g-153-6715-20"
- INTERFACERFCHANNELVALUE__6G_155_6725_40 InterfaceRfChannelValue = "6g-155-6725-40"
- INTERFACERFCHANNELVALUE__6G_157_6735_20 InterfaceRfChannelValue = "6g-157-6735-20"
- INTERFACERFCHANNELVALUE__6G_159_6745_320 InterfaceRfChannelValue = "6g-159-6745-320"
- INTERFACERFCHANNELVALUE__6G_161_6755_20 InterfaceRfChannelValue = "6g-161-6755-20"
- INTERFACERFCHANNELVALUE__6G_163_6765_40 InterfaceRfChannelValue = "6g-163-6765-40"
- INTERFACERFCHANNELVALUE__6G_165_6775_20 InterfaceRfChannelValue = "6g-165-6775-20"
- INTERFACERFCHANNELVALUE__6G_167_6785_80 InterfaceRfChannelValue = "6g-167-6785-80"
- INTERFACERFCHANNELVALUE__6G_169_6795_20 InterfaceRfChannelValue = "6g-169-6795-20"
- INTERFACERFCHANNELVALUE__6G_171_6805_40 InterfaceRfChannelValue = "6g-171-6805-40"
- INTERFACERFCHANNELVALUE__6G_173_6815_20 InterfaceRfChannelValue = "6g-173-6815-20"
- INTERFACERFCHANNELVALUE__6G_175_6825_160 InterfaceRfChannelValue = "6g-175-6825-160"
- INTERFACERFCHANNELVALUE__6G_177_6835_20 InterfaceRfChannelValue = "6g-177-6835-20"
- INTERFACERFCHANNELVALUE__6G_179_6845_40 InterfaceRfChannelValue = "6g-179-6845-40"
- INTERFACERFCHANNELVALUE__6G_181_6855_20 InterfaceRfChannelValue = "6g-181-6855-20"
- INTERFACERFCHANNELVALUE__6G_183_6865_80 InterfaceRfChannelValue = "6g-183-6865-80"
- INTERFACERFCHANNELVALUE__6G_185_6875_20 InterfaceRfChannelValue = "6g-185-6875-20"
- INTERFACERFCHANNELVALUE__6G_187_6885_40 InterfaceRfChannelValue = "6g-187-6885-40"
- INTERFACERFCHANNELVALUE__6G_189_6895_20 InterfaceRfChannelValue = "6g-189-6895-20"
- INTERFACERFCHANNELVALUE__6G_193_6915_20 InterfaceRfChannelValue = "6g-193-6915-20"
- INTERFACERFCHANNELVALUE__6G_195_6925_40 InterfaceRfChannelValue = "6g-195-6925-40"
- INTERFACERFCHANNELVALUE__6G_197_6935_20 InterfaceRfChannelValue = "6g-197-6935-20"
- INTERFACERFCHANNELVALUE__6G_199_6945_80 InterfaceRfChannelValue = "6g-199-6945-80"
- INTERFACERFCHANNELVALUE__6G_201_6955_20 InterfaceRfChannelValue = "6g-201-6955-20"
- INTERFACERFCHANNELVALUE__6G_203_6965_40 InterfaceRfChannelValue = "6g-203-6965-40"
- INTERFACERFCHANNELVALUE__6G_205_6975_20 InterfaceRfChannelValue = "6g-205-6975-20"
- INTERFACERFCHANNELVALUE__6G_207_6985_160 InterfaceRfChannelValue = "6g-207-6985-160"
- INTERFACERFCHANNELVALUE__6G_209_6995_20 InterfaceRfChannelValue = "6g-209-6995-20"
- INTERFACERFCHANNELVALUE__6G_211_7005_40 InterfaceRfChannelValue = "6g-211-7005-40"
- INTERFACERFCHANNELVALUE__6G_213_7015_20 InterfaceRfChannelValue = "6g-213-7015-20"
- INTERFACERFCHANNELVALUE__6G_215_7025_80 InterfaceRfChannelValue = "6g-215-7025-80"
- INTERFACERFCHANNELVALUE__6G_217_7035_20 InterfaceRfChannelValue = "6g-217-7035-20"
- INTERFACERFCHANNELVALUE__6G_219_7045_40 InterfaceRfChannelValue = "6g-219-7045-40"
- INTERFACERFCHANNELVALUE__6G_221_7055_20 InterfaceRfChannelValue = "6g-221-7055-20"
- INTERFACERFCHANNELVALUE__6G_225_7075_20 InterfaceRfChannelValue = "6g-225-7075-20"
- INTERFACERFCHANNELVALUE__6G_227_7085_40 InterfaceRfChannelValue = "6g-227-7085-40"
- INTERFACERFCHANNELVALUE__6G_229_7095_20 InterfaceRfChannelValue = "6g-229-7095-20"
- INTERFACERFCHANNELVALUE__6G_233_7115_20 InterfaceRfChannelValue = "6g-233-7115-20"
- INTERFACERFCHANNELVALUE__60G_1_58320_2160 InterfaceRfChannelValue = "60g-1-58320-2160"
- INTERFACERFCHANNELVALUE__60G_2_60480_2160 InterfaceRfChannelValue = "60g-2-60480-2160"
- INTERFACERFCHANNELVALUE__60G_3_62640_2160 InterfaceRfChannelValue = "60g-3-62640-2160"
- INTERFACERFCHANNELVALUE__60G_4_64800_2160 InterfaceRfChannelValue = "60g-4-64800-2160"
- INTERFACERFCHANNELVALUE__60G_5_66960_2160 InterfaceRfChannelValue = "60g-5-66960-2160"
- INTERFACERFCHANNELVALUE__60G_6_69120_2160 InterfaceRfChannelValue = "60g-6-69120-2160"
- INTERFACERFCHANNELVALUE__60G_9_59400_4320 InterfaceRfChannelValue = "60g-9-59400-4320"
+ INTERFACERFCHANNELVALUE__2_4G_1_2412_22 InterfaceRfChannelValue = "2.4g-1-2412-22"
+ INTERFACERFCHANNELVALUE__2_4G_2_2417_22 InterfaceRfChannelValue = "2.4g-2-2417-22"
+ INTERFACERFCHANNELVALUE__2_4G_3_2422_22 InterfaceRfChannelValue = "2.4g-3-2422-22"
+ INTERFACERFCHANNELVALUE__2_4G_4_2427_22 InterfaceRfChannelValue = "2.4g-4-2427-22"
+ INTERFACERFCHANNELVALUE__2_4G_5_2432_22 InterfaceRfChannelValue = "2.4g-5-2432-22"
+ INTERFACERFCHANNELVALUE__2_4G_6_2437_22 InterfaceRfChannelValue = "2.4g-6-2437-22"
+ INTERFACERFCHANNELVALUE__2_4G_7_2442_22 InterfaceRfChannelValue = "2.4g-7-2442-22"
+ INTERFACERFCHANNELVALUE__2_4G_8_2447_22 InterfaceRfChannelValue = "2.4g-8-2447-22"
+ INTERFACERFCHANNELVALUE__2_4G_9_2452_22 InterfaceRfChannelValue = "2.4g-9-2452-22"
+ INTERFACERFCHANNELVALUE__2_4G_10_2457_22 InterfaceRfChannelValue = "2.4g-10-2457-22"
+ INTERFACERFCHANNELVALUE__2_4G_11_2462_22 InterfaceRfChannelValue = "2.4g-11-2462-22"
+ INTERFACERFCHANNELVALUE__2_4G_12_2467_22 InterfaceRfChannelValue = "2.4g-12-2467-22"
+ INTERFACERFCHANNELVALUE__2_4G_13_2472_22 InterfaceRfChannelValue = "2.4g-13-2472-22"
+ INTERFACERFCHANNELVALUE__5G_32_5160_20 InterfaceRfChannelValue = "5g-32-5160-20"
+ INTERFACERFCHANNELVALUE__5G_34_5170_40 InterfaceRfChannelValue = "5g-34-5170-40"
+ INTERFACERFCHANNELVALUE__5G_36_5180_20 InterfaceRfChannelValue = "5g-36-5180-20"
+ INTERFACERFCHANNELVALUE__5G_38_5190_40 InterfaceRfChannelValue = "5g-38-5190-40"
+ INTERFACERFCHANNELVALUE__5G_40_5200_20 InterfaceRfChannelValue = "5g-40-5200-20"
+ INTERFACERFCHANNELVALUE__5G_42_5210_80 InterfaceRfChannelValue = "5g-42-5210-80"
+ INTERFACERFCHANNELVALUE__5G_44_5220_20 InterfaceRfChannelValue = "5g-44-5220-20"
+ INTERFACERFCHANNELVALUE__5G_46_5230_40 InterfaceRfChannelValue = "5g-46-5230-40"
+ INTERFACERFCHANNELVALUE__5G_48_5240_20 InterfaceRfChannelValue = "5g-48-5240-20"
+ INTERFACERFCHANNELVALUE__5G_50_5250_160 InterfaceRfChannelValue = "5g-50-5250-160"
+ INTERFACERFCHANNELVALUE__5G_52_5260_20 InterfaceRfChannelValue = "5g-52-5260-20"
+ INTERFACERFCHANNELVALUE__5G_54_5270_40 InterfaceRfChannelValue = "5g-54-5270-40"
+ INTERFACERFCHANNELVALUE__5G_56_5280_20 InterfaceRfChannelValue = "5g-56-5280-20"
+ INTERFACERFCHANNELVALUE__5G_58_5290_80 InterfaceRfChannelValue = "5g-58-5290-80"
+ INTERFACERFCHANNELVALUE__5G_60_5300_20 InterfaceRfChannelValue = "5g-60-5300-20"
+ INTERFACERFCHANNELVALUE__5G_62_5310_40 InterfaceRfChannelValue = "5g-62-5310-40"
+ INTERFACERFCHANNELVALUE__5G_64_5320_20 InterfaceRfChannelValue = "5g-64-5320-20"
+ INTERFACERFCHANNELVALUE__5G_100_5500_20 InterfaceRfChannelValue = "5g-100-5500-20"
+ INTERFACERFCHANNELVALUE__5G_102_5510_40 InterfaceRfChannelValue = "5g-102-5510-40"
+ INTERFACERFCHANNELVALUE__5G_104_5520_20 InterfaceRfChannelValue = "5g-104-5520-20"
+ INTERFACERFCHANNELVALUE__5G_106_5530_80 InterfaceRfChannelValue = "5g-106-5530-80"
+ INTERFACERFCHANNELVALUE__5G_108_5540_20 InterfaceRfChannelValue = "5g-108-5540-20"
+ INTERFACERFCHANNELVALUE__5G_110_5550_40 InterfaceRfChannelValue = "5g-110-5550-40"
+ INTERFACERFCHANNELVALUE__5G_112_5560_20 InterfaceRfChannelValue = "5g-112-5560-20"
+ INTERFACERFCHANNELVALUE__5G_114_5570_160 InterfaceRfChannelValue = "5g-114-5570-160"
+ INTERFACERFCHANNELVALUE__5G_116_5580_20 InterfaceRfChannelValue = "5g-116-5580-20"
+ INTERFACERFCHANNELVALUE__5G_118_5590_40 InterfaceRfChannelValue = "5g-118-5590-40"
+ INTERFACERFCHANNELVALUE__5G_120_5600_20 InterfaceRfChannelValue = "5g-120-5600-20"
+ INTERFACERFCHANNELVALUE__5G_122_5610_80 InterfaceRfChannelValue = "5g-122-5610-80"
+ INTERFACERFCHANNELVALUE__5G_124_5620_20 InterfaceRfChannelValue = "5g-124-5620-20"
+ INTERFACERFCHANNELVALUE__5G_126_5630_40 InterfaceRfChannelValue = "5g-126-5630-40"
+ INTERFACERFCHANNELVALUE__5G_128_5640_20 InterfaceRfChannelValue = "5g-128-5640-20"
+ INTERFACERFCHANNELVALUE__5G_132_5660_20 InterfaceRfChannelValue = "5g-132-5660-20"
+ INTERFACERFCHANNELVALUE__5G_134_5670_40 InterfaceRfChannelValue = "5g-134-5670-40"
+ INTERFACERFCHANNELVALUE__5G_136_5680_20 InterfaceRfChannelValue = "5g-136-5680-20"
+ INTERFACERFCHANNELVALUE__5G_138_5690_80 InterfaceRfChannelValue = "5g-138-5690-80"
+ INTERFACERFCHANNELVALUE__5G_140_5700_20 InterfaceRfChannelValue = "5g-140-5700-20"
+ INTERFACERFCHANNELVALUE__5G_142_5710_40 InterfaceRfChannelValue = "5g-142-5710-40"
+ INTERFACERFCHANNELVALUE__5G_144_5720_20 InterfaceRfChannelValue = "5g-144-5720-20"
+ INTERFACERFCHANNELVALUE__5G_149_5745_20 InterfaceRfChannelValue = "5g-149-5745-20"
+ INTERFACERFCHANNELVALUE__5G_151_5755_40 InterfaceRfChannelValue = "5g-151-5755-40"
+ INTERFACERFCHANNELVALUE__5G_153_5765_20 InterfaceRfChannelValue = "5g-153-5765-20"
+ INTERFACERFCHANNELVALUE__5G_155_5775_80 InterfaceRfChannelValue = "5g-155-5775-80"
+ INTERFACERFCHANNELVALUE__5G_157_5785_20 InterfaceRfChannelValue = "5g-157-5785-20"
+ INTERFACERFCHANNELVALUE__5G_159_5795_40 InterfaceRfChannelValue = "5g-159-5795-40"
+ INTERFACERFCHANNELVALUE__5G_161_5805_20 InterfaceRfChannelValue = "5g-161-5805-20"
+ INTERFACERFCHANNELVALUE__5G_163_5815_160 InterfaceRfChannelValue = "5g-163-5815-160"
+ INTERFACERFCHANNELVALUE__5G_165_5825_20 InterfaceRfChannelValue = "5g-165-5825-20"
+ INTERFACERFCHANNELVALUE__5G_167_5835_40 InterfaceRfChannelValue = "5g-167-5835-40"
+ INTERFACERFCHANNELVALUE__5G_169_5845_20 InterfaceRfChannelValue = "5g-169-5845-20"
+ INTERFACERFCHANNELVALUE__5G_171_5855_80 InterfaceRfChannelValue = "5g-171-5855-80"
+ INTERFACERFCHANNELVALUE__5G_173_5865_20 InterfaceRfChannelValue = "5g-173-5865-20"
+ INTERFACERFCHANNELVALUE__5G_175_5875_40 InterfaceRfChannelValue = "5g-175-5875-40"
+ INTERFACERFCHANNELVALUE__5G_177_5885_20 InterfaceRfChannelValue = "5g-177-5885-20"
+ INTERFACERFCHANNELVALUE__6G_1_5955_20 InterfaceRfChannelValue = "6g-1-5955-20"
+ INTERFACERFCHANNELVALUE__6G_3_5965_40 InterfaceRfChannelValue = "6g-3-5965-40"
+ INTERFACERFCHANNELVALUE__6G_5_5975_20 InterfaceRfChannelValue = "6g-5-5975-20"
+ INTERFACERFCHANNELVALUE__6G_7_5985_80 InterfaceRfChannelValue = "6g-7-5985-80"
+ INTERFACERFCHANNELVALUE__6G_9_5995_20 InterfaceRfChannelValue = "6g-9-5995-20"
+ INTERFACERFCHANNELVALUE__6G_11_6005_40 InterfaceRfChannelValue = "6g-11-6005-40"
+ INTERFACERFCHANNELVALUE__6G_13_6015_20 InterfaceRfChannelValue = "6g-13-6015-20"
+ INTERFACERFCHANNELVALUE__6G_15_6025_160 InterfaceRfChannelValue = "6g-15-6025-160"
+ INTERFACERFCHANNELVALUE__6G_17_6035_20 InterfaceRfChannelValue = "6g-17-6035-20"
+ INTERFACERFCHANNELVALUE__6G_19_6045_40 InterfaceRfChannelValue = "6g-19-6045-40"
+ INTERFACERFCHANNELVALUE__6G_21_6055_20 InterfaceRfChannelValue = "6g-21-6055-20"
+ INTERFACERFCHANNELVALUE__6G_23_6065_80 InterfaceRfChannelValue = "6g-23-6065-80"
+ INTERFACERFCHANNELVALUE__6G_25_6075_20 InterfaceRfChannelValue = "6g-25-6075-20"
+ INTERFACERFCHANNELVALUE__6G_27_6085_40 InterfaceRfChannelValue = "6g-27-6085-40"
+ INTERFACERFCHANNELVALUE__6G_29_6095_20 InterfaceRfChannelValue = "6g-29-6095-20"
+ INTERFACERFCHANNELVALUE__6G_31_6105_320 InterfaceRfChannelValue = "6g-31-6105-320"
+ INTERFACERFCHANNELVALUE__6G_33_6115_20 InterfaceRfChannelValue = "6g-33-6115-20"
+ INTERFACERFCHANNELVALUE__6G_35_6125_40 InterfaceRfChannelValue = "6g-35-6125-40"
+ INTERFACERFCHANNELVALUE__6G_37_6135_20 InterfaceRfChannelValue = "6g-37-6135-20"
+ INTERFACERFCHANNELVALUE__6G_39_6145_80 InterfaceRfChannelValue = "6g-39-6145-80"
+ INTERFACERFCHANNELVALUE__6G_41_6155_20 InterfaceRfChannelValue = "6g-41-6155-20"
+ INTERFACERFCHANNELVALUE__6G_43_6165_40 InterfaceRfChannelValue = "6g-43-6165-40"
+ INTERFACERFCHANNELVALUE__6G_45_6175_20 InterfaceRfChannelValue = "6g-45-6175-20"
+ INTERFACERFCHANNELVALUE__6G_47_6185_160 InterfaceRfChannelValue = "6g-47-6185-160"
+ INTERFACERFCHANNELVALUE__6G_49_6195_20 InterfaceRfChannelValue = "6g-49-6195-20"
+ INTERFACERFCHANNELVALUE__6G_51_6205_40 InterfaceRfChannelValue = "6g-51-6205-40"
+ INTERFACERFCHANNELVALUE__6G_53_6215_20 InterfaceRfChannelValue = "6g-53-6215-20"
+ INTERFACERFCHANNELVALUE__6G_55_6225_80 InterfaceRfChannelValue = "6g-55-6225-80"
+ INTERFACERFCHANNELVALUE__6G_57_6235_20 InterfaceRfChannelValue = "6g-57-6235-20"
+ INTERFACERFCHANNELVALUE__6G_59_6245_40 InterfaceRfChannelValue = "6g-59-6245-40"
+ INTERFACERFCHANNELVALUE__6G_61_6255_20 InterfaceRfChannelValue = "6g-61-6255-20"
+ INTERFACERFCHANNELVALUE__6G_65_6275_20 InterfaceRfChannelValue = "6g-65-6275-20"
+ INTERFACERFCHANNELVALUE__6G_67_6285_40 InterfaceRfChannelValue = "6g-67-6285-40"
+ INTERFACERFCHANNELVALUE__6G_69_6295_20 InterfaceRfChannelValue = "6g-69-6295-20"
+ INTERFACERFCHANNELVALUE__6G_71_6305_80 InterfaceRfChannelValue = "6g-71-6305-80"
+ INTERFACERFCHANNELVALUE__6G_73_6315_20 InterfaceRfChannelValue = "6g-73-6315-20"
+ INTERFACERFCHANNELVALUE__6G_75_6325_40 InterfaceRfChannelValue = "6g-75-6325-40"
+ INTERFACERFCHANNELVALUE__6G_77_6335_20 InterfaceRfChannelValue = "6g-77-6335-20"
+ INTERFACERFCHANNELVALUE__6G_79_6345_160 InterfaceRfChannelValue = "6g-79-6345-160"
+ INTERFACERFCHANNELVALUE__6G_81_6355_20 InterfaceRfChannelValue = "6g-81-6355-20"
+ INTERFACERFCHANNELVALUE__6G_83_6365_40 InterfaceRfChannelValue = "6g-83-6365-40"
+ INTERFACERFCHANNELVALUE__6G_85_6375_20 InterfaceRfChannelValue = "6g-85-6375-20"
+ INTERFACERFCHANNELVALUE__6G_87_6385_80 InterfaceRfChannelValue = "6g-87-6385-80"
+ INTERFACERFCHANNELVALUE__6G_89_6395_20 InterfaceRfChannelValue = "6g-89-6395-20"
+ INTERFACERFCHANNELVALUE__6G_91_6405_40 InterfaceRfChannelValue = "6g-91-6405-40"
+ INTERFACERFCHANNELVALUE__6G_93_6415_20 InterfaceRfChannelValue = "6g-93-6415-20"
+ INTERFACERFCHANNELVALUE__6G_95_6425_320 InterfaceRfChannelValue = "6g-95-6425-320"
+ INTERFACERFCHANNELVALUE__6G_97_6435_20 InterfaceRfChannelValue = "6g-97-6435-20"
+ INTERFACERFCHANNELVALUE__6G_99_6445_40 InterfaceRfChannelValue = "6g-99-6445-40"
+ INTERFACERFCHANNELVALUE__6G_101_6455_20 InterfaceRfChannelValue = "6g-101-6455-20"
+ INTERFACERFCHANNELVALUE__6G_103_6465_80 InterfaceRfChannelValue = "6g-103-6465-80"
+ INTERFACERFCHANNELVALUE__6G_105_6475_20 InterfaceRfChannelValue = "6g-105-6475-20"
+ INTERFACERFCHANNELVALUE__6G_107_6485_40 InterfaceRfChannelValue = "6g-107-6485-40"
+ INTERFACERFCHANNELVALUE__6G_109_6495_20 InterfaceRfChannelValue = "6g-109-6495-20"
+ INTERFACERFCHANNELVALUE__6G_111_6505_160 InterfaceRfChannelValue = "6g-111-6505-160"
+ INTERFACERFCHANNELVALUE__6G_113_6515_20 InterfaceRfChannelValue = "6g-113-6515-20"
+ INTERFACERFCHANNELVALUE__6G_115_6525_40 InterfaceRfChannelValue = "6g-115-6525-40"
+ INTERFACERFCHANNELVALUE__6G_117_6535_20 InterfaceRfChannelValue = "6g-117-6535-20"
+ INTERFACERFCHANNELVALUE__6G_119_6545_80 InterfaceRfChannelValue = "6g-119-6545-80"
+ INTERFACERFCHANNELVALUE__6G_121_6555_20 InterfaceRfChannelValue = "6g-121-6555-20"
+ INTERFACERFCHANNELVALUE__6G_123_6565_40 InterfaceRfChannelValue = "6g-123-6565-40"
+ INTERFACERFCHANNELVALUE__6G_125_6575_20 InterfaceRfChannelValue = "6g-125-6575-20"
+ INTERFACERFCHANNELVALUE__6G_129_6595_20 InterfaceRfChannelValue = "6g-129-6595-20"
+ INTERFACERFCHANNELVALUE__6G_131_6605_40 InterfaceRfChannelValue = "6g-131-6605-40"
+ INTERFACERFCHANNELVALUE__6G_133_6615_20 InterfaceRfChannelValue = "6g-133-6615-20"
+ INTERFACERFCHANNELVALUE__6G_135_6625_80 InterfaceRfChannelValue = "6g-135-6625-80"
+ INTERFACERFCHANNELVALUE__6G_137_6635_20 InterfaceRfChannelValue = "6g-137-6635-20"
+ INTERFACERFCHANNELVALUE__6G_139_6645_40 InterfaceRfChannelValue = "6g-139-6645-40"
+ INTERFACERFCHANNELVALUE__6G_141_6655_20 InterfaceRfChannelValue = "6g-141-6655-20"
+ INTERFACERFCHANNELVALUE__6G_143_6665_160 InterfaceRfChannelValue = "6g-143-6665-160"
+ INTERFACERFCHANNELVALUE__6G_145_6675_20 InterfaceRfChannelValue = "6g-145-6675-20"
+ INTERFACERFCHANNELVALUE__6G_147_6685_40 InterfaceRfChannelValue = "6g-147-6685-40"
+ INTERFACERFCHANNELVALUE__6G_149_6695_20 InterfaceRfChannelValue = "6g-149-6695-20"
+ INTERFACERFCHANNELVALUE__6G_151_6705_80 InterfaceRfChannelValue = "6g-151-6705-80"
+ INTERFACERFCHANNELVALUE__6G_153_6715_20 InterfaceRfChannelValue = "6g-153-6715-20"
+ INTERFACERFCHANNELVALUE__6G_155_6725_40 InterfaceRfChannelValue = "6g-155-6725-40"
+ INTERFACERFCHANNELVALUE__6G_157_6735_20 InterfaceRfChannelValue = "6g-157-6735-20"
+ INTERFACERFCHANNELVALUE__6G_159_6745_320 InterfaceRfChannelValue = "6g-159-6745-320"
+ INTERFACERFCHANNELVALUE__6G_161_6755_20 InterfaceRfChannelValue = "6g-161-6755-20"
+ INTERFACERFCHANNELVALUE__6G_163_6765_40 InterfaceRfChannelValue = "6g-163-6765-40"
+ INTERFACERFCHANNELVALUE__6G_165_6775_20 InterfaceRfChannelValue = "6g-165-6775-20"
+ INTERFACERFCHANNELVALUE__6G_167_6785_80 InterfaceRfChannelValue = "6g-167-6785-80"
+ INTERFACERFCHANNELVALUE__6G_169_6795_20 InterfaceRfChannelValue = "6g-169-6795-20"
+ INTERFACERFCHANNELVALUE__6G_171_6805_40 InterfaceRfChannelValue = "6g-171-6805-40"
+ INTERFACERFCHANNELVALUE__6G_173_6815_20 InterfaceRfChannelValue = "6g-173-6815-20"
+ INTERFACERFCHANNELVALUE__6G_175_6825_160 InterfaceRfChannelValue = "6g-175-6825-160"
+ INTERFACERFCHANNELVALUE__6G_177_6835_20 InterfaceRfChannelValue = "6g-177-6835-20"
+ INTERFACERFCHANNELVALUE__6G_179_6845_40 InterfaceRfChannelValue = "6g-179-6845-40"
+ INTERFACERFCHANNELVALUE__6G_181_6855_20 InterfaceRfChannelValue = "6g-181-6855-20"
+ INTERFACERFCHANNELVALUE__6G_183_6865_80 InterfaceRfChannelValue = "6g-183-6865-80"
+ INTERFACERFCHANNELVALUE__6G_185_6875_20 InterfaceRfChannelValue = "6g-185-6875-20"
+ INTERFACERFCHANNELVALUE__6G_187_6885_40 InterfaceRfChannelValue = "6g-187-6885-40"
+ INTERFACERFCHANNELVALUE__6G_189_6895_20 InterfaceRfChannelValue = "6g-189-6895-20"
+ INTERFACERFCHANNELVALUE__6G_193_6915_20 InterfaceRfChannelValue = "6g-193-6915-20"
+ INTERFACERFCHANNELVALUE__6G_195_6925_40 InterfaceRfChannelValue = "6g-195-6925-40"
+ INTERFACERFCHANNELVALUE__6G_197_6935_20 InterfaceRfChannelValue = "6g-197-6935-20"
+ INTERFACERFCHANNELVALUE__6G_199_6945_80 InterfaceRfChannelValue = "6g-199-6945-80"
+ INTERFACERFCHANNELVALUE__6G_201_6955_20 InterfaceRfChannelValue = "6g-201-6955-20"
+ INTERFACERFCHANNELVALUE__6G_203_6965_40 InterfaceRfChannelValue = "6g-203-6965-40"
+ INTERFACERFCHANNELVALUE__6G_205_6975_20 InterfaceRfChannelValue = "6g-205-6975-20"
+ INTERFACERFCHANNELVALUE__6G_207_6985_160 InterfaceRfChannelValue = "6g-207-6985-160"
+ INTERFACERFCHANNELVALUE__6G_209_6995_20 InterfaceRfChannelValue = "6g-209-6995-20"
+ INTERFACERFCHANNELVALUE__6G_211_7005_40 InterfaceRfChannelValue = "6g-211-7005-40"
+ INTERFACERFCHANNELVALUE__6G_213_7015_20 InterfaceRfChannelValue = "6g-213-7015-20"
+ INTERFACERFCHANNELVALUE__6G_215_7025_80 InterfaceRfChannelValue = "6g-215-7025-80"
+ INTERFACERFCHANNELVALUE__6G_217_7035_20 InterfaceRfChannelValue = "6g-217-7035-20"
+ INTERFACERFCHANNELVALUE__6G_219_7045_40 InterfaceRfChannelValue = "6g-219-7045-40"
+ INTERFACERFCHANNELVALUE__6G_221_7055_20 InterfaceRfChannelValue = "6g-221-7055-20"
+ INTERFACERFCHANNELVALUE__6G_225_7075_20 InterfaceRfChannelValue = "6g-225-7075-20"
+ INTERFACERFCHANNELVALUE__6G_227_7085_40 InterfaceRfChannelValue = "6g-227-7085-40"
+ INTERFACERFCHANNELVALUE__6G_229_7095_20 InterfaceRfChannelValue = "6g-229-7095-20"
+ INTERFACERFCHANNELVALUE__6G_233_7115_20 InterfaceRfChannelValue = "6g-233-7115-20"
+ INTERFACERFCHANNELVALUE__60G_1_58320_2160 InterfaceRfChannelValue = "60g-1-58320-2160"
+ INTERFACERFCHANNELVALUE__60G_2_60480_2160 InterfaceRfChannelValue = "60g-2-60480-2160"
+ INTERFACERFCHANNELVALUE__60G_3_62640_2160 InterfaceRfChannelValue = "60g-3-62640-2160"
+ INTERFACERFCHANNELVALUE__60G_4_64800_2160 InterfaceRfChannelValue = "60g-4-64800-2160"
+ INTERFACERFCHANNELVALUE__60G_5_66960_2160 InterfaceRfChannelValue = "60g-5-66960-2160"
+ INTERFACERFCHANNELVALUE__60G_6_69120_2160 InterfaceRfChannelValue = "60g-6-69120-2160"
+ INTERFACERFCHANNELVALUE__60G_9_59400_4320 InterfaceRfChannelValue = "60g-9-59400-4320"
INTERFACERFCHANNELVALUE__60G_10_61560_4320 InterfaceRfChannelValue = "60g-10-61560-4320"
INTERFACERFCHANNELVALUE__60G_11_63720_4320 InterfaceRfChannelValue = "60g-11-63720-4320"
INTERFACERFCHANNELVALUE__60G_12_65880_4320 InterfaceRfChannelValue = "60g-12-65880-4320"
@@ -217,7 +217,7 @@ const (
INTERFACERFCHANNELVALUE__60G_25_61560_6480 InterfaceRfChannelValue = "60g-25-61560-6480"
INTERFACERFCHANNELVALUE__60G_26_63720_6480 InterfaceRfChannelValue = "60g-26-63720-6480"
INTERFACERFCHANNELVALUE__60G_27_65880_6480 InterfaceRfChannelValue = "60g-27-65880-6480"
- INTERFACERFCHANNELVALUE_EMPTY InterfaceRfChannelValue = ""
+ INTERFACERFCHANNELVALUE_EMPTY InterfaceRfChannelValue = ""
)
// All allowed values of InterfaceRfChannelValue enum
@@ -500,4 +500,3 @@ 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 2451c9a01..a775962fb 100644
--- a/model_interface_rf_role.go
+++ b/model_interface_rf_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceRfRole{}
// InterfaceRfRole struct for InterfaceRfRole
type InterfaceRfRole struct {
- Value *InterfaceRfRoleValue `json:"value,omitempty"`
- Label *InterfaceRfRoleLabel `json:"label,omitempty"`
+ Value *InterfaceRfRoleValue `json:"value,omitempty"`
+ Label *InterfaceRfRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceRfRole) SetLabel(v InterfaceRfRoleLabel) {
}
func (o InterfaceRfRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceRfRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go
index de4e700f2..704059b32 100644
--- a/model_interface_rf_role_label.go
+++ b/model_interface_rf_role_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type InterfaceRfRoleLabel string
// List of Interface_rf_role_label
const (
INTERFACERFROLELABEL_ACCESS_POINT InterfaceRfRoleLabel = "Access point"
- INTERFACERFROLELABEL_STATION InterfaceRfRoleLabel = "Station"
+ INTERFACERFROLELABEL_STATION InterfaceRfRoleLabel = "Station"
)
// All allowed values of InterfaceRfRoleLabel enum
@@ -108,4 +108,3 @@ func (v *NullableInterfaceRfRoleLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go
index 4967ce20f..88562d3b5 100644
--- a/model_interface_rf_role_value.go
+++ b/model_interface_rf_role_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type InterfaceRfRoleValue string
// List of Interface_rf_role_value
const (
- INTERFACERFROLEVALUE_AP InterfaceRfRoleValue = "ap"
+ INTERFACERFROLEVALUE_AP InterfaceRfRoleValue = "ap"
INTERFACERFROLEVALUE_STATION InterfaceRfRoleValue = "station"
- INTERFACERFROLEVALUE_EMPTY InterfaceRfRoleValue = ""
+ INTERFACERFROLEVALUE_EMPTY InterfaceRfRoleValue = ""
)
// All allowed values of InterfaceRfRoleValue enum
@@ -110,4 +110,3 @@ 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 6aad10e28..65688184a 100644
--- a/model_interface_template.go
+++ b/model_interface_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the InterfaceTemplate type satisfies the MappedNullable interface at compile time
@@ -21,25 +21,25 @@ var _ MappedNullable = &InterfaceTemplate{}
// InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type InterfaceTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceType `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableNestedInterfaceTemplate `json:"bridge,omitempty"`
- PoeMode NullableInterfaceTemplatePoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplatePoeType `json:"poe_type,omitempty"`
- RfRole NullableInterfaceTemplateRfRole `json:"rf_role,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceType `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableNestedInterfaceTemplate `json:"bridge,omitempty"`
+ PoeMode NullableInterfaceTemplatePoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplatePoeType `json:"poe_type,omitempty"`
+ RfRole NullableInterfaceTemplateRfRole `json:"rf_role,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *InterfaceTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *InterfaceTemplate) GetUrl() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *InterfaceTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *InterfaceTemplate) GetDisplay() string {
if o == nil {
@@ -141,7 +139,6 @@ func (o *InterfaceTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -174,6 +171,7 @@ func (o *InterfaceTemplate) HasDeviceType() bool {
func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *InterfaceTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -216,6 +214,7 @@ func (o *InterfaceTemplate) HasModuleType() bool {
func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *InterfaceTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -250,7 +249,6 @@ func (o *InterfaceTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InterfaceTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -307,7 +305,6 @@ func (o *InterfaceTemplate) SetType(v InterfaceType) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *InterfaceTemplate) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -436,6 +433,7 @@ func (o *InterfaceTemplate) HasBridge() bool {
func (o *InterfaceTemplate) SetBridge(v NestedInterfaceTemplate) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *InterfaceTemplate) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -478,6 +476,7 @@ func (o *InterfaceTemplate) HasPoeMode() bool {
func (o *InterfaceTemplate) SetPoeMode(v InterfaceTemplatePoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *InterfaceTemplate) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -520,6 +519,7 @@ func (o *InterfaceTemplate) HasPoeType() bool {
func (o *InterfaceTemplate) SetPoeType(v InterfaceTemplatePoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *InterfaceTemplate) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -562,6 +562,7 @@ func (o *InterfaceTemplate) HasRfRole() bool {
func (o *InterfaceTemplate) SetRfRole(v InterfaceTemplateRfRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *InterfaceTemplate) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -604,6 +605,7 @@ func (o *InterfaceTemplate) HasCreated() bool {
func (o *InterfaceTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *InterfaceTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -646,6 +648,7 @@ func (o *InterfaceTemplate) HasLastUpdated() bool {
func (o *InterfaceTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *InterfaceTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -657,7 +660,7 @@ func (o *InterfaceTemplate) UnsetLastUpdated() {
}
func (o InterfaceTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -729,32 +732,31 @@ func (o *InterfaceTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -829,5 +831,3 @@ func (v *NullableInterfaceTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go
index 66c8f1864..a197893c1 100644
--- a/model_interface_template_poe_mode.go
+++ b/model_interface_template_poe_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeMode{}
// InterfaceTemplatePoeMode struct for InterfaceTemplatePoeMode
type InterfaceTemplatePoeMode struct {
- Value *InterfacePoeModeValue `json:"value,omitempty"`
- Label *InterfacePoeModeLabel `json:"label,omitempty"`
+ Value *InterfacePoeModeValue `json:"value,omitempty"`
+ Label *InterfacePoeModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceTemplatePoeMode) SetLabel(v InterfacePoeModeLabel) {
}
func (o InterfaceTemplatePoeMode) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceTemplatePoeMode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go
index 01f87178d..b2e7b83de 100644
--- a/model_interface_template_poe_type.go
+++ b/model_interface_template_poe_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeType{}
// InterfaceTemplatePoeType struct for InterfaceTemplatePoeType
type InterfaceTemplatePoeType struct {
- Value *InterfacePoeTypeValue `json:"value,omitempty"`
- Label *InterfacePoeTypeLabel `json:"label,omitempty"`
+ Value *InterfacePoeTypeValue `json:"value,omitempty"`
+ Label *InterfacePoeTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceTemplatePoeType) SetLabel(v InterfacePoeTypeLabel) {
}
func (o InterfaceTemplatePoeType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceTemplatePoeType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_template_request.go b/model_interface_template_request.go
index 0b711cc6f..b7ccbfdad 100644
--- a/model_interface_template_request.go
+++ b/model_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &InterfaceTemplateRequest{}
// InterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type InterfaceTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceTypeValue `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"`
- PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
- RfRole NullableInterfaceTemplateRequestRfRole `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ RfRole NullableInterfaceTemplateRequestRfRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *InterfaceTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -86,10 +86,11 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *InterfaceTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *InterfaceTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -101,9 +102,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *InterfaceTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -112,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -128,10 +129,11 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *InterfaceTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *InterfaceTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -166,7 +168,6 @@ func (o *InterfaceTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InterfaceTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -223,7 +224,6 @@ func (o *InterfaceTemplateRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *InterfaceTemplateRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -352,6 +352,7 @@ func (o *InterfaceTemplateRequest) HasBridge() bool {
func (o *InterfaceTemplateRequest) SetBridge(v NestedInterfaceTemplateRequest) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *InterfaceTemplateRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -394,6 +395,7 @@ func (o *InterfaceTemplateRequest) HasPoeMode() bool {
func (o *InterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *InterfaceTemplateRequest) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -436,6 +438,7 @@ func (o *InterfaceTemplateRequest) HasPoeType() bool {
func (o *InterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *InterfaceTemplateRequest) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -478,6 +481,7 @@ func (o *InterfaceTemplateRequest) HasRfRole() bool {
func (o *InterfaceTemplateRequest) SetRfRole(v InterfaceTemplateRequestRfRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *InterfaceTemplateRequest) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -489,7 +493,7 @@ func (o *InterfaceTemplateRequest) UnsetRfRole() {
}
func (o InterfaceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -549,32 +553,31 @@ func (o *InterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -644,5 +647,3 @@ func (v *NullableInterfaceTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go
index 0ce1075f7..477fe8a5b 100644
--- a/model_interface_template_request_poe_mode.go
+++ b/model_interface_template_request_poe_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type InterfaceTemplateRequestPoeMode string
// List of InterfaceTemplateRequest_poe_mode
const (
- INTERFACETEMPLATEREQUESTPOEMODE_PD InterfaceTemplateRequestPoeMode = "pd"
- INTERFACETEMPLATEREQUESTPOEMODE_PSE InterfaceTemplateRequestPoeMode = "pse"
+ INTERFACETEMPLATEREQUESTPOEMODE_PD InterfaceTemplateRequestPoeMode = "pd"
+ INTERFACETEMPLATEREQUESTPOEMODE_PSE InterfaceTemplateRequestPoeMode = "pse"
INTERFACETEMPLATEREQUESTPOEMODE_EMPTY InterfaceTemplateRequestPoeMode = ""
)
@@ -110,4 +110,3 @@ func (v *NullableInterfaceTemplateRequestPoeMode) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go
index 83f7d1efe..07e8d4e32 100644
--- a/model_interface_template_request_poe_type.go
+++ b/model_interface_template_request_poe_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,7 +28,7 @@ const (
INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_24V_4PAIR InterfaceTemplateRequestPoeType = "passive-24v-4pair"
INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_2PAIR InterfaceTemplateRequestPoeType = "passive-48v-2pair"
INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_4PAIR InterfaceTemplateRequestPoeType = "passive-48v-4pair"
- INTERFACETEMPLATEREQUESTPOETYPE_EMPTY InterfaceTemplateRequestPoeType = ""
+ INTERFACETEMPLATEREQUESTPOETYPE_EMPTY InterfaceTemplateRequestPoeType = ""
)
// All allowed values of InterfaceTemplateRequestPoeType enum
@@ -122,4 +122,3 @@ func (v *NullableInterfaceTemplateRequestPoeType) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go
index 339cf06bb..1dafed7ec 100644
--- a/model_interface_template_request_rf_role.go
+++ b/model_interface_template_request_rf_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type InterfaceTemplateRequestRfRole string
// List of InterfaceTemplateRequest_rf_role
const (
- INTERFACETEMPLATEREQUESTRFROLE_AP InterfaceTemplateRequestRfRole = "ap"
+ INTERFACETEMPLATEREQUESTRFROLE_AP InterfaceTemplateRequestRfRole = "ap"
INTERFACETEMPLATEREQUESTRFROLE_STATION InterfaceTemplateRequestRfRole = "station"
- INTERFACETEMPLATEREQUESTRFROLE_EMPTY InterfaceTemplateRequestRfRole = ""
+ INTERFACETEMPLATEREQUESTRFROLE_EMPTY InterfaceTemplateRequestRfRole = ""
)
// All allowed values of InterfaceTemplateRequestRfRole enum
@@ -110,4 +110,3 @@ 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 136ecf2ec..83f88f75c 100644
--- a/model_interface_template_rf_role.go
+++ b/model_interface_template_rf_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplateRfRole{}
// InterfaceTemplateRfRole struct for InterfaceTemplateRfRole
type InterfaceTemplateRfRole struct {
- Value *InterfaceRfRoleValue `json:"value,omitempty"`
- Label *InterfaceRfRoleLabel `json:"label,omitempty"`
+ Value *InterfaceRfRoleValue `json:"value,omitempty"`
+ Label *InterfaceRfRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceTemplateRfRole) SetLabel(v InterfaceRfRoleLabel) {
}
func (o InterfaceTemplateRfRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceTemplateRfRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_type.go b/model_interface_type.go
index 10ae49626..6f454217a 100644
--- a/model_interface_type.go
+++ b/model_interface_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceType{}
// InterfaceType struct for InterfaceType
type InterfaceType struct {
- Value *InterfaceTypeValue `json:"value,omitempty"`
- Label *InterfaceTypeLabel `json:"label,omitempty"`
+ Value *InterfaceTypeValue `json:"value,omitempty"`
+ Label *InterfaceTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InterfaceType) SetLabel(v InterfaceTypeLabel) {
}
func (o InterfaceType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInterfaceType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_interface_type_label.go b/model_interface_type_label.go
index 93884cbfb..a91c049d0 100644
--- a/model_interface_type_label.go
+++ b/model_interface_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,136 +20,137 @@ type InterfaceTypeLabel string
// List of Interface_type_label
const (
- INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual"
- INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge"
- INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)"
- INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)"
- INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)"
- INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)"
+ INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual"
+ INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge"
+ INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)"
+ INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)"
+ INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)"
+ INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)"
INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)"
- INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)"
- INTERFACETYPELABEL__1000_BASE_LX__1_GE InterfaceTypeLabel = "1000BASE-LX (1GE)"
- INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)"
- INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)"
- INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)"
- INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)"
- INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)"
- INTERFACETYPELABEL_SFP__100_ME InterfaceTypeLabel = "SFP (100ME)"
- INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)"
- INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)"
- INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)"
- INTERFACETYPELABEL_XFP__10_GE InterfaceTypeLabel = "XFP (10GE)"
- INTERFACETYPELABEL_XENPAK__10_GE InterfaceTypeLabel = "XENPAK (10GE)"
- INTERFACETYPELABEL_X2__10_GE InterfaceTypeLabel = "X2 (10GE)"
- INTERFACETYPELABEL_SFP28__25_GE InterfaceTypeLabel = "SFP28 (25GE)"
- INTERFACETYPELABEL_SFP56__50_GE InterfaceTypeLabel = "SFP56 (50GE)"
- INTERFACETYPELABEL_QSFP__40_GE InterfaceTypeLabel = "QSFP+ (40GE)"
- INTERFACETYPELABEL_QSFP28__50_GE InterfaceTypeLabel = "QSFP28 (50GE)"
- INTERFACETYPELABEL_CFP__100_GE InterfaceTypeLabel = "CFP (100GE)"
- INTERFACETYPELABEL_CFP2__100_GE InterfaceTypeLabel = "CFP2 (100GE)"
- INTERFACETYPELABEL_CFP2__200_GE InterfaceTypeLabel = "CFP2 (200GE)"
- INTERFACETYPELABEL_CFP2__400_GE InterfaceTypeLabel = "CFP2 (400GE)"
- INTERFACETYPELABEL_CFP4__100_GE InterfaceTypeLabel = "CFP4 (100GE)"
- INTERFACETYPELABEL_CXP__100_GE InterfaceTypeLabel = "CXP (100GE)"
- INTERFACETYPELABEL_CISCO_CPAK__100_GE InterfaceTypeLabel = "Cisco CPAK (100GE)"
- INTERFACETYPELABEL_DSFP__100_GE InterfaceTypeLabel = "DSFP (100GE)"
- INTERFACETYPELABEL_SFP_DD__100_GE InterfaceTypeLabel = "SFP-DD (100GE)"
- INTERFACETYPELABEL_QSFP28__100_GE InterfaceTypeLabel = "QSFP28 (100GE)"
- INTERFACETYPELABEL_QSFP_DD__100_GE InterfaceTypeLabel = "QSFP-DD (100GE)"
- INTERFACETYPELABEL_QSFP56__200_GE InterfaceTypeLabel = "QSFP56 (200GE)"
- INTERFACETYPELABEL_QSFP_DD__200_GE InterfaceTypeLabel = "QSFP-DD (200GE)"
- INTERFACETYPELABEL_QSFP112__400_GE InterfaceTypeLabel = "QSFP112 (400GE)"
- INTERFACETYPELABEL_QSFP_DD__400_GE InterfaceTypeLabel = "QSFP-DD (400GE)"
- INTERFACETYPELABEL_OSFP__400_GE InterfaceTypeLabel = "OSFP (400GE)"
- INTERFACETYPELABEL_OSFP_RHS__400_GE InterfaceTypeLabel = "OSFP-RHS (400GE)"
- INTERFACETYPELABEL_CDFP__400_GE InterfaceTypeLabel = "CDFP (400GE)"
- INTERFACETYPELABEL_CPF8__400_GE InterfaceTypeLabel = "CPF8 (400GE)"
- INTERFACETYPELABEL_QSFP_DD__800_GE InterfaceTypeLabel = "QSFP-DD (800GE)"
- INTERFACETYPELABEL_OSFP__800_GE InterfaceTypeLabel = "OSFP (800GE)"
- INTERFACETYPELABEL__1000_BASE_KX__1_GE InterfaceTypeLabel = "1000BASE-KX (1GE)"
- INTERFACETYPELABEL__2_5_GBASE_KX__2_5_GE InterfaceTypeLabel = "2.5GBASE-KX (2.5GE)"
- INTERFACETYPELABEL__5_GBASE_KR__5_GE InterfaceTypeLabel = "5GBASE-KR (5GE)"
- INTERFACETYPELABEL__10_GBASE_KR__10_GE InterfaceTypeLabel = "10GBASE-KR (10GE)"
- INTERFACETYPELABEL__10_GBASE_KX4__10_GE InterfaceTypeLabel = "10GBASE-KX4 (10GE)"
- INTERFACETYPELABEL__25_GBASE_KR__25_GE InterfaceTypeLabel = "25GBASE-KR (25GE)"
- INTERFACETYPELABEL__40_GBASE_KR4__40_GE InterfaceTypeLabel = "40GBASE-KR4 (40GE)"
- INTERFACETYPELABEL__50_GBASE_KR__50_GE InterfaceTypeLabel = "50GBASE-KR (50GE)"
- INTERFACETYPELABEL__100_GBASE_KP4__100_GE InterfaceTypeLabel = "100GBASE-KP4 (100GE)"
- INTERFACETYPELABEL__100_GBASE_KR2__100_GE InterfaceTypeLabel = "100GBASE-KR2 (100GE)"
- INTERFACETYPELABEL__100_GBASE_KR4__100_GE InterfaceTypeLabel = "100GBASE-KR4 (100GE)"
- INTERFACETYPELABEL_IEEE_802_11A InterfaceTypeLabel = "IEEE 802.11a"
- INTERFACETYPELABEL_IEEE_802_11B_G InterfaceTypeLabel = "IEEE 802.11b/g"
- INTERFACETYPELABEL_IEEE_802_11N InterfaceTypeLabel = "IEEE 802.11n"
- INTERFACETYPELABEL_IEEE_802_11AC InterfaceTypeLabel = "IEEE 802.11ac"
- INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad"
- INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax"
- INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay"
- INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be"
- INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)"
- INTERFACETYPELABEL_IEEE_802_15_4__LR_WPAN InterfaceTypeLabel = "IEEE 802.15.4 (LR-WPAN)"
- INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)"
- INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM"
- INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA"
- INTERFACETYPELABEL_LTE InterfaceTypeLabel = "LTE"
- INTERFACETYPELABEL__4_G InterfaceTypeLabel = "4G"
- INTERFACETYPELABEL__5_G InterfaceTypeLabel = "5G"
- INTERFACETYPELABEL_OC_3_STM_1 InterfaceTypeLabel = "OC-3/STM-1"
- INTERFACETYPELABEL_OC_12_STM_4 InterfaceTypeLabel = "OC-12/STM-4"
- INTERFACETYPELABEL_OC_48_STM_16 InterfaceTypeLabel = "OC-48/STM-16"
- INTERFACETYPELABEL_OC_192_STM_64 InterfaceTypeLabel = "OC-192/STM-64"
- INTERFACETYPELABEL_OC_768_STM_256 InterfaceTypeLabel = "OC-768/STM-256"
- INTERFACETYPELABEL_OC_1920_STM_640 InterfaceTypeLabel = "OC-1920/STM-640"
- INTERFACETYPELABEL_OC_3840_STM_1234 InterfaceTypeLabel = "OC-3840/STM-1234"
- INTERFACETYPELABEL_SFP__1_GFC InterfaceTypeLabel = "SFP (1GFC)"
- INTERFACETYPELABEL_SFP__2_GFC InterfaceTypeLabel = "SFP (2GFC)"
- INTERFACETYPELABEL_SFP__4_GFC InterfaceTypeLabel = "SFP (4GFC)"
- INTERFACETYPELABEL_SFP__8_GFC InterfaceTypeLabel = "SFP+ (8GFC)"
- INTERFACETYPELABEL_SFP__16_GFC InterfaceTypeLabel = "SFP+ (16GFC)"
- INTERFACETYPELABEL_SFP28__32_GFC InterfaceTypeLabel = "SFP28 (32GFC)"
- INTERFACETYPELABEL_SFP__32_GFC InterfaceTypeLabel = "SFP+ (32GFC)"
- INTERFACETYPELABEL_QSFP__64_GFC InterfaceTypeLabel = "QSFP+ (64GFC)"
- INTERFACETYPELABEL_SFP_DD__64_GFC InterfaceTypeLabel = "SFP-DD (64GFC)"
- INTERFACETYPELABEL_SFP__64_GFC InterfaceTypeLabel = "SFP+ (64GFC)"
- INTERFACETYPELABEL_QSFP28__128_GFC InterfaceTypeLabel = "QSFP28 (128GFC)"
- INTERFACETYPELABEL_SDR__2_GBPS InterfaceTypeLabel = "SDR (2 Gbps)"
- INTERFACETYPELABEL_DDR__4_GBPS InterfaceTypeLabel = "DDR (4 Gbps)"
- INTERFACETYPELABEL_QDR__8_GBPS InterfaceTypeLabel = "QDR (8 Gbps)"
- INTERFACETYPELABEL_FDR10__10_GBPS InterfaceTypeLabel = "FDR10 (10 Gbps)"
- INTERFACETYPELABEL_FDR__13_5_GBPS InterfaceTypeLabel = "FDR (13.5 Gbps)"
- INTERFACETYPELABEL_EDR__25_GBPS InterfaceTypeLabel = "EDR (25 Gbps)"
- INTERFACETYPELABEL_HDR__50_GBPS InterfaceTypeLabel = "HDR (50 Gbps)"
- INTERFACETYPELABEL_NDR__100_GBPS InterfaceTypeLabel = "NDR (100 Gbps)"
- INTERFACETYPELABEL_XDR__250_GBPS InterfaceTypeLabel = "XDR (250 Gbps)"
- INTERFACETYPELABEL_T1__1_544_MBPS InterfaceTypeLabel = "T1 (1.544 Mbps)"
- INTERFACETYPELABEL_E1__2_048_MBPS InterfaceTypeLabel = "E1 (2.048 Mbps)"
- INTERFACETYPELABEL_T3__45_MBPS InterfaceTypeLabel = "T3 (45 Mbps)"
- INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)"
- INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL"
- INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS"
- INTERFACETYPELABEL_BPON__622_MBPS___155_MBPS InterfaceTypeLabel = "BPON (622 Mbps / 155 Mbps)"
- INTERFACETYPELABEL_EPON__1_GBPS InterfaceTypeLabel = "EPON (1 Gbps)"
- INTERFACETYPELABEL__10_G_EPON__10_GBPS InterfaceTypeLabel = "10G-EPON (10 Gbps)"
- INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GBPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gbps)"
- INTERFACETYPELABEL_XG_PON__10_GBPS___2_5_GBPS InterfaceTypeLabel = "XG-PON (10 Gbps / 2.5 Gbps)"
- INTERFACETYPELABEL_XGS_PON__10_GBPS InterfaceTypeLabel = "XGS-PON (10 Gbps)"
- INTERFACETYPELABEL_NG_PON2__TWDM_PON__4X10_GBPS InterfaceTypeLabel = "NG-PON2 (TWDM-PON) (4x10 Gbps)"
- INTERFACETYPELABEL__25_G_PON__25_GBPS InterfaceTypeLabel = "25G-PON (25 Gbps)"
- INTERFACETYPELABEL__50_G_PON__50_GBPS InterfaceTypeLabel = "50G-PON (50 Gbps)"
- INTERFACETYPELABEL_CISCO_STACK_WISE InterfaceTypeLabel = "Cisco StackWise"
- INTERFACETYPELABEL_CISCO_STACK_WISE_PLUS InterfaceTypeLabel = "Cisco StackWise Plus"
- INTERFACETYPELABEL_CISCO_FLEX_STACK InterfaceTypeLabel = "Cisco FlexStack"
- INTERFACETYPELABEL_CISCO_FLEX_STACK_PLUS InterfaceTypeLabel = "Cisco FlexStack Plus"
- INTERFACETYPELABEL_CISCO_STACK_WISE_80 InterfaceTypeLabel = "Cisco StackWise-80"
- INTERFACETYPELABEL_CISCO_STACK_WISE_160 InterfaceTypeLabel = "Cisco StackWise-160"
- INTERFACETYPELABEL_CISCO_STACK_WISE_320 InterfaceTypeLabel = "Cisco StackWise-320"
- INTERFACETYPELABEL_CISCO_STACK_WISE_480 InterfaceTypeLabel = "Cisco StackWise-480"
- INTERFACETYPELABEL_CISCO_STACK_WISE_1_T InterfaceTypeLabel = "Cisco StackWise-1T"
- INTERFACETYPELABEL_JUNIPER_VCP InterfaceTypeLabel = "Juniper VCP"
- INTERFACETYPELABEL_EXTREME_SUMMIT_STACK InterfaceTypeLabel = "Extreme SummitStack"
- INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_128 InterfaceTypeLabel = "Extreme SummitStack-128"
- INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_256 InterfaceTypeLabel = "Extreme SummitStack-256"
- INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_512 InterfaceTypeLabel = "Extreme SummitStack-512"
- INTERFACETYPELABEL_OTHER InterfaceTypeLabel = "Other"
+ INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)"
+ INTERFACETYPELABEL__1000_BASE_LX__1_GE InterfaceTypeLabel = "1000BASE-LX (1GE)"
+ INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)"
+ INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)"
+ INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)"
+ INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)"
+ INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)"
+ INTERFACETYPELABEL_SFP__100_ME InterfaceTypeLabel = "SFP (100ME)"
+ INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)"
+ INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)"
+ INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)"
+ INTERFACETYPELABEL_XFP__10_GE InterfaceTypeLabel = "XFP (10GE)"
+ INTERFACETYPELABEL_XENPAK__10_GE InterfaceTypeLabel = "XENPAK (10GE)"
+ INTERFACETYPELABEL_X2__10_GE InterfaceTypeLabel = "X2 (10GE)"
+ INTERFACETYPELABEL_SFP28__25_GE InterfaceTypeLabel = "SFP28 (25GE)"
+ INTERFACETYPELABEL_SFP56__50_GE InterfaceTypeLabel = "SFP56 (50GE)"
+ INTERFACETYPELABEL_QSFP__40_GE InterfaceTypeLabel = "QSFP+ (40GE)"
+ INTERFACETYPELABEL_QSFP28__50_GE InterfaceTypeLabel = "QSFP28 (50GE)"
+ INTERFACETYPELABEL_CFP__100_GE InterfaceTypeLabel = "CFP (100GE)"
+ INTERFACETYPELABEL_CFP2__100_GE InterfaceTypeLabel = "CFP2 (100GE)"
+ INTERFACETYPELABEL_CFP2__200_GE InterfaceTypeLabel = "CFP2 (200GE)"
+ INTERFACETYPELABEL_CFP2__400_GE InterfaceTypeLabel = "CFP2 (400GE)"
+ INTERFACETYPELABEL_CFP4__100_GE InterfaceTypeLabel = "CFP4 (100GE)"
+ INTERFACETYPELABEL_CXP__100_GE InterfaceTypeLabel = "CXP (100GE)"
+ INTERFACETYPELABEL_CISCO_CPAK__100_GE InterfaceTypeLabel = "Cisco CPAK (100GE)"
+ INTERFACETYPELABEL_DSFP__100_GE InterfaceTypeLabel = "DSFP (100GE)"
+ INTERFACETYPELABEL_SFP_DD__100_GE InterfaceTypeLabel = "SFP-DD (100GE)"
+ INTERFACETYPELABEL_QSFP28__100_GE InterfaceTypeLabel = "QSFP28 (100GE)"
+ INTERFACETYPELABEL_QSFP_DD__100_GE InterfaceTypeLabel = "QSFP-DD (100GE)"
+ INTERFACETYPELABEL_QSFP56__200_GE InterfaceTypeLabel = "QSFP56 (200GE)"
+ INTERFACETYPELABEL_QSFP_DD__200_GE InterfaceTypeLabel = "QSFP-DD (200GE)"
+ INTERFACETYPELABEL_QSFP112__400_GE InterfaceTypeLabel = "QSFP112 (400GE)"
+ INTERFACETYPELABEL_QSFP_DD__400_GE InterfaceTypeLabel = "QSFP-DD (400GE)"
+ INTERFACETYPELABEL_OSFP__400_GE InterfaceTypeLabel = "OSFP (400GE)"
+ INTERFACETYPELABEL_OSFP_RHS__400_GE InterfaceTypeLabel = "OSFP-RHS (400GE)"
+ INTERFACETYPELABEL_CDFP__400_GE InterfaceTypeLabel = "CDFP (400GE)"
+ INTERFACETYPELABEL_CPF8__400_GE InterfaceTypeLabel = "CPF8 (400GE)"
+ INTERFACETYPELABEL_QSFP_DD__800_GE InterfaceTypeLabel = "QSFP-DD (800GE)"
+ INTERFACETYPELABEL_OSFP__800_GE InterfaceTypeLabel = "OSFP (800GE)"
+ INTERFACETYPELABEL__1000_BASE_KX__1_GE InterfaceTypeLabel = "1000BASE-KX (1GE)"
+ INTERFACETYPELABEL__2_5_GBASE_KX__2_5_GE InterfaceTypeLabel = "2.5GBASE-KX (2.5GE)"
+ INTERFACETYPELABEL__5_GBASE_KR__5_GE InterfaceTypeLabel = "5GBASE-KR (5GE)"
+ INTERFACETYPELABEL__10_GBASE_KR__10_GE InterfaceTypeLabel = "10GBASE-KR (10GE)"
+ INTERFACETYPELABEL__10_GBASE_KX4__10_GE InterfaceTypeLabel = "10GBASE-KX4 (10GE)"
+ INTERFACETYPELABEL__25_GBASE_KR__25_GE InterfaceTypeLabel = "25GBASE-KR (25GE)"
+ INTERFACETYPELABEL__40_GBASE_KR4__40_GE InterfaceTypeLabel = "40GBASE-KR4 (40GE)"
+ INTERFACETYPELABEL__50_GBASE_KR__50_GE InterfaceTypeLabel = "50GBASE-KR (50GE)"
+ INTERFACETYPELABEL__100_GBASE_KP4__100_GE InterfaceTypeLabel = "100GBASE-KP4 (100GE)"
+ INTERFACETYPELABEL__100_GBASE_KR2__100_GE InterfaceTypeLabel = "100GBASE-KR2 (100GE)"
+ INTERFACETYPELABEL__100_GBASE_KR4__100_GE InterfaceTypeLabel = "100GBASE-KR4 (100GE)"
+ INTERFACETYPELABEL_IEEE_802_11A InterfaceTypeLabel = "IEEE 802.11a"
+ INTERFACETYPELABEL_IEEE_802_11B_G InterfaceTypeLabel = "IEEE 802.11b/g"
+ INTERFACETYPELABEL_IEEE_802_11N InterfaceTypeLabel = "IEEE 802.11n"
+ INTERFACETYPELABEL_IEEE_802_11AC InterfaceTypeLabel = "IEEE 802.11ac"
+ INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad"
+ INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax"
+ INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay"
+ INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be"
+ INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)"
+ INTERFACETYPELABEL_IEEE_802_15_4__LR_WPAN InterfaceTypeLabel = "IEEE 802.15.4 (LR-WPAN)"
+ INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)"
+ INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM"
+ INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA"
+ INTERFACETYPELABEL_LTE InterfaceTypeLabel = "LTE"
+ INTERFACETYPELABEL__4_G InterfaceTypeLabel = "4G"
+ INTERFACETYPELABEL__5_G InterfaceTypeLabel = "5G"
+ INTERFACETYPELABEL_OC_3_STM_1 InterfaceTypeLabel = "OC-3/STM-1"
+ INTERFACETYPELABEL_OC_12_STM_4 InterfaceTypeLabel = "OC-12/STM-4"
+ INTERFACETYPELABEL_OC_48_STM_16 InterfaceTypeLabel = "OC-48/STM-16"
+ INTERFACETYPELABEL_OC_192_STM_64 InterfaceTypeLabel = "OC-192/STM-64"
+ INTERFACETYPELABEL_OC_768_STM_256 InterfaceTypeLabel = "OC-768/STM-256"
+ INTERFACETYPELABEL_OC_1920_STM_640 InterfaceTypeLabel = "OC-1920/STM-640"
+ INTERFACETYPELABEL_OC_3840_STM_1234 InterfaceTypeLabel = "OC-3840/STM-1234"
+ INTERFACETYPELABEL_SFP__1_GFC InterfaceTypeLabel = "SFP (1GFC)"
+ INTERFACETYPELABEL_SFP__2_GFC InterfaceTypeLabel = "SFP (2GFC)"
+ INTERFACETYPELABEL_SFP__4_GFC InterfaceTypeLabel = "SFP (4GFC)"
+ INTERFACETYPELABEL_SFP__8_GFC InterfaceTypeLabel = "SFP+ (8GFC)"
+ INTERFACETYPELABEL_SFP__16_GFC InterfaceTypeLabel = "SFP+ (16GFC)"
+ INTERFACETYPELABEL_SFP28__32_GFC InterfaceTypeLabel = "SFP28 (32GFC)"
+ INTERFACETYPELABEL_SFP__32_GFC InterfaceTypeLabel = "SFP+ (32GFC)"
+ INTERFACETYPELABEL_QSFP__64_GFC InterfaceTypeLabel = "QSFP+ (64GFC)"
+ INTERFACETYPELABEL_SFP_DD__64_GFC InterfaceTypeLabel = "SFP-DD (64GFC)"
+ INTERFACETYPELABEL_SFP__64_GFC InterfaceTypeLabel = "SFP+ (64GFC)"
+ INTERFACETYPELABEL_QSFP28__128_GFC InterfaceTypeLabel = "QSFP28 (128GFC)"
+ INTERFACETYPELABEL_SDR__2_GBPS InterfaceTypeLabel = "SDR (2 Gbps)"
+ INTERFACETYPELABEL_DDR__4_GBPS InterfaceTypeLabel = "DDR (4 Gbps)"
+ INTERFACETYPELABEL_QDR__8_GBPS InterfaceTypeLabel = "QDR (8 Gbps)"
+ INTERFACETYPELABEL_FDR10__10_GBPS InterfaceTypeLabel = "FDR10 (10 Gbps)"
+ INTERFACETYPELABEL_FDR__13_5_GBPS InterfaceTypeLabel = "FDR (13.5 Gbps)"
+ INTERFACETYPELABEL_EDR__25_GBPS InterfaceTypeLabel = "EDR (25 Gbps)"
+ INTERFACETYPELABEL_HDR__50_GBPS InterfaceTypeLabel = "HDR (50 Gbps)"
+ INTERFACETYPELABEL_NDR__100_GBPS InterfaceTypeLabel = "NDR (100 Gbps)"
+ INTERFACETYPELABEL_XDR__250_GBPS InterfaceTypeLabel = "XDR (250 Gbps)"
+ INTERFACETYPELABEL_T1__1_544_MBPS InterfaceTypeLabel = "T1 (1.544 Mbps)"
+ INTERFACETYPELABEL_E1__2_048_MBPS InterfaceTypeLabel = "E1 (2.048 Mbps)"
+ INTERFACETYPELABEL_T3__45_MBPS InterfaceTypeLabel = "T3 (45 Mbps)"
+ INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)"
+ INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL"
+ INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS"
+ INTERFACETYPELABEL_MO_CA InterfaceTypeLabel = "MoCA"
+ INTERFACETYPELABEL_BPON__622_MBPS___155_MBPS InterfaceTypeLabel = "BPON (622 Mbps / 155 Mbps)"
+ INTERFACETYPELABEL_EPON__1_GBPS InterfaceTypeLabel = "EPON (1 Gbps)"
+ INTERFACETYPELABEL__10_G_EPON__10_GBPS InterfaceTypeLabel = "10G-EPON (10 Gbps)"
+ INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GBPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gbps)"
+ INTERFACETYPELABEL_XG_PON__10_GBPS___2_5_GBPS InterfaceTypeLabel = "XG-PON (10 Gbps / 2.5 Gbps)"
+ INTERFACETYPELABEL_XGS_PON__10_GBPS InterfaceTypeLabel = "XGS-PON (10 Gbps)"
+ INTERFACETYPELABEL_NG_PON2__TWDM_PON__4X10_GBPS InterfaceTypeLabel = "NG-PON2 (TWDM-PON) (4x10 Gbps)"
+ INTERFACETYPELABEL__25_G_PON__25_GBPS InterfaceTypeLabel = "25G-PON (25 Gbps)"
+ INTERFACETYPELABEL__50_G_PON__50_GBPS InterfaceTypeLabel = "50G-PON (50 Gbps)"
+ INTERFACETYPELABEL_CISCO_STACK_WISE InterfaceTypeLabel = "Cisco StackWise"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_PLUS InterfaceTypeLabel = "Cisco StackWise Plus"
+ INTERFACETYPELABEL_CISCO_FLEX_STACK InterfaceTypeLabel = "Cisco FlexStack"
+ INTERFACETYPELABEL_CISCO_FLEX_STACK_PLUS InterfaceTypeLabel = "Cisco FlexStack Plus"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_80 InterfaceTypeLabel = "Cisco StackWise-80"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_160 InterfaceTypeLabel = "Cisco StackWise-160"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_320 InterfaceTypeLabel = "Cisco StackWise-320"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_480 InterfaceTypeLabel = "Cisco StackWise-480"
+ INTERFACETYPELABEL_CISCO_STACK_WISE_1_T InterfaceTypeLabel = "Cisco StackWise-1T"
+ INTERFACETYPELABEL_JUNIPER_VCP InterfaceTypeLabel = "Juniper VCP"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK InterfaceTypeLabel = "Extreme SummitStack"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_128 InterfaceTypeLabel = "Extreme SummitStack-128"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_256 InterfaceTypeLabel = "Extreme SummitStack-256"
+ INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_512 InterfaceTypeLabel = "Extreme SummitStack-512"
+ INTERFACETYPELABEL_OTHER InterfaceTypeLabel = "Other"
)
// All allowed values of InterfaceTypeLabel enum
@@ -260,6 +261,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{
"E3 (34 Mbps)",
"xDSL",
"DOCSIS",
+ "MoCA",
"BPON (622 Mbps / 155 Mbps)",
"EPON (1 Gbps)",
"10G-EPON (10 Gbps)",
@@ -364,4 +366,3 @@ func (v *NullableInterfaceTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_interface_type_value.go b/model_interface_type_value.go
index 8ffb8e26a..297de66df 100644
--- a/model_interface_type_value.go
+++ b/model_interface_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,141 +15,142 @@ import (
"fmt"
)
-// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-lx` - 1000BASE-LX (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
+// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-lx` - 1000BASE-LX (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `moca` - MoCA * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
type InterfaceTypeValue string
// List of Interface_type_value
const (
- INTERFACETYPEVALUE_VIRTUAL InterfaceTypeValue = "virtual"
- INTERFACETYPEVALUE_BRIDGE InterfaceTypeValue = "bridge"
- INTERFACETYPEVALUE_LAG InterfaceTypeValue = "lag"
- INTERFACETYPEVALUE__100BASE_FX InterfaceTypeValue = "100base-fx"
- INTERFACETYPEVALUE__100BASE_LFX InterfaceTypeValue = "100base-lfx"
- INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx"
- INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1"
- INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t"
- INTERFACETYPEVALUE__1000BASE_LX InterfaceTypeValue = "1000base-lx"
- INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx"
- INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t"
- INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t"
- INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t"
- INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4"
- INTERFACETYPEVALUE__100BASE_X_SFP InterfaceTypeValue = "100base-x-sfp"
- INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic"
- INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp"
- INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp"
- INTERFACETYPEVALUE__10GBASE_X_XFP InterfaceTypeValue = "10gbase-x-xfp"
- INTERFACETYPEVALUE__10GBASE_X_XENPAK InterfaceTypeValue = "10gbase-x-xenpak"
- INTERFACETYPEVALUE__10GBASE_X_X2 InterfaceTypeValue = "10gbase-x-x2"
- INTERFACETYPEVALUE__25GBASE_X_SFP28 InterfaceTypeValue = "25gbase-x-sfp28"
- INTERFACETYPEVALUE__50GBASE_X_SFP56 InterfaceTypeValue = "50gbase-x-sfp56"
- INTERFACETYPEVALUE__40GBASE_X_QSFPP InterfaceTypeValue = "40gbase-x-qsfpp"
- INTERFACETYPEVALUE__50GBASE_X_SFP28 InterfaceTypeValue = "50gbase-x-sfp28"
- INTERFACETYPEVALUE__100GBASE_X_CFP InterfaceTypeValue = "100gbase-x-cfp"
- INTERFACETYPEVALUE__100GBASE_X_CFP2 InterfaceTypeValue = "100gbase-x-cfp2"
- INTERFACETYPEVALUE__200GBASE_X_CFP2 InterfaceTypeValue = "200gbase-x-cfp2"
- INTERFACETYPEVALUE__400GBASE_X_CFP2 InterfaceTypeValue = "400gbase-x-cfp2"
- INTERFACETYPEVALUE__100GBASE_X_CFP4 InterfaceTypeValue = "100gbase-x-cfp4"
- INTERFACETYPEVALUE__100GBASE_X_CXP InterfaceTypeValue = "100gbase-x-cxp"
- INTERFACETYPEVALUE__100GBASE_X_CPAK InterfaceTypeValue = "100gbase-x-cpak"
- INTERFACETYPEVALUE__100GBASE_X_DSFP InterfaceTypeValue = "100gbase-x-dsfp"
- INTERFACETYPEVALUE__100GBASE_X_SFPDD InterfaceTypeValue = "100gbase-x-sfpdd"
- INTERFACETYPEVALUE__100GBASE_X_QSFP28 InterfaceTypeValue = "100gbase-x-qsfp28"
- INTERFACETYPEVALUE__100GBASE_X_QSFPDD InterfaceTypeValue = "100gbase-x-qsfpdd"
- INTERFACETYPEVALUE__200GBASE_X_QSFP56 InterfaceTypeValue = "200gbase-x-qsfp56"
- INTERFACETYPEVALUE__200GBASE_X_QSFPDD InterfaceTypeValue = "200gbase-x-qsfpdd"
- INTERFACETYPEVALUE__400GBASE_X_QSFP112 InterfaceTypeValue = "400gbase-x-qsfp112"
- INTERFACETYPEVALUE__400GBASE_X_QSFPDD InterfaceTypeValue = "400gbase-x-qsfpdd"
- INTERFACETYPEVALUE__400GBASE_X_OSFP InterfaceTypeValue = "400gbase-x-osfp"
- INTERFACETYPEVALUE__400GBASE_X_OSFP_RHS InterfaceTypeValue = "400gbase-x-osfp-rhs"
- INTERFACETYPEVALUE__400GBASE_X_CDFP InterfaceTypeValue = "400gbase-x-cdfp"
- INTERFACETYPEVALUE__400GBASE_X_CFP8 InterfaceTypeValue = "400gbase-x-cfp8"
- INTERFACETYPEVALUE__800GBASE_X_QSFPDD InterfaceTypeValue = "800gbase-x-qsfpdd"
- INTERFACETYPEVALUE__800GBASE_X_OSFP InterfaceTypeValue = "800gbase-x-osfp"
- INTERFACETYPEVALUE__1000BASE_KX InterfaceTypeValue = "1000base-kx"
- INTERFACETYPEVALUE__2_5GBASE_KX InterfaceTypeValue = "2.5gbase-kx"
- INTERFACETYPEVALUE__5GBASE_KR InterfaceTypeValue = "5gbase-kr"
- INTERFACETYPEVALUE__10GBASE_KR InterfaceTypeValue = "10gbase-kr"
- INTERFACETYPEVALUE__10GBASE_KX4 InterfaceTypeValue = "10gbase-kx4"
- INTERFACETYPEVALUE__25GBASE_KR InterfaceTypeValue = "25gbase-kr"
- INTERFACETYPEVALUE__40GBASE_KR4 InterfaceTypeValue = "40gbase-kr4"
- INTERFACETYPEVALUE__50GBASE_KR InterfaceTypeValue = "50gbase-kr"
- INTERFACETYPEVALUE__100GBASE_KP4 InterfaceTypeValue = "100gbase-kp4"
- INTERFACETYPEVALUE__100GBASE_KR2 InterfaceTypeValue = "100gbase-kr2"
- INTERFACETYPEVALUE__100GBASE_KR4 InterfaceTypeValue = "100gbase-kr4"
- INTERFACETYPEVALUE_IEEE802_11A InterfaceTypeValue = "ieee802.11a"
- INTERFACETYPEVALUE_IEEE802_11G InterfaceTypeValue = "ieee802.11g"
- INTERFACETYPEVALUE_IEEE802_11N InterfaceTypeValue = "ieee802.11n"
- INTERFACETYPEVALUE_IEEE802_11AC InterfaceTypeValue = "ieee802.11ac"
- INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad"
- INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax"
- INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay"
- INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be"
- INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1"
- INTERFACETYPEVALUE_IEEE802_15_4 InterfaceTypeValue = "ieee802.15.4"
- INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless"
- INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm"
- INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma"
- INTERFACETYPEVALUE_LTE InterfaceTypeValue = "lte"
- INTERFACETYPEVALUE__4G InterfaceTypeValue = "4g"
- INTERFACETYPEVALUE__5G InterfaceTypeValue = "5g"
- INTERFACETYPEVALUE_SONET_OC3 InterfaceTypeValue = "sonet-oc3"
- INTERFACETYPEVALUE_SONET_OC12 InterfaceTypeValue = "sonet-oc12"
- INTERFACETYPEVALUE_SONET_OC48 InterfaceTypeValue = "sonet-oc48"
- INTERFACETYPEVALUE_SONET_OC192 InterfaceTypeValue = "sonet-oc192"
- INTERFACETYPEVALUE_SONET_OC768 InterfaceTypeValue = "sonet-oc768"
- INTERFACETYPEVALUE_SONET_OC1920 InterfaceTypeValue = "sonet-oc1920"
- INTERFACETYPEVALUE_SONET_OC3840 InterfaceTypeValue = "sonet-oc3840"
- INTERFACETYPEVALUE__1GFC_SFP InterfaceTypeValue = "1gfc-sfp"
- INTERFACETYPEVALUE__2GFC_SFP InterfaceTypeValue = "2gfc-sfp"
- INTERFACETYPEVALUE__4GFC_SFP InterfaceTypeValue = "4gfc-sfp"
- INTERFACETYPEVALUE__8GFC_SFPP InterfaceTypeValue = "8gfc-sfpp"
- INTERFACETYPEVALUE__16GFC_SFPP InterfaceTypeValue = "16gfc-sfpp"
- INTERFACETYPEVALUE__32GFC_SFP28 InterfaceTypeValue = "32gfc-sfp28"
- INTERFACETYPEVALUE__32GFC_SFPP InterfaceTypeValue = "32gfc-sfpp"
- INTERFACETYPEVALUE__64GFC_QSFPP InterfaceTypeValue = "64gfc-qsfpp"
- INTERFACETYPEVALUE__64GFC_SFPDD InterfaceTypeValue = "64gfc-sfpdd"
- INTERFACETYPEVALUE__64GFC_SFPP InterfaceTypeValue = "64gfc-sfpp"
- INTERFACETYPEVALUE__128GFC_QSFP28 InterfaceTypeValue = "128gfc-qsfp28"
- INTERFACETYPEVALUE_INFINIBAND_SDR InterfaceTypeValue = "infiniband-sdr"
- INTERFACETYPEVALUE_INFINIBAND_DDR InterfaceTypeValue = "infiniband-ddr"
- INTERFACETYPEVALUE_INFINIBAND_QDR InterfaceTypeValue = "infiniband-qdr"
- INTERFACETYPEVALUE_INFINIBAND_FDR10 InterfaceTypeValue = "infiniband-fdr10"
- INTERFACETYPEVALUE_INFINIBAND_FDR InterfaceTypeValue = "infiniband-fdr"
- INTERFACETYPEVALUE_INFINIBAND_EDR InterfaceTypeValue = "infiniband-edr"
- INTERFACETYPEVALUE_INFINIBAND_HDR InterfaceTypeValue = "infiniband-hdr"
- INTERFACETYPEVALUE_INFINIBAND_NDR InterfaceTypeValue = "infiniband-ndr"
- INTERFACETYPEVALUE_INFINIBAND_XDR InterfaceTypeValue = "infiniband-xdr"
- INTERFACETYPEVALUE_T1 InterfaceTypeValue = "t1"
- INTERFACETYPEVALUE_E1 InterfaceTypeValue = "e1"
- INTERFACETYPEVALUE_T3 InterfaceTypeValue = "t3"
- INTERFACETYPEVALUE_E3 InterfaceTypeValue = "e3"
- INTERFACETYPEVALUE_XDSL InterfaceTypeValue = "xdsl"
- INTERFACETYPEVALUE_DOCSIS InterfaceTypeValue = "docsis"
- INTERFACETYPEVALUE_BPON InterfaceTypeValue = "bpon"
- INTERFACETYPEVALUE_EPON InterfaceTypeValue = "epon"
- INTERFACETYPEVALUE__10G_EPON InterfaceTypeValue = "10g-epon"
- INTERFACETYPEVALUE_GPON InterfaceTypeValue = "gpon"
- INTERFACETYPEVALUE_XG_PON InterfaceTypeValue = "xg-pon"
- INTERFACETYPEVALUE_XGS_PON InterfaceTypeValue = "xgs-pon"
- INTERFACETYPEVALUE_NG_PON2 InterfaceTypeValue = "ng-pon2"
- INTERFACETYPEVALUE__25G_PON InterfaceTypeValue = "25g-pon"
- INTERFACETYPEVALUE__50G_PON InterfaceTypeValue = "50g-pon"
- INTERFACETYPEVALUE_CISCO_STACKWISE InterfaceTypeValue = "cisco-stackwise"
- INTERFACETYPEVALUE_CISCO_STACKWISE_PLUS InterfaceTypeValue = "cisco-stackwise-plus"
- INTERFACETYPEVALUE_CISCO_FLEXSTACK InterfaceTypeValue = "cisco-flexstack"
- INTERFACETYPEVALUE_CISCO_FLEXSTACK_PLUS InterfaceTypeValue = "cisco-flexstack-plus"
- INTERFACETYPEVALUE_CISCO_STACKWISE_80 InterfaceTypeValue = "cisco-stackwise-80"
- INTERFACETYPEVALUE_CISCO_STACKWISE_160 InterfaceTypeValue = "cisco-stackwise-160"
- INTERFACETYPEVALUE_CISCO_STACKWISE_320 InterfaceTypeValue = "cisco-stackwise-320"
- INTERFACETYPEVALUE_CISCO_STACKWISE_480 InterfaceTypeValue = "cisco-stackwise-480"
- INTERFACETYPEVALUE_CISCO_STACKWISE_1T InterfaceTypeValue = "cisco-stackwise-1t"
- INTERFACETYPEVALUE_JUNIPER_VCP InterfaceTypeValue = "juniper-vcp"
- INTERFACETYPEVALUE_EXTREME_SUMMITSTACK InterfaceTypeValue = "extreme-summitstack"
+ INTERFACETYPEVALUE_VIRTUAL InterfaceTypeValue = "virtual"
+ INTERFACETYPEVALUE_BRIDGE InterfaceTypeValue = "bridge"
+ INTERFACETYPEVALUE_LAG InterfaceTypeValue = "lag"
+ INTERFACETYPEVALUE__100BASE_FX InterfaceTypeValue = "100base-fx"
+ INTERFACETYPEVALUE__100BASE_LFX InterfaceTypeValue = "100base-lfx"
+ INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx"
+ INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1"
+ INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t"
+ INTERFACETYPEVALUE__1000BASE_LX InterfaceTypeValue = "1000base-lx"
+ INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx"
+ INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t"
+ INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t"
+ INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t"
+ INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4"
+ INTERFACETYPEVALUE__100BASE_X_SFP InterfaceTypeValue = "100base-x-sfp"
+ INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic"
+ INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp"
+ INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp"
+ INTERFACETYPEVALUE__10GBASE_X_XFP InterfaceTypeValue = "10gbase-x-xfp"
+ INTERFACETYPEVALUE__10GBASE_X_XENPAK InterfaceTypeValue = "10gbase-x-xenpak"
+ INTERFACETYPEVALUE__10GBASE_X_X2 InterfaceTypeValue = "10gbase-x-x2"
+ INTERFACETYPEVALUE__25GBASE_X_SFP28 InterfaceTypeValue = "25gbase-x-sfp28"
+ INTERFACETYPEVALUE__50GBASE_X_SFP56 InterfaceTypeValue = "50gbase-x-sfp56"
+ INTERFACETYPEVALUE__40GBASE_X_QSFPP InterfaceTypeValue = "40gbase-x-qsfpp"
+ INTERFACETYPEVALUE__50GBASE_X_SFP28 InterfaceTypeValue = "50gbase-x-sfp28"
+ INTERFACETYPEVALUE__100GBASE_X_CFP InterfaceTypeValue = "100gbase-x-cfp"
+ INTERFACETYPEVALUE__100GBASE_X_CFP2 InterfaceTypeValue = "100gbase-x-cfp2"
+ INTERFACETYPEVALUE__200GBASE_X_CFP2 InterfaceTypeValue = "200gbase-x-cfp2"
+ INTERFACETYPEVALUE__400GBASE_X_CFP2 InterfaceTypeValue = "400gbase-x-cfp2"
+ INTERFACETYPEVALUE__100GBASE_X_CFP4 InterfaceTypeValue = "100gbase-x-cfp4"
+ INTERFACETYPEVALUE__100GBASE_X_CXP InterfaceTypeValue = "100gbase-x-cxp"
+ INTERFACETYPEVALUE__100GBASE_X_CPAK InterfaceTypeValue = "100gbase-x-cpak"
+ INTERFACETYPEVALUE__100GBASE_X_DSFP InterfaceTypeValue = "100gbase-x-dsfp"
+ INTERFACETYPEVALUE__100GBASE_X_SFPDD InterfaceTypeValue = "100gbase-x-sfpdd"
+ INTERFACETYPEVALUE__100GBASE_X_QSFP28 InterfaceTypeValue = "100gbase-x-qsfp28"
+ INTERFACETYPEVALUE__100GBASE_X_QSFPDD InterfaceTypeValue = "100gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__200GBASE_X_QSFP56 InterfaceTypeValue = "200gbase-x-qsfp56"
+ INTERFACETYPEVALUE__200GBASE_X_QSFPDD InterfaceTypeValue = "200gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__400GBASE_X_QSFP112 InterfaceTypeValue = "400gbase-x-qsfp112"
+ INTERFACETYPEVALUE__400GBASE_X_QSFPDD InterfaceTypeValue = "400gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__400GBASE_X_OSFP InterfaceTypeValue = "400gbase-x-osfp"
+ INTERFACETYPEVALUE__400GBASE_X_OSFP_RHS InterfaceTypeValue = "400gbase-x-osfp-rhs"
+ INTERFACETYPEVALUE__400GBASE_X_CDFP InterfaceTypeValue = "400gbase-x-cdfp"
+ INTERFACETYPEVALUE__400GBASE_X_CFP8 InterfaceTypeValue = "400gbase-x-cfp8"
+ INTERFACETYPEVALUE__800GBASE_X_QSFPDD InterfaceTypeValue = "800gbase-x-qsfpdd"
+ INTERFACETYPEVALUE__800GBASE_X_OSFP InterfaceTypeValue = "800gbase-x-osfp"
+ INTERFACETYPEVALUE__1000BASE_KX InterfaceTypeValue = "1000base-kx"
+ INTERFACETYPEVALUE__2_5GBASE_KX InterfaceTypeValue = "2.5gbase-kx"
+ INTERFACETYPEVALUE__5GBASE_KR InterfaceTypeValue = "5gbase-kr"
+ INTERFACETYPEVALUE__10GBASE_KR InterfaceTypeValue = "10gbase-kr"
+ INTERFACETYPEVALUE__10GBASE_KX4 InterfaceTypeValue = "10gbase-kx4"
+ INTERFACETYPEVALUE__25GBASE_KR InterfaceTypeValue = "25gbase-kr"
+ INTERFACETYPEVALUE__40GBASE_KR4 InterfaceTypeValue = "40gbase-kr4"
+ INTERFACETYPEVALUE__50GBASE_KR InterfaceTypeValue = "50gbase-kr"
+ INTERFACETYPEVALUE__100GBASE_KP4 InterfaceTypeValue = "100gbase-kp4"
+ INTERFACETYPEVALUE__100GBASE_KR2 InterfaceTypeValue = "100gbase-kr2"
+ INTERFACETYPEVALUE__100GBASE_KR4 InterfaceTypeValue = "100gbase-kr4"
+ INTERFACETYPEVALUE_IEEE802_11A InterfaceTypeValue = "ieee802.11a"
+ INTERFACETYPEVALUE_IEEE802_11G InterfaceTypeValue = "ieee802.11g"
+ INTERFACETYPEVALUE_IEEE802_11N InterfaceTypeValue = "ieee802.11n"
+ INTERFACETYPEVALUE_IEEE802_11AC InterfaceTypeValue = "ieee802.11ac"
+ INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad"
+ INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax"
+ INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay"
+ INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be"
+ INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1"
+ INTERFACETYPEVALUE_IEEE802_15_4 InterfaceTypeValue = "ieee802.15.4"
+ INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless"
+ INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm"
+ INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma"
+ INTERFACETYPEVALUE_LTE InterfaceTypeValue = "lte"
+ INTERFACETYPEVALUE__4G InterfaceTypeValue = "4g"
+ INTERFACETYPEVALUE__5G InterfaceTypeValue = "5g"
+ INTERFACETYPEVALUE_SONET_OC3 InterfaceTypeValue = "sonet-oc3"
+ INTERFACETYPEVALUE_SONET_OC12 InterfaceTypeValue = "sonet-oc12"
+ INTERFACETYPEVALUE_SONET_OC48 InterfaceTypeValue = "sonet-oc48"
+ INTERFACETYPEVALUE_SONET_OC192 InterfaceTypeValue = "sonet-oc192"
+ INTERFACETYPEVALUE_SONET_OC768 InterfaceTypeValue = "sonet-oc768"
+ INTERFACETYPEVALUE_SONET_OC1920 InterfaceTypeValue = "sonet-oc1920"
+ INTERFACETYPEVALUE_SONET_OC3840 InterfaceTypeValue = "sonet-oc3840"
+ INTERFACETYPEVALUE__1GFC_SFP InterfaceTypeValue = "1gfc-sfp"
+ INTERFACETYPEVALUE__2GFC_SFP InterfaceTypeValue = "2gfc-sfp"
+ INTERFACETYPEVALUE__4GFC_SFP InterfaceTypeValue = "4gfc-sfp"
+ INTERFACETYPEVALUE__8GFC_SFPP InterfaceTypeValue = "8gfc-sfpp"
+ INTERFACETYPEVALUE__16GFC_SFPP InterfaceTypeValue = "16gfc-sfpp"
+ INTERFACETYPEVALUE__32GFC_SFP28 InterfaceTypeValue = "32gfc-sfp28"
+ INTERFACETYPEVALUE__32GFC_SFPP InterfaceTypeValue = "32gfc-sfpp"
+ INTERFACETYPEVALUE__64GFC_QSFPP InterfaceTypeValue = "64gfc-qsfpp"
+ INTERFACETYPEVALUE__64GFC_SFPDD InterfaceTypeValue = "64gfc-sfpdd"
+ INTERFACETYPEVALUE__64GFC_SFPP InterfaceTypeValue = "64gfc-sfpp"
+ INTERFACETYPEVALUE__128GFC_QSFP28 InterfaceTypeValue = "128gfc-qsfp28"
+ INTERFACETYPEVALUE_INFINIBAND_SDR InterfaceTypeValue = "infiniband-sdr"
+ INTERFACETYPEVALUE_INFINIBAND_DDR InterfaceTypeValue = "infiniband-ddr"
+ INTERFACETYPEVALUE_INFINIBAND_QDR InterfaceTypeValue = "infiniband-qdr"
+ INTERFACETYPEVALUE_INFINIBAND_FDR10 InterfaceTypeValue = "infiniband-fdr10"
+ INTERFACETYPEVALUE_INFINIBAND_FDR InterfaceTypeValue = "infiniband-fdr"
+ INTERFACETYPEVALUE_INFINIBAND_EDR InterfaceTypeValue = "infiniband-edr"
+ INTERFACETYPEVALUE_INFINIBAND_HDR InterfaceTypeValue = "infiniband-hdr"
+ INTERFACETYPEVALUE_INFINIBAND_NDR InterfaceTypeValue = "infiniband-ndr"
+ INTERFACETYPEVALUE_INFINIBAND_XDR InterfaceTypeValue = "infiniband-xdr"
+ INTERFACETYPEVALUE_T1 InterfaceTypeValue = "t1"
+ INTERFACETYPEVALUE_E1 InterfaceTypeValue = "e1"
+ INTERFACETYPEVALUE_T3 InterfaceTypeValue = "t3"
+ INTERFACETYPEVALUE_E3 InterfaceTypeValue = "e3"
+ INTERFACETYPEVALUE_XDSL InterfaceTypeValue = "xdsl"
+ INTERFACETYPEVALUE_DOCSIS InterfaceTypeValue = "docsis"
+ INTERFACETYPEVALUE_MOCA InterfaceTypeValue = "moca"
+ INTERFACETYPEVALUE_BPON InterfaceTypeValue = "bpon"
+ INTERFACETYPEVALUE_EPON InterfaceTypeValue = "epon"
+ INTERFACETYPEVALUE__10G_EPON InterfaceTypeValue = "10g-epon"
+ INTERFACETYPEVALUE_GPON InterfaceTypeValue = "gpon"
+ INTERFACETYPEVALUE_XG_PON InterfaceTypeValue = "xg-pon"
+ INTERFACETYPEVALUE_XGS_PON InterfaceTypeValue = "xgs-pon"
+ INTERFACETYPEVALUE_NG_PON2 InterfaceTypeValue = "ng-pon2"
+ INTERFACETYPEVALUE__25G_PON InterfaceTypeValue = "25g-pon"
+ INTERFACETYPEVALUE__50G_PON InterfaceTypeValue = "50g-pon"
+ INTERFACETYPEVALUE_CISCO_STACKWISE InterfaceTypeValue = "cisco-stackwise"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_PLUS InterfaceTypeValue = "cisco-stackwise-plus"
+ INTERFACETYPEVALUE_CISCO_FLEXSTACK InterfaceTypeValue = "cisco-flexstack"
+ INTERFACETYPEVALUE_CISCO_FLEXSTACK_PLUS InterfaceTypeValue = "cisco-flexstack-plus"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_80 InterfaceTypeValue = "cisco-stackwise-80"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_160 InterfaceTypeValue = "cisco-stackwise-160"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_320 InterfaceTypeValue = "cisco-stackwise-320"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_480 InterfaceTypeValue = "cisco-stackwise-480"
+ INTERFACETYPEVALUE_CISCO_STACKWISE_1T InterfaceTypeValue = "cisco-stackwise-1t"
+ INTERFACETYPEVALUE_JUNIPER_VCP InterfaceTypeValue = "juniper-vcp"
+ INTERFACETYPEVALUE_EXTREME_SUMMITSTACK InterfaceTypeValue = "extreme-summitstack"
INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_128 InterfaceTypeValue = "extreme-summitstack-128"
INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_256 InterfaceTypeValue = "extreme-summitstack-256"
INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_512 InterfaceTypeValue = "extreme-summitstack-512"
- INTERFACETYPEVALUE_OTHER InterfaceTypeValue = "other"
+ INTERFACETYPEVALUE_OTHER InterfaceTypeValue = "other"
)
// All allowed values of InterfaceTypeValue enum
@@ -260,6 +261,7 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{
"e3",
"xdsl",
"docsis",
+ "moca",
"bpon",
"epon",
"10g-epon",
@@ -364,4 +366,3 @@ 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 c754cd74b..f46bddc38 100644
--- a/model_inventory_item.go
+++ b/model_inventory_item.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the InventoryItem type satisfies the MappedNullable interface at compile time
@@ -21,34 +21,34 @@ var _ MappedNullable = &InventoryItem{}
// InventoryItem Adds support for custom fields and tags.
type InventoryItem struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Status *InventoryItemStatus `json:"status,omitempty"`
- Role NullableBriefInventoryItemRole `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Status *InventoryItemStatus `json:"status,omitempty"`
+ Role NullableBriefInventoryItemRole `json:"role,omitempty"`
+ Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this item
AssetTag NullableString `json:"asset_tag,omitempty"`
// This item was automatically discovered
- Discovered *bool `json:"discovered,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Component interface{} `json:"component,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Depth int32 `json:"_depth"`
+ Discovered *bool `json:"discovered,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Component interface{} `json:"component,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -101,7 +101,6 @@ func (o *InventoryItem) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *InventoryItem) GetUrl() string {
if o == nil {
@@ -126,7 +125,6 @@ func (o *InventoryItem) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *InventoryItem) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -183,7 +181,6 @@ func (o *InventoryItem) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *InventoryItem) GetDevice() BriefDevice {
if o == nil {
@@ -208,7 +205,6 @@ func (o *InventoryItem) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InventoryItem) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -241,6 +237,7 @@ func (o *InventoryItem) HasParent() bool {
func (o *InventoryItem) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *InventoryItem) SetParentNil() {
o.Parent.Set(nil)
@@ -275,7 +272,6 @@ func (o *InventoryItem) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InventoryItem) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -372,6 +368,7 @@ func (o *InventoryItem) HasRole() bool {
func (o *InventoryItem) SetRole(v BriefInventoryItemRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *InventoryItem) SetRoleNil() {
o.Role.Set(nil)
@@ -414,6 +411,7 @@ func (o *InventoryItem) HasManufacturer() bool {
func (o *InventoryItem) SetManufacturer(v BriefManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *InventoryItem) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -520,6 +518,7 @@ func (o *InventoryItem) HasAssetTag() bool {
func (o *InventoryItem) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *InventoryItem) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -626,6 +625,7 @@ func (o *InventoryItem) HasComponentType() bool {
func (o *InventoryItem) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *InventoryItem) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -668,6 +668,7 @@ func (o *InventoryItem) HasComponentId() bool {
func (o *InventoryItem) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *InventoryItem) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -807,6 +808,7 @@ func (o *InventoryItem) HasCreated() bool {
func (o *InventoryItem) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *InventoryItem) SetCreatedNil() {
o.Created.Set(nil)
@@ -849,6 +851,7 @@ func (o *InventoryItem) HasLastUpdated() bool {
func (o *InventoryItem) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *InventoryItem) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -883,9 +886,8 @@ func (o *InventoryItem) SetDepth(v int32) {
o.Depth = v
}
-
func (o InventoryItem) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -977,32 +979,31 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1084,5 +1085,3 @@ func (v *NullableInventoryItem) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go
index 4e490aa50..a2052b739 100644
--- a/model_inventory_item_request.go
+++ b/model_inventory_item_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,26 +20,26 @@ var _ MappedNullable = &InventoryItemRequest{}
// InventoryItemRequest Adds support for custom fields and tags.
type InventoryItemRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Role NullableInventoryItemRequestRole `json:"role,omitempty"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this item
AssetTag NullableString `json:"asset_tag,omitempty"`
// This item was automatically discovered
- Discovered *bool `json:"discovered,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Discovered *bool `json:"discovered,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,7 +49,7 @@ type _InventoryItemRequest InventoryItemRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest {
+func NewInventoryItemRequest(device BriefInterfaceRequestDevice, name string) *InventoryItemRequest {
this := InventoryItemRequest{}
this.Device = device
this.Name = name
@@ -65,9 +65,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest {
}
// GetDevice returns the Device field value
-func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest {
+func (o *InventoryItemRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -76,7 +76,7 @@ func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *InventoryItemRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -84,11 +84,10 @@ func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) {
+func (o *InventoryItemRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InventoryItemRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -121,6 +120,7 @@ func (o *InventoryItemRequest) HasParent() bool {
func (o *InventoryItemRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *InventoryItemRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -155,7 +155,6 @@ func (o *InventoryItemRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InventoryItemRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -221,9 +220,9 @@ func (o *InventoryItemRequest) SetStatus(v InventoryItemStatusValue) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest {
+func (o *InventoryItemRequest) GetRole() InventoryItemRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefInventoryItemRoleRequest
+ var ret InventoryItemRequestRole
return ret
}
return *o.Role.Get()
@@ -232,7 +231,7 @@ func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) {
+func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -248,10 +247,11 @@ func (o *InventoryItemRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field.
-func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRequestRole and assigns it to the Role field.
+func (o *InventoryItemRequest) SetRole(v InventoryItemRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *InventoryItemRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -263,9 +263,9 @@ func (o *InventoryItemRequest) UnsetRole() {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *InventoryItemRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -274,7 +274,7 @@ func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *InventoryItemRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -290,10 +290,11 @@ func (o *InventoryItemRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *InventoryItemRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *InventoryItemRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -400,6 +401,7 @@ func (o *InventoryItemRequest) HasAssetTag() bool {
func (o *InventoryItemRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *InventoryItemRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -506,6 +508,7 @@ func (o *InventoryItemRequest) HasComponentType() bool {
func (o *InventoryItemRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *InventoryItemRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -548,6 +551,7 @@ func (o *InventoryItemRequest) HasComponentId() bool {
func (o *InventoryItemRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *InventoryItemRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -623,7 +627,7 @@ func (o *InventoryItemRequest) SetCustomFields(v map[string]interface{}) {
}
func (o InventoryItemRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -695,32 +699,31 @@ func (o *InventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -794,5 +797,3 @@ func (v *NullableInventoryItemRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_request_manufacturer.go b/model_inventory_item_request_manufacturer.go
new file mode 100644
index 000000000..d4a96ed35
--- /dev/null
+++ b/model_inventory_item_request_manufacturer.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// InventoryItemRequestManufacturer - struct for InventoryItemRequestManufacturer
+type InventoryItemRequestManufacturer struct {
+ BriefManufacturerRequest *BriefManufacturerRequest
+ Int32 *int32
+}
+
+// BriefManufacturerRequestAsInventoryItemRequestManufacturer is a convenience function that returns BriefManufacturerRequest wrapped in InventoryItemRequestManufacturer
+func BriefManufacturerRequestAsInventoryItemRequestManufacturer(v *BriefManufacturerRequest) InventoryItemRequestManufacturer {
+ return InventoryItemRequestManufacturer{
+ BriefManufacturerRequest: v,
+ }
+}
+
+// int32AsInventoryItemRequestManufacturer is a convenience function that returns int32 wrapped in InventoryItemRequestManufacturer
+func Int32AsInventoryItemRequestManufacturer(v *int32) InventoryItemRequestManufacturer {
+ return InventoryItemRequestManufacturer{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *InventoryItemRequestManufacturer) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefManufacturerRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefManufacturerRequest)
+ if err == nil {
+ jsonBriefManufacturerRequest, _ := json.Marshal(dst.BriefManufacturerRequest)
+ if string(jsonBriefManufacturerRequest) == "{}" { // empty struct
+ dst.BriefManufacturerRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefManufacturerRequest); err != nil {
+ dst.BriefManufacturerRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefManufacturerRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefManufacturerRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(InventoryItemRequestManufacturer)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(InventoryItemRequestManufacturer)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src InventoryItemRequestManufacturer) MarshalJSON() ([]byte, error) {
+ if src.BriefManufacturerRequest != nil {
+ return json.Marshal(&src.BriefManufacturerRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *InventoryItemRequestManufacturer) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefManufacturerRequest != nil {
+ return obj.BriefManufacturerRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableInventoryItemRequestManufacturer struct {
+ value *InventoryItemRequestManufacturer
+ isSet bool
+}
+
+func (v NullableInventoryItemRequestManufacturer) Get() *InventoryItemRequestManufacturer {
+ return v.value
+}
+
+func (v *NullableInventoryItemRequestManufacturer) Set(val *InventoryItemRequestManufacturer) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInventoryItemRequestManufacturer) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInventoryItemRequestManufacturer) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInventoryItemRequestManufacturer(val *InventoryItemRequestManufacturer) *NullableInventoryItemRequestManufacturer {
+ return &NullableInventoryItemRequestManufacturer{value: val, isSet: true}
+}
+
+func (v NullableInventoryItemRequestManufacturer) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInventoryItemRequestManufacturer) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_inventory_item_request_role.go b/model_inventory_item_request_role.go
new file mode 100644
index 000000000..a0ccca055
--- /dev/null
+++ b/model_inventory_item_request_role.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// InventoryItemRequestRole - struct for InventoryItemRequestRole
+type InventoryItemRequestRole struct {
+ BriefInventoryItemRoleRequest *BriefInventoryItemRoleRequest
+ Int32 *int32
+}
+
+// BriefInventoryItemRoleRequestAsInventoryItemRequestRole is a convenience function that returns BriefInventoryItemRoleRequest wrapped in InventoryItemRequestRole
+func BriefInventoryItemRoleRequestAsInventoryItemRequestRole(v *BriefInventoryItemRoleRequest) InventoryItemRequestRole {
+ return InventoryItemRequestRole{
+ BriefInventoryItemRoleRequest: v,
+ }
+}
+
+// int32AsInventoryItemRequestRole is a convenience function that returns int32 wrapped in InventoryItemRequestRole
+func Int32AsInventoryItemRequestRole(v *int32) InventoryItemRequestRole {
+ return InventoryItemRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *InventoryItemRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefInventoryItemRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefInventoryItemRoleRequest)
+ if err == nil {
+ jsonBriefInventoryItemRoleRequest, _ := json.Marshal(dst.BriefInventoryItemRoleRequest)
+ if string(jsonBriefInventoryItemRoleRequest) == "{}" { // empty struct
+ dst.BriefInventoryItemRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefInventoryItemRoleRequest); err != nil {
+ dst.BriefInventoryItemRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefInventoryItemRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefInventoryItemRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(InventoryItemRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(InventoryItemRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src InventoryItemRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefInventoryItemRoleRequest != nil {
+ return json.Marshal(&src.BriefInventoryItemRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *InventoryItemRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefInventoryItemRoleRequest != nil {
+ return obj.BriefInventoryItemRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableInventoryItemRequestRole struct {
+ value *InventoryItemRequestRole
+ isSet bool
+}
+
+func (v NullableInventoryItemRequestRole) Get() *InventoryItemRequestRole {
+ return v.value
+}
+
+func (v *NullableInventoryItemRequestRole) Set(val *InventoryItemRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableInventoryItemRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableInventoryItemRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableInventoryItemRequestRole(val *InventoryItemRequestRole) *NullableInventoryItemRequestRole {
+ return &NullableInventoryItemRequestRole{value: val, isSet: true}
+}
+
+func (v NullableInventoryItemRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableInventoryItemRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go
index 1078bdc97..5eb3c259f 100644
--- a/model_inventory_item_role.go
+++ b/model_inventory_item_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the InventoryItemRole type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &InventoryItemRole{}
// InventoryItemRole Adds support for custom fields and tags.
type InventoryItemRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *InventoryItemRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *InventoryItemRole) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *InventoryItemRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *InventoryItemRole) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *InventoryItemRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *InventoryItemRole) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *InventoryItemRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *InventoryItemRole) GetSlug() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *InventoryItemRole) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *InventoryItemRole) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -378,6 +373,7 @@ func (o *InventoryItemRole) HasCreated() bool {
func (o *InventoryItemRole) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *InventoryItemRole) SetCreatedNil() {
o.Created.Set(nil)
@@ -420,6 +416,7 @@ func (o *InventoryItemRole) HasLastUpdated() bool {
func (o *InventoryItemRole) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *InventoryItemRole) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -463,7 +460,7 @@ func (o *InventoryItemRole) SetInventoryitemCount(v int64) {
}
func (o InventoryItemRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -523,32 +520,31 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -619,5 +615,3 @@ func (v *NullableInventoryItemRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go
index 4a6899170..c17650b64 100644
--- a/model_inventory_item_role_request.go
+++ b/model_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &InventoryItemRoleRequest{}
// InventoryItemRoleRequest Adds support for custom fields and tags.
type InventoryItemRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *InventoryItemRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *InventoryItemRoleRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *InventoryItemRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *InventoryItemRoleRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -229,7 +227,7 @@ func (o *InventoryItemRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o InventoryItemRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *InventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableInventoryItemRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_status.go b/model_inventory_item_status.go
index a75df6da6..76a88a0e8 100644
--- a/model_inventory_item_status.go
+++ b/model_inventory_item_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &InventoryItemStatus{}
// InventoryItemStatus struct for InventoryItemStatus
type InventoryItemStatus struct {
- Value *InventoryItemStatusValue `json:"value,omitempty"`
- Label *InventoryItemStatusLabel `json:"label,omitempty"`
+ Value *InventoryItemStatusValue `json:"value,omitempty"`
+ Label *InventoryItemStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *InventoryItemStatus) SetLabel(v InventoryItemStatusLabel) {
}
func (o InventoryItemStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableInventoryItemStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_status_label.go b/model_inventory_item_status_label.go
index 7b42b5b2a..e650fff4f 100644
--- a/model_inventory_item_status_label.go
+++ b/model_inventory_item_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type InventoryItemStatusLabel string
// List of InventoryItem_status_label
const (
- INVENTORYITEMSTATUSLABEL_OFFLINE InventoryItemStatusLabel = "Offline"
- INVENTORYITEMSTATUSLABEL_ACTIVE InventoryItemStatusLabel = "Active"
- INVENTORYITEMSTATUSLABEL_PLANNED InventoryItemStatusLabel = "Planned"
- INVENTORYITEMSTATUSLABEL_STAGED InventoryItemStatusLabel = "Staged"
- INVENTORYITEMSTATUSLABEL_FAILED InventoryItemStatusLabel = "Failed"
+ INVENTORYITEMSTATUSLABEL_OFFLINE InventoryItemStatusLabel = "Offline"
+ INVENTORYITEMSTATUSLABEL_ACTIVE InventoryItemStatusLabel = "Active"
+ INVENTORYITEMSTATUSLABEL_PLANNED InventoryItemStatusLabel = "Planned"
+ INVENTORYITEMSTATUSLABEL_STAGED InventoryItemStatusLabel = "Staged"
+ INVENTORYITEMSTATUSLABEL_FAILED InventoryItemStatusLabel = "Failed"
INVENTORYITEMSTATUSLABEL_DECOMMISSIONING InventoryItemStatusLabel = "Decommissioning"
)
@@ -116,4 +116,3 @@ func (v *NullableInventoryItemStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_inventory_item_status_value.go b/model_inventory_item_status_value.go
index 8cbea633d..fa04a77b1 100644
--- a/model_inventory_item_status_value.go
+++ b/model_inventory_item_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type InventoryItemStatusValue string
// List of InventoryItem_status_value
const (
- INVENTORYITEMSTATUSVALUE_OFFLINE InventoryItemStatusValue = "offline"
- INVENTORYITEMSTATUSVALUE_ACTIVE InventoryItemStatusValue = "active"
- INVENTORYITEMSTATUSVALUE_PLANNED InventoryItemStatusValue = "planned"
- INVENTORYITEMSTATUSVALUE_STAGED InventoryItemStatusValue = "staged"
- INVENTORYITEMSTATUSVALUE_FAILED InventoryItemStatusValue = "failed"
+ INVENTORYITEMSTATUSVALUE_OFFLINE InventoryItemStatusValue = "offline"
+ INVENTORYITEMSTATUSVALUE_ACTIVE InventoryItemStatusValue = "active"
+ INVENTORYITEMSTATUSVALUE_PLANNED InventoryItemStatusValue = "planned"
+ INVENTORYITEMSTATUSVALUE_STAGED InventoryItemStatusValue = "staged"
+ INVENTORYITEMSTATUSVALUE_FAILED InventoryItemStatusValue = "failed"
INVENTORYITEMSTATUSVALUE_DECOMMISSIONING InventoryItemStatusValue = "decommissioning"
)
@@ -116,4 +116,3 @@ func (v *NullableInventoryItemStatusValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go
index 7ee3ee0e3..0e617fd95 100644
--- a/model_inventory_item_template.go
+++ b/model_inventory_item_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the InventoryItemTemplate type satisfies the MappedNullable interface at compile time
@@ -21,26 +21,26 @@ var _ MappedNullable = &InventoryItemTemplate{}
// InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type InventoryItemTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType BriefDeviceType `json:"device_type"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableBriefInventoryItemRole `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableBriefInventoryItemRole `json:"role,omitempty"`
+ Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Component interface{} `json:"component,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Depth int32 `json:"_depth"`
+ PartId *string `json:"part_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Component interface{} `json:"component,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -93,7 +93,6 @@ func (o *InventoryItemTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *InventoryItemTemplate) GetUrl() string {
if o == nil {
@@ -118,7 +117,6 @@ func (o *InventoryItemTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *InventoryItemTemplate) GetDisplay() string {
if o == nil {
@@ -143,7 +141,6 @@ func (o *InventoryItemTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value
func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType {
if o == nil {
@@ -168,7 +165,6 @@ func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InventoryItemTemplate) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -201,6 +197,7 @@ func (o *InventoryItemTemplate) HasParent() bool {
func (o *InventoryItemTemplate) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *InventoryItemTemplate) SetParentNil() {
o.Parent.Set(nil)
@@ -235,7 +232,6 @@ func (o *InventoryItemTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InventoryItemTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -300,6 +296,7 @@ func (o *InventoryItemTemplate) HasRole() bool {
func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *InventoryItemTemplate) SetRoleNil() {
o.Role.Set(nil)
@@ -342,6 +339,7 @@ func (o *InventoryItemTemplate) HasManufacturer() bool {
func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *InventoryItemTemplate) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -448,6 +446,7 @@ func (o *InventoryItemTemplate) HasComponentType() bool {
func (o *InventoryItemTemplate) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *InventoryItemTemplate) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -490,6 +489,7 @@ func (o *InventoryItemTemplate) HasComponentId() bool {
func (o *InventoryItemTemplate) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *InventoryItemTemplate) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -565,6 +565,7 @@ func (o *InventoryItemTemplate) HasCreated() bool {
func (o *InventoryItemTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *InventoryItemTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -607,6 +608,7 @@ func (o *InventoryItemTemplate) HasLastUpdated() bool {
func (o *InventoryItemTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *InventoryItemTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -641,9 +643,8 @@ func (o *InventoryItemTemplate) SetDepth(v int32) {
o.Depth = v
}
-
func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -714,32 +715,31 @@ func (o *InventoryItemTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -814,5 +814,3 @@ func (v *NullableInventoryItemTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go
index 7e2ca24dd..c2eac9cf7 100644
--- a/model_inventory_item_template_request.go
+++ b/model_inventory_item_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,19 +20,19 @@ var _ MappedNullable = &InventoryItemTemplateRequest{}
// InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type InventoryItemTemplateRequest struct {
- DeviceType BriefDeviceTypeRequest `json:"device_type"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ DeviceType DeviceBayTemplateRequestDeviceType `json:"device_type"`
+ Parent NullableInt32 `json:"parent,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRequestRole `json:"role,omitempty"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
+ PartId *string `json:"part_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest {
+func NewInventoryItemTemplateRequest(deviceType DeviceBayTemplateRequestDeviceType, name string) *InventoryItemTemplateRequest {
this := InventoryItemTemplateRequest{}
this.DeviceType = deviceType
this.Name = name
@@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest
}
// GetDeviceType returns the DeviceType field value
-func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
@@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -77,11 +77,10 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeReques
}
// SetDeviceType sets field value
-func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InventoryItemTemplateRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -114,6 +113,7 @@ func (o *InventoryItemTemplateRequest) HasParent() bool {
func (o *InventoryItemTemplateRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *InventoryItemTemplateRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -148,7 +148,6 @@ func (o *InventoryItemTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *InventoryItemTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -182,9 +181,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest {
+func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefInventoryItemRoleRequest
+ var ret InventoryItemRequestRole
return ret
}
return *o.Role.Get()
@@ -193,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -209,10 +208,11 @@ func (o *InventoryItemTemplateRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field.
-func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRequestRole and assigns it to the Role field.
+func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *InventoryItemTemplateRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *InventoryItemTemplateRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerReques
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -251,10 +251,11 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *InventoryItemTemplateRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *InventoryItemTemplateRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -361,6 +362,7 @@ func (o *InventoryItemTemplateRequest) HasComponentType() bool {
func (o *InventoryItemTemplateRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *InventoryItemTemplateRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -403,6 +405,7 @@ func (o *InventoryItemTemplateRequest) HasComponentId() bool {
func (o *InventoryItemTemplateRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *InventoryItemTemplateRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -414,7 +417,7 @@ func (o *InventoryItemTemplateRequest) UnsetComponentId() {
}
func (o InventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -468,32 +471,31 @@ func (o *InventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -561,5 +563,3 @@ func (v *NullableInventoryItemTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_address.go b/model_ip_address.go
index b8fbbc6f5..78e39c8a4 100644
--- a/model_ip_address.go
+++ b/model_ip_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IPAddress type satisfies the MappedNullable interface at compile time
@@ -21,29 +21,29 @@ var _ MappedNullable = &IPAddress{}
// IPAddress Adds support for custom fields and tags.
type IPAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- Address string `json:"address"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Status *IPAddressStatus `json:"status,omitempty"`
- Role *IPAddressRole `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- AssignedObject interface{} `json:"assigned_object,omitempty"`
- NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"`
- NatOutside []NestedIPAddress `json:"nat_outside"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Family AggregateFamily `json:"family"`
+ Address string `json:"address"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Status *IPAddressStatus `json:"status,omitempty"`
+ Role *IPAddressRole `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ AssignedObject interface{} `json:"assigned_object,omitempty"`
+ NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"`
+ NatOutside []NestedIPAddress `json:"nat_outside"`
// Hostname or FQDN (not case-sensitive)
- DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -96,7 +96,6 @@ func (o *IPAddress) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IPAddress) GetUrl() string {
if o == nil {
@@ -121,7 +120,6 @@ func (o *IPAddress) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IPAddress) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -178,7 +176,6 @@ func (o *IPAddress) SetDisplay(v string) {
o.Display = v
}
-
// GetFamily returns the Family field value
func (o *IPAddress) GetFamily() AggregateFamily {
if o == nil {
@@ -203,7 +200,6 @@ func (o *IPAddress) SetFamily(v AggregateFamily) {
o.Family = v
}
-
// GetAddress returns the Address field value
func (o *IPAddress) GetAddress() string {
if o == nil {
@@ -228,7 +224,6 @@ func (o *IPAddress) SetAddress(v string) {
o.Address = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IPAddress) GetVrf() BriefVRF {
if o == nil || IsNil(o.Vrf.Get()) {
@@ -261,6 +256,7 @@ func (o *IPAddress) HasVrf() bool {
func (o *IPAddress) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *IPAddress) SetVrfNil() {
o.Vrf.Set(nil)
@@ -303,6 +299,7 @@ func (o *IPAddress) HasTenant() bool {
func (o *IPAddress) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *IPAddress) SetTenantNil() {
o.Tenant.Set(nil)
@@ -409,6 +406,7 @@ func (o *IPAddress) HasAssignedObjectType() bool {
func (o *IPAddress) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *IPAddress) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -451,6 +449,7 @@ func (o *IPAddress) HasAssignedObjectId() bool {
func (o *IPAddress) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *IPAddress) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -526,6 +525,7 @@ func (o *IPAddress) HasNatInside() bool {
func (o *IPAddress) SetNatInside(v NestedIPAddress) {
o.NatInside.Set(&v)
}
+
// SetNatInsideNil sets the value for NatInside to be an explicit nil
func (o *IPAddress) SetNatInsideNil() {
o.NatInside.Set(nil)
@@ -560,7 +560,6 @@ func (o *IPAddress) SetNatOutside(v []NestedIPAddress) {
o.NatOutside = v
}
-
// GetDnsName returns the DnsName field value if set, zero value otherwise.
func (o *IPAddress) GetDnsName() string {
if o == nil || IsNil(o.DnsName) {
@@ -753,6 +752,7 @@ func (o *IPAddress) HasCreated() bool {
func (o *IPAddress) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IPAddress) SetCreatedNil() {
o.Created.Set(nil)
@@ -795,6 +795,7 @@ func (o *IPAddress) HasLastUpdated() bool {
func (o *IPAddress) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IPAddress) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -806,7 +807,7 @@ func (o *IPAddress) UnsetLastUpdated() {
}
func (o IPAddress) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -892,32 +893,31 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -997,5 +997,3 @@ func (v *NullableIPAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_address_request.go b/model_ip_address_request.go
index 395f8a5e9..378048a48 100644
--- a/model_ip_address_request.go
+++ b/model_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &IPAddressRequest{}
// IPAddressRequest Adds support for custom fields and tags.
type IPAddressRequest struct {
- Address string `json:"address"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *IPAddressStatusValue `json:"status,omitempty"`
- Role *IPAddressRoleValue `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"`
+ Address string `json:"address"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *IPAddressStatusValue `json:"status,omitempty"`
+ Role *IPAddressRoleValue `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"`
// Hostname or FQDN (not case-sensitive)
- DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,11 +81,10 @@ func (o *IPAddressRequest) SetAddress(v string) {
o.Address = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPAddressRequest) GetVrf() BriefVRFRequest {
+func (o *IPAddressRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -94,7 +93,7 @@ func (o *IPAddressRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *IPAddressRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -110,10 +109,11 @@ func (o *IPAddressRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *IPAddressRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *IPAddressRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -125,9 +125,9 @@ func (o *IPAddressRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPAddressRequest) GetTenant() BriefTenantRequest {
+func (o *IPAddressRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -136,7 +136,7 @@ func (o *IPAddressRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *IPAddressRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -152,10 +152,11 @@ func (o *IPAddressRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *IPAddressRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *IPAddressRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -262,6 +263,7 @@ func (o *IPAddressRequest) HasAssignedObjectType() bool {
func (o *IPAddressRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *IPAddressRequest) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -304,6 +306,7 @@ func (o *IPAddressRequest) HasAssignedObjectId() bool {
func (o *IPAddressRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *IPAddressRequest) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -346,6 +349,7 @@ func (o *IPAddressRequest) HasNatInside() bool {
func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) {
o.NatInside.Set(&v)
}
+
// SetNatInsideNil sets the value for NatInside to be an explicit nil
func (o *IPAddressRequest) SetNatInsideNil() {
o.NatInside.Set(nil)
@@ -517,7 +521,7 @@ func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IPAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -581,32 +585,31 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -677,5 +680,3 @@ func (v *NullableIPAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_address_request_vrf.go b/model_ip_address_request_vrf.go
new file mode 100644
index 000000000..de3b71790
--- /dev/null
+++ b/model_ip_address_request_vrf.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// IPAddressRequestVrf - struct for IPAddressRequestVrf
+type IPAddressRequestVrf struct {
+ BriefVRFRequest *BriefVRFRequest
+ Int32 *int32
+}
+
+// BriefVRFRequestAsIPAddressRequestVrf is a convenience function that returns BriefVRFRequest wrapped in IPAddressRequestVrf
+func BriefVRFRequestAsIPAddressRequestVrf(v *BriefVRFRequest) IPAddressRequestVrf {
+ return IPAddressRequestVrf{
+ BriefVRFRequest: v,
+ }
+}
+
+// int32AsIPAddressRequestVrf is a convenience function that returns int32 wrapped in IPAddressRequestVrf
+func Int32AsIPAddressRequestVrf(v *int32) IPAddressRequestVrf {
+ return IPAddressRequestVrf{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *IPAddressRequestVrf) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefVRFRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVRFRequest)
+ if err == nil {
+ jsonBriefVRFRequest, _ := json.Marshal(dst.BriefVRFRequest)
+ if string(jsonBriefVRFRequest) == "{}" { // empty struct
+ dst.BriefVRFRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVRFRequest); err != nil {
+ dst.BriefVRFRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVRFRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVRFRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(IPAddressRequestVrf)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(IPAddressRequestVrf)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src IPAddressRequestVrf) MarshalJSON() ([]byte, error) {
+ if src.BriefVRFRequest != nil {
+ return json.Marshal(&src.BriefVRFRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *IPAddressRequestVrf) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVRFRequest != nil {
+ return obj.BriefVRFRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableIPAddressRequestVrf struct {
+ value *IPAddressRequestVrf
+ isSet bool
+}
+
+func (v NullableIPAddressRequestVrf) Get() *IPAddressRequestVrf {
+ return v.value
+}
+
+func (v *NullableIPAddressRequestVrf) Set(val *IPAddressRequestVrf) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPAddressRequestVrf) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPAddressRequestVrf) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPAddressRequestVrf(val *IPAddressRequestVrf) *NullableIPAddressRequestVrf {
+ return &NullableIPAddressRequestVrf{value: val, isSet: true}
+}
+
+func (v NullableIPAddressRequestVrf) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPAddressRequestVrf) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_address_role.go b/model_ip_address_role.go
index 89ece55af..f7c3be804 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IPAddressRole{}
// IPAddressRole struct for IPAddressRole
type IPAddressRole struct {
- Value *IPAddressRoleValue `json:"value,omitempty"`
- Label *IPAddressRoleLabel `json:"label,omitempty"`
+ Value *IPAddressRoleValue `json:"value,omitempty"`
+ Label *IPAddressRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) {
}
func (o IPAddressRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go
index 382a2e5b4..550c76792 100644
--- a/model_ip_address_role_label.go
+++ b/model_ip_address_role_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ type IPAddressRoleLabel string
// List of IPAddress_role_label
const (
- IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback"
+ 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"
+ 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
@@ -120,4 +120,3 @@ 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
index 38add149f..6d08c8b10 100644
--- a/model_ip_address_role_value.go
+++ b/model_ip_address_role_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ type IPAddressRoleValue string
// List of IPAddress_role_value
const (
- IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback"
+ 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 = ""
+ 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
@@ -122,4 +122,3 @@ 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 49a8001c0..823f07e48 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IPAddressStatus{}
// IPAddressStatus struct for IPAddressStatus
type IPAddressStatus struct {
- Value *IPAddressStatusValue `json:"value,omitempty"`
- Label *IPAddressStatusLabel `json:"label,omitempty"`
+ Value *IPAddressStatusValue `json:"value,omitempty"`
+ Label *IPAddressStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) {
}
func (o IPAddressStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go
index c8ca56efe..65d36464f 100644
--- a/model_ip_address_status_label.go
+++ b/model_ip_address_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type IPAddressStatusLabel string
// List of IPAddress_status_label
const (
- IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active"
- IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved"
+ IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active"
+ IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved"
IPADDRESSSTATUSLABEL_DEPRECATED IPAddressStatusLabel = "Deprecated"
- IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP"
- IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC"
+ IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP"
+ IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC"
)
// All allowed values of IPAddressStatusLabel enum
@@ -114,4 +114,3 @@ 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
index 87f2469c4..019a4fc1a 100644
--- a/model_ip_address_status_value.go
+++ b/model_ip_address_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type IPAddressStatusValue string
// List of IPAddress_status_value
const (
- IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active"
- IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved"
+ IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active"
+ IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved"
IPADDRESSSTATUSVALUE_DEPRECATED IPAddressStatusValue = "deprecated"
- IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp"
- IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac"
+ IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp"
+ IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac"
)
// All allowed values of IPAddressStatusValue enum
@@ -114,4 +114,3 @@ 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 aa06a1121..08fb431e1 100644
--- a/model_ip_range.go
+++ b/model_ip_range.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IPRange type satisfies the MappedNullable interface at compile time
@@ -21,26 +21,28 @@ var _ MappedNullable = &IPRange{}
// IPRange Adds support for custom fields and tags.
type IPRange struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- StartAddress string `json:"start_address"`
- EndAddress string `json:"end_address"`
- Size int32 `json:"size"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Status *IPRangeStatus `json:"status,omitempty"`
- Role NullableBriefRole `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Family AggregateFamily `json:"family"`
+ StartAddress string `json:"start_address"`
+ EndAddress string `json:"end_address"`
+ Size int32 `json:"size"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Status *IPRangeStatus `json:"status,omitempty"`
+ Role NullableBriefRole `json:"role,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- // Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ // Prevent the creation of IP addresses within this range
+ MarkPopulated *bool `json:"mark_populated,omitempty"`
+ // Report space as 100% utilized
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -94,7 +96,6 @@ func (o *IPRange) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IPRange) GetUrl() string {
if o == nil {
@@ -119,7 +120,6 @@ func (o *IPRange) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IPRange) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -176,7 +176,6 @@ func (o *IPRange) SetDisplay(v string) {
o.Display = v
}
-
// GetFamily returns the Family field value
func (o *IPRange) GetFamily() AggregateFamily {
if o == nil {
@@ -201,7 +200,6 @@ func (o *IPRange) SetFamily(v AggregateFamily) {
o.Family = v
}
-
// GetStartAddress returns the StartAddress field value
func (o *IPRange) GetStartAddress() string {
if o == nil {
@@ -226,7 +224,6 @@ func (o *IPRange) SetStartAddress(v string) {
o.StartAddress = v
}
-
// GetEndAddress returns the EndAddress field value
func (o *IPRange) GetEndAddress() string {
if o == nil {
@@ -251,7 +248,6 @@ func (o *IPRange) SetEndAddress(v string) {
o.EndAddress = v
}
-
// GetSize returns the Size field value
func (o *IPRange) GetSize() int32 {
if o == nil {
@@ -276,7 +272,6 @@ func (o *IPRange) SetSize(v int32) {
o.Size = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IPRange) GetVrf() BriefVRF {
if o == nil || IsNil(o.Vrf.Get()) {
@@ -309,6 +304,7 @@ func (o *IPRange) HasVrf() bool {
func (o *IPRange) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *IPRange) SetVrfNil() {
o.Vrf.Set(nil)
@@ -351,6 +347,7 @@ func (o *IPRange) HasTenant() bool {
func (o *IPRange) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *IPRange) SetTenantNil() {
o.Tenant.Set(nil)
@@ -425,6 +422,7 @@ func (o *IPRange) HasRole() bool {
func (o *IPRange) SetRole(v BriefRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *IPRange) SetRoleNil() {
o.Role.Set(nil)
@@ -595,6 +593,7 @@ func (o *IPRange) HasCreated() bool {
func (o *IPRange) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IPRange) SetCreatedNil() {
o.Created.Set(nil)
@@ -637,6 +636,7 @@ func (o *IPRange) HasLastUpdated() bool {
func (o *IPRange) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IPRange) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -647,6 +647,38 @@ func (o *IPRange) UnsetLastUpdated() {
o.LastUpdated.Unset()
}
+// GetMarkPopulated returns the MarkPopulated field value if set, zero value otherwise.
+func (o *IPRange) GetMarkPopulated() bool {
+ if o == nil || IsNil(o.MarkPopulated) {
+ var ret bool
+ return ret
+ }
+ return *o.MarkPopulated
+}
+
+// GetMarkPopulatedOk returns a tuple with the MarkPopulated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IPRange) GetMarkPopulatedOk() (*bool, bool) {
+ if o == nil || IsNil(o.MarkPopulated) {
+ return nil, false
+ }
+ return o.MarkPopulated, true
+}
+
+// HasMarkPopulated returns a boolean if a field has been set.
+func (o *IPRange) HasMarkPopulated() bool {
+ if o != nil && !IsNil(o.MarkPopulated) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarkPopulated gets a reference to the given bool and assigns it to the MarkPopulated field.
+func (o *IPRange) SetMarkPopulated(v bool) {
+ o.MarkPopulated = &v
+}
+
// GetMarkUtilized returns the MarkUtilized field value if set, zero value otherwise.
func (o *IPRange) GetMarkUtilized() bool {
if o == nil || IsNil(o.MarkUtilized) {
@@ -680,7 +712,7 @@ func (o *IPRange) SetMarkUtilized(v bool) {
}
func (o IPRange) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -729,6 +761,9 @@ func (o IPRange) ToMap() (map[string]interface{}, error) {
if o.LastUpdated.IsSet() {
toSerialize["last_updated"] = o.LastUpdated.Get()
}
+ if !IsNil(o.MarkPopulated) {
+ toSerialize["mark_populated"] = o.MarkPopulated
+ }
if !IsNil(o.MarkUtilized) {
toSerialize["mark_utilized"] = o.MarkUtilized
}
@@ -756,32 +791,31 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -816,6 +850,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "custom_fields")
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
+ delete(additionalProperties, "mark_populated")
delete(additionalProperties, "mark_utilized")
o.AdditionalProperties = additionalProperties
}
@@ -858,5 +893,3 @@ func (v *NullableIPRange) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_range_request.go b/model_ip_range_request.go
index e2e0f865a..a163445f3 100644
--- a/model_ip_range_request.go
+++ b/model_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,20 @@ var _ MappedNullable = &IPRangeRequest{}
// IPRangeRequest Adds support for custom fields and tags.
type IPRangeRequest struct {
- StartAddress string `json:"start_address"`
- EndAddress string `json:"end_address"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *IPRangeStatusValue `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- // Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ StartAddress string `json:"start_address"`
+ EndAddress string `json:"end_address"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *IPRangeStatusValue `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `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"`
+ // Prevent the creation of IP addresses within this range
+ MarkPopulated *bool `json:"mark_populated,omitempty"`
+ // Report space as 100% utilized
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +82,6 @@ func (o *IPRangeRequest) SetStartAddress(v string) {
o.StartAddress = v
}
-
// GetEndAddress returns the EndAddress field value
func (o *IPRangeRequest) GetEndAddress() string {
if o == nil {
@@ -105,11 +106,10 @@ func (o *IPRangeRequest) SetEndAddress(v string) {
o.EndAddress = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPRangeRequest) GetVrf() BriefVRFRequest {
+func (o *IPRangeRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -118,7 +118,7 @@ func (o *IPRangeRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *IPRangeRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -134,10 +134,11 @@ func (o *IPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *IPRangeRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *IPRangeRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -149,9 +150,9 @@ func (o *IPRangeRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPRangeRequest) GetTenant() BriefTenantRequest {
+func (o *IPRangeRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -160,7 +161,7 @@ func (o *IPRangeRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *IPRangeRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -176,10 +177,11 @@ func (o *IPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *IPRangeRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *IPRangeRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -223,9 +225,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPRangeRequest) GetRole() BriefRoleRequest {
+func (o *IPRangeRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -234,7 +236,7 @@ func (o *IPRangeRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *IPRangeRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -250,10 +252,11 @@ func (o *IPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *IPRangeRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *IPRangeRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *IPRangeRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -392,6 +395,38 @@ func (o *IPRangeRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetMarkPopulated returns the MarkPopulated field value if set, zero value otherwise.
+func (o *IPRangeRequest) GetMarkPopulated() bool {
+ if o == nil || IsNil(o.MarkPopulated) {
+ var ret bool
+ return ret
+ }
+ return *o.MarkPopulated
+}
+
+// GetMarkPopulatedOk returns a tuple with the MarkPopulated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IPRangeRequest) GetMarkPopulatedOk() (*bool, bool) {
+ if o == nil || IsNil(o.MarkPopulated) {
+ return nil, false
+ }
+ return o.MarkPopulated, true
+}
+
+// HasMarkPopulated returns a boolean if a field has been set.
+func (o *IPRangeRequest) HasMarkPopulated() bool {
+ if o != nil && !IsNil(o.MarkPopulated) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarkPopulated gets a reference to the given bool and assigns it to the MarkPopulated field.
+func (o *IPRangeRequest) SetMarkPopulated(v bool) {
+ o.MarkPopulated = &v
+}
+
// GetMarkUtilized returns the MarkUtilized field value if set, zero value otherwise.
func (o *IPRangeRequest) GetMarkUtilized() bool {
if o == nil || IsNil(o.MarkUtilized) {
@@ -425,7 +460,7 @@ func (o *IPRangeRequest) SetMarkUtilized(v bool) {
}
func (o IPRangeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -460,6 +495,9 @@ func (o IPRangeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.MarkPopulated) {
+ toSerialize["mark_populated"] = o.MarkPopulated
+ }
if !IsNil(o.MarkUtilized) {
toSerialize["mark_utilized"] = o.MarkUtilized
}
@@ -482,32 +520,31 @@ func (o *IPRangeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -534,6 +571,7 @@ func (o *IPRangeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "mark_populated")
delete(additionalProperties, "mark_utilized")
o.AdditionalProperties = additionalProperties
}
@@ -576,5 +614,3 @@ func (v *NullableIPRangeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_range_request_role.go b/model_ip_range_request_role.go
new file mode 100644
index 000000000..b5d2d50c6
--- /dev/null
+++ b/model_ip_range_request_role.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// IPRangeRequestRole - struct for IPRangeRequestRole
+type IPRangeRequestRole struct {
+ BriefRoleRequest *BriefRoleRequest
+ Int32 *int32
+}
+
+// BriefRoleRequestAsIPRangeRequestRole is a convenience function that returns BriefRoleRequest wrapped in IPRangeRequestRole
+func BriefRoleRequestAsIPRangeRequestRole(v *BriefRoleRequest) IPRangeRequestRole {
+ return IPRangeRequestRole{
+ BriefRoleRequest: v,
+ }
+}
+
+// int32AsIPRangeRequestRole is a convenience function that returns int32 wrapped in IPRangeRequestRole
+func Int32AsIPRangeRequestRole(v *int32) IPRangeRequestRole {
+ return IPRangeRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *IPRangeRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRoleRequest)
+ if err == nil {
+ jsonBriefRoleRequest, _ := json.Marshal(dst.BriefRoleRequest)
+ if string(jsonBriefRoleRequest) == "{}" { // empty struct
+ dst.BriefRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRoleRequest); err != nil {
+ dst.BriefRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(IPRangeRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(IPRangeRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src IPRangeRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefRoleRequest != nil {
+ return json.Marshal(&src.BriefRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *IPRangeRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRoleRequest != nil {
+ return obj.BriefRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableIPRangeRequestRole struct {
+ value *IPRangeRequestRole
+ isSet bool
+}
+
+func (v NullableIPRangeRequestRole) Get() *IPRangeRequestRole {
+ return v.value
+}
+
+func (v *NullableIPRangeRequestRole) Set(val *IPRangeRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPRangeRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPRangeRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPRangeRequestRole(val *IPRangeRequestRole) *NullableIPRangeRequestRole {
+ return &NullableIPRangeRequestRole{value: val, isSet: true}
+}
+
+func (v NullableIPRangeRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPRangeRequestRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_range_status.go b/model_ip_range_status.go
index a1cdf4ecb..d8dafa49c 100644
--- a/model_ip_range_status.go
+++ b/model_ip_range_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IPRangeStatus{}
// IPRangeStatus struct for IPRangeStatus
type IPRangeStatus struct {
- Value *IPRangeStatusValue `json:"value,omitempty"`
- Label *IPRangeStatusLabel `json:"label,omitempty"`
+ Value *IPRangeStatusValue `json:"value,omitempty"`
+ Label *IPRangeStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IPRangeStatus) SetLabel(v IPRangeStatusLabel) {
}
func (o IPRangeStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIPRangeStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go
index b8fdb80f8..e0ac8abc9 100644
--- a/model_ip_range_status_label.go
+++ b/model_ip_range_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type IPRangeStatusLabel string
// List of IPRange_status_label
const (
- IPRANGESTATUSLABEL_ACTIVE IPRangeStatusLabel = "Active"
- IPRANGESTATUSLABEL_RESERVED IPRangeStatusLabel = "Reserved"
+ IPRANGESTATUSLABEL_ACTIVE IPRangeStatusLabel = "Active"
+ IPRANGESTATUSLABEL_RESERVED IPRangeStatusLabel = "Reserved"
IPRANGESTATUSLABEL_DEPRECATED IPRangeStatusLabel = "Deprecated"
)
@@ -110,4 +110,3 @@ func (v *NullableIPRangeStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go
index 04cc4b794..c9bfe6c8a 100644
--- a/model_ip_range_status_value.go
+++ b/model_ip_range_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type IPRangeStatusValue string
// List of IPRange_status_value
const (
- IPRANGESTATUSVALUE_ACTIVE IPRangeStatusValue = "active"
- IPRANGESTATUSVALUE_RESERVED IPRangeStatusValue = "reserved"
+ IPRANGESTATUSVALUE_ACTIVE IPRangeStatusValue = "active"
+ IPRANGESTATUSVALUE_RESERVED IPRangeStatusValue = "reserved"
IPRANGESTATUSVALUE_DEPRECATED IPRangeStatusValue = "deprecated"
)
@@ -110,4 +110,3 @@ func (v *NullableIPRangeStatusValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go
index c66e01473..f40d8edba 100644
--- a/model_ip_sec_policy.go
+++ b/model_ip_sec_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IPSecPolicy type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &IPSecPolicy{}
// IPSecPolicy Adds support for custom fields and tags.
type IPSecPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Proposals []IPSecProposal `json:"proposals,omitempty"`
- PfsGroup *IKEProposalGroup `json:"pfs_group,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []IPSecProposal `json:"proposals,omitempty"`
+ PfsGroup *IKEProposalGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *IPSecPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IPSecPolicy) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *IPSecPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IPSecPolicy) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *IPSecPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *IPSecPolicy) GetName() string {
if o == nil {
@@ -191,7 +188,6 @@ 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) {
@@ -416,6 +412,7 @@ func (o *IPSecPolicy) HasCreated() bool {
func (o *IPSecPolicy) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IPSecPolicy) SetCreatedNil() {
o.Created.Set(nil)
@@ -458,6 +455,7 @@ func (o *IPSecPolicy) HasLastUpdated() bool {
func (o *IPSecPolicy) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IPSecPolicy) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -469,7 +467,7 @@ func (o *IPSecPolicy) UnsetLastUpdated() {
}
func (o IPSecPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -530,32 +528,31 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -626,5 +623,3 @@ func (v *NullableIPSecPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go
index 36ea8ca80..9cf215150 100644
--- a/model_ip_sec_policy_request.go
+++ b/model_ip_sec_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &IPSecPolicyRequest{}
// IPSecPolicyRequest Adds support for custom fields and tags.
type IPSecPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PfsGroup *IKEProposalGroupValue `json:"pfs_group,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup *IKEProposalGroupValue `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ 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) {
@@ -268,7 +267,7 @@ func (o *IPSecPolicyRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -314,32 +313,31 @@ func (o *IPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -404,5 +402,3 @@ func (v *NullableIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go
index 0773e45fd..faabeb00c 100644
--- a/model_ip_sec_profile.go
+++ b/model_ip_sec_profile.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IPSecProfile type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &IPSecProfile{}
// IPSecProfile Adds support for custom fields and tags.
type IPSecProfile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Mode IPSecProfileMode `json:"mode"`
- IkePolicy BriefIKEPolicy `json:"ike_policy"`
- IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Mode IPSecProfileMode `json:"mode"`
+ IkePolicy BriefIKEPolicy `json:"ike_policy"`
+ IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *IPSecProfile) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IPSecProfile) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *IPSecProfile) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IPSecProfile) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +168,6 @@ func (o *IPSecProfile) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *IPSecProfile) GetName() string {
if o == nil {
@@ -195,7 +192,6 @@ 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) {
@@ -252,7 +248,6 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) {
o.Mode = v
}
-
// GetIkePolicy returns the IkePolicy field value
func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy {
if o == nil {
@@ -277,7 +272,6 @@ func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) {
o.IkePolicy = v
}
-
// GetIpsecPolicy returns the IpsecPolicy field value
func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy {
if o == nil {
@@ -302,7 +296,6 @@ func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) {
o.IpsecPolicy = v
}
-
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *IPSecProfile) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -431,6 +424,7 @@ func (o *IPSecProfile) HasCreated() bool {
func (o *IPSecProfile) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IPSecProfile) SetCreatedNil() {
o.Created.Set(nil)
@@ -473,6 +467,7 @@ func (o *IPSecProfile) HasLastUpdated() bool {
func (o *IPSecProfile) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IPSecProfile) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -484,7 +479,7 @@ func (o *IPSecProfile) UnsetLastUpdated() {
}
func (o IPSecProfile) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -545,32 +540,31 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -642,5 +636,3 @@ func (v *NullableIPSecProfile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go
index 486cb2a0e..df38abc91 100644
--- a/model_ip_sec_profile_mode.go
+++ b/model_ip_sec_profile_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &IPSecProfileMode{}
// IPSecProfileMode struct for IPSecProfileMode
type IPSecProfileMode struct {
- Value *IPSecProfileModeValue `json:"value,omitempty"`
- Label *IPSecProfileModeLabel `json:"label,omitempty"`
+ Value *IPSecProfileModeValue `json:"value,omitempty"`
+ Label *IPSecProfileModeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *IPSecProfileMode) SetLabel(v IPSecProfileModeLabel) {
}
func (o IPSecProfileMode) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableIPSecProfileMode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go
index 5cf25e32d..0bd24b4da 100644
--- a/model_ip_sec_profile_mode_label.go
+++ b/model_ip_sec_profile_mode_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type IPSecProfileModeLabel string
// List of IPSecProfile_mode_label
const (
IPSECPROFILEMODELABEL_ESP IPSecProfileModeLabel = "ESP"
- IPSECPROFILEMODELABEL_AH IPSecProfileModeLabel = "AH"
+ IPSECPROFILEMODELABEL_AH IPSecProfileModeLabel = "AH"
)
// All allowed values of IPSecProfileModeLabel enum
@@ -108,4 +108,3 @@ func (v *NullableIPSecProfileModeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go
index 5f994aa6c..a0752dae6 100644
--- a/model_ip_sec_profile_mode_value.go
+++ b/model_ip_sec_profile_mode_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type IPSecProfileModeValue string
// List of IPSecProfile_mode_value
const (
IPSECPROFILEMODEVALUE_ESP IPSecProfileModeValue = "esp"
- IPSECPROFILEMODEVALUE_AH IPSecProfileModeValue = "ah"
+ IPSECPROFILEMODEVALUE_AH IPSecProfileModeValue = "ah"
)
// All allowed values of IPSecProfileModeValue enum
@@ -108,4 +108,3 @@ func (v *NullableIPSecProfileModeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go
index 629859db6..18ad6b7e1 100644
--- a/model_ip_sec_profile_request.go
+++ b/model_ip_sec_profile_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{}
// IPSecProfileRequest Adds support for custom fields and tags.
type IPSecProfileRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Mode IPSecProfileModeValue `json:"mode"`
- IkePolicy BriefIKEPolicyRequest `json:"ike_policy"`
- IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Mode IPSecProfileModeValue `json:"mode"`
+ IkePolicy IPSecProfileRequestIkePolicy `json:"ike_policy"`
+ IpsecPolicy IPSecProfileRequestIpsecPolicy `json:"ipsec_policy"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest {
+func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IPSecProfileRequestIkePolicy, ipsecPolicy IPSecProfileRequestIpsecPolicy) *IPSecProfileRequest {
this := IPSecProfileRequest{}
this.Name = name
this.Mode = mode
@@ -78,7 +78,6 @@ 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) {
@@ -135,11 +134,10 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
o.Mode = v
}
-
// GetIkePolicy returns the IkePolicy field value
-func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest {
+func (o *IPSecProfileRequest) GetIkePolicy() IPSecProfileRequestIkePolicy {
if o == nil {
- var ret BriefIKEPolicyRequest
+ var ret IPSecProfileRequestIkePolicy
return ret
}
@@ -148,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest {
// GetIkePolicyOk returns a tuple with the IkePolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) {
+func (o *IPSecProfileRequest) GetIkePolicyOk() (*IPSecProfileRequestIkePolicy, bool) {
if o == nil {
return nil, false
}
@@ -156,15 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) {
}
// SetIkePolicy sets field value
-func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) {
+func (o *IPSecProfileRequest) SetIkePolicy(v IPSecProfileRequestIkePolicy) {
o.IkePolicy = v
}
-
// GetIpsecPolicy returns the IpsecPolicy field value
-func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest {
+func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecProfileRequestIpsecPolicy {
if o == nil {
- var ret BriefIPSecPolicyRequest
+ var ret IPSecProfileRequestIpsecPolicy
return ret
}
@@ -173,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest {
// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) {
+func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecProfileRequestIpsecPolicy, bool) {
if o == nil {
return nil, false
}
@@ -181,11 +178,10 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool
}
// SetIpsecPolicy sets field value
-func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) {
+func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecProfileRequestIpsecPolicy) {
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) {
@@ -283,7 +279,7 @@ func (o *IPSecProfileRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IPSecProfileRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -329,32 +325,31 @@ func (o *IPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -420,5 +415,3 @@ func (v *NullableIPSecProfileRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_profile_request_ike_policy.go b/model_ip_sec_profile_request_ike_policy.go
new file mode 100644
index 000000000..7477747ad
--- /dev/null
+++ b/model_ip_sec_profile_request_ike_policy.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// IPSecProfileRequestIkePolicy - struct for IPSecProfileRequestIkePolicy
+type IPSecProfileRequestIkePolicy struct {
+ BriefIKEPolicyRequest *BriefIKEPolicyRequest
+ Int32 *int32
+}
+
+// BriefIKEPolicyRequestAsIPSecProfileRequestIkePolicy is a convenience function that returns BriefIKEPolicyRequest wrapped in IPSecProfileRequestIkePolicy
+func BriefIKEPolicyRequestAsIPSecProfileRequestIkePolicy(v *BriefIKEPolicyRequest) IPSecProfileRequestIkePolicy {
+ return IPSecProfileRequestIkePolicy{
+ BriefIKEPolicyRequest: v,
+ }
+}
+
+// int32AsIPSecProfileRequestIkePolicy is a convenience function that returns int32 wrapped in IPSecProfileRequestIkePolicy
+func Int32AsIPSecProfileRequestIkePolicy(v *int32) IPSecProfileRequestIkePolicy {
+ return IPSecProfileRequestIkePolicy{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *IPSecProfileRequestIkePolicy) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefIKEPolicyRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefIKEPolicyRequest)
+ if err == nil {
+ jsonBriefIKEPolicyRequest, _ := json.Marshal(dst.BriefIKEPolicyRequest)
+ if string(jsonBriefIKEPolicyRequest) == "{}" { // empty struct
+ dst.BriefIKEPolicyRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefIKEPolicyRequest); err != nil {
+ dst.BriefIKEPolicyRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefIKEPolicyRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefIKEPolicyRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(IPSecProfileRequestIkePolicy)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(IPSecProfileRequestIkePolicy)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src IPSecProfileRequestIkePolicy) MarshalJSON() ([]byte, error) {
+ if src.BriefIKEPolicyRequest != nil {
+ return json.Marshal(&src.BriefIKEPolicyRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *IPSecProfileRequestIkePolicy) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefIKEPolicyRequest != nil {
+ return obj.BriefIKEPolicyRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableIPSecProfileRequestIkePolicy struct {
+ value *IPSecProfileRequestIkePolicy
+ isSet bool
+}
+
+func (v NullableIPSecProfileRequestIkePolicy) Get() *IPSecProfileRequestIkePolicy {
+ return v.value
+}
+
+func (v *NullableIPSecProfileRequestIkePolicy) Set(val *IPSecProfileRequestIkePolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileRequestIkePolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileRequestIkePolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileRequestIkePolicy(val *IPSecProfileRequestIkePolicy) *NullableIPSecProfileRequestIkePolicy {
+ return &NullableIPSecProfileRequestIkePolicy{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileRequestIkePolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileRequestIkePolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_profile_request_ipsec_policy.go b/model_ip_sec_profile_request_ipsec_policy.go
new file mode 100644
index 000000000..0e0806f38
--- /dev/null
+++ b/model_ip_sec_profile_request_ipsec_policy.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// IPSecProfileRequestIpsecPolicy - struct for IPSecProfileRequestIpsecPolicy
+type IPSecProfileRequestIpsecPolicy struct {
+ BriefIPSecPolicyRequest *BriefIPSecPolicyRequest
+ Int32 *int32
+}
+
+// BriefIPSecPolicyRequestAsIPSecProfileRequestIpsecPolicy is a convenience function that returns BriefIPSecPolicyRequest wrapped in IPSecProfileRequestIpsecPolicy
+func BriefIPSecPolicyRequestAsIPSecProfileRequestIpsecPolicy(v *BriefIPSecPolicyRequest) IPSecProfileRequestIpsecPolicy {
+ return IPSecProfileRequestIpsecPolicy{
+ BriefIPSecPolicyRequest: v,
+ }
+}
+
+// int32AsIPSecProfileRequestIpsecPolicy is a convenience function that returns int32 wrapped in IPSecProfileRequestIpsecPolicy
+func Int32AsIPSecProfileRequestIpsecPolicy(v *int32) IPSecProfileRequestIpsecPolicy {
+ return IPSecProfileRequestIpsecPolicy{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *IPSecProfileRequestIpsecPolicy) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefIPSecPolicyRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefIPSecPolicyRequest)
+ if err == nil {
+ jsonBriefIPSecPolicyRequest, _ := json.Marshal(dst.BriefIPSecPolicyRequest)
+ if string(jsonBriefIPSecPolicyRequest) == "{}" { // empty struct
+ dst.BriefIPSecPolicyRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefIPSecPolicyRequest); err != nil {
+ dst.BriefIPSecPolicyRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefIPSecPolicyRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefIPSecPolicyRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(IPSecProfileRequestIpsecPolicy)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(IPSecProfileRequestIpsecPolicy)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src IPSecProfileRequestIpsecPolicy) MarshalJSON() ([]byte, error) {
+ if src.BriefIPSecPolicyRequest != nil {
+ return json.Marshal(&src.BriefIPSecPolicyRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *IPSecProfileRequestIpsecPolicy) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefIPSecPolicyRequest != nil {
+ return obj.BriefIPSecPolicyRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableIPSecProfileRequestIpsecPolicy struct {
+ value *IPSecProfileRequestIpsecPolicy
+ isSet bool
+}
+
+func (v NullableIPSecProfileRequestIpsecPolicy) Get() *IPSecProfileRequestIpsecPolicy {
+ return v.value
+}
+
+func (v *NullableIPSecProfileRequestIpsecPolicy) Set(val *IPSecProfileRequestIpsecPolicy) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIPSecProfileRequestIpsecPolicy) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIPSecProfileRequestIpsecPolicy) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIPSecProfileRequestIpsecPolicy(val *IPSecProfileRequestIpsecPolicy) *NullableIPSecProfileRequestIpsecPolicy {
+ return &NullableIPSecProfileRequestIpsecPolicy{value: val, isSet: true}
+}
+
+func (v NullableIPSecProfileRequestIpsecPolicy) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIPSecProfileRequestIpsecPolicy) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go
index 5765c7de6..5b9d48590 100644
--- a/model_ip_sec_proposal.go
+++ b/model_ip_sec_proposal.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the IPSecProposal type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &IPSecProposal{}
// IPSecProposal Adds support for custom fields and tags.
type IPSecProposal struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- EncryptionAlgorithm *IKEProposalEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm *IKEProposalEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`
AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
// Security association lifetime (seconds)
SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
// Security association lifetime (in kilobytes)
- SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *IPSecProposal) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *IPSecProposal) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *IPSecProposal) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *IPSecProposal) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +168,6 @@ func (o *IPSecProposal) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *IPSecProposal) GetName() string {
if o == nil {
@@ -195,7 +192,6 @@ 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) {
@@ -324,6 +320,7 @@ func (o *IPSecProposal) HasSaLifetimeSeconds() bool {
func (o *IPSecProposal) SetSaLifetimeSeconds(v int32) {
o.SaLifetimeSeconds.Set(&v)
}
+
// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
func (o *IPSecProposal) SetSaLifetimeSecondsNil() {
o.SaLifetimeSeconds.Set(nil)
@@ -366,6 +363,7 @@ func (o *IPSecProposal) HasSaLifetimeData() bool {
func (o *IPSecProposal) SetSaLifetimeData(v int32) {
o.SaLifetimeData.Set(&v)
}
+
// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
func (o *IPSecProposal) SetSaLifetimeDataNil() {
o.SaLifetimeData.Set(nil)
@@ -504,6 +502,7 @@ func (o *IPSecProposal) HasCreated() bool {
func (o *IPSecProposal) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *IPSecProposal) SetCreatedNil() {
o.Created.Set(nil)
@@ -546,6 +545,7 @@ func (o *IPSecProposal) HasLastUpdated() bool {
func (o *IPSecProposal) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *IPSecProposal) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -557,7 +557,7 @@ func (o *IPSecProposal) UnsetLastUpdated() {
}
func (o IPSecProposal) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -624,32 +624,31 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -722,5 +721,3 @@ func (v *NullableIPSecProposal) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go
index 337b84ca0..b22795796 100644
--- a/model_ip_sec_proposal_request.go
+++ b/model_ip_sec_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &IPSecProposalRequest{}
// IPSecProposalRequest Adds support for custom fields and tags.
type IPSecProposalRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"`
AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"`
// Security association lifetime (seconds)
SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
// Security association lifetime (in kilobytes)
- SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ 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) {
@@ -207,6 +206,7 @@ func (o *IPSecProposalRequest) HasSaLifetimeSeconds() bool {
func (o *IPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
o.SaLifetimeSeconds.Set(&v)
}
+
// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
func (o *IPSecProposalRequest) SetSaLifetimeSecondsNil() {
o.SaLifetimeSeconds.Set(nil)
@@ -249,6 +249,7 @@ func (o *IPSecProposalRequest) HasSaLifetimeData() bool {
func (o *IPSecProposalRequest) SetSaLifetimeData(v int32) {
o.SaLifetimeData.Set(&v)
}
+
// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
func (o *IPSecProposalRequest) SetSaLifetimeDataNil() {
o.SaLifetimeData.Set(nil)
@@ -356,7 +357,7 @@ func (o *IPSecProposalRequest) SetCustomFields(v map[string]interface{}) {
}
func (o IPSecProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -408,32 +409,31 @@ func (o *IPSecProposalRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -500,5 +500,3 @@ func (v *NullableIPSecProposalRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go
index 8bc3647b4..ac53e5ba8 100644
--- a/model_ipam_service_templates_list_protocol_parameter.go
+++ b/model_ipam_service_templates_list_protocol_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type IpamServiceTemplatesListProtocolParameter string
// List of ipam_service_templates_list_protocol_parameter
const (
IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_SCTP IpamServiceTemplatesListProtocolParameter = "sctp"
- IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_TCP IpamServiceTemplatesListProtocolParameter = "tcp"
- IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_UDP IpamServiceTemplatesListProtocolParameter = "udp"
+ IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_TCP IpamServiceTemplatesListProtocolParameter = "tcp"
+ IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_UDP IpamServiceTemplatesListProtocolParameter = "udp"
)
// All allowed values of IpamServiceTemplatesListProtocolParameter enum
@@ -110,4 +110,3 @@ func (v *NullableIpamServiceTemplatesListProtocolParameter) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_job.go b/model_job.go
index 412cd9679..690d12c40 100644
--- a/model_job.go
+++ b/model_job.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Job type satisfies the MappedNullable interface at compile time
@@ -21,24 +21,24 @@ var _ MappedNullable = &Job{}
// Job struct for Job
type Job struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId NullableInt64 `json:"object_id,omitempty"`
- Name string `json:"name"`
- Status BriefJobStatus `json:"status"`
- Created *time.Time `json:"created,omitempty"`
- Scheduled NullableTime `json:"scheduled,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId NullableInt64 `json:"object_id,omitempty"`
+ Name string `json:"name"`
+ Status BriefJobStatus `json:"status"`
+ Created *time.Time `json:"created,omitempty"`
+ Scheduled NullableTime `json:"scheduled,omitempty"`
// Recurrence interval (in minutes)
- Interval NullableInt32 `json:"interval,omitempty"`
- Started NullableTime `json:"started,omitempty"`
- Completed NullableTime `json:"completed,omitempty"`
- User BriefUser `json:"user"`
- Data interface{} `json:"data,omitempty"`
- Error string `json:"error"`
- JobId string `json:"job_id"`
+ Interval NullableInt32 `json:"interval,omitempty"`
+ Started NullableTime `json:"started,omitempty"`
+ Completed NullableTime `json:"completed,omitempty"`
+ User BriefUser `json:"user"`
+ Data interface{} `json:"data,omitempty"`
+ Error string `json:"error"`
+ JobId string `json:"job_id"`
AdditionalProperties map[string]interface{}
}
@@ -94,7 +94,6 @@ func (o *Job) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Job) GetUrl() string {
if o == nil {
@@ -119,7 +118,6 @@ func (o *Job) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Job) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -176,7 +174,6 @@ func (o *Job) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *Job) GetObjectType() string {
if o == nil {
@@ -201,7 +198,6 @@ func (o *Job) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Job) GetObjectId() int64 {
if o == nil || IsNil(o.ObjectId.Get()) {
@@ -234,6 +230,7 @@ func (o *Job) HasObjectId() bool {
func (o *Job) SetObjectId(v int64) {
o.ObjectId.Set(&v)
}
+
// SetObjectIdNil sets the value for ObjectId to be an explicit nil
func (o *Job) SetObjectIdNil() {
o.ObjectId.Set(nil)
@@ -268,7 +265,6 @@ func (o *Job) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value
func (o *Job) GetStatus() BriefJobStatus {
if o == nil {
@@ -293,7 +289,6 @@ func (o *Job) SetStatus(v BriefJobStatus) {
o.Status = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Job) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -358,6 +353,7 @@ func (o *Job) HasScheduled() bool {
func (o *Job) SetScheduled(v time.Time) {
o.Scheduled.Set(&v)
}
+
// SetScheduledNil sets the value for Scheduled to be an explicit nil
func (o *Job) SetScheduledNil() {
o.Scheduled.Set(nil)
@@ -400,6 +396,7 @@ func (o *Job) HasInterval() bool {
func (o *Job) SetInterval(v int32) {
o.Interval.Set(&v)
}
+
// SetIntervalNil sets the value for Interval to be an explicit nil
func (o *Job) SetIntervalNil() {
o.Interval.Set(nil)
@@ -442,6 +439,7 @@ func (o *Job) HasStarted() bool {
func (o *Job) SetStarted(v time.Time) {
o.Started.Set(&v)
}
+
// SetStartedNil sets the value for Started to be an explicit nil
func (o *Job) SetStartedNil() {
o.Started.Set(nil)
@@ -484,6 +482,7 @@ func (o *Job) HasCompleted() bool {
func (o *Job) SetCompleted(v time.Time) {
o.Completed.Set(&v)
}
+
// SetCompletedNil sets the value for Completed to be an explicit nil
func (o *Job) SetCompletedNil() {
o.Completed.Set(nil)
@@ -518,7 +517,6 @@ func (o *Job) SetUser(v BriefUser) {
o.User = v
}
-
// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Job) GetData() interface{} {
if o == nil {
@@ -576,7 +574,6 @@ func (o *Job) SetError(v string) {
o.Error = v
}
-
// GetJobId returns the JobId field value
func (o *Job) GetJobId() string {
if o == nil {
@@ -601,9 +598,8 @@ func (o *Job) SetJobId(v string) {
o.JobId = v
}
-
func (o Job) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -671,32 +667,31 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -771,5 +766,3 @@ func (v *NullableJob) 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 e41a95991..2344b8e9e 100644
--- a/model_journal_entry.go
+++ b/model_journal_entry.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the JournalEntry type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &JournalEntry{}
// JournalEntry Adds support for custom fields and tags.
type JournalEntry struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- AssignedObject interface{} `json:"assigned_object,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- Kind *JournalEntryKind `json:"kind,omitempty"`
- Comments string `json:"comments"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ AssignedObject interface{} `json:"assigned_object,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKind `json:"kind,omitempty"`
+ Comments string `json:"comments"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *JournalEntry) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *JournalEntry) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *JournalEntry) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *JournalEntry) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +167,6 @@ func (o *JournalEntry) SetDisplay(v string) {
o.Display = v
}
-
// GetAssignedObjectType returns the AssignedObjectType field value
func (o *JournalEntry) GetAssignedObjectType() string {
if o == nil {
@@ -194,7 +191,6 @@ func (o *JournalEntry) SetAssignedObjectType(v string) {
o.AssignedObjectType = v
}
-
// GetAssignedObjectId returns the AssignedObjectId field value
func (o *JournalEntry) GetAssignedObjectId() int64 {
if o == nil {
@@ -219,7 +215,6 @@ func (o *JournalEntry) SetAssignedObjectId(v int64) {
o.AssignedObjectId = v
}
-
// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *JournalEntry) GetAssignedObject() interface{} {
if o == nil {
@@ -285,6 +280,7 @@ func (o *JournalEntry) HasCreated() bool {
func (o *JournalEntry) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *JournalEntry) SetCreatedNil() {
o.Created.Set(nil)
@@ -327,6 +323,7 @@ func (o *JournalEntry) HasCreatedBy() bool {
func (o *JournalEntry) SetCreatedBy(v int32) {
o.CreatedBy.Set(&v)
}
+
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *JournalEntry) SetCreatedByNil() {
o.CreatedBy.Set(nil)
@@ -393,7 +390,6 @@ func (o *JournalEntry) SetComments(v string) {
o.Comments = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *JournalEntry) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -490,6 +486,7 @@ func (o *JournalEntry) HasLastUpdated() bool {
func (o *JournalEntry) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *JournalEntry) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -501,7 +498,7 @@ func (o *JournalEntry) UnsetLastUpdated() {
}
func (o JournalEntry) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -563,32 +560,31 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -660,5 +656,3 @@ func (v *NullableJournalEntry) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go
index be04ebd29..bf976a462 100644
--- a/model_journal_entry_kind.go
+++ b/model_journal_entry_kind.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &JournalEntryKind{}
// JournalEntryKind struct for JournalEntryKind
type JournalEntryKind struct {
- Value *JournalEntryKindValue `json:"value,omitempty"`
- Label *JournalEntryKindLabel `json:"label,omitempty"`
+ Value *JournalEntryKindValue `json:"value,omitempty"`
+ Label *JournalEntryKindLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *JournalEntryKind) SetLabel(v JournalEntryKindLabel) {
}
func (o JournalEntryKind) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableJournalEntryKind) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go
index ea1a8f81c..e23ec8312 100644
--- a/model_journal_entry_kind_label.go
+++ b/model_journal_entry_kind_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type JournalEntryKindLabel string
// List of JournalEntry_kind_label
const (
- JOURNALENTRYKINDLABEL_INFO JournalEntryKindLabel = "Info"
+ JOURNALENTRYKINDLABEL_INFO JournalEntryKindLabel = "Info"
JOURNALENTRYKINDLABEL_SUCCESS JournalEntryKindLabel = "Success"
JOURNALENTRYKINDLABEL_WARNING JournalEntryKindLabel = "Warning"
- JOURNALENTRYKINDLABEL_DANGER JournalEntryKindLabel = "Danger"
+ JOURNALENTRYKINDLABEL_DANGER JournalEntryKindLabel = "Danger"
)
// All allowed values of JournalEntryKindLabel enum
@@ -112,4 +112,3 @@ func (v *NullableJournalEntryKindLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go
index 73f155b30..dca657003 100644
--- a/model_journal_entry_kind_value.go
+++ b/model_journal_entry_kind_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type JournalEntryKindValue string
// List of JournalEntry_kind_value
const (
- JOURNALENTRYKINDVALUE_INFO JournalEntryKindValue = "info"
+ JOURNALENTRYKINDVALUE_INFO JournalEntryKindValue = "info"
JOURNALENTRYKINDVALUE_SUCCESS JournalEntryKindValue = "success"
JOURNALENTRYKINDVALUE_WARNING JournalEntryKindValue = "warning"
- JOURNALENTRYKINDVALUE_DANGER JournalEntryKindValue = "danger"
+ JOURNALENTRYKINDVALUE_DANGER JournalEntryKindValue = "danger"
)
// All allowed values of JournalEntryKindValue enum
@@ -112,4 +112,3 @@ 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 c5feff4fd..f1e30fe86 100644
--- a/model_journal_entry_request.go
+++ b/model_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &JournalEntryRequest{}
// JournalEntryRequest Adds support for custom fields and tags.
type JournalEntryRequest struct {
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- Kind *JournalEntryKindValue `json:"kind,omitempty"`
- Comments string `json:"comments"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
+ Comments string `json:"comments"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *JournalEntryRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType = v
}
-
// GetAssignedObjectId returns the AssignedObjectId field value
func (o *JournalEntryRequest) GetAssignedObjectId() int64 {
if o == nil {
@@ -101,7 +100,6 @@ func (o *JournalEntryRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId = v
}
-
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *JournalEntryRequest) GetCreatedBy() int32 {
if o == nil || IsNil(o.CreatedBy.Get()) {
@@ -134,6 +132,7 @@ func (o *JournalEntryRequest) HasCreatedBy() bool {
func (o *JournalEntryRequest) SetCreatedBy(v int32) {
o.CreatedBy.Set(&v)
}
+
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *JournalEntryRequest) SetCreatedByNil() {
o.CreatedBy.Set(nil)
@@ -200,7 +199,6 @@ func (o *JournalEntryRequest) SetComments(v string) {
o.Comments = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *JournalEntryRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
@@ -266,7 +264,7 @@ func (o *JournalEntryRequest) SetCustomFields(v map[string]interface{}) {
}
func (o JournalEntryRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,32 +308,31 @@ func (o *JournalEntryRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -400,5 +397,3 @@ func (v *NullableJournalEntryRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_l2_vpn.go b/model_l2_vpn.go
index 098309d26..ed7d3afb1 100644
--- a/model_l2_vpn.go
+++ b/model_l2_vpn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the L2VPN type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,24 @@ var _ MappedNullable = &L2VPN{}
// L2VPN Adds support for custom fields and tags.
type L2VPN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type *BriefL2VPNType `json:"type,omitempty"`
- ImportTargets []RouteTarget `json:"import_targets,omitempty"`
- ExportTargets []RouteTarget `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type *BriefL2VPNType `json:"type,omitempty"`
+ Status *L2VPNStatus `json:"status,omitempty"`
+ ImportTargets []RouteTarget `json:"import_targets,omitempty"`
+ ExportTargets []RouteTarget `json:"export_targets,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +90,6 @@ func (o *L2VPN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *L2VPN) GetUrl() string {
if o == nil {
@@ -114,7 +114,6 @@ func (o *L2VPN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *L2VPN) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +170,6 @@ func (o *L2VPN) SetDisplay(v string) {
o.Display = v
}
-
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *L2VPN) GetIdentifier() int64 {
if o == nil || IsNil(o.Identifier.Get()) {
@@ -204,6 +202,7 @@ func (o *L2VPN) HasIdentifier() bool {
func (o *L2VPN) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *L2VPN) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -238,7 +237,6 @@ func (o *L2VPN) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *L2VPN) GetSlug() string {
if o == nil {
@@ -263,7 +261,6 @@ func (o *L2VPN) SetSlug(v string) {
o.Slug = v
}
-
// GetType returns the Type field value if set, zero value otherwise.
func (o *L2VPN) GetType() BriefL2VPNType {
if o == nil || IsNil(o.Type) {
@@ -296,6 +293,38 @@ func (o *L2VPN) SetType(v BriefL2VPNType) {
o.Type = &v
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *L2VPN) GetStatus() L2VPNStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret L2VPNStatus
+ 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 *L2VPN) GetStatusOk() (*L2VPNStatus, 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 *L2VPN) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given L2VPNStatus and assigns it to the Status field.
+func (o *L2VPN) SetStatus(v L2VPNStatus) {
+ o.Status = &v
+}
+
// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
func (o *L2VPN) GetImportTargets() []RouteTarget {
if o == nil || IsNil(o.ImportTargets) {
@@ -456,6 +485,7 @@ func (o *L2VPN) HasTenant() bool {
func (o *L2VPN) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *L2VPN) SetTenantNil() {
o.Tenant.Set(nil)
@@ -562,6 +592,7 @@ func (o *L2VPN) HasCreated() bool {
func (o *L2VPN) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *L2VPN) SetCreatedNil() {
o.Created.Set(nil)
@@ -604,6 +635,7 @@ func (o *L2VPN) HasLastUpdated() bool {
func (o *L2VPN) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *L2VPN) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -615,7 +647,7 @@ func (o *L2VPN) UnsetLastUpdated() {
}
func (o L2VPN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -638,6 +670,9 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.ImportTargets) {
toSerialize["import_targets"] = o.ImportTargets
}
@@ -687,32 +722,31 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -737,6 +771,7 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "import_targets")
delete(additionalProperties, "export_targets")
delete(additionalProperties, "description")
@@ -787,5 +822,3 @@ func (v *NullableL2VPN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go
index c1b1f4084..9ab10f184 100644
--- a/model_l2_vpn_request.go
+++ b/model_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,18 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type *BriefL2VPNTypeValue `json:"type,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type *BriefL2VPNTypeValue `json:"type,omitempty"`
+ Status *L2VPNStatusValue `json:"status,omitempty"`
+ ImportTargets []int32 `json:"import_targets,omitempty"`
+ ExportTargets []int32 `json:"export_targets,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,6 +88,7 @@ func (o *L2VPNRequest) HasIdentifier() bool {
func (o *L2VPNRequest) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *L2VPNRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -121,7 +123,6 @@ func (o *L2VPNRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *L2VPNRequest) GetSlug() string {
if o == nil {
@@ -146,7 +147,6 @@ func (o *L2VPNRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetType returns the Type field value if set, zero value otherwise.
func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue {
if o == nil || IsNil(o.Type) {
@@ -179,6 +179,38 @@ func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) {
o.Type = &v
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *L2VPNRequest) GetStatus() L2VPNStatusValue {
+ if o == nil || IsNil(o.Status) {
+ var ret L2VPNStatusValue
+ 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 *L2VPNRequest) GetStatusOk() (*L2VPNStatusValue, 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 *L2VPNRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given L2VPNStatusValue and assigns it to the Status field.
+func (o *L2VPNRequest) SetStatus(v L2VPNStatusValue) {
+ o.Status = &v
+}
+
// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
func (o *L2VPNRequest) GetImportTargets() []int32 {
if o == nil || IsNil(o.ImportTargets) {
@@ -308,9 +340,9 @@ func (o *L2VPNRequest) SetComments(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *L2VPNRequest) GetTenant() BriefTenantRequest {
+func (o *L2VPNRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -319,7 +351,7 @@ func (o *L2VPNRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *L2VPNRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -335,10 +367,11 @@ func (o *L2VPNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *L2VPNRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *L2VPNRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -414,7 +447,7 @@ func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) {
}
func (o L2VPNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -431,6 +464,9 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.ImportTargets) {
toSerialize["import_targets"] = o.ImportTargets
}
@@ -471,32 +507,31 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -517,6 +552,7 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "import_targets")
delete(additionalProperties, "export_targets")
delete(additionalProperties, "description")
@@ -565,5 +601,3 @@ func (v *NullableL2VPNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_l2_vpn_status.go b/model_l2_vpn_status.go
new file mode 100644
index 000000000..18bfea109
--- /dev/null
+++ b/model_l2_vpn_status.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the L2VPNStatus type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &L2VPNStatus{}
+
+// L2VPNStatus struct for L2VPNStatus
+type L2VPNStatus struct {
+ Value *L2VPNStatusValue `json:"value,omitempty"`
+ Label *L2VPNStatusLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _L2VPNStatus L2VPNStatus
+
+// NewL2VPNStatus instantiates a new L2VPNStatus object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewL2VPNStatus() *L2VPNStatus {
+ this := L2VPNStatus{}
+ return &this
+}
+
+// NewL2VPNStatusWithDefaults instantiates a new L2VPNStatus object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewL2VPNStatusWithDefaults() *L2VPNStatus {
+ this := L2VPNStatus{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *L2VPNStatus) GetValue() L2VPNStatusValue {
+ if o == nil || IsNil(o.Value) {
+ var ret L2VPNStatusValue
+ 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 *L2VPNStatus) GetValueOk() (*L2VPNStatusValue, 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 *L2VPNStatus) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given L2VPNStatusValue and assigns it to the Value field.
+func (o *L2VPNStatus) SetValue(v L2VPNStatusValue) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *L2VPNStatus) GetLabel() L2VPNStatusLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret L2VPNStatusLabel
+ 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 *L2VPNStatus) GetLabelOk() (*L2VPNStatusLabel, 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 *L2VPNStatus) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given L2VPNStatusLabel and assigns it to the Label field.
+func (o *L2VPNStatus) SetLabel(v L2VPNStatusLabel) {
+ o.Label = &v
+}
+
+func (o L2VPNStatus) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o L2VPNStatus) 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 *L2VPNStatus) UnmarshalJSON(data []byte) (err error) {
+ varL2VPNStatus := _L2VPNStatus{}
+
+ err = json.Unmarshal(data, &varL2VPNStatus)
+
+ if err != nil {
+ return err
+ }
+
+ *o = L2VPNStatus(varL2VPNStatus)
+
+ 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 NullableL2VPNStatus struct {
+ value *L2VPNStatus
+ isSet bool
+}
+
+func (v NullableL2VPNStatus) Get() *L2VPNStatus {
+ return v.value
+}
+
+func (v *NullableL2VPNStatus) Set(val *L2VPNStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableL2VPNStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableL2VPNStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableL2VPNStatus(val *L2VPNStatus) *NullableL2VPNStatus {
+ return &NullableL2VPNStatus{value: val, isSet: true}
+}
+
+func (v NullableL2VPNStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableL2VPNStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_l2_vpn_status_label.go b/model_l2_vpn_status_label.go
new file mode 100644
index 000000000..e120cc827
--- /dev/null
+++ b/model_l2_vpn_status_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// L2VPNStatusLabel the model 'L2VPNStatusLabel'
+type L2VPNStatusLabel string
+
+// List of L2VPN_status_label
+const (
+ L2VPNSTATUSLABEL_ACTIVE L2VPNStatusLabel = "Active"
+ L2VPNSTATUSLABEL_PLANNED L2VPNStatusLabel = "Planned"
+ L2VPNSTATUSLABEL_DECOMMISSIONING L2VPNStatusLabel = "Decommissioning"
+)
+
+// All allowed values of L2VPNStatusLabel enum
+var AllowedL2VPNStatusLabelEnumValues = []L2VPNStatusLabel{
+ "Active",
+ "Planned",
+ "Decommissioning",
+}
+
+func (v *L2VPNStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := L2VPNStatusLabel(value)
+ for _, existing := range AllowedL2VPNStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid L2VPNStatusLabel", value)
+}
+
+// NewL2VPNStatusLabelFromValue returns a pointer to a valid L2VPNStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewL2VPNStatusLabelFromValue(v string) (*L2VPNStatusLabel, error) {
+ ev := L2VPNStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for L2VPNStatusLabel: valid values are %v", v, AllowedL2VPNStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v L2VPNStatusLabel) IsValid() bool {
+ for _, existing := range AllowedL2VPNStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to L2VPN_status_label value
+func (v L2VPNStatusLabel) Ptr() *L2VPNStatusLabel {
+ return &v
+}
+
+type NullableL2VPNStatusLabel struct {
+ value *L2VPNStatusLabel
+ isSet bool
+}
+
+func (v NullableL2VPNStatusLabel) Get() *L2VPNStatusLabel {
+ return v.value
+}
+
+func (v *NullableL2VPNStatusLabel) Set(val *L2VPNStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableL2VPNStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableL2VPNStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableL2VPNStatusLabel(val *L2VPNStatusLabel) *NullableL2VPNStatusLabel {
+ return &NullableL2VPNStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableL2VPNStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableL2VPNStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_l2_vpn_status_value.go b/model_l2_vpn_status_value.go
new file mode 100644
index 000000000..14f296dfb
--- /dev/null
+++ b/model_l2_vpn_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: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// L2VPNStatusValue * `active` - Active * `planned` - Planned * `decommissioning` - Decommissioning
+type L2VPNStatusValue string
+
+// List of L2VPN_status_value
+const (
+ L2VPNSTATUSVALUE_ACTIVE L2VPNStatusValue = "active"
+ L2VPNSTATUSVALUE_PLANNED L2VPNStatusValue = "planned"
+ L2VPNSTATUSVALUE_DECOMMISSIONING L2VPNStatusValue = "decommissioning"
+)
+
+// All allowed values of L2VPNStatusValue enum
+var AllowedL2VPNStatusValueEnumValues = []L2VPNStatusValue{
+ "active",
+ "planned",
+ "decommissioning",
+}
+
+func (v *L2VPNStatusValue) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := L2VPNStatusValue(value)
+ for _, existing := range AllowedL2VPNStatusValueEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid L2VPNStatusValue", value)
+}
+
+// NewL2VPNStatusValueFromValue returns a pointer to a valid L2VPNStatusValue
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewL2VPNStatusValueFromValue(v string) (*L2VPNStatusValue, error) {
+ ev := L2VPNStatusValue(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for L2VPNStatusValue: valid values are %v", v, AllowedL2VPNStatusValueEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v L2VPNStatusValue) IsValid() bool {
+ for _, existing := range AllowedL2VPNStatusValueEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to L2VPN_status_value value
+func (v L2VPNStatusValue) Ptr() *L2VPNStatusValue {
+ return &v
+}
+
+type NullableL2VPNStatusValue struct {
+ value *L2VPNStatusValue
+ isSet bool
+}
+
+func (v NullableL2VPNStatusValue) Get() *L2VPNStatusValue {
+ return v.value
+}
+
+func (v *NullableL2VPNStatusValue) Set(val *L2VPNStatusValue) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableL2VPNStatusValue) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableL2VPNStatusValue) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableL2VPNStatusValue(val *L2VPNStatusValue) *NullableL2VPNStatusValue {
+ return &NullableL2VPNStatusValue{value: val, isSet: true}
+}
+
+func (v NullableL2VPNStatusValue) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableL2VPNStatusValue) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go
index 317d1ef3c..4c25d4b11 100644
--- a/model_l2_vpn_termination.go
+++ b/model_l2_vpn_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &L2VPNTermination{}
// L2VPNTermination Adds support for custom fields and tags.
type L2VPNTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- L2vpn BriefL2VPN `json:"l2vpn"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- AssignedObject interface{} `json:"assigned_object,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ L2vpn BriefL2VPN `json:"l2vpn"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ AssignedObject interface{} `json:"assigned_object,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *L2VPNTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *L2VPNTermination) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *L2VPNTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *L2VPNTermination) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *L2VPNTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetL2vpn returns the L2vpn field value
func (o *L2VPNTermination) GetL2vpn() BriefL2VPN {
if o == nil {
@@ -192,7 +189,6 @@ func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) {
o.L2vpn = v
}
-
// GetAssignedObjectType returns the AssignedObjectType field value
func (o *L2VPNTermination) GetAssignedObjectType() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *L2VPNTermination) SetAssignedObjectType(v string) {
o.AssignedObjectType = v
}
-
// GetAssignedObjectId returns the AssignedObjectId field value
func (o *L2VPNTermination) GetAssignedObjectId() int64 {
if o == nil {
@@ -242,7 +237,6 @@ func (o *L2VPNTermination) SetAssignedObjectId(v int64) {
o.AssignedObjectId = v
}
-
// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *L2VPNTermination) GetAssignedObject() interface{} {
if o == nil {
@@ -372,6 +366,7 @@ func (o *L2VPNTermination) HasCreated() bool {
func (o *L2VPNTermination) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *L2VPNTermination) SetCreatedNil() {
o.Created.Set(nil)
@@ -414,6 +409,7 @@ func (o *L2VPNTermination) HasLastUpdated() bool {
func (o *L2VPNTermination) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *L2VPNTermination) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -425,7 +421,7 @@ func (o *L2VPNTermination) UnsetLastUpdated() {
}
func (o L2VPNTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -481,32 +477,31 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -576,5 +571,3 @@ func (v *NullableL2VPNTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go
index c21082cb9..5c20af6d0 100644
--- a/model_l2_vpn_termination_request.go
+++ b/model_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{}
// L2VPNTerminationRequest Adds support for custom fields and tags.
type L2VPNTerminationRequest struct {
- L2vpn BriefL2VPNRequest `json:"l2vpn"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ L2vpn BriefL2VPNTerminationRequestL2vpn `json:"l2vpn"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -34,7 +34,7 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest {
+func NewL2VPNTerminationRequest(l2vpn BriefL2VPNTerminationRequestL2vpn, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest {
this := L2VPNTerminationRequest{}
this.L2vpn = l2vpn
this.AssignedObjectType = assignedObjectType
@@ -51,9 +51,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest {
}
// GetL2vpn returns the L2vpn field value
-func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
+func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNTerminationRequestL2vpn {
if o == nil {
- var ret BriefL2VPNRequest
+ var ret BriefL2VPNTerminationRequestL2vpn
return ret
}
@@ -62,7 +62,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
// GetL2vpnOk returns a tuple with the L2vpn field value
// and a boolean to check if the value has been set.
-func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) {
+func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNTerminationRequestL2vpn, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) {
}
// SetL2vpn sets field value
-func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) {
+func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNTerminationRequestL2vpn) {
o.L2vpn = v
}
-
// GetAssignedObjectType returns the AssignedObjectType field value
func (o *L2VPNTerminationRequest) GetAssignedObjectType() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType = v
}
-
// GetAssignedObjectId returns the AssignedObjectId field value
func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 {
if o == nil {
@@ -124,7 +122,6 @@ func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
@@ -190,7 +187,7 @@ func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) {
}
func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -228,32 +225,31 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -316,5 +312,3 @@ func (v *NullableL2VPNTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_location.go b/model_location.go
index 0d6e264e9..ac37ee703 100644
--- a/model_location.go
+++ b/model_location.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Location type satisfies the MappedNullable interface at compile time
@@ -21,27 +21,28 @@ var _ MappedNullable = &Location{}
// Location Extends PrimaryModelSerializer to include MPTT support.
type Location struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Site BriefSite `json:"site"`
- Parent NullableNestedLocation `json:"parent,omitempty"`
- Status *LocationStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Site BriefSite `json:"site"`
+ Parent NullableNestedLocation `json:"parent,omitempty"`
+ Status *LocationStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- RackCount *int32 `json:"rack_count,omitempty"`
- DeviceCount *int32 `json:"device_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Facility *string `json:"facility,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ RackCount *int32 `json:"rack_count,omitempty"`
+ DeviceCount *int32 `json:"device_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -95,7 +96,6 @@ func (o *Location) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Location) GetUrl() string {
if o == nil {
@@ -120,7 +120,6 @@ func (o *Location) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Location) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -177,7 +176,6 @@ func (o *Location) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Location) GetName() string {
if o == nil {
@@ -202,7 +200,6 @@ func (o *Location) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Location) GetSlug() string {
if o == nil {
@@ -227,7 +224,6 @@ func (o *Location) SetSlug(v string) {
o.Slug = v
}
-
// GetSite returns the Site field value
func (o *Location) GetSite() BriefSite {
if o == nil {
@@ -252,7 +248,6 @@ func (o *Location) SetSite(v BriefSite) {
o.Site = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Location) GetParent() NestedLocation {
if o == nil || IsNil(o.Parent.Get()) {
@@ -285,6 +280,7 @@ func (o *Location) HasParent() bool {
func (o *Location) SetParent(v NestedLocation) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *Location) SetParentNil() {
o.Parent.Set(nil)
@@ -359,6 +355,7 @@ func (o *Location) HasTenant() bool {
func (o *Location) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Location) SetTenantNil() {
o.Tenant.Set(nil)
@@ -529,6 +526,7 @@ func (o *Location) HasCreated() bool {
func (o *Location) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Location) SetCreatedNil() {
o.Created.Set(nil)
@@ -571,6 +569,7 @@ func (o *Location) HasLastUpdated() bool {
func (o *Location) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Location) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -677,6 +676,38 @@ func (o *Location) SetPrefixCount(v int64) {
o.PrefixCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *Location) 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 *Location) 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 *Location) 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 *Location) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *Location) GetDepth() int32 {
if o == nil {
@@ -701,9 +732,8 @@ func (o *Location) SetDepth(v int32) {
o.Depth = v
}
-
func (o Location) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -757,6 +787,9 @@ func (o Location) ToMap() (map[string]interface{}, error) {
if !IsNil(o.PrefixCount) {
toSerialize["prefix_count"] = o.PrefixCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -782,32 +815,31 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -843,6 +875,7 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "rack_count")
delete(additionalProperties, "device_count")
delete(additionalProperties, "prefix_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -885,5 +918,3 @@ func (v *NullableLocation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_location_request.go b/model_location_request.go
index a46a0df72..9d7c53c71 100644
--- a/model_location_request.go
+++ b/model_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,18 @@ var _ MappedNullable = &LocationRequest{}
// LocationRequest Extends PrimaryModelSerializer to include MPTT support.
type LocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Site BriefSiteRequest `json:"site"`
- Parent NullableNestedLocationRequest `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Parent NullableNestedLocationRequest `json:"parent,omitempty"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +41,7 @@ type _LocationRequest LocationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest {
+func NewLocationRequest(name string, slug string, site DeviceWithConfigContextRequestSite) *LocationRequest {
this := LocationRequest{}
this.Name = name
this.Slug = slug
@@ -80,7 +81,6 @@ func (o *LocationRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *LocationRequest) GetSlug() string {
if o == nil {
@@ -105,11 +105,10 @@ func (o *LocationRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetSite returns the Site field value
-func (o *LocationRequest) GetSite() BriefSiteRequest {
+func (o *LocationRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -118,7 +117,7 @@ func (o *LocationRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *LocationRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -126,11 +125,10 @@ func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *LocationRequest) SetSite(v BriefSiteRequest) {
+func (o *LocationRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LocationRequest) GetParent() NestedLocationRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -163,6 +161,7 @@ func (o *LocationRequest) HasParent() bool {
func (o *LocationRequest) SetParent(v NestedLocationRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *LocationRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -206,9 +205,9 @@ func (o *LocationRequest) SetStatus(v LocationStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *LocationRequest) GetTenant() BriefTenantRequest {
+func (o *LocationRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -217,7 +216,7 @@ func (o *LocationRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *LocationRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +232,11 @@ func (o *LocationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *LocationRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *LocationRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *LocationRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -375,8 +375,40 @@ func (o *LocationRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o LocationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -409,6 +441,9 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -429,32 +464,31 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -481,6 +515,7 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -522,5 +557,3 @@ func (v *NullableLocationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_location_status.go b/model_location_status.go
index 012eb9e88..5ca16b7e5 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &LocationStatus{}
// LocationStatus struct for LocationStatus
type LocationStatus struct {
- Value *LocationStatusValue `json:"value,omitempty"`
- Label *LocationStatusLabel `json:"label,omitempty"`
+ Value *LocationStatusValue `json:"value,omitempty"`
+ Label *LocationStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *LocationStatus) SetLabel(v LocationStatusLabel) {
}
func (o LocationStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_location_status_label.go b/model_location_status_label.go
index aba57c98b..3eea189af 100644
--- a/model_location_status_label.go
+++ b/model_location_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type LocationStatusLabel string
// List of Location_status_label
const (
- LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned"
- LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging"
- LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active"
+ LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned"
+ LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging"
+ LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active"
LOCATIONSTATUSLABEL_DECOMMISSIONING LocationStatusLabel = "Decommissioning"
- LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired"
+ LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired"
)
// All allowed values of LocationStatusLabel enum
@@ -114,4 +114,3 @@ 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
index 21ca71b88..b5aa32cba 100644
--- a/model_location_status_value.go
+++ b/model_location_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type LocationStatusValue string
// List of Location_status_value
const (
- LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned"
- LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging"
- LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active"
+ LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned"
+ LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging"
+ LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active"
LOCATIONSTATUSVALUE_DECOMMISSIONING LocationStatusValue = "decommissioning"
- LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired"
+ LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired"
)
// All allowed values of LocationStatusValue enum
@@ -114,4 +114,3 @@ func (v *NullableLocationStatusValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_mac_address.go b/model_mac_address.go
index 923ea15cc..e3fab51b5 100644
--- a/model_mac_address.go
+++ b/model_mac_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the MACAddress type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &MACAddress{}
// MACAddress Adds support for custom fields and tags.
type MACAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- MacAddress string `json:"mac_address"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- AssignedObject interface{} `json:"assigned_object,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ MacAddress string `json:"mac_address"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ AssignedObject interface{} `json:"assigned_object,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *MACAddress) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *MACAddress) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *MACAddress) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *MACAddress) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *MACAddress) SetDisplay(v string) {
o.Display = v
}
-
// GetMacAddress returns the MacAddress field value
func (o *MACAddress) GetMacAddress() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *MACAddress) SetMacAddress(v string) {
o.MacAddress = v
}
-
// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MACAddress) GetAssignedObjectType() string {
if o == nil || IsNil(o.AssignedObjectType.Get()) {
@@ -225,6 +221,7 @@ func (o *MACAddress) HasAssignedObjectType() bool {
func (o *MACAddress) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *MACAddress) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -267,6 +264,7 @@ func (o *MACAddress) HasAssignedObjectId() bool {
func (o *MACAddress) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *MACAddress) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -470,6 +468,7 @@ func (o *MACAddress) HasCreated() bool {
func (o *MACAddress) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *MACAddress) SetCreatedNil() {
o.Created.Set(nil)
@@ -512,6 +511,7 @@ func (o *MACAddress) HasLastUpdated() bool {
func (o *MACAddress) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *MACAddress) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -523,7 +523,7 @@ func (o *MACAddress) UnsetLastUpdated() {
}
func (o MACAddress) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -587,32 +587,31 @@ func (o *MACAddress) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -684,5 +683,3 @@ func (v *NullableMACAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_mac_address_request.go b/model_mac_address_request.go
index 0b78713d6..10c7416d0 100644
--- a/model_mac_address_request.go
+++ b/model_mac_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &MACAddressRequest{}
// MACAddressRequest Adds support for custom fields and tags.
type MACAddressRequest struct {
- MacAddress string `json:"mac_address"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MacAddress string `json:"mac_address"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *MACAddressRequest) SetMacAddress(v string) {
o.MacAddress = v
}
-
// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MACAddressRequest) GetAssignedObjectType() string {
if o == nil || IsNil(o.AssignedObjectType.Get()) {
@@ -107,6 +106,7 @@ func (o *MACAddressRequest) HasAssignedObjectType() bool {
func (o *MACAddressRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *MACAddressRequest) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -149,6 +149,7 @@ func (o *MACAddressRequest) HasAssignedObjectId() bool {
func (o *MACAddressRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *MACAddressRequest) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -288,7 +289,7 @@ func (o *MACAddressRequest) SetCustomFields(v map[string]interface{}) {
}
func (o MACAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -334,32 +335,31 @@ func (o *MACAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -424,5 +424,3 @@ func (v *NullableMACAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_manufacturer.go b/model_manufacturer.go
index 80c6716c9..c179533d2 100644
--- a/model_manufacturer.go
+++ b/model_manufacturer.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Manufacturer type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &Manufacturer{}
// Manufacturer Adds support for custom fields and tags.
type Manufacturer struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DevicetypeCount *int64 `json:"devicetype_count,omitempty"`
- InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
- PlatformCount *int64 `json:"platform_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DevicetypeCount *int64 `json:"devicetype_count,omitempty"`
+ InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"`
+ PlatformCount *int64 `json:"platform_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *Manufacturer) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Manufacturer) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *Manufacturer) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Manufacturer) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *Manufacturer) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Manufacturer) GetName() string {
if o == nil {
@@ -193,7 +190,6 @@ func (o *Manufacturer) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Manufacturer) GetSlug() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *Manufacturer) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Manufacturer) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -347,6 +342,7 @@ func (o *Manufacturer) HasCreated() bool {
func (o *Manufacturer) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Manufacturer) SetCreatedNil() {
o.Created.Set(nil)
@@ -389,6 +385,7 @@ func (o *Manufacturer) HasLastUpdated() bool {
func (o *Manufacturer) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Manufacturer) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -496,7 +493,7 @@ func (o *Manufacturer) SetPlatformCount(v int64) {
}
func (o Manufacturer) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -559,32 +556,31 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -656,5 +652,3 @@ func (v *NullableManufacturer) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go
index e02e3a785..89984e907 100644
--- a/model_manufacturer_request.go
+++ b/model_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ManufacturerRequest{}
// ManufacturerRequest Adds support for custom fields and tags.
type ManufacturerRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *ManufacturerRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ManufacturerRequest) GetSlug() string {
if o == nil {
@@ -98,7 +97,6 @@ func (o *ManufacturerRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ManufacturerRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -196,7 +194,7 @@ func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ManufacturerRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,32 +233,31 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -323,5 +320,3 @@ func (v *NullableManufacturerRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module.go b/model_module.go
index 40b011491..fb84fce2c 100644
--- a/model_module.go
+++ b/model_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Module type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &Module{}
// Module Adds support for custom fields and tags.
type Module struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- ModuleBay NestedModuleBay `json:"module_bay"`
- ModuleType BriefModuleType `json:"module_type"`
- Status *InventoryItemStatus `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ ModuleBay NestedModuleBay `json:"module_bay"`
+ ModuleType BriefModuleType `json:"module_type"`
+ Status *InventoryItemStatus `json:"status,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -90,7 +90,6 @@ func (o *Module) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Module) GetUrl() string {
if o == nil {
@@ -115,7 +114,6 @@ func (o *Module) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Module) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -172,7 +170,6 @@ func (o *Module) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *Module) GetDevice() BriefDevice {
if o == nil {
@@ -197,7 +194,6 @@ func (o *Module) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModuleBay returns the ModuleBay field value
func (o *Module) GetModuleBay() NestedModuleBay {
if o == nil {
@@ -222,7 +218,6 @@ func (o *Module) SetModuleBay(v NestedModuleBay) {
o.ModuleBay = v
}
-
// GetModuleType returns the ModuleType field value
func (o *Module) GetModuleType() BriefModuleType {
if o == nil {
@@ -247,7 +242,6 @@ func (o *Module) SetModuleType(v BriefModuleType) {
o.ModuleType = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Module) GetStatus() InventoryItemStatus {
if o == nil || IsNil(o.Status) {
@@ -344,6 +338,7 @@ func (o *Module) HasAssetTag() bool {
func (o *Module) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *Module) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -514,6 +509,7 @@ func (o *Module) HasCreated() bool {
func (o *Module) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Module) SetCreatedNil() {
o.Created.Set(nil)
@@ -556,6 +552,7 @@ func (o *Module) HasLastUpdated() bool {
func (o *Module) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Module) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -567,7 +564,7 @@ func (o *Module) UnsetLastUpdated() {
}
func (o Module) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -635,32 +632,31 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -734,5 +730,3 @@ func (v *NullableModule) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_bay.go b/model_module_bay.go
index 8e470bd59..73d5d207e 100644
--- a/model_module_bay.go
+++ b/model_module_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ModuleBay type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &ModuleBay{}
// ModuleBay Adds support for custom fields and tags.
type ModuleBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
InstalledModule NullableBriefModule `json:"installed_module,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *ModuleBay) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ModuleBay) GetUrl() string {
if o == nil {
@@ -114,7 +113,6 @@ func (o *ModuleBay) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ModuleBay) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +169,6 @@ func (o *ModuleBay) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *ModuleBay) GetDevice() BriefDevice {
if o == nil {
@@ -196,7 +193,6 @@ func (o *ModuleBay) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModuleBay) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -229,6 +225,7 @@ func (o *ModuleBay) HasModule() bool {
func (o *ModuleBay) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ModuleBay) SetModuleNil() {
o.Module.Set(nil)
@@ -263,7 +260,6 @@ func (o *ModuleBay) SetName(v string) {
o.Name = v
}
-
// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModuleBay) GetInstalledModule() BriefModule {
if o == nil || IsNil(o.InstalledModule.Get()) {
@@ -296,6 +292,7 @@ func (o *ModuleBay) HasInstalledModule() bool {
func (o *ModuleBay) SetInstalledModule(v BriefModule) {
o.InstalledModule.Set(&v)
}
+
// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil
func (o *ModuleBay) SetInstalledModuleNil() {
o.InstalledModule.Set(nil)
@@ -498,6 +495,7 @@ func (o *ModuleBay) HasCreated() bool {
func (o *ModuleBay) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ModuleBay) SetCreatedNil() {
o.Created.Set(nil)
@@ -540,6 +538,7 @@ func (o *ModuleBay) HasLastUpdated() bool {
func (o *ModuleBay) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ModuleBay) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -551,7 +550,7 @@ func (o *ModuleBay) UnsetLastUpdated() {
}
func (o ModuleBay) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -617,32 +616,31 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -715,5 +713,3 @@ func (v *NullableModuleBay) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_bay_request.go b/model_module_bay_request.go
index e984edbcd..1510bc4df 100644
--- a/model_module_bay_request.go
+++ b/model_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &ModuleBayRequest{}
// ModuleBayRequest Adds support for custom fields and tags.
type ModuleBayRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
- InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
+ InstalledModule NullableConsolePortRequestModule `json:"installed_module,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _ModuleBayRequest ModuleBayRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest {
+func NewModuleBayRequest(device BriefInterfaceRequestDevice, name string) *ModuleBayRequest {
this := ModuleBayRequest{}
this.Device = device
this.Name = name
@@ -56,9 +56,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest {
}
// GetDevice returns the Device field value
-func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest {
+func (o *ModuleBayRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -67,7 +67,7 @@ func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *ModuleBayRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -75,15 +75,14 @@ func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) {
+func (o *ModuleBayRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ModuleBayRequest) GetModule() BriefModuleRequest {
+func (o *ModuleBayRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -92,7 +91,7 @@ func (o *ModuleBayRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *ModuleBayRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -108,10 +107,11 @@ func (o *ModuleBayRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *ModuleBayRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *ModuleBayRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -146,11 +146,10 @@ func (o *ModuleBayRequest) SetName(v string) {
o.Name = v
}
-
// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest {
+func (o *ModuleBayRequest) GetInstalledModule() ConsolePortRequestModule {
if o == nil || IsNil(o.InstalledModule.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.InstalledModule.Get()
@@ -159,7 +158,7 @@ func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest {
// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) {
+func (o *ModuleBayRequest) GetInstalledModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -175,10 +174,11 @@ func (o *ModuleBayRequest) HasInstalledModule() bool {
return false
}
-// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field.
-func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) {
+// SetInstalledModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the InstalledModule field.
+func (o *ModuleBayRequest) SetInstalledModule(v ConsolePortRequestModule) {
o.InstalledModule.Set(&v)
}
+
// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil
func (o *ModuleBayRequest) SetInstalledModuleNil() {
o.InstalledModule.Set(nil)
@@ -350,7 +350,7 @@ func (o *ModuleBayRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ModuleBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -401,32 +401,31 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -493,5 +492,3 @@ func (v *NullableModuleBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_bay_template.go b/model_module_bay_template.go
index 4129d5431..bc0f79d60 100644
--- a/model_module_bay_template.go
+++ b/model_module_bay_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ModuleBayTemplate type satisfies the MappedNullable interface at compile time
@@ -21,9 +21,9 @@ var _ MappedNullable = &ModuleBayTemplate{}
// ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ModuleBayTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
@@ -31,10 +31,10 @@ type ModuleBayTemplate struct {
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *ModuleBayTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ModuleBayTemplate) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *ModuleBayTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ModuleBayTemplate) GetDisplay() string {
if o == nil {
@@ -135,7 +133,6 @@ func (o *ModuleBayTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -168,6 +165,7 @@ func (o *ModuleBayTemplate) HasDeviceType() bool {
func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ModuleBayTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -210,6 +208,7 @@ func (o *ModuleBayTemplate) HasModuleType() bool {
func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ModuleBayTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -244,7 +243,6 @@ func (o *ModuleBayTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ModuleBayTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -373,6 +371,7 @@ func (o *ModuleBayTemplate) HasCreated() bool {
func (o *ModuleBayTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ModuleBayTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -415,6 +414,7 @@ func (o *ModuleBayTemplate) HasLastUpdated() bool {
func (o *ModuleBayTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ModuleBayTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -426,7 +426,7 @@ func (o *ModuleBayTemplate) UnsetLastUpdated() {
}
func (o ModuleBayTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -481,32 +481,31 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -575,5 +574,3 @@ func (v *NullableModuleBayTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go
index df7441e44..1b5002c9f 100644
--- a/model_module_bay_template_request.go
+++ b/model_module_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &ModuleBayTemplateRequest{}
// ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ModuleBayTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,9 +53,9 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *ModuleBayTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -64,7 +64,7 @@ func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -80,10 +80,11 @@ func (o *ModuleBayTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *ModuleBayTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -95,9 +96,9 @@ func (o *ModuleBayTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *ModuleBayTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +107,7 @@ func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -122,10 +123,11 @@ func (o *ModuleBayTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *ModuleBayTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *ModuleBayTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -160,7 +162,6 @@ func (o *ModuleBayTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ModuleBayTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -258,7 +259,7 @@ func (o *ModuleBayTemplateRequest) SetDescription(v string) {
}
func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -301,32 +302,31 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -390,5 +390,3 @@ func (v *NullableModuleBayTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_request.go b/model_module_request.go
index da0744a97..2d84a3bc3 100644
--- a/model_module_request.go
+++ b/model_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &ModuleRequest{}
// ModuleRequest Adds support for custom fields and tags.
type ModuleRequest struct {
- Device BriefDeviceRequest `json:"device"`
- ModuleBay NestedModuleBayRequest `json:"module_bay"`
- ModuleType BriefModuleTypeRequest `json:"module_type"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ ModuleBay NestedModuleBayRequest `json:"module_bay"`
+ ModuleType ModuleRequestModuleType `json:"module_type"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _ModuleRequest ModuleRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest {
+func NewModuleRequest(device BriefInterfaceRequestDevice, moduleBay NestedModuleBayRequest, moduleType ModuleRequestModuleType) *ModuleRequest {
this := ModuleRequest{}
this.Device = device
this.ModuleBay = moduleBay
@@ -57,9 +57,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest {
}
// GetDevice returns the Device field value
-func (o *ModuleRequest) GetDevice() BriefDeviceRequest {
+func (o *ModuleRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *ModuleRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *ModuleRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,11 +76,10 @@ func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) {
+func (o *ModuleRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModuleBay returns the ModuleBay field value
func (o *ModuleRequest) GetModuleBay() NestedModuleBayRequest {
if o == nil {
@@ -105,11 +104,10 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) {
o.ModuleBay = v
}
-
// GetModuleType returns the ModuleType field value
-func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *ModuleRequest) GetModuleType() ModuleRequestModuleType {
if o == nil {
- var ret BriefModuleTypeRequest
+ var ret ModuleRequestModuleType
return ret
}
@@ -118,7 +116,7 @@ func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value
// and a boolean to check if the value has been set.
-func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *ModuleRequest) GetModuleTypeOk() (*ModuleRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -126,11 +124,10 @@ func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
}
// SetModuleType sets field value
-func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) {
+func (o *ModuleRequest) SetModuleType(v ModuleRequestModuleType) {
o.ModuleType = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *ModuleRequest) GetStatus() InventoryItemStatusValue {
if o == nil || IsNil(o.Status) {
@@ -227,6 +224,7 @@ func (o *ModuleRequest) HasAssetTag() bool {
func (o *ModuleRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *ModuleRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -366,7 +364,7 @@ func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ModuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -419,32 +417,31 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -512,5 +509,3 @@ func (v *NullableModuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_request_module_type.go b/model_module_request_module_type.go
new file mode 100644
index 000000000..e4db4e731
--- /dev/null
+++ b/model_module_request_module_type.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// ModuleRequestModuleType - struct for ModuleRequestModuleType
+type ModuleRequestModuleType struct {
+ BriefModuleTypeRequest *BriefModuleTypeRequest
+ Int32 *int32
+}
+
+// BriefModuleTypeRequestAsModuleRequestModuleType is a convenience function that returns BriefModuleTypeRequest wrapped in ModuleRequestModuleType
+func BriefModuleTypeRequestAsModuleRequestModuleType(v *BriefModuleTypeRequest) ModuleRequestModuleType {
+ return ModuleRequestModuleType{
+ BriefModuleTypeRequest: v,
+ }
+}
+
+// int32AsModuleRequestModuleType is a convenience function that returns int32 wrapped in ModuleRequestModuleType
+func Int32AsModuleRequestModuleType(v *int32) ModuleRequestModuleType {
+ return ModuleRequestModuleType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ModuleRequestModuleType) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefModuleTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefModuleTypeRequest)
+ if err == nil {
+ jsonBriefModuleTypeRequest, _ := json.Marshal(dst.BriefModuleTypeRequest)
+ if string(jsonBriefModuleTypeRequest) == "{}" { // empty struct
+ dst.BriefModuleTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefModuleTypeRequest); err != nil {
+ dst.BriefModuleTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefModuleTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefModuleTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(ModuleRequestModuleType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(ModuleRequestModuleType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ModuleRequestModuleType) MarshalJSON() ([]byte, error) {
+ if src.BriefModuleTypeRequest != nil {
+ return json.Marshal(&src.BriefModuleTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ModuleRequestModuleType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefModuleTypeRequest != nil {
+ return obj.BriefModuleTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableModuleRequestModuleType struct {
+ value *ModuleRequestModuleType
+ isSet bool
+}
+
+func (v NullableModuleRequestModuleType) Get() *ModuleRequestModuleType {
+ return v.value
+}
+
+func (v *NullableModuleRequestModuleType) Set(val *ModuleRequestModuleType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableModuleRequestModuleType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableModuleRequestModuleType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableModuleRequestModuleType(val *ModuleRequestModuleType) *NullableModuleRequestModuleType {
+ return &NullableModuleRequestModuleType{value: val, isSet: true}
+}
+
+func (v NullableModuleRequestModuleType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableModuleRequestModuleType) 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 e0485b527..6192ca267 100644
--- a/model_module_type.go
+++ b/model_module_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ModuleType type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,25 @@ var _ MappedNullable = &ModuleType{}
// ModuleType Adds support for custom fields and tags.
type ModuleType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
- Model string `json:"model"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Profile NullableBriefModuleTypeProfile `json:"profile,omitempty"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Attributes interface{} `json:"attributes,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +91,6 @@ func (o *ModuleType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ModuleType) GetUrl() string {
if o == nil {
@@ -114,7 +115,6 @@ func (o *ModuleType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ModuleType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,6 +171,48 @@ func (o *ModuleType) SetDisplay(v string) {
o.Display = v
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleType) GetProfile() BriefModuleTypeProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleType) GetProfileOk() (*BriefModuleTypeProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *ModuleType) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeProfile and assigns it to the Profile field.
+func (o *ModuleType) SetProfile(v BriefModuleTypeProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *ModuleType) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *ModuleType) UnsetProfile() {
+ o.Profile.Unset()
+}
// GetManufacturer returns the Manufacturer field value
func (o *ModuleType) GetManufacturer() BriefManufacturer {
@@ -196,7 +238,6 @@ func (o *ModuleType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *ModuleType) GetModel() string {
if o == nil {
@@ -221,7 +262,6 @@ func (o *ModuleType) SetModel(v string) {
o.Model = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *ModuleType) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -286,6 +326,7 @@ func (o *ModuleType) HasAirflow() bool {
func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *ModuleType) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -328,6 +369,7 @@ func (o *ModuleType) HasWeight() bool {
func (o *ModuleType) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *ModuleType) SetWeightNil() {
o.Weight.Set(nil)
@@ -370,6 +412,7 @@ func (o *ModuleType) HasWeightUnit() bool {
func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *ModuleType) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -412,6 +455,39 @@ func (o *ModuleType) SetDescription(v string) {
o.Description = &v
}
+// GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleType) GetAttributes() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Attributes
+}
+
+// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleType) GetAttributesOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Attributes) {
+ return nil, false
+ }
+ return &o.Attributes, true
+}
+
+// HasAttributes returns a boolean if a field has been set.
+func (o *ModuleType) HasAttributes() bool {
+ if o != nil && !IsNil(o.Attributes) {
+ return true
+ }
+
+ return false
+}
+
+// SetAttributes gets a reference to the given interface{} and assigns it to the Attributes field.
+func (o *ModuleType) SetAttributes(v interface{}) {
+ o.Attributes = v
+}
+
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *ModuleType) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -540,6 +616,7 @@ func (o *ModuleType) HasCreated() bool {
func (o *ModuleType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ModuleType) SetCreatedNil() {
o.Created.Set(nil)
@@ -582,6 +659,7 @@ func (o *ModuleType) HasLastUpdated() bool {
func (o *ModuleType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ModuleType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -593,7 +671,7 @@ func (o *ModuleType) UnsetLastUpdated() {
}
func (o ModuleType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -608,6 +686,9 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) {
toSerialize["display_url"] = o.DisplayUrl
}
toSerialize["display"] = o.Display
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
if !IsNil(o.PartNumber) {
@@ -625,6 +706,9 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.Attributes != nil {
+ toSerialize["attributes"] = o.Attributes
+ }
if !IsNil(o.Comments) {
toSerialize["comments"] = o.Comments
}
@@ -662,32 +746,31 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -708,6 +791,7 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display_url")
delete(additionalProperties, "display")
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
@@ -715,6 +799,7 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight")
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "description")
+ delete(additionalProperties, "attributes")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -761,5 +846,3 @@ func (v *NullableModuleType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go
index 632ff510c..0b9c31531 100644
--- a/model_module_type_airflow.go
+++ b/model_module_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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ModuleTypeAirflow{}
// ModuleTypeAirflow struct for ModuleTypeAirflow
type ModuleTypeAirflow struct {
- Value *ModuleTypeAirflowValue `json:"value,omitempty"`
- Label *ModuleTypeAirflowLabel `json:"label,omitempty"`
+ Value *ModuleTypeAirflowValue `json:"value,omitempty"`
+ Label *ModuleTypeAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel) {
}
func (o ModuleTypeAirflow) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableModuleTypeAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go
index 31cee0b37..5bbd23e2f 100644
--- a/model_module_type_airflow_label.go
+++ b/model_module_type_airflow_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,8 +24,8 @@ const (
MODULETYPEAIRFLOWLABEL_REAR_TO_FRONT ModuleTypeAirflowLabel = "Rear to front"
MODULETYPEAIRFLOWLABEL_LEFT_TO_RIGHT ModuleTypeAirflowLabel = "Left to right"
MODULETYPEAIRFLOWLABEL_RIGHT_TO_LEFT ModuleTypeAirflowLabel = "Right to left"
- MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear"
- MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive"
+ MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear"
+ MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive"
)
// All allowed values of ModuleTypeAirflowLabel enum
@@ -116,4 +116,3 @@ func (v *NullableModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go
index 19b6b94c6..7945c2def 100644
--- a/model_module_type_airflow_value.go
+++ b/model_module_type_airflow_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,9 +24,9 @@ const (
MODULETYPEAIRFLOWVALUE_REAR_TO_FRONT ModuleTypeAirflowValue = "rear-to-front"
MODULETYPEAIRFLOWVALUE_LEFT_TO_RIGHT ModuleTypeAirflowValue = "left-to-right"
MODULETYPEAIRFLOWVALUE_RIGHT_TO_LEFT ModuleTypeAirflowValue = "right-to-left"
- MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear"
- MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive"
- MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = ""
+ MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear"
+ MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive"
+ MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = ""
)
// All allowed values of ModuleTypeAirflowValue enum
@@ -118,4 +118,3 @@ func (v *NullableModuleTypeAirflowValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_module_type_profile.go b/model_module_type_profile.go
new file mode 100644
index 000000000..b2db85c0f
--- /dev/null
+++ b/model_module_type_profile.go
@@ -0,0 +1,589 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the ModuleTypeProfile type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ModuleTypeProfile{}
+
+// ModuleTypeProfile Adds support for custom fields and tags.
+type ModuleTypeProfile struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Schema interface{} `json:"schema,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ModuleTypeProfile ModuleTypeProfile
+
+// NewModuleTypeProfile instantiates a new ModuleTypeProfile object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewModuleTypeProfile(id int32, url string, display string, name string) *ModuleTypeProfile {
+ this := ModuleTypeProfile{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ return &this
+}
+
+// NewModuleTypeProfileWithDefaults instantiates a new ModuleTypeProfile object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewModuleTypeProfileWithDefaults() *ModuleTypeProfile {
+ this := ModuleTypeProfile{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *ModuleTypeProfile) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *ModuleTypeProfile) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
+func (o *ModuleTypeProfile) GetDisplayUrl() string {
+ if o == nil || IsNil(o.DisplayUrl) {
+ var ret string
+ return ret
+ }
+ return *o.DisplayUrl
+}
+
+// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ModuleTypeProfile) GetDisplayUrlOk() (*string, bool) {
+ if o == nil || IsNil(o.DisplayUrl) {
+ return nil, false
+ }
+ return o.DisplayUrl, true
+}
+
+// HasDisplayUrl returns a boolean if a field has been set.
+func (o *ModuleTypeProfile) HasDisplayUrl() bool {
+ if o != nil && !IsNil(o.DisplayUrl) {
+ return true
+ }
+
+ return false
+}
+
+// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field.
+func (o *ModuleTypeProfile) SetDisplayUrl(v string) {
+ o.DisplayUrl = &v
+}
+
+// GetDisplay returns the Display field value
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *ModuleTypeProfile) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ModuleTypeProfile) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSchema returns the Schema field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeProfile) GetSchema() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Schema
+}
+
+// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleTypeProfile) GetSchemaOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Schema) {
+ return nil, false
+ }
+ return &o.Schema, true
+}
+
+// HasSchema returns a boolean if a field has been set.
+func (o *ModuleTypeProfile) HasSchema() bool {
+ if o != nil && !IsNil(o.Schema) {
+ return true
+ }
+
+ return false
+}
+
+// SetSchema gets a reference to the given interface{} and assigns it to the Schema field.
+func (o *ModuleTypeProfile) SetSchema(v interface{}) {
+ o.Schema = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) SetTags(v []NestedTag) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) 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 *ModuleTypeProfile) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeProfile) GetCreated() time.Time {
+ if o == nil || IsNil(o.Created.Get()) {
+ var ret time.Time
+ return ret
+ }
+ return *o.Created.Get()
+}
+
+// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleTypeProfile) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// HasCreated returns a boolean if a field has been set.
+func (o *ModuleTypeProfile) HasCreated() bool {
+ if o != nil && o.Created.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetCreated gets a reference to the given NullableTime and assigns it to the Created field.
+func (o *ModuleTypeProfile) SetCreated(v time.Time) {
+ o.Created.Set(&v)
+}
+
+// SetCreatedNil sets the value for Created to be an explicit nil
+func (o *ModuleTypeProfile) SetCreatedNil() {
+ o.Created.Set(nil)
+}
+
+// UnsetCreated ensures that no value is present for Created, not even an explicit nil
+func (o *ModuleTypeProfile) UnsetCreated() {
+ o.Created.Unset()
+}
+
+// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeProfile) GetLastUpdated() time.Time {
+ if o == nil || IsNil(o.LastUpdated.Get()) {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastUpdated.Get()
+}
+
+// GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleTypeProfile) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// HasLastUpdated returns a boolean if a field has been set.
+func (o *ModuleTypeProfile) HasLastUpdated() bool {
+ if o != nil && o.LastUpdated.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field.
+func (o *ModuleTypeProfile) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+func (o *ModuleTypeProfile) SetLastUpdatedNil() {
+ o.LastUpdated.Set(nil)
+}
+
+// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
+func (o *ModuleTypeProfile) UnsetLastUpdated() {
+ o.LastUpdated.Unset()
+}
+
+func (o ModuleTypeProfile) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ModuleTypeProfile) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ if !IsNil(o.DisplayUrl) {
+ toSerialize["display_url"] = o.DisplayUrl
+ }
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.Schema != nil {
+ toSerialize["schema"] = o.Schema
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if o.Created.IsSet() {
+ toSerialize["created"] = o.Created.Get()
+ }
+ if o.LastUpdated.IsSet() {
+ toSerialize["last_updated"] = o.LastUpdated.Get()
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *ModuleTypeProfile) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "name",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varModuleTypeProfile := _ModuleTypeProfile{}
+
+ err = json.Unmarshal(data, &varModuleTypeProfile)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ModuleTypeProfile(varModuleTypeProfile)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display_url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "schema")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableModuleTypeProfile struct {
+ value *ModuleTypeProfile
+ isSet bool
+}
+
+func (v NullableModuleTypeProfile) Get() *ModuleTypeProfile {
+ return v.value
+}
+
+func (v *NullableModuleTypeProfile) Set(val *ModuleTypeProfile) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableModuleTypeProfile) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableModuleTypeProfile) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableModuleTypeProfile(val *ModuleTypeProfile) *NullableModuleTypeProfile {
+ return &NullableModuleTypeProfile{value: val, isSet: true}
+}
+
+func (v NullableModuleTypeProfile) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableModuleTypeProfile) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_module_type_profile_request.go b/model_module_type_profile_request.go
new file mode 100644
index 000000000..f4bc76c33
--- /dev/null
+++ b/model_module_type_profile_request.go
@@ -0,0 +1,368 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the ModuleTypeProfileRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ModuleTypeProfileRequest{}
+
+// ModuleTypeProfileRequest Adds support for custom fields and tags.
+type ModuleTypeProfileRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Schema interface{} `json:"schema,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _ModuleTypeProfileRequest ModuleTypeProfileRequest
+
+// NewModuleTypeProfileRequest instantiates a new ModuleTypeProfileRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewModuleTypeProfileRequest(name string) *ModuleTypeProfileRequest {
+ this := ModuleTypeProfileRequest{}
+ this.Name = name
+ return &this
+}
+
+// NewModuleTypeProfileRequestWithDefaults instantiates a new ModuleTypeProfileRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewModuleTypeProfileRequestWithDefaults() *ModuleTypeProfileRequest {
+ this := ModuleTypeProfileRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ModuleTypeProfileRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSchema returns the Schema field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeProfileRequest) GetSchema() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Schema
+}
+
+// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ModuleTypeProfileRequest) GetSchemaOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Schema) {
+ return nil, false
+ }
+ return &o.Schema, true
+}
+
+// HasSchema returns a boolean if a field has been set.
+func (o *ModuleTypeProfileRequest) HasSchema() bool {
+ if o != nil && !IsNil(o.Schema) {
+ return true
+ }
+
+ return false
+}
+
+// SetSchema gets a reference to the given interface{} and assigns it to the Schema field.
+func (o *ModuleTypeProfileRequest) SetSchema(v interface{}) {
+ o.Schema = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) 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 *ModuleTypeProfileRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o ModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ModuleTypeProfileRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.Schema != nil {
+ toSerialize["schema"] = o.Schema
+ }
+ 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 *ModuleTypeProfileRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varModuleTypeProfileRequest := _ModuleTypeProfileRequest{}
+
+ err = json.Unmarshal(data, &varModuleTypeProfileRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ModuleTypeProfileRequest(varModuleTypeProfileRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "schema")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableModuleTypeProfileRequest struct {
+ value *ModuleTypeProfileRequest
+ isSet bool
+}
+
+func (v NullableModuleTypeProfileRequest) Get() *ModuleTypeProfileRequest {
+ return v.value
+}
+
+func (v *NullableModuleTypeProfileRequest) Set(val *ModuleTypeProfileRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableModuleTypeProfileRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableModuleTypeProfileRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableModuleTypeProfileRequest(val *ModuleTypeProfileRequest) *NullableModuleTypeProfileRequest {
+ return &NullableModuleTypeProfileRequest{value: val, isSet: true}
+}
+
+func (v NullableModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableModuleTypeProfileRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_module_type_request.go b/model_module_type_request.go
index e8e9275f7..50f0defb5 100644
--- a/model_module_type_request.go
+++ b/model_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,19 @@ var _ MappedNullable = &ModuleTypeRequest{}
// ModuleTypeRequest Adds support for custom fields and tags.
type ModuleTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
+ Profile NullableBriefModuleTypeRequestProfile `json:"profile,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Attributes interface{} `json:"attributes,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +42,7 @@ type _ModuleTypeRequest ModuleTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest {
+func NewModuleTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string) *ModuleTypeRequest {
this := ModuleTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -55,10 +57,53 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest {
return &this
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeRequest) GetProfile() BriefModuleTypeRequestProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeRequestProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a 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) GetProfileOk() (*BriefModuleTypeRequestProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *ModuleTypeRequest) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeRequestProfile and assigns it to the Profile field.
+func (o *ModuleTypeRequest) SetProfile(v BriefModuleTypeRequestProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *ModuleTypeRequest) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *ModuleTypeRequest) UnsetProfile() {
+ o.Profile.Unset()
+}
+
// GetManufacturer returns the Manufacturer field value
-func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *ModuleTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -67,7 +112,7 @@ func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -75,11 +120,10 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool
}
// SetManufacturer sets field value
-func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *ModuleTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *ModuleTypeRequest) GetModel() string {
if o == nil {
@@ -104,7 +148,6 @@ func (o *ModuleTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *ModuleTypeRequest) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -169,6 +212,7 @@ func (o *ModuleTypeRequest) HasAirflow() bool {
func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *ModuleTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -211,6 +255,7 @@ func (o *ModuleTypeRequest) HasWeight() bool {
func (o *ModuleTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *ModuleTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -253,6 +298,7 @@ func (o *ModuleTypeRequest) HasWeightUnit() bool {
func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *ModuleTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -295,6 +341,39 @@ func (o *ModuleTypeRequest) SetDescription(v string) {
o.Description = &v
}
+// GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *ModuleTypeRequest) GetAttributes() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Attributes
+}
+
+// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
+// and a 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) GetAttributesOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Attributes) {
+ return nil, false
+ }
+ return &o.Attributes, true
+}
+
+// HasAttributes returns a boolean if a field has been set.
+func (o *ModuleTypeRequest) HasAttributes() bool {
+ if o != nil && !IsNil(o.Attributes) {
+ return true
+ }
+
+ return false
+}
+
+// SetAttributes gets a reference to the given interface{} and assigns it to the Attributes field.
+func (o *ModuleTypeRequest) SetAttributes(v interface{}) {
+ o.Attributes = v
+}
+
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *ModuleTypeRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -392,7 +471,7 @@ func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -401,6 +480,9 @@ func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) {
func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
if !IsNil(o.PartNumber) {
@@ -418,6 +500,9 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.Attributes != nil {
+ toSerialize["attributes"] = o.Attributes
+ }
if !IsNil(o.Comments) {
toSerialize["comments"] = o.Comments
}
@@ -446,32 +531,31 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -488,6 +572,7 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
@@ -495,6 +580,7 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight")
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "description")
+ delete(additionalProperties, "attributes")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -539,5 +625,3 @@ func (v *NullableModuleTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go
index 1395401a3..034273987 100644
--- a/model_module_type_request_airflow.go
+++ b/model_module_type_request_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,9 +24,9 @@ const (
MODULETYPEREQUESTAIRFLOW_REAR_TO_FRONT ModuleTypeRequestAirflow = "rear-to-front"
MODULETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT ModuleTypeRequestAirflow = "left-to-right"
MODULETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT ModuleTypeRequestAirflow = "right-to-left"
- MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear"
- MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive"
- MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = ""
+ MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear"
+ MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive"
+ MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = ""
)
// All allowed values of ModuleTypeRequestAirflow enum
@@ -118,4 +118,3 @@ func (v *NullableModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go
index bfb892c15..a37244f3b 100644
--- a/model_nested_contact_group.go
+++ b/model_nested_contact_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedContactGroup{}
// NestedContactGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedContactGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedContactGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedContactGroup) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedContactGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedContactGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedContactGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedContactGroup) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedContactGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedContactGroup) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedContactGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedContactGroup) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedContactGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedContactGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedContactGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go
index fd80d2a8a..beac8863d 100644
--- a/model_nested_contact_group_request.go
+++ b/model_nested_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedContactGroupRequest{}
// NestedContactGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedContactGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedContactGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedContactGroupRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedContactGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedContactGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedContactGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_device.go b/model_nested_device.go
index f297406f9..7ce33c6de 100644
--- a/model_nested_device.go
+++ b/model_nested_device.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedDevice{}
// NestedDevice Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedDevice struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name NullableString `json:"name,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name NullableString `json:"name,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *NestedDevice) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedDevice) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *NestedDevice) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedDevice) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -156,7 +154,6 @@ func (o *NestedDevice) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NestedDevice) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
@@ -189,6 +186,7 @@ func (o *NestedDevice) HasName() bool {
func (o *NestedDevice) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *NestedDevice) SetNameNil() {
o.Name.Set(nil)
@@ -200,7 +198,7 @@ func (o *NestedDevice) UnsetName() {
}
func (o NestedDevice) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -238,32 +236,31 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -326,5 +323,3 @@ func (v *NullableNestedDevice) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_device_request.go b/model_nested_device_request.go
index 2e53037c2..012e696bd 100644
--- a/model_nested_device_request.go
+++ b/model_nested_device_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &NestedDeviceRequest{}
// NestedDeviceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedDeviceRequest struct {
- Name NullableString `json:"name,omitempty"`
+ Name NullableString `json:"name,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,6 +74,7 @@ func (o *NestedDeviceRequest) HasName() bool {
func (o *NestedDeviceRequest) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *NestedDeviceRequest) SetNameNil() {
o.Name.Set(nil)
@@ -85,7 +86,7 @@ func (o *NestedDeviceRequest) UnsetName() {
}
func (o NestedDeviceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -161,5 +162,3 @@ func (v *NullableNestedDeviceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_device_role.go b/model_nested_device_role.go
new file mode 100644
index 000000000..a923993c0
--- /dev/null
+++ b/model_nested_device_role.go
@@ -0,0 +1,306 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the NestedDeviceRole type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &NestedDeviceRole{}
+
+// NestedDeviceRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
+type NestedDeviceRole struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _NestedDeviceRole NestedDeviceRole
+
+// NewNestedDeviceRole instantiates a new NestedDeviceRole object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewNestedDeviceRole(id int32, url string, display string, name string) *NestedDeviceRole {
+ this := NestedDeviceRole{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.Name = name
+ return &this
+}
+
+// NewNestedDeviceRoleWithDefaults instantiates a new NestedDeviceRole object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewNestedDeviceRoleWithDefaults() *NestedDeviceRole {
+ this := NestedDeviceRole{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *NestedDeviceRole) GetId() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRole) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *NestedDeviceRole) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *NestedDeviceRole) GetUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Url
+}
+
+// GetUrlOk returns a tuple with the Url field value
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRole) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *NestedDeviceRole) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
+func (o *NestedDeviceRole) GetDisplayUrl() string {
+ if o == nil || IsNil(o.DisplayUrl) {
+ var ret string
+ return ret
+ }
+ return *o.DisplayUrl
+}
+
+// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRole) GetDisplayUrlOk() (*string, bool) {
+ if o == nil || IsNil(o.DisplayUrl) {
+ return nil, false
+ }
+ return o.DisplayUrl, true
+}
+
+// HasDisplayUrl returns a boolean if a field has been set.
+func (o *NestedDeviceRole) HasDisplayUrl() bool {
+ if o != nil && !IsNil(o.DisplayUrl) {
+ return true
+ }
+
+ return false
+}
+
+// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field.
+func (o *NestedDeviceRole) SetDisplayUrl(v string) {
+ o.DisplayUrl = &v
+}
+
+// GetDisplay returns the Display field value
+func (o *NestedDeviceRole) GetDisplay() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Display
+}
+
+// GetDisplayOk returns a tuple with the Display field value
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRole) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *NestedDeviceRole) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetName returns the Name field value
+func (o *NestedDeviceRole) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRole) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *NestedDeviceRole) SetName(v string) {
+ o.Name = v
+}
+
+func (o NestedDeviceRole) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o NestedDeviceRole) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ if !IsNil(o.DisplayUrl) {
+ toSerialize["display_url"] = o.DisplayUrl
+ }
+ toSerialize["display"] = o.Display
+ toSerialize["name"] = o.Name
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *NestedDeviceRole) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "url",
+ "display",
+ "name",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varNestedDeviceRole := _NestedDeviceRole{}
+
+ err = json.Unmarshal(data, &varNestedDeviceRole)
+
+ if err != nil {
+ return err
+ }
+
+ *o = NestedDeviceRole(varNestedDeviceRole)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display_url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "name")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableNestedDeviceRole struct {
+ value *NestedDeviceRole
+ isSet bool
+}
+
+func (v NullableNestedDeviceRole) Get() *NestedDeviceRole {
+ return v.value
+}
+
+func (v *NullableNestedDeviceRole) Set(val *NestedDeviceRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableNestedDeviceRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableNestedDeviceRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableNestedDeviceRole(val *NestedDeviceRole) *NullableNestedDeviceRole {
+ return &NullableNestedDeviceRole{value: val, isSet: true}
+}
+
+func (v NullableNestedDeviceRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableNestedDeviceRole) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_nested_device_role_request.go b/model_nested_device_role_request.go
new file mode 100644
index 000000000..445882920
--- /dev/null
+++ b/model_nested_device_role_request.go
@@ -0,0 +1,182 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the NestedDeviceRoleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &NestedDeviceRoleRequest{}
+
+// NestedDeviceRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
+type NestedDeviceRoleRequest struct {
+ Name string `json:"name"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _NestedDeviceRoleRequest NestedDeviceRoleRequest
+
+// NewNestedDeviceRoleRequest instantiates a new NestedDeviceRoleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewNestedDeviceRoleRequest(name string) *NestedDeviceRoleRequest {
+ this := NestedDeviceRoleRequest{}
+ this.Name = name
+ return &this
+}
+
+// NewNestedDeviceRoleRequestWithDefaults instantiates a new NestedDeviceRoleRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewNestedDeviceRoleRequestWithDefaults() *NestedDeviceRoleRequest {
+ this := NestedDeviceRoleRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *NestedDeviceRoleRequest) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *NestedDeviceRoleRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *NestedDeviceRoleRequest) SetName(v string) {
+ o.Name = v
+}
+
+func (o NestedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o NestedDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *NestedDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varNestedDeviceRoleRequest := _NestedDeviceRoleRequest{}
+
+ err = json.Unmarshal(data, &varNestedDeviceRoleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = NestedDeviceRoleRequest(varNestedDeviceRoleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableNestedDeviceRoleRequest struct {
+ value *NestedDeviceRoleRequest
+ isSet bool
+}
+
+func (v NullableNestedDeviceRoleRequest) Get() *NestedDeviceRoleRequest {
+ return v.value
+}
+
+func (v *NullableNestedDeviceRoleRequest) Set(val *NestedDeviceRoleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableNestedDeviceRoleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableNestedDeviceRoleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableNestedDeviceRoleRequest(val *NestedDeviceRoleRequest) *NullableNestedDeviceRoleRequest {
+ return &NullableNestedDeviceRoleRequest{value: val, isSet: true}
+}
+
+func (v NullableNestedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableNestedDeviceRoleRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_nested_group.go b/model_nested_group.go
index 1924d9db0..1521bf543 100644
--- a/model_nested_group.go
+++ b/model_nested_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedGroup{}
// NestedGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *NestedGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedGroup) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *NestedGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -157,7 +155,6 @@ func (o *NestedGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedGroup) GetName() string {
if o == nil {
@@ -182,9 +179,8 @@ func (o *NestedGroup) SetName(v string) {
o.Name = v
}
-
func (o NestedGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableNestedGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_interface.go b/model_nested_interface.go
index 2f95667d7..30e1872b6 100644
--- a/model_nested_interface.go
+++ b/model_nested_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &NestedInterface{}
// NestedInterface Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedInterface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Name string `json:"name"`
- Cable NullableInt32 `json:"cable,omitempty"`
- Occupied bool `json:"_occupied"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device NestedDevice `json:"device"`
+ Name string `json:"name"`
+ Cable NullableInt32 `json:"cable,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +80,6 @@ func (o *NestedInterface) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedInterface) GetUrl() string {
if o == nil {
@@ -105,7 +104,6 @@ func (o *NestedInterface) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedInterface) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -162,7 +160,6 @@ func (o *NestedInterface) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *NestedInterface) GetDevice() NestedDevice {
if o == nil {
@@ -187,7 +184,6 @@ func (o *NestedInterface) SetDevice(v NestedDevice) {
o.Device = v
}
-
// GetName returns the Name field value
func (o *NestedInterface) GetName() string {
if o == nil {
@@ -212,7 +208,6 @@ func (o *NestedInterface) SetName(v string) {
o.Name = v
}
-
// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NestedInterface) GetCable() int32 {
if o == nil || IsNil(o.Cable.Get()) {
@@ -245,6 +240,7 @@ func (o *NestedInterface) HasCable() bool {
func (o *NestedInterface) SetCable(v int32) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *NestedInterface) SetCableNil() {
o.Cable.Set(nil)
@@ -279,9 +275,8 @@ func (o *NestedInterface) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o NestedInterface) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -325,32 +320,31 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -416,5 +410,3 @@ func (v *NullableNestedInterface) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go
index 6b082533e..3e5c5e66f 100644
--- a/model_nested_interface_request.go
+++ b/model_nested_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedInterfaceRequest{}
// NestedInterfaceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedInterfaceRequest struct {
- Name string `json:"name"`
- Cable NullableInt32 `json:"cable,omitempty"`
+ Name string `json:"name"`
+ Cable NullableInt32 `json:"cable,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *NestedInterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NestedInterfaceRequest) GetCable() int32 {
if o == nil || IsNil(o.Cable.Get()) {
@@ -102,6 +101,7 @@ func (o *NestedInterfaceRequest) HasCable() bool {
func (o *NestedInterfaceRequest) SetCable(v int32) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *NestedInterfaceRequest) SetCableNil() {
o.Cable.Set(nil)
@@ -113,7 +113,7 @@ func (o *NestedInterfaceRequest) UnsetCable() {
}
func (o NestedInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -144,32 +144,31 @@ func (o *NestedInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -229,5 +228,3 @@ func (v *NullableNestedInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go
index d261ab063..e42f3ef80 100644
--- a/model_nested_interface_template.go
+++ b/model_nested_interface_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedInterfaceTemplate{}
// NestedInterfaceTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedInterfaceTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *NestedInterfaceTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedInterfaceTemplate) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *NestedInterfaceTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *NestedInterfaceTemplate) GetDisplay() string {
if o == nil {
@@ -125,7 +123,6 @@ func (o *NestedInterfaceTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedInterfaceTemplate) GetName() string {
if o == nil {
@@ -150,9 +147,8 @@ func (o *NestedInterfaceTemplate) SetName(v string) {
o.Name = v
}
-
func (o NestedInterfaceTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -186,32 +182,31 @@ func (o *NestedInterfaceTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -273,5 +268,3 @@ func (v *NullableNestedInterfaceTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go
index 08ea3ba9e..f79de9f4b 100644
--- a/model_nested_interface_template_request.go
+++ b/model_nested_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ var _ MappedNullable = &NestedInterfaceTemplateRequest{}
// NestedInterfaceTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedInterfaceTemplateRequest struct {
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -69,9 +69,8 @@ func (o *NestedInterfaceTemplateRequest) SetName(v string) {
o.Name = v
}
-
func (o NestedInterfaceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -99,32 +98,31 @@ func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -183,5 +181,3 @@ func (v *NullableNestedInterfaceTemplateRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go
index 7502a36c5..9f7ceb603 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &NestedIPAddress{}
// NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedIPAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Family int32 `json:"family"`
- Address string `json:"address"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Family int32 `json:"family"`
+ Address string `json:"address"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *NestedIPAddress) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedIPAddress) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *NestedIPAddress) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedIPAddress) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -159,7 +157,6 @@ func (o *NestedIPAddress) SetDisplay(v string) {
o.Display = v
}
-
// GetFamily returns the Family field value
func (o *NestedIPAddress) GetFamily() int32 {
if o == nil {
@@ -184,7 +181,6 @@ func (o *NestedIPAddress) SetFamily(v int32) {
o.Family = v
}
-
// GetAddress returns the Address field value
func (o *NestedIPAddress) GetAddress() string {
if o == nil {
@@ -209,9 +205,8 @@ func (o *NestedIPAddress) SetAddress(v string) {
o.Address = v
}
-
func (o NestedIPAddress) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableNestedIPAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go
index cc97e5da0..39177ad7c 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &NestedIPAddressRequest{}
// NestedIPAddressRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedIPAddressRequest struct {
- Address string `json:"address"`
+ Address string `json:"address"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,8 @@ func (o *NestedIPAddressRequest) SetAddress(v string) {
o.Address = v
}
-
func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *NestedIPAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableNestedIPAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_location.go b/model_nested_location.go
index 41d3f2e11..38655cc38 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedLocation{}
// NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedLocation struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedLocation) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedLocation) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedLocation) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedLocation) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedLocation) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedLocation) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedLocation) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedLocation) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedLocation) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedLocation) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedLocation) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedLocation) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedLocation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_location_request.go b/model_nested_location_request.go
index aff5d2ddb..3f04396d8 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedLocationRequest{}
// NestedLocationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedLocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedLocationRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedLocationRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedLocationRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedLocationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedLocationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedLocationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go
index a1125343f..82a6bda3b 100644
--- a/model_nested_module_bay.go
+++ b/model_nested_module_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedModuleBay{}
// NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedModuleBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *NestedModuleBay) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedModuleBay) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *NestedModuleBay) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedModuleBay) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -157,7 +155,6 @@ func (o *NestedModuleBay) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedModuleBay) GetName() string {
if o == nil {
@@ -182,9 +179,8 @@ func (o *NestedModuleBay) SetName(v string) {
o.Name = v
}
-
func (o NestedModuleBay) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableNestedModuleBay) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go
index b6e7e0e9c..053109e79 100644
--- a/model_nested_module_bay_request.go
+++ b/model_nested_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &NestedModuleBayRequest{}
// NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedModuleBayRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,8 @@ func (o *NestedModuleBayRequest) SetName(v string) {
o.Name = v
}
-
func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableNestedModuleBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go
index ed2784130..1d35eaccc 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &NestedProviderAccount{}
// NestedProviderAccount Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedProviderAccount struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *NestedProviderAccount) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedProviderAccount) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *NestedProviderAccount) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedProviderAccount) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -158,7 +156,6 @@ func (o *NestedProviderAccount) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *NestedProviderAccount) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -215,9 +212,8 @@ func (o *NestedProviderAccount) SetAccount(v string) {
o.Account = v
}
-
func (o NestedProviderAccount) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -257,32 +253,31 @@ func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -346,5 +341,3 @@ func (v *NullableNestedProviderAccount) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_region.go b/model_nested_region.go
index b1efa5f38..20aa64216 100644
--- a/model_nested_region.go
+++ b/model_nested_region.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedRegion{}
// NestedRegion Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedRegion struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedRegion) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedRegion) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedRegion) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedRegion) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedRegion) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedRegion) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedRegion) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedRegion) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedRegion) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedRegion) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedRegion) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedRegion) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedRegion) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_region_request.go b/model_nested_region_request.go
index 45a8e1ed8..a56f19cac 100644
--- a/model_nested_region_request.go
+++ b/model_nested_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedRegionRequest{}
// NestedRegionRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedRegionRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedRegionRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedRegionRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedRegionRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedRegionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedRegionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedRegionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_site_group.go b/model_nested_site_group.go
index 829a553c7..f1b9e21ce 100644
--- a/model_nested_site_group.go
+++ b/model_nested_site_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedSiteGroup{}
// NestedSiteGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedSiteGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedSiteGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedSiteGroup) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedSiteGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedSiteGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedSiteGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedSiteGroup) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedSiteGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedSiteGroup) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedSiteGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedSiteGroup) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedSiteGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedSiteGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedSiteGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go
index 0cfd70612..1c58f0190 100644
--- a/model_nested_site_group_request.go
+++ b/model_nested_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedSiteGroupRequest{}
// NestedSiteGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedSiteGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedSiteGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedSiteGroupRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedSiteGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedSiteGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedSiteGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_tag.go b/model_nested_tag.go
index f1264cfb1..8c2305adf 100644
--- a/model_nested_tag.go
+++ b/model_nested_tag.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedTag{}
// NestedTag Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedTag struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *NestedTag) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedTag) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *NestedTag) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedTag) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -160,7 +158,6 @@ func (o *NestedTag) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedTag) GetName() string {
if o == nil {
@@ -185,7 +182,6 @@ func (o *NestedTag) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedTag) GetSlug() string {
if o == nil {
@@ -210,7 +206,6 @@ func (o *NestedTag) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *NestedTag) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -244,7 +239,7 @@ func (o *NestedTag) SetColor(v string) {
}
func (o NestedTag) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -286,32 +281,31 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -376,5 +370,3 @@ func (v *NullableNestedTag) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go
index 9170cb268..2e9230b99 100644
--- a/model_nested_tag_request.go
+++ b/model_nested_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &NestedTagRequest{}
// NestedTagRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedTagRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *NestedTagRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedTagRequest) GetSlug() string {
if o == nil {
@@ -96,7 +95,6 @@ func (o *NestedTagRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *NestedTagRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -130,7 +128,7 @@ func (o *NestedTagRequest) SetColor(v string) {
}
func (o NestedTagRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -163,32 +161,31 @@ func (o *NestedTagRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -249,5 +246,3 @@ func (v *NullableNestedTagRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go
index c96ccf0d9..130b2ad4f 100644
--- a/model_nested_tenant_group.go
+++ b/model_nested_tenant_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedTenantGroup{}
// NestedTenantGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedTenantGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedTenantGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedTenantGroup) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedTenantGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedTenantGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedTenantGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedTenantGroup) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedTenantGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedTenantGroup) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedTenantGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedTenantGroup) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedTenantGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedTenantGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedTenantGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go
index ba7d003d3..530200615 100644
--- a/model_nested_tenant_group_request.go
+++ b/model_nested_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedTenantGroupRequest{}
// NestedTenantGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedTenantGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedTenantGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedTenantGroupRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedTenantGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedTenantGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedTenantGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_user.go b/model_nested_user.go
index 773fcd2d1..903c20282 100644
--- a/model_nested_user.go
+++ b/model_nested_user.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &NestedUser{}
// NestedUser Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedUser struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
+ Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *NestedUser) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedUser) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *NestedUser) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedUser) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -158,7 +156,6 @@ func (o *NestedUser) SetDisplay(v string) {
o.Display = v
}
-
// GetUsername returns the Username field value
func (o *NestedUser) GetUsername() string {
if o == nil {
@@ -183,9 +180,8 @@ func (o *NestedUser) SetUsername(v string) {
o.Username = v
}
-
func (o NestedUser) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -222,32 +218,31 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -310,5 +305,3 @@ func (v *NullableNestedUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go
index e36bbd1d3..9ff65ffb5 100644
--- a/model_nested_virtual_machine.go
+++ b/model_nested_virtual_machine.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedVirtualMachine{}
// NestedVirtualMachine Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVirtualMachine struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *NestedVirtualMachine) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedVirtualMachine) GetUrl() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *NestedVirtualMachine) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedVirtualMachine) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -157,7 +155,6 @@ func (o *NestedVirtualMachine) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedVirtualMachine) GetName() string {
if o == nil {
@@ -182,9 +179,8 @@ func (o *NestedVirtualMachine) SetName(v string) {
o.Name = v
}
-
func (o NestedVirtualMachine) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -221,32 +217,31 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -309,5 +304,3 @@ func (v *NullableNestedVirtualMachine) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go
index 6420354cb..0bd046856 100644
--- a/model_nested_virtual_machine_request.go
+++ b/model_nested_virtual_machine_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &NestedVirtualMachineRequest{}
// NestedVirtualMachineRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVirtualMachineRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,8 @@ func (o *NestedVirtualMachineRequest) SetName(v string) {
o.Name = v
}
-
func (o NestedVirtualMachineRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *NestedVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableNestedVirtualMachineRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_vlan.go b/model_nested_vlan.go
index cf4f8e71b..836a2b395 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedVLAN{}
// NestedVLAN Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *NestedVLAN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedVLAN) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *NestedVLAN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *NestedVLAN) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *NestedVLAN) SetDisplay(v string) {
o.Display = v
}
-
// GetVid returns the Vid field value
func (o *NestedVLAN) GetVid() int32 {
if o == nil {
@@ -153,7 +150,6 @@ func (o *NestedVLAN) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *NestedVLAN) GetName() string {
if o == nil {
@@ -178,7 +174,6 @@ func (o *NestedVLAN) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *NestedVLAN) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -212,7 +207,7 @@ func (o *NestedVLAN) SetDescription(v string) {
}
func (o NestedVLAN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -251,32 +246,31 @@ func (o *NestedVLAN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -340,5 +334,3 @@ func (v *NullableNestedVLAN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_vlan_request.go b/model_nested_vlan_request.go
index f4ca292ef..015cbab54 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ var _ MappedNullable = &NestedVLANRequest{}
// NestedVLANRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVLANRequest struct {
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *NestedVLANRequest) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *NestedVLANRequest) GetName() string {
if o == nil {
@@ -97,7 +96,6 @@ func (o *NestedVLANRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *NestedVLANRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -131,7 +129,7 @@ func (o *NestedVLANRequest) SetDescription(v string) {
}
func (o NestedVLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -164,32 +162,31 @@ func (o *NestedVLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -250,5 +247,3 @@ func (v *NullableNestedVLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go
index 93f17b38b..92252a37a 100644
--- a/model_nested_vm_interface.go
+++ b/model_nested_vm_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &NestedVMInterface{}
// NestedVMInterface Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVMInterface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *NestedVMInterface) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedVMInterface) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *NestedVMInterface) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedVMInterface) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -159,7 +157,6 @@ func (o *NestedVMInterface) SetDisplay(v string) {
o.Display = v
}
-
// GetVirtualMachine returns the VirtualMachine field value
func (o *NestedVMInterface) GetVirtualMachine() NestedVirtualMachine {
if o == nil {
@@ -184,7 +181,6 @@ func (o *NestedVMInterface) SetVirtualMachine(v NestedVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *NestedVMInterface) GetName() string {
if o == nil {
@@ -209,9 +205,8 @@ func (o *NestedVMInterface) SetName(v string) {
o.Name = v
}
-
func (o NestedVMInterface) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableNestedVMInterface) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go
index c6a785364..714f0f78f 100644
--- a/model_nested_vm_interface_request.go
+++ b/model_nested_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &NestedVMInterfaceRequest{}
// NestedVMInterfaceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedVMInterfaceRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,8 @@ func (o *NestedVMInterfaceRequest) SetName(v string) {
o.Name = v
}
-
func (o NestedVMInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -98,32 +97,31 @@ func (o *NestedVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -182,5 +180,3 @@ func (v *NullableNestedVMInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go
index a15e76688..c8fcb3a96 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &NestedWirelessLANGroup{}
// NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedWirelessLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *NestedWirelessLANGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedWirelessLANGroup) GetUrl() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *NestedWirelessLANGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedWirelessLANGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -161,7 +159,6 @@ func (o *NestedWirelessLANGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *NestedWirelessLANGroup) GetName() string {
if o == nil {
@@ -186,7 +183,6 @@ func (o *NestedWirelessLANGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedWirelessLANGroup) GetSlug() string {
if o == nil {
@@ -211,7 +207,6 @@ func (o *NestedWirelessLANGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetDepth returns the Depth field value
func (o *NestedWirelessLANGroup) GetDepth() int32 {
if o == nil {
@@ -236,9 +231,8 @@ func (o *NestedWirelessLANGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -279,32 +273,31 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -369,5 +362,3 @@ func (v *NullableNestedWirelessLANGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go
index d5306ced1..e1aa62a6d 100644
--- a/model_nested_wireless_lan_group_request.go
+++ b/model_nested_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &NestedWirelessLANGroupRequest{}
// NestedWirelessLANGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedWirelessLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
AdditionalProperties map[string]interface{}
}
@@ -70,7 +70,6 @@ func (o *NestedWirelessLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *NestedWirelessLANGroupRequest) GetSlug() string {
if o == nil {
@@ -95,9 +94,8 @@ func (o *NestedWirelessLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
func (o NestedWirelessLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -127,32 +125,31 @@ func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -212,5 +209,3 @@ func (v *NullableNestedWirelessLANGroupRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go
index 8bf65daf5..24fbfb54d 100644
--- a/model_nested_wireless_link.go
+++ b/model_nested_wireless_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &NestedWirelessLink{}
// NestedWirelessLink Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedWirelessLink struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Ssid *string `json:"ssid,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Ssid *string `json:"ssid,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *NestedWirelessLink) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NestedWirelessLink) GetUrl() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *NestedWirelessLink) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NestedWirelessLink) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -156,7 +154,6 @@ func (o *NestedWirelessLink) SetDisplay(v string) {
o.Display = v
}
-
// GetSsid returns the Ssid field value if set, zero value otherwise.
func (o *NestedWirelessLink) GetSsid() string {
if o == nil || IsNil(o.Ssid) {
@@ -190,7 +187,7 @@ func (o *NestedWirelessLink) SetSsid(v string) {
}
func (o NestedWirelessLink) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -228,32 +225,31 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -316,5 +312,3 @@ func (v *NullableNestedWirelessLink) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go
index 443cc95a0..026a087fe 100644
--- a/model_nested_wireless_link_request.go
+++ b/model_nested_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &NestedWirelessLinkRequest{}
// NestedWirelessLinkRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
type NestedWirelessLinkRequest struct {
- Ssid *string `json:"ssid,omitempty"`
+ Ssid *string `json:"ssid,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,7 @@ func (o *NestedWirelessLinkRequest) SetSsid(v string) {
}
func (o NestedWirelessLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -151,5 +151,3 @@ func (v *NullableNestedWirelessLinkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_notification.go b/model_notification.go
index 11ed7e2ee..d84e5cf8e 100644
--- a/model_notification.go
+++ b/model_notification.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Notification type satisfies the MappedNullable interface at compile time
@@ -21,16 +21,16 @@ var _ MappedNullable = &Notification{}
// Notification Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Notification struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Object interface{} `json:"object,omitempty"`
- User BriefUser `json:"user"`
- Created *time.Time `json:"created,omitempty"`
- Read NullableTime `json:"read,omitempty"`
- EventType Event `json:"event_type"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Object interface{} `json:"object,omitempty"`
+ User BriefUser `json:"user"`
+ Created *time.Time `json:"created,omitempty"`
+ Read NullableTime `json:"read,omitempty"`
+ EventType Event `json:"event_type"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *Notification) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Notification) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *Notification) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *Notification) GetDisplay() string {
if o == nil {
@@ -134,7 +132,6 @@ func (o *Notification) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *Notification) GetObjectType() string {
if o == nil {
@@ -159,7 +156,6 @@ func (o *Notification) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *Notification) GetObjectId() int64 {
if o == nil {
@@ -184,7 +180,6 @@ func (o *Notification) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Notification) GetObject() interface{} {
if o == nil {
@@ -242,7 +237,6 @@ func (o *Notification) SetUser(v BriefUser) {
o.User = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Notification) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -307,6 +301,7 @@ func (o *Notification) HasRead() bool {
func (o *Notification) SetRead(v time.Time) {
o.Read.Set(&v)
}
+
// SetReadNil sets the value for Read to be an explicit nil
func (o *Notification) SetReadNil() {
o.Read.Set(nil)
@@ -341,9 +336,8 @@ func (o *Notification) SetEventType(v Event) {
o.EventType = v
}
-
func (o Notification) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -392,32 +386,31 @@ func (o *Notification) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -485,5 +478,3 @@ func (v *NullableNotification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_notification_group.go b/model_notification_group.go
index cf435bbe2..c53f65ccf 100644
--- a/model_notification_group.go
+++ b/model_notification_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &NotificationGroup{}
// NotificationGroup Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type NotificationGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Groups []Group `json:"groups,omitempty"`
- Users []User `json:"users,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Groups []Group `json:"groups,omitempty"`
+ Users []User `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *NotificationGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *NotificationGroup) GetUrl() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *NotificationGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *NotificationGroup) GetDisplay() string {
if o == nil {
@@ -128,7 +126,6 @@ func (o *NotificationGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *NotificationGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -185,7 +182,6 @@ func (o *NotificationGroup) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *NotificationGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -283,7 +279,7 @@ func (o *NotificationGroup) SetUsers(v []User) {
}
func (o NotificationGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -329,32 +325,31 @@ func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -420,5 +415,3 @@ func (v *NullableNotificationGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_notification_group_request.go b/model_notification_group_request.go
index e2edaa251..178bc6346 100644
--- a/model_notification_group_request.go
+++ b/model_notification_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &NotificationGroupRequest{}
// NotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type NotificationGroupRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Users []int32 `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,7 +71,6 @@ func (o *NotificationGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *NotificationGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -169,7 +168,7 @@ func (o *NotificationGroupRequest) SetUsers(v []int32) {
}
func (o NotificationGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -206,32 +205,31 @@ func (o *NotificationGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -293,5 +291,3 @@ func (v *NullableNotificationGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_notification_request.go b/model_notification_request.go
index 87144a7d4..230690a59 100644
--- a/model_notification_request.go
+++ b/model_notification_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the NotificationRequest type satisfies the MappedNullable interface at compile time
@@ -21,11 +21,11 @@ var _ MappedNullable = &NotificationRequest{}
// NotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type NotificationRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- User BriefUserRequest `json:"user"`
- Read NullableTime `json:"read,omitempty"`
- EventType Event `json:"event_type"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ User BookmarkRequestUser `json:"user"`
+ Read NullableTime `json:"read,omitempty"`
+ EventType Event `json:"event_type"`
AdditionalProperties map[string]interface{}
}
@@ -35,7 +35,7 @@ type _NotificationRequest NotificationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event) *NotificationRequest {
+func NewNotificationRequest(objectType string, objectId int64, user BookmarkRequestUser, eventType Event) *NotificationRequest {
this := NotificationRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -76,7 +76,6 @@ func (o *NotificationRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *NotificationRequest) GetObjectId() int64 {
if o == nil {
@@ -101,11 +100,10 @@ func (o *NotificationRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetUser returns the User field value
-func (o *NotificationRequest) GetUser() BriefUserRequest {
+func (o *NotificationRequest) GetUser() BookmarkRequestUser {
if o == nil {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
@@ -114,7 +112,7 @@ func (o *NotificationRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *NotificationRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil {
return nil, false
}
@@ -122,11 +120,10 @@ func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool) {
}
// SetUser sets field value
-func (o *NotificationRequest) SetUser(v BriefUserRequest) {
+func (o *NotificationRequest) SetUser(v BookmarkRequestUser) {
o.User = v
}
-
// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NotificationRequest) GetRead() time.Time {
if o == nil || IsNil(o.Read.Get()) {
@@ -159,6 +156,7 @@ func (o *NotificationRequest) HasRead() bool {
func (o *NotificationRequest) SetRead(v time.Time) {
o.Read.Set(&v)
}
+
// SetReadNil sets the value for Read to be an explicit nil
func (o *NotificationRequest) SetReadNil() {
o.Read.Set(nil)
@@ -193,9 +191,8 @@ func (o *NotificationRequest) SetEventType(v Event) {
o.EventType = v
}
-
func (o NotificationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -232,32 +229,31 @@ func (o *NotificationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -320,5 +316,3 @@ func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_object_change.go b/model_object_change.go
index 8d1a13d51..c52ab7f97 100644
--- a/model_object_change.go
+++ b/model_object_change.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ObjectChange type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &ObjectChange{}
// ObjectChange struct for ObjectChange
type ObjectChange struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Time time.Time `json:"time"`
- User BriefUser `json:"user"`
- UserName string `json:"user_name"`
- RequestId string `json:"request_id"`
- Action ObjectChangeAction `json:"action"`
- ChangedObjectType string `json:"changed_object_type"`
- ChangedObjectId int64 `json:"changed_object_id"`
- ChangedObject interface{} `json:"changed_object,omitempty"`
- PrechangeData interface{} `json:"prechange_data,omitempty"`
- PostchangeData interface{} `json:"postchange_data,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Time time.Time `json:"time"`
+ User BriefUser `json:"user"`
+ UserName string `json:"user_name"`
+ RequestId string `json:"request_id"`
+ Action ObjectChangeAction `json:"action"`
+ ChangedObjectType string `json:"changed_object_type"`
+ ChangedObjectId int64 `json:"changed_object_id"`
+ ChangedObject interface{} `json:"changed_object,omitempty"`
+ PrechangeData interface{} `json:"prechange_data,omitempty"`
+ PostchangeData interface{} `json:"postchange_data,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *ObjectChange) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ObjectChange) GetUrl() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *ObjectChange) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ObjectChange) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -173,7 +171,6 @@ func (o *ObjectChange) SetDisplay(v string) {
o.Display = v
}
-
// GetTime returns the Time field value
func (o *ObjectChange) GetTime() time.Time {
if o == nil {
@@ -198,7 +195,6 @@ func (o *ObjectChange) SetTime(v time.Time) {
o.Time = v
}
-
// GetUser returns the User field value
func (o *ObjectChange) GetUser() BriefUser {
if o == nil {
@@ -223,7 +219,6 @@ func (o *ObjectChange) SetUser(v BriefUser) {
o.User = v
}
-
// GetUserName returns the UserName field value
func (o *ObjectChange) GetUserName() string {
if o == nil {
@@ -248,7 +243,6 @@ func (o *ObjectChange) SetUserName(v string) {
o.UserName = v
}
-
// GetRequestId returns the RequestId field value
func (o *ObjectChange) GetRequestId() string {
if o == nil {
@@ -273,7 +267,6 @@ func (o *ObjectChange) SetRequestId(v string) {
o.RequestId = v
}
-
// GetAction returns the Action field value
func (o *ObjectChange) GetAction() ObjectChangeAction {
if o == nil {
@@ -298,7 +291,6 @@ func (o *ObjectChange) SetAction(v ObjectChangeAction) {
o.Action = v
}
-
// GetChangedObjectType returns the ChangedObjectType field value
func (o *ObjectChange) GetChangedObjectType() string {
if o == nil {
@@ -323,7 +315,6 @@ func (o *ObjectChange) SetChangedObjectType(v string) {
o.ChangedObjectType = v
}
-
// GetChangedObjectId returns the ChangedObjectId field value
func (o *ObjectChange) GetChangedObjectId() int64 {
if o == nil {
@@ -348,7 +339,6 @@ func (o *ObjectChange) SetChangedObjectId(v int64) {
o.ChangedObjectId = v
}
-
// GetChangedObject returns the ChangedObject field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ObjectChange) GetChangedObject() interface{} {
if o == nil {
@@ -449,7 +439,7 @@ func (o *ObjectChange) SetPostchangeData(v interface{}) {
}
func (o ObjectChange) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -507,32 +497,31 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -604,5 +593,3 @@ func (v *NullableObjectChange) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_object_change_action.go b/model_object_change_action.go
index 0aeeb422a..8b33fce88 100644
--- a/model_object_change_action.go
+++ b/model_object_change_action.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ObjectChangeAction{}
// ObjectChangeAction struct for ObjectChangeAction
type ObjectChangeAction struct {
- Value *ObjectChangeActionValue `json:"value,omitempty"`
- Label *ObjectChangeActionLabel `json:"label,omitempty"`
+ Value *ObjectChangeActionValue `json:"value,omitempty"`
+ Label *ObjectChangeActionLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ObjectChangeAction) SetLabel(v ObjectChangeActionLabel) {
}
func (o ObjectChangeAction) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableObjectChangeAction) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go
index f244e7c50..a64322baa 100644
--- a/model_object_change_action_label.go
+++ b/model_object_change_action_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableObjectChangeActionLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go
index 27d2761e7..c42c1fddd 100644
--- a/model_object_change_action_value.go
+++ b/model_object_change_action_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ 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 3c39c020f..9e61ff6c4 100644
--- a/model_object_permission.go
+++ b/model_object_permission.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &ObjectPermission{}
// ObjectPermission Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ObjectPermission struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
ObjectTypes []string `json:"object_types"`
// The list of actions granted by this permission
Actions []string `json:"actions"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints interface{} `json:"constraints,omitempty"`
- Groups []NestedGroup `json:"groups,omitempty"`
- Users []NestedUser `json:"users,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
+ Groups []NestedGroup `json:"groups,omitempty"`
+ Users []NestedUser `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *ObjectPermission) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ObjectPermission) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *ObjectPermission) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ObjectPermission) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *ObjectPermission) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ObjectPermission) GetName() string {
if o == nil {
@@ -193,7 +190,6 @@ func (o *ObjectPermission) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ObjectPermission) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -282,7 +278,6 @@ func (o *ObjectPermission) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetActions returns the Actions field value
func (o *ObjectPermission) GetActions() []string {
if o == nil {
@@ -307,7 +302,6 @@ func (o *ObjectPermission) SetActions(v []string) {
o.Actions = v
}
-
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ObjectPermission) GetConstraints() interface{} {
if o == nil {
@@ -406,7 +400,7 @@ func (o *ObjectPermission) SetUsers(v []NestedUser) {
}
func (o ObjectPermission) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -462,32 +456,31 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -557,5 +550,3 @@ func (v *NullableObjectPermission) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_object_permission_request.go b/model_object_permission_request.go
index 8e867befe..4c325eb02 100644
--- a/model_object_permission_request.go
+++ b/model_object_permission_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &ObjectPermissionRequest{}
// ObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ObjectPermissionRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
ObjectTypes []string `json:"object_types"`
// The list of actions granted by this permission
Actions []string `json:"actions"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints interface{} `json:"constraints,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Users []int32 `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *ObjectPermissionRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ObjectPermissionRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -168,7 +167,6 @@ func (o *ObjectPermissionRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetActions returns the Actions field value
func (o *ObjectPermissionRequest) GetActions() []string {
if o == nil {
@@ -193,7 +191,6 @@ func (o *ObjectPermissionRequest) SetActions(v []string) {
o.Actions = v
}
-
// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ObjectPermissionRequest) GetConstraints() interface{} {
if o == nil {
@@ -292,7 +289,7 @@ func (o *ObjectPermissionRequest) SetUsers(v []int32) {
}
func (o ObjectPermissionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -339,32 +336,31 @@ func (o *ObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -430,5 +426,3 @@ func (v *NullableObjectPermissionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_object_type.go b/model_object_type.go
index 9752b515f..b6b84f308 100644
--- a/model_object_type.go
+++ b/model_object_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ObjectType{}
// ObjectType struct for ObjectType
type ObjectType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- AppLabel string `json:"app_label"`
- Model string `json:"model"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ AppLabel string `json:"app_label"`
+ Model string `json:"model"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *ObjectType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ObjectType) GetUrl() string {
if o == nil {
@@ -101,7 +100,6 @@ func (o *ObjectType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *ObjectType) GetDisplay() string {
if o == nil {
@@ -126,7 +124,6 @@ func (o *ObjectType) SetDisplay(v string) {
o.Display = v
}
-
// GetAppLabel returns the AppLabel field value
func (o *ObjectType) GetAppLabel() string {
if o == nil {
@@ -151,7 +148,6 @@ func (o *ObjectType) SetAppLabel(v string) {
o.AppLabel = v
}
-
// GetModel returns the Model field value
func (o *ObjectType) GetModel() string {
if o == nil {
@@ -176,9 +172,8 @@ func (o *ObjectType) SetModel(v string) {
o.Model = v
}
-
func (o ObjectType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -214,32 +209,31 @@ func (o *ObjectType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -302,5 +296,3 @@ func (v *NullableObjectType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go
index 6b4010431..8b4d3db34 100644
--- a/model_paginated_aggregate_list.go
+++ b/model_paginated_aggregate_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedAggregateList{}
// PaginatedAggregateList struct for PaginatedAggregateList
type PaginatedAggregateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Aggregate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Aggregate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedAggregateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedAggregateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedAggregateList) HasNext() bool {
func (o *PaginatedAggregateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedAggregateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedAggregateList) HasPrevious() bool {
func (o *PaginatedAggregateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedAggregateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedAggregateList) SetResults(v []Aggregate) {
o.Results = v
}
-
func (o PaginatedAggregateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedAggregateList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedAggregateList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go
index 44d1e3a7e..2c27ddbde 100644
--- a/model_paginated_asn_list.go
+++ b/model_paginated_asn_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedASNList{}
// PaginatedASNList struct for PaginatedASNList
type PaginatedASNList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ASN `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ASN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedASNList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedASNList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedASNList) HasNext() bool {
func (o *PaginatedASNList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedASNList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedASNList) HasPrevious() bool {
func (o *PaginatedASNList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedASNList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedASNList) SetResults(v []ASN) {
o.Results = v
}
-
func (o PaginatedASNList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedASNList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedASNList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go
index 18fecc3da..58f7493eb 100644
--- a/model_paginated_asn_range_list.go
+++ b/model_paginated_asn_range_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedASNRangeList{}
// PaginatedASNRangeList struct for PaginatedASNRangeList
type PaginatedASNRangeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ASNRange `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ASNRange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedASNRangeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedASNRangeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedASNRangeList) HasNext() bool {
func (o *PaginatedASNRangeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedASNRangeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedASNRangeList) HasPrevious() bool {
func (o *PaginatedASNRangeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedASNRangeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedASNRangeList) SetResults(v []ASNRange) {
o.Results = v
}
-
func (o PaginatedASNRangeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedASNRangeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedASNRangeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go
index 488bc9915..08aa6ff72 100644
--- a/model_paginated_bookmark_list.go
+++ b/model_paginated_bookmark_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedBookmarkList{}
// PaginatedBookmarkList struct for PaginatedBookmarkList
type PaginatedBookmarkList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Bookmark `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Bookmark `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedBookmarkList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedBookmarkList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedBookmarkList) HasNext() bool {
func (o *PaginatedBookmarkList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedBookmarkList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedBookmarkList) HasPrevious() bool {
func (o *PaginatedBookmarkList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedBookmarkList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedBookmarkList) SetResults(v []Bookmark) {
o.Results = v
}
-
func (o PaginatedBookmarkList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedBookmarkList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedBookmarkList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go
index 701a998a4..a85ec5c5d 100644
--- a/model_paginated_cable_list.go
+++ b/model_paginated_cable_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCableList{}
// PaginatedCableList struct for PaginatedCableList
type PaginatedCableList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Cable `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Cable `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCableList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCableList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCableList) HasNext() bool {
func (o *PaginatedCableList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCableList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCableList) HasPrevious() bool {
func (o *PaginatedCableList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCableList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCableList) SetResults(v []Cable) {
o.Results = v
}
-
func (o PaginatedCableList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCableList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCableList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go
index 11054e293..18c82dd70 100644
--- a/model_paginated_cable_termination_list.go
+++ b/model_paginated_cable_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCableTerminationList{}
// PaginatedCableTerminationList struct for PaginatedCableTerminationList
type PaginatedCableTerminationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CableTermination `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CableTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCableTerminationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCableTerminationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCableTerminationList) HasNext() bool {
func (o *PaginatedCableTerminationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCableTerminationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCableTerminationList) HasPrevious() bool {
func (o *PaginatedCableTerminationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCableTerminationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCableTerminationList) SetResults(v []CableTermination) {
o.Results = v
}
-
func (o PaginatedCableTerminationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCableTerminationList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCableTerminationList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go
index 798bffcf3..60ad990a0 100644
--- a/model_paginated_circuit_group_assignment_list.go
+++ b/model_paginated_circuit_group_assignment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitGroupAssignmentList{}
// PaginatedCircuitGroupAssignmentList struct for PaginatedCircuitGroupAssignmentList
type PaginatedCircuitGroupAssignmentList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CircuitGroupAssignment `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CircuitGroupAssignment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCircuitGroupAssignmentList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCircuitGroupAssignmentList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool {
func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCircuitGroupAssignmentList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool {
func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignm
o.Results = v
}
-
func (o PaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCircuitGroupAssignmentList) UnmarshalJSON(data []byte) (err er
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCircuitGroupAssignmentList) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go
index ded08e35c..202075e2c 100644
--- a/model_paginated_circuit_group_list.go
+++ b/model_paginated_circuit_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitGroupList{}
// PaginatedCircuitGroupList struct for PaginatedCircuitGroupList
type PaginatedCircuitGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CircuitGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CircuitGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCircuitGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCircuitGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCircuitGroupList) HasNext() bool {
func (o *PaginatedCircuitGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCircuitGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCircuitGroupList) HasPrevious() bool {
func (o *PaginatedCircuitGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCircuitGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup) {
o.Results = v
}
-
func (o PaginatedCircuitGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCircuitGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCircuitGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go
index d8a699558..20077ff3e 100644
--- a/model_paginated_circuit_list.go
+++ b/model_paginated_circuit_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitList{}
// PaginatedCircuitList struct for PaginatedCircuitList
type PaginatedCircuitList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Circuit `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Circuit `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCircuitList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCircuitList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCircuitList) HasNext() bool {
func (o *PaginatedCircuitList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCircuitList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCircuitList) HasPrevious() bool {
func (o *PaginatedCircuitList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCircuitList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCircuitList) SetResults(v []Circuit) {
o.Results = v
}
-
func (o PaginatedCircuitList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCircuitList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCircuitList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go
index 8f8bdc7b1..747e1e0ac 100644
--- a/model_paginated_circuit_termination_list.go
+++ b/model_paginated_circuit_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTerminationList{}
// PaginatedCircuitTerminationList struct for PaginatedCircuitTerminationList
type PaginatedCircuitTerminationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CircuitTermination `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CircuitTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCircuitTerminationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCircuitTerminationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCircuitTerminationList) HasNext() bool {
func (o *PaginatedCircuitTerminationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCircuitTerminationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCircuitTerminationList) HasPrevious() bool {
func (o *PaginatedCircuitTerminationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCircuitTerminationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCircuitTerminationList) SetResults(v []CircuitTermination) {
o.Results = v
}
-
func (o PaginatedCircuitTerminationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCircuitTerminationList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCircuitTerminationList) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go
index 6906d6b11..191237c8c 100644
--- a/model_paginated_circuit_type_list.go
+++ b/model_paginated_circuit_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTypeList{}
// PaginatedCircuitTypeList struct for PaginatedCircuitTypeList
type PaginatedCircuitTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CircuitType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CircuitType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCircuitTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCircuitTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCircuitTypeList) HasNext() bool {
func (o *PaginatedCircuitTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCircuitTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCircuitTypeList) HasPrevious() bool {
func (o *PaginatedCircuitTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCircuitTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCircuitTypeList) SetResults(v []CircuitType) {
o.Results = v
}
-
func (o PaginatedCircuitTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCircuitTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCircuitTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go
index d76ad744a..8efb88943 100644
--- a/model_paginated_cluster_group_list.go
+++ b/model_paginated_cluster_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterGroupList{}
// PaginatedClusterGroupList struct for PaginatedClusterGroupList
type PaginatedClusterGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ClusterGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ClusterGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedClusterGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedClusterGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedClusterGroupList) HasNext() bool {
func (o *PaginatedClusterGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedClusterGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedClusterGroupList) HasPrevious() bool {
func (o *PaginatedClusterGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedClusterGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedClusterGroupList) SetResults(v []ClusterGroup) {
o.Results = v
}
-
func (o PaginatedClusterGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedClusterGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedClusterGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go
index 330f11300..e99012725 100644
--- a/model_paginated_cluster_list.go
+++ b/model_paginated_cluster_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterList{}
// PaginatedClusterList struct for PaginatedClusterList
type PaginatedClusterList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Cluster `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Cluster `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedClusterList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedClusterList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedClusterList) HasNext() bool {
func (o *PaginatedClusterList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedClusterList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedClusterList) HasPrevious() bool {
func (o *PaginatedClusterList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedClusterList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedClusterList) SetResults(v []Cluster) {
o.Results = v
}
-
func (o PaginatedClusterList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedClusterList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedClusterList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go
index 1e4577efc..030ac82cd 100644
--- a/model_paginated_cluster_type_list.go
+++ b/model_paginated_cluster_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterTypeList{}
// PaginatedClusterTypeList struct for PaginatedClusterTypeList
type PaginatedClusterTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ClusterType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ClusterType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedClusterTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedClusterTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedClusterTypeList) HasNext() bool {
func (o *PaginatedClusterTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedClusterTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedClusterTypeList) HasPrevious() bool {
func (o *PaginatedClusterTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedClusterTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedClusterTypeList) SetResults(v []ClusterType) {
o.Results = v
}
-
func (o PaginatedClusterTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedClusterTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedClusterTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go
index 2c286bdc8..0e64a12b7 100644
--- a/model_paginated_config_context_list.go
+++ b/model_paginated_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigContextList{}
// PaginatedConfigContextList struct for PaginatedConfigContextList
type PaginatedConfigContextList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConfigContext `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConfigContextList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConfigContextList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConfigContextList) HasNext() bool {
func (o *PaginatedConfigContextList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConfigContextList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConfigContextList) HasPrevious() bool {
func (o *PaginatedConfigContextList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConfigContextList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConfigContextList) SetResults(v []ConfigContext) {
o.Results = v
}
-
func (o PaginatedConfigContextList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConfigContextList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConfigContextList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go
index d9317d99d..27df7c69f 100644
--- a/model_paginated_config_template_list.go
+++ b/model_paginated_config_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigTemplateList{}
// PaginatedConfigTemplateList struct for PaginatedConfigTemplateList
type PaginatedConfigTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConfigTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConfigTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConfigTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConfigTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConfigTemplateList) HasNext() bool {
func (o *PaginatedConfigTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConfigTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConfigTemplateList) HasPrevious() bool {
func (o *PaginatedConfigTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConfigTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConfigTemplateList) SetResults(v []ConfigTemplate) {
o.Results = v
}
-
func (o PaginatedConfigTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConfigTemplateList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConfigTemplateList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go
index dc318f922..3f9e0f10a 100644
--- a/model_paginated_console_port_list.go
+++ b/model_paginated_console_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortList{}
// PaginatedConsolePortList struct for PaginatedConsolePortList
type PaginatedConsolePortList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConsolePort `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConsolePort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConsolePortList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConsolePortList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConsolePortList) HasNext() bool {
func (o *PaginatedConsolePortList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConsolePortList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConsolePortList) HasPrevious() bool {
func (o *PaginatedConsolePortList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConsolePortList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConsolePortList) SetResults(v []ConsolePort) {
o.Results = v
}
-
func (o PaginatedConsolePortList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConsolePortList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConsolePortList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go
index e946a3dba..9ed201d2d 100644
--- a/model_paginated_console_port_template_list.go
+++ b/model_paginated_console_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortTemplateList{}
// PaginatedConsolePortTemplateList struct for PaginatedConsolePortTemplateList
type PaginatedConsolePortTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConsolePortTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConsolePortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConsolePortTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConsolePortTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConsolePortTemplateList) HasNext() bool {
func (o *PaginatedConsolePortTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConsolePortTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConsolePortTemplateList) HasPrevious() bool {
func (o *PaginatedConsolePortTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConsolePortTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConsolePortTemplateList) SetResults(v []ConsolePortTemplate) {
o.Results = v
}
-
func (o PaginatedConsolePortTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConsolePortTemplateList) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go
index 29644bb73..a8f81d207 100644
--- a/model_paginated_console_server_port_list.go
+++ b/model_paginated_console_server_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortList{}
// PaginatedConsoleServerPortList struct for PaginatedConsoleServerPortList
type PaginatedConsoleServerPortList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConsoleServerPort `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConsoleServerPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConsoleServerPortList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConsoleServerPortList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConsoleServerPortList) HasNext() bool {
func (o *PaginatedConsoleServerPortList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConsoleServerPortList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConsoleServerPortList) HasPrevious() bool {
func (o *PaginatedConsoleServerPortList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConsoleServerPortList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConsoleServerPortList) SetResults(v []ConsoleServerPort) {
o.Results = v
}
-
func (o PaginatedConsoleServerPortList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConsoleServerPortList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConsoleServerPortList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go
index dcd527ac0..7790171f5 100644
--- a/model_paginated_console_server_port_template_list.go
+++ b/model_paginated_console_server_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortTemplateList{}
// PaginatedConsoleServerPortTemplateList struct for PaginatedConsoleServerPortTemplateList
type PaginatedConsoleServerPortTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ConsoleServerPortTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ConsoleServerPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedConsoleServerPortTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedConsoleServerPortTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedConsoleServerPortTemplateList) HasNext() bool {
func (o *PaginatedConsoleServerPortTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedConsoleServerPortTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedConsoleServerPortTemplateList) HasPrevious() bool {
func (o *PaginatedConsoleServerPortTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedConsoleServerPortTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedConsoleServerPortTemplateList) SetResults(v []ConsoleServerPor
o.Results = v
}
-
func (o PaginatedConsoleServerPortTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedConsoleServerPortTemplateList) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go
index e45569b15..e7220c8f0 100644
--- a/model_paginated_contact_assignment_list.go
+++ b/model_paginated_contact_assignment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactAssignmentList{}
// PaginatedContactAssignmentList struct for PaginatedContactAssignmentList
type PaginatedContactAssignmentList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ContactAssignment `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ContactAssignment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedContactAssignmentList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedContactAssignmentList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedContactAssignmentList) HasNext() bool {
func (o *PaginatedContactAssignmentList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedContactAssignmentList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedContactAssignmentList) HasPrevious() bool {
func (o *PaginatedContactAssignmentList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedContactAssignmentList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedContactAssignmentList) SetResults(v []ContactAssignment) {
o.Results = v
}
-
func (o PaginatedContactAssignmentList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedContactAssignmentList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedContactAssignmentList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go
index 7b701c5cd..434fb4a15 100644
--- a/model_paginated_contact_group_list.go
+++ b/model_paginated_contact_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactGroupList{}
// PaginatedContactGroupList struct for PaginatedContactGroupList
type PaginatedContactGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ContactGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ContactGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedContactGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedContactGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedContactGroupList) HasNext() bool {
func (o *PaginatedContactGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedContactGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedContactGroupList) HasPrevious() bool {
func (o *PaginatedContactGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedContactGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedContactGroupList) SetResults(v []ContactGroup) {
o.Results = v
}
-
func (o PaginatedContactGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedContactGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedContactGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go
index eacf63eb6..c2dc9b879 100644
--- a/model_paginated_contact_list.go
+++ b/model_paginated_contact_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactList{}
// PaginatedContactList struct for PaginatedContactList
type PaginatedContactList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Contact `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Contact `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedContactList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedContactList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedContactList) HasNext() bool {
func (o *PaginatedContactList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedContactList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedContactList) HasPrevious() bool {
func (o *PaginatedContactList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedContactList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedContactList) SetResults(v []Contact) {
o.Results = v
}
-
func (o PaginatedContactList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedContactList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedContactList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go
index cea7f49b2..c65876fe2 100644
--- a/model_paginated_contact_role_list.go
+++ b/model_paginated_contact_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactRoleList{}
// PaginatedContactRoleList struct for PaginatedContactRoleList
type PaginatedContactRoleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ContactRole `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ContactRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedContactRoleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedContactRoleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedContactRoleList) HasNext() bool {
func (o *PaginatedContactRoleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedContactRoleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedContactRoleList) HasPrevious() bool {
func (o *PaginatedContactRoleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedContactRoleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedContactRoleList) SetResults(v []ContactRole) {
o.Results = v
}
-
func (o PaginatedContactRoleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedContactRoleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedContactRoleList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go
index 2c922c3f1..7d8e4230a 100644
--- a/model_paginated_custom_field_choice_set_list.go
+++ b/model_paginated_custom_field_choice_set_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldChoiceSetList{}
// PaginatedCustomFieldChoiceSetList struct for PaginatedCustomFieldChoiceSetList
type PaginatedCustomFieldChoiceSetList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CustomFieldChoiceSet `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CustomFieldChoiceSet `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCustomFieldChoiceSetList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCustomFieldChoiceSetList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCustomFieldChoiceSetList) HasNext() bool {
func (o *PaginatedCustomFieldChoiceSetList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCustomFieldChoiceSetList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCustomFieldChoiceSetList) HasPrevious() bool {
func (o *PaginatedCustomFieldChoiceSetList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCustomFieldChoiceSetList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCustomFieldChoiceSetList) SetResults(v []CustomFieldChoiceSet)
o.Results = v
}
-
func (o PaginatedCustomFieldChoiceSetList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(data []byte) (err erro
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCustomFieldChoiceSetList) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go
index af1b52ee4..72576e956 100644
--- a/model_paginated_custom_field_list.go
+++ b/model_paginated_custom_field_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldList{}
// PaginatedCustomFieldList struct for PaginatedCustomFieldList
type PaginatedCustomFieldList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CustomField `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CustomField `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCustomFieldList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCustomFieldList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCustomFieldList) HasNext() bool {
func (o *PaginatedCustomFieldList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCustomFieldList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCustomFieldList) HasPrevious() bool {
func (o *PaginatedCustomFieldList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCustomFieldList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCustomFieldList) SetResults(v []CustomField) {
o.Results = v
}
-
func (o PaginatedCustomFieldList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCustomFieldList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCustomFieldList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go
index 90f980178..4ae0a9e99 100644
--- a/model_paginated_custom_link_list.go
+++ b/model_paginated_custom_link_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomLinkList{}
// PaginatedCustomLinkList struct for PaginatedCustomLinkList
type PaginatedCustomLinkList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []CustomLink `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []CustomLink `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedCustomLinkList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedCustomLinkList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedCustomLinkList) HasNext() bool {
func (o *PaginatedCustomLinkList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedCustomLinkList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedCustomLinkList) HasPrevious() bool {
func (o *PaginatedCustomLinkList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedCustomLinkList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedCustomLinkList) SetResults(v []CustomLink) {
o.Results = v
}
-
func (o PaginatedCustomLinkList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedCustomLinkList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedCustomLinkList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go
index 02ae05e0e..7e80b17be 100644
--- a/model_paginated_data_file_list.go
+++ b/model_paginated_data_file_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDataFileList{}
// PaginatedDataFileList struct for PaginatedDataFileList
type PaginatedDataFileList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DataFile `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DataFile `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDataFileList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDataFileList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDataFileList) HasNext() bool {
func (o *PaginatedDataFileList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDataFileList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDataFileList) HasPrevious() bool {
func (o *PaginatedDataFileList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDataFileList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDataFileList) SetResults(v []DataFile) {
o.Results = v
}
-
func (o PaginatedDataFileList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDataFileList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDataFileList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go
index 552c33b3e..0353e4a3a 100644
--- a/model_paginated_data_source_list.go
+++ b/model_paginated_data_source_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDataSourceList{}
// PaginatedDataSourceList struct for PaginatedDataSourceList
type PaginatedDataSourceList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DataSource `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DataSource `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDataSourceList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDataSourceList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDataSourceList) HasNext() bool {
func (o *PaginatedDataSourceList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDataSourceList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDataSourceList) HasPrevious() bool {
func (o *PaginatedDataSourceList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDataSourceList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDataSourceList) SetResults(v []DataSource) {
o.Results = v
}
-
func (o PaginatedDataSourceList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDataSourceList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDataSourceList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go
index a0dc32045..e8c7460da 100644
--- a/model_paginated_device_bay_list.go
+++ b/model_paginated_device_bay_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayList{}
// PaginatedDeviceBayList struct for PaginatedDeviceBayList
type PaginatedDeviceBayList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DeviceBay `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DeviceBay `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDeviceBayList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDeviceBayList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDeviceBayList) HasNext() bool {
func (o *PaginatedDeviceBayList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDeviceBayList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDeviceBayList) HasPrevious() bool {
func (o *PaginatedDeviceBayList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDeviceBayList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDeviceBayList) SetResults(v []DeviceBay) {
o.Results = v
}
-
func (o PaginatedDeviceBayList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDeviceBayList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDeviceBayList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go
index ae720f12d..65488bd6c 100644
--- a/model_paginated_device_bay_template_list.go
+++ b/model_paginated_device_bay_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayTemplateList{}
// PaginatedDeviceBayTemplateList struct for PaginatedDeviceBayTemplateList
type PaginatedDeviceBayTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DeviceBayTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DeviceBayTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDeviceBayTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDeviceBayTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDeviceBayTemplateList) HasNext() bool {
func (o *PaginatedDeviceBayTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDeviceBayTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDeviceBayTemplateList) HasPrevious() bool {
func (o *PaginatedDeviceBayTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDeviceBayTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDeviceBayTemplateList) SetResults(v []DeviceBayTemplate) {
o.Results = v
}
-
func (o PaginatedDeviceBayTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDeviceBayTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go
index 0c4798f6f..91241d76b 100644
--- a/model_paginated_device_role_list.go
+++ b/model_paginated_device_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceRoleList{}
// PaginatedDeviceRoleList struct for PaginatedDeviceRoleList
type PaginatedDeviceRoleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DeviceRole `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DeviceRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDeviceRoleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDeviceRoleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDeviceRoleList) HasNext() bool {
func (o *PaginatedDeviceRoleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDeviceRoleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDeviceRoleList) HasPrevious() bool {
func (o *PaginatedDeviceRoleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDeviceRoleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDeviceRoleList) SetResults(v []DeviceRole) {
o.Results = v
}
-
func (o PaginatedDeviceRoleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDeviceRoleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDeviceRoleList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go
index 3f3e6f2d5..82fce2836 100644
--- a/model_paginated_device_type_list.go
+++ b/model_paginated_device_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceTypeList{}
// PaginatedDeviceTypeList struct for PaginatedDeviceTypeList
type PaginatedDeviceTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DeviceType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DeviceType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDeviceTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDeviceTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDeviceTypeList) HasNext() bool {
func (o *PaginatedDeviceTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDeviceTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDeviceTypeList) HasPrevious() bool {
func (o *PaginatedDeviceTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDeviceTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDeviceTypeList) SetResults(v []DeviceType) {
o.Results = v
}
-
func (o PaginatedDeviceTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDeviceTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDeviceTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go
index 025f9d90f..963f929b5 100644
--- a/model_paginated_device_with_config_context_list.go
+++ b/model_paginated_device_with_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceWithConfigContextList{}
// PaginatedDeviceWithConfigContextList struct for PaginatedDeviceWithConfigContextList
type PaginatedDeviceWithConfigContextList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []DeviceWithConfigContext `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []DeviceWithConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedDeviceWithConfigContextList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedDeviceWithConfigContextList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedDeviceWithConfigContextList) HasNext() bool {
func (o *PaginatedDeviceWithConfigContextList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedDeviceWithConfigContextList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedDeviceWithConfigContextList) HasPrevious() bool {
func (o *PaginatedDeviceWithConfigContextList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedDeviceWithConfigContextList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedDeviceWithConfigContextList) SetResults(v []DeviceWithConfigCo
o.Results = v
}
-
func (o PaginatedDeviceWithConfigContextList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(data []byte) (err e
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedDeviceWithConfigContextList) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go
index 968355ff6..c0a5986e3 100644
--- a/model_paginated_event_rule_list.go
+++ b/model_paginated_event_rule_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedEventRuleList{}
// PaginatedEventRuleList struct for PaginatedEventRuleList
type PaginatedEventRuleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []EventRule `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []EventRule `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedEventRuleList) HasNext() bool {
func (o *PaginatedEventRuleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedEventRuleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedEventRuleList) HasPrevious() bool {
func (o *PaginatedEventRuleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedEventRuleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedEventRuleList) SetResults(v []EventRule) {
o.Results = v
}
-
func (o PaginatedEventRuleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedEventRuleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ 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 b8033e019..8bd358b08 100644
--- a/model_paginated_export_template_list.go
+++ b/model_paginated_export_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedExportTemplateList{}
// PaginatedExportTemplateList struct for PaginatedExportTemplateList
type PaginatedExportTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ExportTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ExportTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedExportTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedExportTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedExportTemplateList) HasNext() bool {
func (o *PaginatedExportTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedExportTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedExportTemplateList) HasPrevious() bool {
func (o *PaginatedExportTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedExportTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedExportTemplateList) SetResults(v []ExportTemplate) {
o.Results = v
}
-
func (o PaginatedExportTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedExportTemplateList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedExportTemplateList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go
index c549e9e28..c157eb6e0 100644
--- a/model_paginated_fhrp_group_assignment_list.go
+++ b/model_paginated_fhrp_group_assignment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupAssignmentList{}
// PaginatedFHRPGroupAssignmentList struct for PaginatedFHRPGroupAssignmentList
type PaginatedFHRPGroupAssignmentList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []FHRPGroupAssignment `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []FHRPGroupAssignment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedFHRPGroupAssignmentList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedFHRPGroupAssignmentList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedFHRPGroupAssignmentList) HasNext() bool {
func (o *PaginatedFHRPGroupAssignmentList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedFHRPGroupAssignmentList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedFHRPGroupAssignmentList) HasPrevious() bool {
func (o *PaginatedFHRPGroupAssignmentList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedFHRPGroupAssignmentList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedFHRPGroupAssignmentList) SetResults(v []FHRPGroupAssignment) {
o.Results = v
}
-
func (o PaginatedFHRPGroupAssignmentList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedFHRPGroupAssignmentList) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go
index 485ee313d..216edc80b 100644
--- a/model_paginated_fhrp_group_list.go
+++ b/model_paginated_fhrp_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupList{}
// PaginatedFHRPGroupList struct for PaginatedFHRPGroupList
type PaginatedFHRPGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []FHRPGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []FHRPGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedFHRPGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedFHRPGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedFHRPGroupList) HasNext() bool {
func (o *PaginatedFHRPGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedFHRPGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedFHRPGroupList) HasPrevious() bool {
func (o *PaginatedFHRPGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedFHRPGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedFHRPGroupList) SetResults(v []FHRPGroup) {
o.Results = v
}
-
func (o PaginatedFHRPGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedFHRPGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedFHRPGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go
index 0467ad4e0..38eac8001 100644
--- a/model_paginated_front_port_list.go
+++ b/model_paginated_front_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortList{}
// PaginatedFrontPortList struct for PaginatedFrontPortList
type PaginatedFrontPortList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []FrontPort `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []FrontPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedFrontPortList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedFrontPortList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedFrontPortList) HasNext() bool {
func (o *PaginatedFrontPortList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedFrontPortList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedFrontPortList) HasPrevious() bool {
func (o *PaginatedFrontPortList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedFrontPortList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedFrontPortList) SetResults(v []FrontPort) {
o.Results = v
}
-
func (o PaginatedFrontPortList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedFrontPortList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedFrontPortList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go
index e95948f58..7d221071f 100644
--- a/model_paginated_front_port_template_list.go
+++ b/model_paginated_front_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortTemplateList{}
// PaginatedFrontPortTemplateList struct for PaginatedFrontPortTemplateList
type PaginatedFrontPortTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []FrontPortTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []FrontPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedFrontPortTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedFrontPortTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedFrontPortTemplateList) HasNext() bool {
func (o *PaginatedFrontPortTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedFrontPortTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedFrontPortTemplateList) HasPrevious() bool {
func (o *PaginatedFrontPortTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedFrontPortTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedFrontPortTemplateList) SetResults(v []FrontPortTemplate) {
o.Results = v
}
-
func (o PaginatedFrontPortTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedFrontPortTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go
index d7bc1b10c..dca19de09 100644
--- a/model_paginated_group_list.go
+++ b/model_paginated_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedGroupList{}
// PaginatedGroupList struct for PaginatedGroupList
type PaginatedGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Group `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Group `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedGroupList) HasNext() bool {
func (o *PaginatedGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedGroupList) HasPrevious() bool {
func (o *PaginatedGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedGroupList) SetResults(v []Group) {
o.Results = v
}
-
func (o PaginatedGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go
index ffc91fb76..2d6ce287d 100644
--- a/model_paginated_ike_policy_list.go
+++ b/model_paginated_ike_policy_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEPolicyList{}
// PaginatedIKEPolicyList struct for PaginatedIKEPolicyList
type PaginatedIKEPolicyList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IKEPolicy `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IKEPolicy `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIKEPolicyList) HasNext() bool {
func (o *PaginatedIKEPolicyList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIKEPolicyList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIKEPolicyList) HasPrevious() bool {
func (o *PaginatedIKEPolicyList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIKEPolicyList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIKEPolicyList) SetResults(v []IKEPolicy) {
o.Results = v
}
-
func (o PaginatedIKEPolicyList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIKEPolicyList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedIKEPolicyList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go
index 3622a68fc..b0cbbd8c1 100644
--- a/model_paginated_ike_proposal_list.go
+++ b/model_paginated_ike_proposal_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEProposalList{}
// PaginatedIKEProposalList struct for PaginatedIKEProposalList
type PaginatedIKEProposalList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IKEProposal `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IKEProposal `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIKEProposalList) HasNext() bool {
func (o *PaginatedIKEProposalList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIKEProposalList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIKEProposalList) HasPrevious() bool {
func (o *PaginatedIKEProposalList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIKEProposalList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIKEProposalList) SetResults(v []IKEProposal) {
o.Results = v
}
-
func (o PaginatedIKEProposalList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIKEProposalList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ 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 5f70a09d7..d62fd0802 100644
--- a/model_paginated_image_attachment_list.go
+++ b/model_paginated_image_attachment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedImageAttachmentList{}
// PaginatedImageAttachmentList struct for PaginatedImageAttachmentList
type PaginatedImageAttachmentList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ImageAttachment `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ImageAttachment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedImageAttachmentList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedImageAttachmentList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedImageAttachmentList) HasNext() bool {
func (o *PaginatedImageAttachmentList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedImageAttachmentList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedImageAttachmentList) HasPrevious() bool {
func (o *PaginatedImageAttachmentList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedImageAttachmentList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedImageAttachmentList) SetResults(v []ImageAttachment) {
o.Results = v
}
-
func (o PaginatedImageAttachmentList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedImageAttachmentList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedImageAttachmentList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go
index 7e66b46b4..fda15a520 100644
--- a/model_paginated_interface_list.go
+++ b/model_paginated_interface_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceList{}
// PaginatedInterfaceList struct for PaginatedInterfaceList
type PaginatedInterfaceList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Interface `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Interface `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedInterfaceList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedInterfaceList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedInterfaceList) HasNext() bool {
func (o *PaginatedInterfaceList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedInterfaceList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedInterfaceList) HasPrevious() bool {
func (o *PaginatedInterfaceList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedInterfaceList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedInterfaceList) SetResults(v []Interface) {
o.Results = v
}
-
func (o PaginatedInterfaceList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedInterfaceList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedInterfaceList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go
index bcd5282d2..e9637bb4d 100644
--- a/model_paginated_interface_template_list.go
+++ b/model_paginated_interface_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceTemplateList{}
// PaginatedInterfaceTemplateList struct for PaginatedInterfaceTemplateList
type PaginatedInterfaceTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []InterfaceTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []InterfaceTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedInterfaceTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedInterfaceTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedInterfaceTemplateList) HasNext() bool {
func (o *PaginatedInterfaceTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedInterfaceTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedInterfaceTemplateList) HasPrevious() bool {
func (o *PaginatedInterfaceTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedInterfaceTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedInterfaceTemplateList) SetResults(v []InterfaceTemplate) {
o.Results = v
}
-
func (o PaginatedInterfaceTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedInterfaceTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go
index 1df6d0f7e..0a02d1b59 100644
--- a/model_paginated_inventory_item_list.go
+++ b/model_paginated_inventory_item_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemList{}
// PaginatedInventoryItemList struct for PaginatedInventoryItemList
type PaginatedInventoryItemList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItem `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []InventoryItem `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedInventoryItemList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedInventoryItemList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedInventoryItemList) HasNext() bool {
func (o *PaginatedInventoryItemList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedInventoryItemList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedInventoryItemList) HasPrevious() bool {
func (o *PaginatedInventoryItemList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedInventoryItemList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedInventoryItemList) SetResults(v []InventoryItem) {
o.Results = v
}
-
func (o PaginatedInventoryItemList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedInventoryItemList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedInventoryItemList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go
index e3c30bd99..8e7c59b1f 100644
--- a/model_paginated_inventory_item_role_list.go
+++ b/model_paginated_inventory_item_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemRoleList{}
// PaginatedInventoryItemRoleList struct for PaginatedInventoryItemRoleList
type PaginatedInventoryItemRoleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItemRole `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []InventoryItemRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedInventoryItemRoleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedInventoryItemRoleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedInventoryItemRoleList) HasNext() bool {
func (o *PaginatedInventoryItemRoleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedInventoryItemRoleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedInventoryItemRoleList) HasPrevious() bool {
func (o *PaginatedInventoryItemRoleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedInventoryItemRoleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedInventoryItemRoleList) SetResults(v []InventoryItemRole) {
o.Results = v
}
-
func (o PaginatedInventoryItemRoleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedInventoryItemRoleList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go
index 33038a5d6..4747c1a7d 100644
--- a/model_paginated_inventory_item_template_list.go
+++ b/model_paginated_inventory_item_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemTemplateList{}
// PaginatedInventoryItemTemplateList struct for PaginatedInventoryItemTemplateList
type PaginatedInventoryItemTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItemTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []InventoryItemTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedInventoryItemTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedInventoryItemTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedInventoryItemTemplateList) HasNext() bool {
func (o *PaginatedInventoryItemTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedInventoryItemTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedInventoryItemTemplateList) HasPrevious() bool {
func (o *PaginatedInventoryItemTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedInventoryItemTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedInventoryItemTemplateList) SetResults(v []InventoryItemTemplat
o.Results = v
}
-
func (o PaginatedInventoryItemTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(data []byte) (err err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedInventoryItemTemplateList) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go
index 38c79c107..517fccbdd 100644
--- a/model_paginated_ip_address_list.go
+++ b/model_paginated_ip_address_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPAddressList{}
// PaginatedIPAddressList struct for PaginatedIPAddressList
type PaginatedIPAddressList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IPAddress `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPAddress `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedIPAddressList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedIPAddressList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIPAddressList) HasNext() bool {
func (o *PaginatedIPAddressList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIPAddressList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIPAddressList) HasPrevious() bool {
func (o *PaginatedIPAddressList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIPAddressList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIPAddressList) SetResults(v []IPAddress) {
o.Results = v
}
-
func (o PaginatedIPAddressList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIPAddressList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedIPAddressList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go
index b96caae2e..580661d2c 100644
--- a/model_paginated_ip_range_list.go
+++ b/model_paginated_ip_range_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPRangeList{}
// PaginatedIPRangeList struct for PaginatedIPRangeList
type PaginatedIPRangeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IPRange `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPRange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedIPRangeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedIPRangeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIPRangeList) HasNext() bool {
func (o *PaginatedIPRangeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIPRangeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIPRangeList) HasPrevious() bool {
func (o *PaginatedIPRangeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIPRangeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIPRangeList) SetResults(v []IPRange) {
o.Results = v
}
-
func (o PaginatedIPRangeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIPRangeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedIPRangeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go
index 062e43128..87a339b58 100644
--- a/model_paginated_ip_sec_policy_list.go
+++ b/model_paginated_ip_sec_policy_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecPolicyList{}
// PaginatedIPSecPolicyList struct for PaginatedIPSecPolicyList
type PaginatedIPSecPolicyList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IPSecPolicy `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecPolicy `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIPSecPolicyList) HasNext() bool {
func (o *PaginatedIPSecPolicyList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIPSecPolicyList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIPSecPolicyList) HasPrevious() bool {
func (o *PaginatedIPSecPolicyList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIPSecPolicyList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIPSecPolicyList) SetResults(v []IPSecPolicy) {
o.Results = v
}
-
func (o PaginatedIPSecPolicyList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIPSecPolicyList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedIPSecPolicyList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go
index 2c384b639..24cc45f53 100644
--- a/model_paginated_ip_sec_profile_list.go
+++ b/model_paginated_ip_sec_profile_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProfileList{}
// PaginatedIPSecProfileList struct for PaginatedIPSecProfileList
type PaginatedIPSecProfileList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IPSecProfile `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecProfile `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIPSecProfileList) HasNext() bool {
func (o *PaginatedIPSecProfileList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIPSecProfileList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIPSecProfileList) HasPrevious() bool {
func (o *PaginatedIPSecProfileList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIPSecProfileList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIPSecProfileList) SetResults(v []IPSecProfile) {
o.Results = v
}
-
func (o PaginatedIPSecProfileList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIPSecProfileList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedIPSecProfileList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go
index 0c737d856..31326ace6 100644
--- a/model_paginated_ip_sec_proposal_list.go
+++ b/model_paginated_ip_sec_proposal_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProposalList{}
// PaginatedIPSecProposalList struct for PaginatedIPSecProposalList
type PaginatedIPSecProposalList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []IPSecProposal `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []IPSecProposal `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedIPSecProposalList) HasNext() bool {
func (o *PaginatedIPSecProposalList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedIPSecProposalList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedIPSecProposalList) HasPrevious() bool {
func (o *PaginatedIPSecProposalList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedIPSecProposalList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedIPSecProposalList) SetResults(v []IPSecProposal) {
o.Results = v
}
-
func (o PaginatedIPSecProposalList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedIPSecProposalList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ 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 dc249d478..4b786d6f2 100644
--- a/model_paginated_job_list.go
+++ b/model_paginated_job_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedJobList{}
// PaginatedJobList struct for PaginatedJobList
type PaginatedJobList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Job `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Job `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedJobList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedJobList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedJobList) HasNext() bool {
func (o *PaginatedJobList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedJobList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedJobList) HasPrevious() bool {
func (o *PaginatedJobList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedJobList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedJobList) SetResults(v []Job) {
o.Results = v
}
-
func (o PaginatedJobList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedJobList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedJobList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go
index 84d5fe120..0c1f3c688 100644
--- a/model_paginated_journal_entry_list.go
+++ b/model_paginated_journal_entry_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedJournalEntryList{}
// PaginatedJournalEntryList struct for PaginatedJournalEntryList
type PaginatedJournalEntryList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []JournalEntry `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []JournalEntry `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedJournalEntryList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedJournalEntryList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedJournalEntryList) HasNext() bool {
func (o *PaginatedJournalEntryList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedJournalEntryList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedJournalEntryList) HasPrevious() bool {
func (o *PaginatedJournalEntryList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedJournalEntryList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedJournalEntryList) SetResults(v []JournalEntry) {
o.Results = v
}
-
func (o PaginatedJournalEntryList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedJournalEntryList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedJournalEntryList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go
index cb0fc993b..7c1d5d124 100644
--- a/model_paginated_l2_vpn_list.go
+++ b/model_paginated_l2_vpn_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNList{}
// PaginatedL2VPNList struct for PaginatedL2VPNList
type PaginatedL2VPNList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []L2VPN `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []L2VPN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedL2VPNList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedL2VPNList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedL2VPNList) HasNext() bool {
func (o *PaginatedL2VPNList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedL2VPNList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedL2VPNList) HasPrevious() bool {
func (o *PaginatedL2VPNList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedL2VPNList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedL2VPNList) SetResults(v []L2VPN) {
o.Results = v
}
-
func (o PaginatedL2VPNList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedL2VPNList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedL2VPNList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go
index 6696f6c5a..d63590720 100644
--- a/model_paginated_l2_vpn_termination_list.go
+++ b/model_paginated_l2_vpn_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNTerminationList{}
// PaginatedL2VPNTerminationList struct for PaginatedL2VPNTerminationList
type PaginatedL2VPNTerminationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []L2VPNTermination `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []L2VPNTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedL2VPNTerminationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedL2VPNTerminationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedL2VPNTerminationList) HasNext() bool {
func (o *PaginatedL2VPNTerminationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedL2VPNTerminationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedL2VPNTerminationList) HasPrevious() bool {
func (o *PaginatedL2VPNTerminationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedL2VPNTerminationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedL2VPNTerminationList) SetResults(v []L2VPNTermination) {
o.Results = v
}
-
func (o PaginatedL2VPNTerminationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedL2VPNTerminationList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go
index 1d68887a3..dedd15ccd 100644
--- a/model_paginated_location_list.go
+++ b/model_paginated_location_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedLocationList{}
// PaginatedLocationList struct for PaginatedLocationList
type PaginatedLocationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Location `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Location `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedLocationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedLocationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedLocationList) HasNext() bool {
func (o *PaginatedLocationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedLocationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedLocationList) HasPrevious() bool {
func (o *PaginatedLocationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedLocationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedLocationList) SetResults(v []Location) {
o.Results = v
}
-
func (o PaginatedLocationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedLocationList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedLocationList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_mac_address_list.go b/model_paginated_mac_address_list.go
index 0c88aea69..26e4d9837 100644
--- a/model_paginated_mac_address_list.go
+++ b/model_paginated_mac_address_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedMACAddressList{}
// PaginatedMACAddressList struct for PaginatedMACAddressList
type PaginatedMACAddressList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []MACAddress `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []MACAddress `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedMACAddressList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedMACAddressList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedMACAddressList) HasNext() bool {
func (o *PaginatedMACAddressList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedMACAddressList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedMACAddressList) HasPrevious() bool {
func (o *PaginatedMACAddressList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedMACAddressList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedMACAddressList) SetResults(v []MACAddress) {
o.Results = v
}
-
func (o PaginatedMACAddressList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedMACAddressList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedMACAddressList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go
index db0df170f..f80889286 100644
--- a/model_paginated_manufacturer_list.go
+++ b/model_paginated_manufacturer_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedManufacturerList{}
// PaginatedManufacturerList struct for PaginatedManufacturerList
type PaginatedManufacturerList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Manufacturer `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Manufacturer `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedManufacturerList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedManufacturerList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedManufacturerList) HasNext() bool {
func (o *PaginatedManufacturerList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedManufacturerList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedManufacturerList) HasPrevious() bool {
func (o *PaginatedManufacturerList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedManufacturerList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedManufacturerList) SetResults(v []Manufacturer) {
o.Results = v
}
-
func (o PaginatedManufacturerList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedManufacturerList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedManufacturerList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go
index 3b858c4ba..0c77e52dc 100644
--- a/model_paginated_module_bay_list.go
+++ b/model_paginated_module_bay_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayList{}
// PaginatedModuleBayList struct for PaginatedModuleBayList
type PaginatedModuleBayList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ModuleBay `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ModuleBay `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedModuleBayList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedModuleBayList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedModuleBayList) HasNext() bool {
func (o *PaginatedModuleBayList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedModuleBayList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedModuleBayList) HasPrevious() bool {
func (o *PaginatedModuleBayList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedModuleBayList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedModuleBayList) SetResults(v []ModuleBay) {
o.Results = v
}
-
func (o PaginatedModuleBayList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedModuleBayList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedModuleBayList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go
index 7993dd499..5e61f62a3 100644
--- a/model_paginated_module_bay_template_list.go
+++ b/model_paginated_module_bay_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayTemplateList{}
// PaginatedModuleBayTemplateList struct for PaginatedModuleBayTemplateList
type PaginatedModuleBayTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ModuleBayTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ModuleBayTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedModuleBayTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedModuleBayTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedModuleBayTemplateList) HasNext() bool {
func (o *PaginatedModuleBayTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedModuleBayTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedModuleBayTemplateList) HasPrevious() bool {
func (o *PaginatedModuleBayTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedModuleBayTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedModuleBayTemplateList) SetResults(v []ModuleBayTemplate) {
o.Results = v
}
-
func (o PaginatedModuleBayTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedModuleBayTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go
index 7d2770992..4a3edcf62 100644
--- a/model_paginated_module_list.go
+++ b/model_paginated_module_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleList{}
// PaginatedModuleList struct for PaginatedModuleList
type PaginatedModuleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Module `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Module `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedModuleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedModuleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedModuleList) HasNext() bool {
func (o *PaginatedModuleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedModuleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedModuleList) HasPrevious() bool {
func (o *PaginatedModuleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedModuleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedModuleList) SetResults(v []Module) {
o.Results = v
}
-
func (o PaginatedModuleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedModuleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedModuleList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go
index 3dd60510b..42e3f4ccb 100644
--- a/model_paginated_module_type_list.go
+++ b/model_paginated_module_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleTypeList{}
// PaginatedModuleTypeList struct for PaginatedModuleTypeList
type PaginatedModuleTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ModuleType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ModuleType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedModuleTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedModuleTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedModuleTypeList) HasNext() bool {
func (o *PaginatedModuleTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedModuleTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedModuleTypeList) HasPrevious() bool {
func (o *PaginatedModuleTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedModuleTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedModuleTypeList) SetResults(v []ModuleType) {
o.Results = v
}
-
func (o PaginatedModuleTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedModuleTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedModuleTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_module_type_profile_list.go b/model_paginated_module_type_profile_list.go
new file mode 100644
index 000000000..7fef58f09
--- /dev/null
+++ b/model_paginated_module_type_profile_list.go
@@ -0,0 +1,307 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PaginatedModuleTypeProfileList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedModuleTypeProfileList{}
+
+// PaginatedModuleTypeProfileList struct for PaginatedModuleTypeProfileList
+type PaginatedModuleTypeProfileList struct {
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ModuleTypeProfile `json:"results"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedModuleTypeProfileList PaginatedModuleTypeProfileList
+
+// NewPaginatedModuleTypeProfileList instantiates a new PaginatedModuleTypeProfileList object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPaginatedModuleTypeProfileList(count int32, results []ModuleTypeProfile) *PaginatedModuleTypeProfileList {
+ this := PaginatedModuleTypeProfileList{}
+ this.Count = count
+ this.Results = results
+ return &this
+}
+
+// NewPaginatedModuleTypeProfileListWithDefaults instantiates a new PaginatedModuleTypeProfileList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedModuleTypeProfileListWithDefaults() *PaginatedModuleTypeProfileList {
+ this := PaginatedModuleTypeProfileList{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *PaginatedModuleTypeProfileList) GetCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedModuleTypeProfileList) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedModuleTypeProfileList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) 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 *PaginatedModuleTypeProfileList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedModuleTypeProfileList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedModuleTypeProfileList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value
+func (o *PaginatedModuleTypeProfileList) GetResults() []ModuleTypeProfile {
+ if o == nil {
+ var ret []ModuleTypeProfile
+ return ret
+ }
+
+ return o.Results
+}
+
+// GetResultsOk returns a tuple with the Results field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedModuleTypeProfileList) GetResultsOk() ([]ModuleTypeProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// SetResults sets field value
+func (o *PaginatedModuleTypeProfileList) SetResults(v []ModuleTypeProfile) {
+ o.Results = v
+}
+
+func (o PaginatedModuleTypeProfileList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedModuleTypeProfileList) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["count"] = o.Count
+ if o.Next.IsSet() {
+ toSerialize["next"] = o.Next.Get()
+ }
+ if o.Previous.IsSet() {
+ toSerialize["previous"] = o.Previous.Get()
+ }
+ toSerialize["results"] = o.Results
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PaginatedModuleTypeProfileList) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "count",
+ "results",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varPaginatedModuleTypeProfileList := _PaginatedModuleTypeProfileList{}
+
+ err = json.Unmarshal(data, &varPaginatedModuleTypeProfileList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedModuleTypeProfileList(varPaginatedModuleTypeProfileList)
+
+ 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 NullablePaginatedModuleTypeProfileList struct {
+ value *PaginatedModuleTypeProfileList
+ isSet bool
+}
+
+func (v NullablePaginatedModuleTypeProfileList) Get() *PaginatedModuleTypeProfileList {
+ return v.value
+}
+
+func (v *NullablePaginatedModuleTypeProfileList) Set(val *PaginatedModuleTypeProfileList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedModuleTypeProfileList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedModuleTypeProfileList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedModuleTypeProfileList(val *PaginatedModuleTypeProfileList) *NullablePaginatedModuleTypeProfileList {
+ return &NullablePaginatedModuleTypeProfileList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedModuleTypeProfileList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedModuleTypeProfileList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go
index 7c1bcd1d2..ca554da6d 100644
--- a/model_paginated_notification_group_list.go
+++ b/model_paginated_notification_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedNotificationGroupList{}
// PaginatedNotificationGroupList struct for PaginatedNotificationGroupList
type PaginatedNotificationGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []NotificationGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []NotificationGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedNotificationGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedNotificationGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedNotificationGroupList) HasNext() bool {
func (o *PaginatedNotificationGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedNotificationGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedNotificationGroupList) HasPrevious() bool {
func (o *PaginatedNotificationGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedNotificationGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup) {
o.Results = v
}
-
func (o PaginatedNotificationGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedNotificationGroupList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedNotificationGroupList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go
index f2b013c2f..29eec78de 100644
--- a/model_paginated_notification_list.go
+++ b/model_paginated_notification_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedNotificationList{}
// PaginatedNotificationList struct for PaginatedNotificationList
type PaginatedNotificationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Notification `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Notification `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedNotificationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedNotificationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedNotificationList) HasNext() bool {
func (o *PaginatedNotificationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedNotificationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedNotificationList) HasPrevious() bool {
func (o *PaginatedNotificationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedNotificationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedNotificationList) SetResults(v []Notification) {
o.Results = v
}
-
func (o PaginatedNotificationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedNotificationList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedNotificationList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go
index 111c04548..31c5ccc26 100644
--- a/model_paginated_object_change_list.go
+++ b/model_paginated_object_change_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectChangeList{}
// PaginatedObjectChangeList struct for PaginatedObjectChangeList
type PaginatedObjectChangeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ObjectChange `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ObjectChange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedObjectChangeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedObjectChangeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedObjectChangeList) HasNext() bool {
func (o *PaginatedObjectChangeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedObjectChangeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedObjectChangeList) HasPrevious() bool {
func (o *PaginatedObjectChangeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedObjectChangeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedObjectChangeList) SetResults(v []ObjectChange) {
o.Results = v
}
-
func (o PaginatedObjectChangeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedObjectChangeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedObjectChangeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go
index ed7a317fa..7c08d3d98 100644
--- a/model_paginated_object_permission_list.go
+++ b/model_paginated_object_permission_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectPermissionList{}
// PaginatedObjectPermissionList struct for PaginatedObjectPermissionList
type PaginatedObjectPermissionList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ObjectPermission `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ObjectPermission `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedObjectPermissionList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedObjectPermissionList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedObjectPermissionList) HasNext() bool {
func (o *PaginatedObjectPermissionList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedObjectPermissionList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedObjectPermissionList) HasPrevious() bool {
func (o *PaginatedObjectPermissionList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedObjectPermissionList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedObjectPermissionList) SetResults(v []ObjectPermission) {
o.Results = v
}
-
func (o PaginatedObjectPermissionList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedObjectPermissionList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedObjectPermissionList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go
index 0b774a8f9..8c2564521 100644
--- a/model_paginated_object_type_list.go
+++ b/model_paginated_object_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectTypeList{}
// PaginatedObjectTypeList struct for PaginatedObjectTypeList
type PaginatedObjectTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ObjectType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ObjectType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedObjectTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedObjectTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedObjectTypeList) HasNext() bool {
func (o *PaginatedObjectTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedObjectTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedObjectTypeList) HasPrevious() bool {
func (o *PaginatedObjectTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedObjectTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedObjectTypeList) SetResults(v []ObjectType) {
o.Results = v
}
-
func (o PaginatedObjectTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedObjectTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedObjectTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go
index 0ff7b9d43..5d49faaa2 100644
--- a/model_paginated_platform_list.go
+++ b/model_paginated_platform_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPlatformList{}
// PaginatedPlatformList struct for PaginatedPlatformList
type PaginatedPlatformList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Platform `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Platform `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPlatformList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPlatformList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPlatformList) HasNext() bool {
func (o *PaginatedPlatformList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPlatformList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPlatformList) HasPrevious() bool {
func (o *PaginatedPlatformList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPlatformList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPlatformList) SetResults(v []Platform) {
o.Results = v
}
-
func (o PaginatedPlatformList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPlatformList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPlatformList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go
index d1121662a..b0136e5c3 100644
--- a/model_paginated_power_feed_list.go
+++ b/model_paginated_power_feed_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerFeedList{}
// PaginatedPowerFeedList struct for PaginatedPowerFeedList
type PaginatedPowerFeedList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerFeed `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerFeed `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerFeedList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerFeedList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerFeedList) HasNext() bool {
func (o *PaginatedPowerFeedList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerFeedList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerFeedList) HasPrevious() bool {
func (o *PaginatedPowerFeedList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerFeedList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerFeedList) SetResults(v []PowerFeed) {
o.Results = v
}
-
func (o PaginatedPowerFeedList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerFeedList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerFeedList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go
index 0aabe9df9..61737efea 100644
--- a/model_paginated_power_outlet_list.go
+++ b/model_paginated_power_outlet_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletList{}
// PaginatedPowerOutletList struct for PaginatedPowerOutletList
type PaginatedPowerOutletList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerOutlet `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerOutlet `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerOutletList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerOutletList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerOutletList) HasNext() bool {
func (o *PaginatedPowerOutletList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerOutletList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerOutletList) HasPrevious() bool {
func (o *PaginatedPowerOutletList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerOutletList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerOutletList) SetResults(v []PowerOutlet) {
o.Results = v
}
-
func (o PaginatedPowerOutletList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerOutletList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerOutletList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go
index 23a400a7b..a3d2e2010 100644
--- a/model_paginated_power_outlet_template_list.go
+++ b/model_paginated_power_outlet_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletTemplateList{}
// PaginatedPowerOutletTemplateList struct for PaginatedPowerOutletTemplateList
type PaginatedPowerOutletTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerOutletTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerOutletTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerOutletTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerOutletTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerOutletTemplateList) HasNext() bool {
func (o *PaginatedPowerOutletTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerOutletTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerOutletTemplateList) HasPrevious() bool {
func (o *PaginatedPowerOutletTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerOutletTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerOutletTemplateList) SetResults(v []PowerOutletTemplate) {
o.Results = v
}
-
func (o PaginatedPowerOutletTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerOutletTemplateList) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go
index 0c1706c4e..235dc538a 100644
--- a/model_paginated_power_panel_list.go
+++ b/model_paginated_power_panel_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPanelList{}
// PaginatedPowerPanelList struct for PaginatedPowerPanelList
type PaginatedPowerPanelList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerPanel `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerPanel `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerPanelList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerPanelList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerPanelList) HasNext() bool {
func (o *PaginatedPowerPanelList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerPanelList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerPanelList) HasPrevious() bool {
func (o *PaginatedPowerPanelList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerPanelList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerPanelList) SetResults(v []PowerPanel) {
o.Results = v
}
-
func (o PaginatedPowerPanelList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerPanelList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerPanelList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go
index b1d9325fd..877965115 100644
--- a/model_paginated_power_port_list.go
+++ b/model_paginated_power_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortList{}
// PaginatedPowerPortList struct for PaginatedPowerPortList
type PaginatedPowerPortList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerPort `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerPortList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerPortList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerPortList) HasNext() bool {
func (o *PaginatedPowerPortList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerPortList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerPortList) HasPrevious() bool {
func (o *PaginatedPowerPortList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerPortList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerPortList) SetResults(v []PowerPort) {
o.Results = v
}
-
func (o PaginatedPowerPortList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerPortList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerPortList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go
index 9e9d152bf..a90064a77 100644
--- a/model_paginated_power_port_template_list.go
+++ b/model_paginated_power_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortTemplateList{}
// PaginatedPowerPortTemplateList struct for PaginatedPowerPortTemplateList
type PaginatedPowerPortTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []PowerPortTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []PowerPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPowerPortTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPowerPortTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPowerPortTemplateList) HasNext() bool {
func (o *PaginatedPowerPortTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPowerPortTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPowerPortTemplateList) HasPrevious() bool {
func (o *PaginatedPowerPortTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPowerPortTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPowerPortTemplateList) SetResults(v []PowerPortTemplate) {
o.Results = v
}
-
func (o PaginatedPowerPortTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPowerPortTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go
index afb584484..bbcd4462f 100644
--- a/model_paginated_prefix_list.go
+++ b/model_paginated_prefix_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPrefixList{}
// PaginatedPrefixList struct for PaginatedPrefixList
type PaginatedPrefixList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Prefix `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Prefix `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedPrefixList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedPrefixList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedPrefixList) HasNext() bool {
func (o *PaginatedPrefixList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedPrefixList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedPrefixList) HasPrevious() bool {
func (o *PaginatedPrefixList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedPrefixList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedPrefixList) SetResults(v []Prefix) {
o.Results = v
}
-
func (o PaginatedPrefixList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedPrefixList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedPrefixList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go
index e55fc0521..0faed429e 100644
--- a/model_paginated_provider_account_list.go
+++ b/model_paginated_provider_account_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderAccountList{}
// PaginatedProviderAccountList struct for PaginatedProviderAccountList
type PaginatedProviderAccountList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ProviderAccount `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ProviderAccount `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedProviderAccountList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedProviderAccountList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedProviderAccountList) HasNext() bool {
func (o *PaginatedProviderAccountList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedProviderAccountList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedProviderAccountList) HasPrevious() bool {
func (o *PaginatedProviderAccountList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedProviderAccountList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedProviderAccountList) SetResults(v []ProviderAccount) {
o.Results = v
}
-
func (o PaginatedProviderAccountList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedProviderAccountList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedProviderAccountList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go
index b0b58c1f8..f9a9a0b77 100644
--- a/model_paginated_provider_list.go
+++ b/model_paginated_provider_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderList{}
// PaginatedProviderList struct for PaginatedProviderList
type PaginatedProviderList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Provider `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Provider `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedProviderList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedProviderList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedProviderList) HasNext() bool {
func (o *PaginatedProviderList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedProviderList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedProviderList) HasPrevious() bool {
func (o *PaginatedProviderList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedProviderList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedProviderList) SetResults(v []Provider) {
o.Results = v
}
-
func (o PaginatedProviderList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedProviderList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedProviderList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go
index 2d4006641..5d936cf0b 100644
--- a/model_paginated_provider_network_list.go
+++ b/model_paginated_provider_network_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderNetworkList{}
// PaginatedProviderNetworkList struct for PaginatedProviderNetworkList
type PaginatedProviderNetworkList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ProviderNetwork `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ProviderNetwork `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedProviderNetworkList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedProviderNetworkList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedProviderNetworkList) HasNext() bool {
func (o *PaginatedProviderNetworkList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedProviderNetworkList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedProviderNetworkList) HasPrevious() bool {
func (o *PaginatedProviderNetworkList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedProviderNetworkList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedProviderNetworkList) SetResults(v []ProviderNetwork) {
o.Results = v
}
-
func (o PaginatedProviderNetworkList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedProviderNetworkList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedProviderNetworkList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go
index 0bb868156..6556da90d 100644
--- a/model_paginated_rack_list.go
+++ b/model_paginated_rack_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackList{}
// PaginatedRackList struct for PaginatedRackList
type PaginatedRackList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Rack `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Rack `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRackList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRackList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRackList) HasNext() bool {
func (o *PaginatedRackList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRackList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRackList) HasPrevious() bool {
func (o *PaginatedRackList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRackList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRackList) SetResults(v []Rack) {
o.Results = v
}
-
func (o PaginatedRackList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRackList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRackList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go
index 004bdc8b5..fec281b78 100644
--- a/model_paginated_rack_reservation_list.go
+++ b/model_paginated_rack_reservation_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackReservationList{}
// PaginatedRackReservationList struct for PaginatedRackReservationList
type PaginatedRackReservationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RackReservation `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RackReservation `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRackReservationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRackReservationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRackReservationList) HasNext() bool {
func (o *PaginatedRackReservationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRackReservationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRackReservationList) HasPrevious() bool {
func (o *PaginatedRackReservationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRackReservationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRackReservationList) SetResults(v []RackReservation) {
o.Results = v
}
-
func (o PaginatedRackReservationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRackReservationList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRackReservationList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go
index c9297ce91..9aed9c962 100644
--- a/model_paginated_rack_role_list.go
+++ b/model_paginated_rack_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackRoleList{}
// PaginatedRackRoleList struct for PaginatedRackRoleList
type PaginatedRackRoleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RackRole `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RackRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRackRoleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRackRoleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRackRoleList) HasNext() bool {
func (o *PaginatedRackRoleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRackRoleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRackRoleList) HasPrevious() bool {
func (o *PaginatedRackRoleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRackRoleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRackRoleList) SetResults(v []RackRole) {
o.Results = v
}
-
func (o PaginatedRackRoleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRackRoleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRackRoleList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go
index 5e496c14b..2436aa89c 100644
--- a/model_paginated_rack_type_list.go
+++ b/model_paginated_rack_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackTypeList{}
// PaginatedRackTypeList struct for PaginatedRackTypeList
type PaginatedRackTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RackType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RackType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRackTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRackTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRackTypeList) HasNext() bool {
func (o *PaginatedRackTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRackTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRackTypeList) HasPrevious() bool {
func (o *PaginatedRackTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRackTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRackTypeList) SetResults(v []RackType) {
o.Results = v
}
-
func (o PaginatedRackTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRackTypeList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRackTypeList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go
index 0d68dc8de..51c40fb38 100644
--- a/model_paginated_rack_unit_list.go
+++ b/model_paginated_rack_unit_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackUnitList{}
// PaginatedRackUnitList struct for PaginatedRackUnitList
type PaginatedRackUnitList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RackUnit `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RackUnit `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRackUnitList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRackUnitList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRackUnitList) HasNext() bool {
func (o *PaginatedRackUnitList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRackUnitList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRackUnitList) HasPrevious() bool {
func (o *PaginatedRackUnitList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRackUnitList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRackUnitList) SetResults(v []RackUnit) {
o.Results = v
}
-
func (o PaginatedRackUnitList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRackUnitList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRackUnitList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go
index 43dfd15b0..90d6f436c 100644
--- a/model_paginated_rear_port_list.go
+++ b/model_paginated_rear_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortList{}
// PaginatedRearPortList struct for PaginatedRearPortList
type PaginatedRearPortList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RearPort `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RearPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRearPortList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRearPortList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRearPortList) HasNext() bool {
func (o *PaginatedRearPortList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRearPortList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRearPortList) HasPrevious() bool {
func (o *PaginatedRearPortList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRearPortList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRearPortList) SetResults(v []RearPort) {
o.Results = v
}
-
func (o PaginatedRearPortList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRearPortList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRearPortList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go
index 01f78ab6e..ae406a8da 100644
--- a/model_paginated_rear_port_template_list.go
+++ b/model_paginated_rear_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortTemplateList{}
// PaginatedRearPortTemplateList struct for PaginatedRearPortTemplateList
type PaginatedRearPortTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RearPortTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RearPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRearPortTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRearPortTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRearPortTemplateList) HasNext() bool {
func (o *PaginatedRearPortTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRearPortTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRearPortTemplateList) HasPrevious() bool {
func (o *PaginatedRearPortTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRearPortTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRearPortTemplateList) SetResults(v []RearPortTemplate) {
o.Results = v
}
-
func (o PaginatedRearPortTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRearPortTemplateList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRearPortTemplateList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go
index e073879af..b5d745b71 100644
--- a/model_paginated_region_list.go
+++ b/model_paginated_region_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRegionList{}
// PaginatedRegionList struct for PaginatedRegionList
type PaginatedRegionList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Region `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Region `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRegionList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRegionList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRegionList) HasNext() bool {
func (o *PaginatedRegionList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRegionList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRegionList) HasPrevious() bool {
func (o *PaginatedRegionList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRegionList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRegionList) SetResults(v []Region) {
o.Results = v
}
-
func (o PaginatedRegionList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRegionList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRegionList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go
index 7ba85b28a..214235bb8 100644
--- a/model_paginated_rir_list.go
+++ b/model_paginated_rir_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRIRList{}
// PaginatedRIRList struct for PaginatedRIRList
type PaginatedRIRList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RIR `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RIR `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRIRList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRIRList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRIRList) HasNext() bool {
func (o *PaginatedRIRList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRIRList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRIRList) HasPrevious() bool {
func (o *PaginatedRIRList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRIRList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRIRList) SetResults(v []RIR) {
o.Results = v
}
-
func (o PaginatedRIRList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRIRList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRIRList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go
index 7bb39be9b..b29c0e7a4 100644
--- a/model_paginated_role_list.go
+++ b/model_paginated_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRoleList{}
// PaginatedRoleList struct for PaginatedRoleList
type PaginatedRoleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Role `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Role `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRoleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRoleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRoleList) HasNext() bool {
func (o *PaginatedRoleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRoleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRoleList) HasPrevious() bool {
func (o *PaginatedRoleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRoleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRoleList) SetResults(v []Role) {
o.Results = v
}
-
func (o PaginatedRoleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRoleList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRoleList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go
index a6c9a5bc1..f2c9518cf 100644
--- a/model_paginated_route_target_list.go
+++ b/model_paginated_route_target_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRouteTargetList{}
// PaginatedRouteTargetList struct for PaginatedRouteTargetList
type PaginatedRouteTargetList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []RouteTarget `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []RouteTarget `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedRouteTargetList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedRouteTargetList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedRouteTargetList) HasNext() bool {
func (o *PaginatedRouteTargetList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedRouteTargetList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedRouteTargetList) HasPrevious() bool {
func (o *PaginatedRouteTargetList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedRouteTargetList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedRouteTargetList) SetResults(v []RouteTarget) {
o.Results = v
}
-
func (o PaginatedRouteTargetList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedRouteTargetList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedRouteTargetList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go
index ad1a14773..af327b485 100644
--- a/model_paginated_saved_filter_list.go
+++ b/model_paginated_saved_filter_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSavedFilterList{}
// PaginatedSavedFilterList struct for PaginatedSavedFilterList
type PaginatedSavedFilterList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []SavedFilter `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []SavedFilter `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedSavedFilterList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedSavedFilterList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedSavedFilterList) HasNext() bool {
func (o *PaginatedSavedFilterList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedSavedFilterList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedSavedFilterList) HasPrevious() bool {
func (o *PaginatedSavedFilterList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedSavedFilterList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedSavedFilterList) SetResults(v []SavedFilter) {
o.Results = v
}
-
func (o PaginatedSavedFilterList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedSavedFilterList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedSavedFilterList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go
index e542d803f..e105b64a0 100644
--- a/model_paginated_script_list.go
+++ b/model_paginated_script_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedScriptList{}
// PaginatedScriptList struct for PaginatedScriptList
type PaginatedScriptList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Script `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Script `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedScriptList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedScriptList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedScriptList) HasNext() bool {
func (o *PaginatedScriptList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedScriptList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedScriptList) HasPrevious() bool {
func (o *PaginatedScriptList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedScriptList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedScriptList) SetResults(v []Script) {
o.Results = v
}
-
func (o PaginatedScriptList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedScriptList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedScriptList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go
index 5bcfe188d..6bbe1b19a 100644
--- a/model_paginated_service_list.go
+++ b/model_paginated_service_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceList{}
// PaginatedServiceList struct for PaginatedServiceList
type PaginatedServiceList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Service `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Service `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedServiceList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedServiceList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedServiceList) HasNext() bool {
func (o *PaginatedServiceList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedServiceList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedServiceList) HasPrevious() bool {
func (o *PaginatedServiceList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedServiceList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedServiceList) SetResults(v []Service) {
o.Results = v
}
-
func (o PaginatedServiceList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedServiceList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedServiceList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go
index 6ab622866..5992108ea 100644
--- a/model_paginated_service_template_list.go
+++ b/model_paginated_service_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceTemplateList{}
// PaginatedServiceTemplateList struct for PaginatedServiceTemplateList
type PaginatedServiceTemplateList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ServiceTemplate `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []ServiceTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedServiceTemplateList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedServiceTemplateList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedServiceTemplateList) HasNext() bool {
func (o *PaginatedServiceTemplateList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedServiceTemplateList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedServiceTemplateList) HasPrevious() bool {
func (o *PaginatedServiceTemplateList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedServiceTemplateList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedServiceTemplateList) SetResults(v []ServiceTemplate) {
o.Results = v
}
-
func (o PaginatedServiceTemplateList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedServiceTemplateList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedServiceTemplateList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go
index 41cbeb465..aed780024 100644
--- a/model_paginated_site_group_list.go
+++ b/model_paginated_site_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteGroupList{}
// PaginatedSiteGroupList struct for PaginatedSiteGroupList
type PaginatedSiteGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []SiteGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []SiteGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedSiteGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedSiteGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedSiteGroupList) HasNext() bool {
func (o *PaginatedSiteGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedSiteGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedSiteGroupList) HasPrevious() bool {
func (o *PaginatedSiteGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedSiteGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedSiteGroupList) SetResults(v []SiteGroup) {
o.Results = v
}
-
func (o PaginatedSiteGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedSiteGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedSiteGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go
index f1e98b4ee..ce0a1b766 100644
--- a/model_paginated_site_list.go
+++ b/model_paginated_site_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteList{}
// PaginatedSiteList struct for PaginatedSiteList
type PaginatedSiteList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Site `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Site `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedSiteList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedSiteList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedSiteList) HasNext() bool {
func (o *PaginatedSiteList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedSiteList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedSiteList) HasPrevious() bool {
func (o *PaginatedSiteList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedSiteList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedSiteList) SetResults(v []Site) {
o.Results = v
}
-
func (o PaginatedSiteList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedSiteList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedSiteList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go
index 548f37a94..e8cc4c26d 100644
--- a/model_paginated_subscription_list.go
+++ b/model_paginated_subscription_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSubscriptionList{}
// PaginatedSubscriptionList struct for PaginatedSubscriptionList
type PaginatedSubscriptionList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Subscription `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Subscription `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedSubscriptionList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedSubscriptionList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedSubscriptionList) HasNext() bool {
func (o *PaginatedSubscriptionList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedSubscriptionList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedSubscriptionList) HasPrevious() bool {
func (o *PaginatedSubscriptionList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedSubscriptionList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedSubscriptionList) SetResults(v []Subscription) {
o.Results = v
}
-
func (o PaginatedSubscriptionList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedSubscriptionList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedSubscriptionList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_table_config_list.go b/model_paginated_table_config_list.go
new file mode 100644
index 000000000..b4b392b0a
--- /dev/null
+++ b/model_paginated_table_config_list.go
@@ -0,0 +1,307 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PaginatedTableConfigList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedTableConfigList{}
+
+// PaginatedTableConfigList struct for PaginatedTableConfigList
+type PaginatedTableConfigList struct {
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TableConfig `json:"results"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedTableConfigList PaginatedTableConfigList
+
+// NewPaginatedTableConfigList instantiates a new PaginatedTableConfigList object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPaginatedTableConfigList(count int32, results []TableConfig) *PaginatedTableConfigList {
+ this := PaginatedTableConfigList{}
+ this.Count = count
+ this.Results = results
+ return &this
+}
+
+// NewPaginatedTableConfigListWithDefaults instantiates a new PaginatedTableConfigList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedTableConfigListWithDefaults() *PaginatedTableConfigList {
+ this := PaginatedTableConfigList{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *PaginatedTableConfigList) GetCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedTableConfigList) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedTableConfigList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) 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 *PaginatedTableConfigList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedTableConfigList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedTableConfigList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value
+func (o *PaginatedTableConfigList) GetResults() []TableConfig {
+ if o == nil {
+ var ret []TableConfig
+ return ret
+ }
+
+ return o.Results
+}
+
+// GetResultsOk returns a tuple with the Results field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedTableConfigList) GetResultsOk() ([]TableConfig, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// SetResults sets field value
+func (o *PaginatedTableConfigList) SetResults(v []TableConfig) {
+ o.Results = v
+}
+
+func (o PaginatedTableConfigList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedTableConfigList) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["count"] = o.Count
+ if o.Next.IsSet() {
+ toSerialize["next"] = o.Next.Get()
+ }
+ if o.Previous.IsSet() {
+ toSerialize["previous"] = o.Previous.Get()
+ }
+ toSerialize["results"] = o.Results
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PaginatedTableConfigList) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "count",
+ "results",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varPaginatedTableConfigList := _PaginatedTableConfigList{}
+
+ err = json.Unmarshal(data, &varPaginatedTableConfigList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedTableConfigList(varPaginatedTableConfigList)
+
+ 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 NullablePaginatedTableConfigList struct {
+ value *PaginatedTableConfigList
+ isSet bool
+}
+
+func (v NullablePaginatedTableConfigList) Get() *PaginatedTableConfigList {
+ return v.value
+}
+
+func (v *NullablePaginatedTableConfigList) Set(val *PaginatedTableConfigList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedTableConfigList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedTableConfigList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedTableConfigList(val *PaginatedTableConfigList) *NullablePaginatedTableConfigList {
+ return &NullablePaginatedTableConfigList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedTableConfigList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedTableConfigList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go
index 9ed881ed8..b7b395fd3 100644
--- a/model_paginated_tag_list.go
+++ b/model_paginated_tag_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTagList{}
// PaginatedTagList struct for PaginatedTagList
type PaginatedTagList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Tag `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Tag `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedTagList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedTagList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTagList) HasNext() bool {
func (o *PaginatedTagList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTagList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTagList) HasPrevious() bool {
func (o *PaginatedTagList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTagList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTagList) SetResults(v []Tag) {
o.Results = v
}
-
func (o PaginatedTagList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTagList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTagList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_tagged_item_list.go b/model_paginated_tagged_item_list.go
new file mode 100644
index 000000000..d7de3c804
--- /dev/null
+++ b/model_paginated_tagged_item_list.go
@@ -0,0 +1,307 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the PaginatedTaggedItemList type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PaginatedTaggedItemList{}
+
+// PaginatedTaggedItemList struct for PaginatedTaggedItemList
+type PaginatedTaggedItemList struct {
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TaggedItem `json:"results"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedTaggedItemList PaginatedTaggedItemList
+
+// NewPaginatedTaggedItemList instantiates a new PaginatedTaggedItemList object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPaginatedTaggedItemList(count int32, results []TaggedItem) *PaginatedTaggedItemList {
+ this := PaginatedTaggedItemList{}
+ this.Count = count
+ this.Results = results
+ return &this
+}
+
+// NewPaginatedTaggedItemListWithDefaults instantiates a new PaginatedTaggedItemList object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPaginatedTaggedItemListWithDefaults() *PaginatedTaggedItemList {
+ this := PaginatedTaggedItemList{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *PaginatedTaggedItemList) GetCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Count
+}
+
+// GetCountOk returns a tuple with the Count field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedTaggedItemList) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+func (o *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) SetNext(v string) {
+ o.Next.Set(&v)
+}
+
+// SetNextNil sets the value for Next to be an explicit nil
+func (o *PaginatedTaggedItemList) SetNextNil() {
+ o.Next.Set(nil)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) 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 *PaginatedTaggedItemList) SetPrevious(v string) {
+ o.Previous.Set(&v)
+}
+
+// SetPreviousNil sets the value for Previous to be an explicit nil
+func (o *PaginatedTaggedItemList) SetPreviousNil() {
+ o.Previous.Set(nil)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedTaggedItemList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value
+func (o *PaginatedTaggedItemList) GetResults() []TaggedItem {
+ if o == nil {
+ var ret []TaggedItem
+ return ret
+ }
+
+ return o.Results
+}
+
+// GetResultsOk returns a tuple with the Results field value
+// and a boolean to check if the value has been set.
+func (o *PaginatedTaggedItemList) GetResultsOk() ([]TaggedItem, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// SetResults sets field value
+func (o *PaginatedTaggedItemList) SetResults(v []TaggedItem) {
+ o.Results = v
+}
+
+func (o PaginatedTaggedItemList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedTaggedItemList) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["count"] = o.Count
+ if o.Next.IsSet() {
+ toSerialize["next"] = o.Next.Get()
+ }
+ if o.Previous.IsSet() {
+ toSerialize["previous"] = o.Previous.Get()
+ }
+ toSerialize["results"] = o.Results
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PaginatedTaggedItemList) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "count",
+ "results",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varPaginatedTaggedItemList := _PaginatedTaggedItemList{}
+
+ err = json.Unmarshal(data, &varPaginatedTaggedItemList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedTaggedItemList(varPaginatedTaggedItemList)
+
+ 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 NullablePaginatedTaggedItemList struct {
+ value *PaginatedTaggedItemList
+ isSet bool
+}
+
+func (v NullablePaginatedTaggedItemList) Get() *PaginatedTaggedItemList {
+ return v.value
+}
+
+func (v *NullablePaginatedTaggedItemList) Set(val *PaginatedTaggedItemList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedTaggedItemList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedTaggedItemList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedTaggedItemList(val *PaginatedTaggedItemList) *NullablePaginatedTaggedItemList {
+ return &NullablePaginatedTaggedItemList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedTaggedItemList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePaginatedTaggedItemList) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go
index 720ebf60e..e7b77dbeb 100644
--- a/model_paginated_tenant_group_list.go
+++ b/model_paginated_tenant_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantGroupList{}
// PaginatedTenantGroupList struct for PaginatedTenantGroupList
type PaginatedTenantGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []TenantGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TenantGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedTenantGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedTenantGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTenantGroupList) HasNext() bool {
func (o *PaginatedTenantGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTenantGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTenantGroupList) HasPrevious() bool {
func (o *PaginatedTenantGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTenantGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTenantGroupList) SetResults(v []TenantGroup) {
o.Results = v
}
-
func (o PaginatedTenantGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTenantGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTenantGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go
index c6b8bfcf4..0f4253983 100644
--- a/model_paginated_tenant_list.go
+++ b/model_paginated_tenant_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantList{}
// PaginatedTenantList struct for PaginatedTenantList
type PaginatedTenantList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Tenant `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Tenant `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedTenantList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedTenantList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTenantList) HasNext() bool {
func (o *PaginatedTenantList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTenantList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTenantList) HasPrevious() bool {
func (o *PaginatedTenantList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTenantList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTenantList) SetResults(v []Tenant) {
o.Results = v
}
-
func (o PaginatedTenantList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTenantList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTenantList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go
index 6fe9a4b3f..9858191f6 100644
--- a/model_paginated_token_list.go
+++ b/model_paginated_token_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTokenList{}
// PaginatedTokenList struct for PaginatedTokenList
type PaginatedTokenList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Token `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Token `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedTokenList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedTokenList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTokenList) HasNext() bool {
func (o *PaginatedTokenList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTokenList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTokenList) HasPrevious() bool {
func (o *PaginatedTokenList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTokenList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTokenList) SetResults(v []Token) {
o.Results = v
}
-
func (o PaginatedTokenList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTokenList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTokenList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go
index 7a96da2d9..7296eff14 100644
--- a/model_paginated_tunnel_group_list.go
+++ b/model_paginated_tunnel_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelGroupList{}
// PaginatedTunnelGroupList struct for PaginatedTunnelGroupList
type PaginatedTunnelGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []TunnelGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TunnelGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTunnelGroupList) HasNext() bool {
func (o *PaginatedTunnelGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTunnelGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTunnelGroupList) HasPrevious() bool {
func (o *PaginatedTunnelGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTunnelGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTunnelGroupList) SetResults(v []TunnelGroup) {
o.Results = v
}
-
func (o PaginatedTunnelGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTunnelGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTunnelGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go
index 176094b33..02fdf9a8f 100644
--- a/model_paginated_tunnel_list.go
+++ b/model_paginated_tunnel_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelList{}
// PaginatedTunnelList struct for PaginatedTunnelList
type PaginatedTunnelList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Tunnel `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Tunnel `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTunnelList) HasNext() bool {
func (o *PaginatedTunnelList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTunnelList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTunnelList) HasPrevious() bool {
func (o *PaginatedTunnelList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTunnelList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTunnelList) SetResults(v []Tunnel) {
o.Results = v
}
-
func (o PaginatedTunnelList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTunnelList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedTunnelList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go
index 7d674df31..8ab6a25df 100644
--- a/model_paginated_tunnel_termination_list.go
+++ b/model_paginated_tunnel_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelTerminationList{}
// PaginatedTunnelTerminationList struct for PaginatedTunnelTerminationList
type PaginatedTunnelTerminationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []TunnelTermination `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []TunnelTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedTunnelTerminationList) HasNext() bool {
func (o *PaginatedTunnelTerminationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedTunnelTerminationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedTunnelTerminationList) HasPrevious() bool {
func (o *PaginatedTunnelTerminationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedTunnelTerminationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedTunnelTerminationList) SetResults(v []TunnelTermination) {
o.Results = v
}
-
func (o PaginatedTunnelTerminationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedTunnelTerminationList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ 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 d87e8e192..8f9a74fdd 100644
--- a/model_paginated_user_list.go
+++ b/model_paginated_user_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedUserList{}
// PaginatedUserList struct for PaginatedUserList
type PaginatedUserList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []User `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []User `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedUserList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedUserList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedUserList) HasNext() bool {
func (o *PaginatedUserList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedUserList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedUserList) HasPrevious() bool {
func (o *PaginatedUserList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedUserList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedUserList) SetResults(v []User) {
o.Results = v
}
-
func (o PaginatedUserList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedUserList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedUserList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go
index ab9d5b7c1..bf4662e7b 100644
--- a/model_paginated_virtual_chassis_list.go
+++ b/model_paginated_virtual_chassis_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualChassisList{}
// PaginatedVirtualChassisList struct for PaginatedVirtualChassisList
type PaginatedVirtualChassisList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualChassis `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualChassis `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualChassisList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualChassisList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualChassisList) HasNext() bool {
func (o *PaginatedVirtualChassisList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualChassisList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualChassisList) HasPrevious() bool {
func (o *PaginatedVirtualChassisList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualChassisList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualChassisList) SetResults(v []VirtualChassis) {
o.Results = v
}
-
func (o PaginatedVirtualChassisList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualChassisList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualChassisList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_circuit_list.go b/model_paginated_virtual_circuit_list.go
index 9c1108704..bc748e432 100644
--- a/model_paginated_virtual_circuit_list.go
+++ b/model_paginated_virtual_circuit_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualCircuitList{}
// PaginatedVirtualCircuitList struct for PaginatedVirtualCircuitList
type PaginatedVirtualCircuitList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualCircuit `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualCircuit `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualCircuitList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualCircuitList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualCircuitList) HasNext() bool {
func (o *PaginatedVirtualCircuitList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualCircuitList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualCircuitList) HasPrevious() bool {
func (o *PaginatedVirtualCircuitList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualCircuitList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualCircuitList) SetResults(v []VirtualCircuit) {
o.Results = v
}
-
func (o PaginatedVirtualCircuitList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualCircuitList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualCircuitList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_circuit_termination_list.go b/model_paginated_virtual_circuit_termination_list.go
index a27e64cd8..6bacbcc57 100644
--- a/model_paginated_virtual_circuit_termination_list.go
+++ b/model_paginated_virtual_circuit_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualCircuitTerminationList{}
// PaginatedVirtualCircuitTerminationList struct for PaginatedVirtualCircuitTerminationList
type PaginatedVirtualCircuitTerminationList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualCircuitTermination `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualCircuitTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualCircuitTerminationList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualCircuitTerminationList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualCircuitTerminationList) HasNext() bool {
func (o *PaginatedVirtualCircuitTerminationList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualCircuitTerminationList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualCircuitTerminationList) HasPrevious() bool {
func (o *PaginatedVirtualCircuitTerminationList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualCircuitTerminationList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualCircuitTerminationList) SetResults(v []VirtualCircuitTe
o.Results = v
}
-
func (o PaginatedVirtualCircuitTerminationList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualCircuitTerminationList) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualCircuitTerminationList) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_circuit_type_list.go b/model_paginated_virtual_circuit_type_list.go
index e8ff34b13..d6f765a34 100644
--- a/model_paginated_virtual_circuit_type_list.go
+++ b/model_paginated_virtual_circuit_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualCircuitTypeList{}
// PaginatedVirtualCircuitTypeList struct for PaginatedVirtualCircuitTypeList
type PaginatedVirtualCircuitTypeList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualCircuitType `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualCircuitType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualCircuitTypeList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualCircuitTypeList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualCircuitTypeList) HasNext() bool {
func (o *PaginatedVirtualCircuitTypeList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualCircuitTypeList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualCircuitTypeList) HasPrevious() bool {
func (o *PaginatedVirtualCircuitTypeList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualCircuitTypeList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualCircuitTypeList) SetResults(v []VirtualCircuitType) {
o.Results = v
}
-
func (o PaginatedVirtualCircuitTypeList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualCircuitTypeList) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualCircuitTypeList) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go
index c8b647afb..475f245fe 100644
--- a/model_paginated_virtual_device_context_list.go
+++ b/model_paginated_virtual_device_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDeviceContextList{}
// PaginatedVirtualDeviceContextList struct for PaginatedVirtualDeviceContextList
type PaginatedVirtualDeviceContextList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualDeviceContext `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualDeviceContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualDeviceContextList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualDeviceContextList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualDeviceContextList) HasNext() bool {
func (o *PaginatedVirtualDeviceContextList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualDeviceContextList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualDeviceContextList) HasPrevious() bool {
func (o *PaginatedVirtualDeviceContextList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualDeviceContextList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualDeviceContextList) SetResults(v []VirtualDeviceContext)
o.Results = v
}
-
func (o PaginatedVirtualDeviceContextList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(data []byte) (err erro
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualDeviceContextList) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go
index 76d9cfd80..b9e90a2d9 100644
--- a/model_paginated_virtual_disk_list.go
+++ b/model_paginated_virtual_disk_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDiskList{}
// PaginatedVirtualDiskList struct for PaginatedVirtualDiskList
type PaginatedVirtualDiskList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualDisk `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualDisk `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ 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()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualDiskList) HasNext() bool {
func (o *PaginatedVirtualDiskList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualDiskList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualDiskList) HasPrevious() bool {
func (o *PaginatedVirtualDiskList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualDiskList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualDiskList) SetResults(v []VirtualDisk) {
o.Results = v
}
-
func (o PaginatedVirtualDiskList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualDiskList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ 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 e1cc80dd8..3812c3e24 100644
--- a/model_paginated_virtual_machine_with_config_context_list.go
+++ b/model_paginated_virtual_machine_with_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualMachineWithConfigContextList{}
// PaginatedVirtualMachineWithConfigContextList struct for PaginatedVirtualMachineWithConfigContextList
type PaginatedVirtualMachineWithConfigContextList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VirtualMachineWithConfigContext `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VirtualMachineWithConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVirtualMachineWithConfigContextList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVirtualMachineWithConfigContextList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVirtualMachineWithConfigContextList) HasNext() bool {
func (o *PaginatedVirtualMachineWithConfigContextList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVirtualMachineWithConfigContextList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVirtualMachineWithConfigContextList) HasPrevious() bool {
func (o *PaginatedVirtualMachineWithConfigContextList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVirtualMachineWithConfigContextList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVirtualMachineWithConfigContextList) SetResults(v []VirtualMac
o.Results = v
}
-
func (o PaginatedVirtualMachineWithConfigContextList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(data []byte
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go
index f4e057f02..2052d0b47 100644
--- a/model_paginated_vlan_group_list.go
+++ b/model_paginated_vlan_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANGroupList{}
// PaginatedVLANGroupList struct for PaginatedVLANGroupList
type PaginatedVLANGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VLANGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VLANGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVLANGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVLANGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVLANGroupList) HasNext() bool {
func (o *PaginatedVLANGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVLANGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVLANGroupList) HasPrevious() bool {
func (o *PaginatedVLANGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVLANGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVLANGroupList) SetResults(v []VLANGroup) {
o.Results = v
}
-
func (o PaginatedVLANGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVLANGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVLANGroupList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go
index 11d085582..bd5880749 100644
--- a/model_paginated_vlan_list.go
+++ b/model_paginated_vlan_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANList{}
// PaginatedVLANList struct for PaginatedVLANList
type PaginatedVLANList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VLAN `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VLAN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVLANList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVLANList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVLANList) HasNext() bool {
func (o *PaginatedVLANList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVLANList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVLANList) HasPrevious() bool {
func (o *PaginatedVLANList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVLANList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVLANList) SetResults(v []VLAN) {
o.Results = v
}
-
func (o PaginatedVLANList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVLANList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVLANList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vlan_translation_policy_list.go b/model_paginated_vlan_translation_policy_list.go
index 0a6fc7dfc..00c774f03 100644
--- a/model_paginated_vlan_translation_policy_list.go
+++ b/model_paginated_vlan_translation_policy_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANTranslationPolicyList{}
// PaginatedVLANTranslationPolicyList struct for PaginatedVLANTranslationPolicyList
type PaginatedVLANTranslationPolicyList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VLANTranslationPolicy `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VLANTranslationPolicy `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVLANTranslationPolicyList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVLANTranslationPolicyList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVLANTranslationPolicyList) HasNext() bool {
func (o *PaginatedVLANTranslationPolicyList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVLANTranslationPolicyList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVLANTranslationPolicyList) HasPrevious() bool {
func (o *PaginatedVLANTranslationPolicyList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVLANTranslationPolicyList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVLANTranslationPolicyList) SetResults(v []VLANTranslationPolic
o.Results = v
}
-
func (o PaginatedVLANTranslationPolicyList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVLANTranslationPolicyList) UnmarshalJSON(data []byte) (err err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVLANTranslationPolicyList) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vlan_translation_rule_list.go b/model_paginated_vlan_translation_rule_list.go
index a41105621..9a0f0a624 100644
--- a/model_paginated_vlan_translation_rule_list.go
+++ b/model_paginated_vlan_translation_rule_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANTranslationRuleList{}
// PaginatedVLANTranslationRuleList struct for PaginatedVLANTranslationRuleList
type PaginatedVLANTranslationRuleList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VLANTranslationRule `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VLANTranslationRule `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVLANTranslationRuleList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVLANTranslationRuleList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVLANTranslationRuleList) HasNext() bool {
func (o *PaginatedVLANTranslationRuleList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVLANTranslationRuleList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVLANTranslationRuleList) HasPrevious() bool {
func (o *PaginatedVLANTranslationRuleList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVLANTranslationRuleList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVLANTranslationRuleList) SetResults(v []VLANTranslationRule) {
o.Results = v
}
-
func (o PaginatedVLANTranslationRuleList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVLANTranslationRuleList) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVLANTranslationRuleList) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go
index 4f2f67081..252f9ee76 100644
--- a/model_paginated_vm_interface_list.go
+++ b/model_paginated_vm_interface_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVMInterfaceList{}
// PaginatedVMInterfaceList struct for PaginatedVMInterfaceList
type PaginatedVMInterfaceList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VMInterface `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VMInterface `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVMInterfaceList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVMInterfaceList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVMInterfaceList) HasNext() bool {
func (o *PaginatedVMInterfaceList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVMInterfaceList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVMInterfaceList) HasPrevious() bool {
func (o *PaginatedVMInterfaceList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVMInterfaceList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVMInterfaceList) SetResults(v []VMInterface) {
o.Results = v
}
-
func (o PaginatedVMInterfaceList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVMInterfaceList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVMInterfaceList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go
index e59cb6361..ba12f4c0a 100644
--- a/model_paginated_vrf_list.go
+++ b/model_paginated_vrf_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVRFList{}
// PaginatedVRFList struct for PaginatedVRFList
type PaginatedVRFList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []VRF `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []VRF `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedVRFList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedVRFList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedVRFList) HasNext() bool {
func (o *PaginatedVRFList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedVRFList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedVRFList) HasPrevious() bool {
func (o *PaginatedVRFList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedVRFList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedVRFList) SetResults(v []VRF) {
o.Results = v
}
-
func (o PaginatedVRFList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedVRFList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedVRFList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go
index 4c23ea74c..6a9d9d092 100644
--- a/model_paginated_webhook_list.go
+++ b/model_paginated_webhook_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWebhookList{}
// PaginatedWebhookList struct for PaginatedWebhookList
type PaginatedWebhookList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []Webhook `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []Webhook `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedWebhookList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedWebhookList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedWebhookList) HasNext() bool {
func (o *PaginatedWebhookList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedWebhookList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedWebhookList) HasPrevious() bool {
func (o *PaginatedWebhookList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedWebhookList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedWebhookList) SetResults(v []Webhook) {
o.Results = v
}
-
func (o PaginatedWebhookList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedWebhookList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedWebhookList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go
index cc2c7e3ab..a7c1d20d5 100644
--- a/model_paginated_wireless_lan_group_list.go
+++ b/model_paginated_wireless_lan_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANGroupList{}
// PaginatedWirelessLANGroupList struct for PaginatedWirelessLANGroupList
type PaginatedWirelessLANGroupList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLANGroup `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []WirelessLANGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedWirelessLANGroupList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedWirelessLANGroupList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedWirelessLANGroupList) HasNext() bool {
func (o *PaginatedWirelessLANGroupList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedWirelessLANGroupList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedWirelessLANGroupList) HasPrevious() bool {
func (o *PaginatedWirelessLANGroupList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedWirelessLANGroupList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedWirelessLANGroupList) SetResults(v []WirelessLANGroup) {
o.Results = v
}
-
func (o PaginatedWirelessLANGroupList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedWirelessLANGroupList) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go
index 3de14fbc3..3666a85e5 100644
--- a/model_paginated_wireless_lan_list.go
+++ b/model_paginated_wireless_lan_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANList{}
// PaginatedWirelessLANList struct for PaginatedWirelessLANList
type PaginatedWirelessLANList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLAN `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []WirelessLAN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedWirelessLANList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedWirelessLANList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedWirelessLANList) HasNext() bool {
func (o *PaginatedWirelessLANList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedWirelessLANList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedWirelessLANList) HasPrevious() bool {
func (o *PaginatedWirelessLANList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedWirelessLANList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedWirelessLANList) SetResults(v []WirelessLAN) {
o.Results = v
}
-
func (o PaginatedWirelessLANList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedWirelessLANList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedWirelessLANList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go
index 487748002..4b5d90371 100644
--- a/model_paginated_wireless_link_list.go
+++ b/model_paginated_wireless_link_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLinkList{}
// PaginatedWirelessLinkList struct for PaginatedWirelessLinkList
type PaginatedWirelessLinkList struct {
- Count int32 `json:"count"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLink `json:"results"`
+ Count int32 `json:"count"`
+ Next NullableString `json:"next,omitempty"`
+ Previous NullableString `json:"previous,omitempty"`
+ Results []WirelessLink `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -72,7 +72,6 @@ func (o *PaginatedWirelessLinkList) SetCount(v int32) {
o.Count = v
}
-
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PaginatedWirelessLinkList) GetNext() string {
if o == nil || IsNil(o.Next.Get()) {
@@ -105,6 +104,7 @@ func (o *PaginatedWirelessLinkList) HasNext() bool {
func (o *PaginatedWirelessLinkList) SetNext(v string) {
o.Next.Set(&v)
}
+
// SetNextNil sets the value for Next to be an explicit nil
func (o *PaginatedWirelessLinkList) SetNextNil() {
o.Next.Set(nil)
@@ -147,6 +147,7 @@ func (o *PaginatedWirelessLinkList) HasPrevious() bool {
func (o *PaginatedWirelessLinkList) SetPrevious(v string) {
o.Previous.Set(&v)
}
+
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *PaginatedWirelessLinkList) SetPreviousNil() {
o.Previous.Set(nil)
@@ -181,9 +182,8 @@ func (o *PaginatedWirelessLinkList) SetResults(v []WirelessLink) {
o.Results = v
}
-
func (o PaginatedWirelessLinkList) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -219,32 +219,31 @@ func (o *PaginatedWirelessLinkList) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -306,5 +305,3 @@ func (v *NullablePaginatedWirelessLinkList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_parent_child_status.go b/model_parent_child_status.go
index 2622914e0..f5222693f 100644
--- a/model_parent_child_status.go
+++ b/model_parent_child_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type ParentChildStatus string
// List of Parent_child_status
const (
- PARENTCHILDSTATUS_CHILD ParentChildStatus = "child"
+ PARENTCHILDSTATUS_CHILD ParentChildStatus = "child"
PARENTCHILDSTATUS_PARENT ParentChildStatus = "parent"
)
@@ -108,4 +108,3 @@ func (v *NullableParentChildStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go
index faa282e9c..ca6ec6e6b 100644
--- a/model_parent_child_status_1.go
+++ b/model_parent_child_status_1.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type ParentChildStatus1 string
// List of Parent_child_status_1
const (
PARENTCHILDSTATUS1_PARENT ParentChildStatus1 = "parent"
- PARENTCHILDSTATUS1_CHILD ParentChildStatus1 = "child"
- PARENTCHILDSTATUS1_EMPTY ParentChildStatus1 = ""
+ PARENTCHILDSTATUS1_CHILD ParentChildStatus1 = "child"
+ PARENTCHILDSTATUS1_EMPTY ParentChildStatus1 = ""
)
// All allowed values of ParentChildStatus1 enum
@@ -110,4 +110,3 @@ func (v *NullableParentChildStatus1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go
index 2a802ce37..1db224172 100644
--- a/model_patched_asn_range_request.go
+++ b/model_patched_asn_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{}
// PatchedASNRangeRequest Adds support for custom fields and tags.
type PatchedASNRangeRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Rir *BriefRIRRequest `json:"rir,omitempty"`
- Start *int64 `json:"start,omitempty"`
- End *int64 `json:"end,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Rir *ASNRangeRequestRir `json:"rir,omitempty"`
+ Start *int64 `json:"start,omitempty"`
+ End *int64 `json:"end,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) {
}
// GetRir returns the Rir field value if set, zero value otherwise.
-func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest {
+func (o *PatchedASNRangeRequest) GetRir() ASNRangeRequestRir {
if o == nil || IsNil(o.Rir) {
- var ret BriefRIRRequest
+ var ret ASNRangeRequestRir
return ret
}
return *o.Rir
@@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest {
// GetRirOk returns a tuple with the Rir field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) {
+func (o *PatchedASNRangeRequest) GetRirOk() (*ASNRangeRequestRir, bool) {
if o == nil || IsNil(o.Rir) {
return nil, false
}
@@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field.
-func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) {
+// SetRir gets a reference to the given ASNRangeRequestRir and assigns it to the Rir field.
+func (o *PatchedASNRangeRequest) SetRir(v ASNRangeRequestRir) {
o.Rir = &v
}
@@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedASNRangeRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedASNRangeRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -238,10 +238,11 @@ func (o *PatchedASNRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedASNRangeRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedASNRangeRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -349,7 +350,7 @@ func (o *PatchedASNRangeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedASNRangeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -457,5 +458,3 @@ func (v *NullablePatchedASNRangeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go
index 28972da09..0c0f2722e 100644
--- a/model_patched_asn_request.go
+++ b/model_patched_asn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{}
// PatchedASNRequest Adds support for custom fields and tags.
type PatchedASNRequest struct {
// 16- or 32-bit autonomous system number
- Asn *int64 `json:"asn,omitempty"`
- Rir NullableBriefRIRRequest `json:"rir,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Asn *int64 `json:"asn,omitempty"`
+ Rir NullableASNRequestRir `json:"rir,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) {
}
// GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedASNRequest) GetRir() BriefRIRRequest {
+func (o *PatchedASNRequest) GetRir() ASNRequestRir {
if o == nil || IsNil(o.Rir.Get()) {
- var ret BriefRIRRequest
+ var ret ASNRequestRir
return ret
}
return *o.Rir.Get()
@@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() BriefRIRRequest {
// GetRirOk returns a tuple with the Rir field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) {
+func (o *PatchedASNRequest) GetRirOk() (*ASNRequestRir, bool) {
if o == nil {
return nil, false
}
@@ -109,10 +109,11 @@ func (o *PatchedASNRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field.
-func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) {
+// SetRir gets a reference to the given NullableASNRequestRir and assigns it to the Rir field.
+func (o *PatchedASNRequest) SetRir(v ASNRequestRir) {
o.Rir.Set(&v)
}
+
// SetRirNil sets the value for Rir to be an explicit nil
func (o *PatchedASNRequest) SetRirNil() {
o.Rir.Set(nil)
@@ -124,9 +125,9 @@ func (o *PatchedASNRequest) UnsetRir() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedASNRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedASNRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -135,7 +136,7 @@ func (o *PatchedASNRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedASNRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -151,10 +152,11 @@ func (o *PatchedASNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedASNRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedASNRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -294,7 +296,7 @@ func (o *PatchedASNRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedASNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -394,5 +396,3 @@ func (v *NullablePatchedASNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go
index 9aaadac13..e3f9742de 100644
--- a/model_patched_bookmark_request.go
+++ b/model_patched_bookmark_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{}
// PatchedBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedBookmarkRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- User *BriefUserRequest `json:"user,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ User *BookmarkRequestUser `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) {
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest {
+func (o *PatchedBookmarkRequest) GetUser() BookmarkRequestUser {
if o == nil || IsNil(o.User) {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
return *o.User
@@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *PatchedBookmarkRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -135,13 +135,13 @@ func (o *PatchedBookmarkRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field.
-func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) {
+// SetUser gets a reference to the given BookmarkRequestUser and assigns it to the User field.
+func (o *PatchedBookmarkRequest) SetUser(v BookmarkRequestUser) {
o.User = &v
}
func (o PatchedBookmarkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -225,5 +225,3 @@ func (v *NullablePatchedBookmarkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go
index 5a46fe3c5..8f50ca131 100644
--- a/model_patched_cable_termination_request.go
+++ b/model_patched_cable_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCableTerminationRequest{}
// PatchedCableTerminationRequest Adds support for custom fields and tags.
type PatchedCableTerminationRequest struct {
- Cable *int32 `json:"cable,omitempty"`
- CableEnd *End1 `json:"cable_end,omitempty"`
- TerminationType *string `json:"termination_type,omitempty"`
- TerminationId *int64 `json:"termination_id,omitempty"`
+ Cable *int32 `json:"cable,omitempty"`
+ CableEnd *End1 `json:"cable_end,omitempty"`
+ TerminationType *string `json:"termination_type,omitempty"`
+ TerminationId *int64 `json:"termination_id,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -174,7 +174,7 @@ func (o *PatchedCableTerminationRequest) SetTerminationId(v int64) {
}
func (o PatchedCableTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,5 +262,3 @@ func (v *NullablePatchedCableTerminationRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go
index fe9b9d84a..ce67e8c55 100644
--- a/model_patched_circuit_group_request.go
+++ b/model_patched_circuit_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedCircuitGroupRequest{}
// PatchedCircuitGroupRequest Adds support for custom fields and tags.
type PatchedCircuitGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -144,9 +144,9 @@ func (o *PatchedCircuitGroupRequest) SetDescription(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedCircuitGroupRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -155,7 +155,7 @@ func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedCircuitGroupRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -171,10 +171,11 @@ func (o *PatchedCircuitGroupRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedCircuitGroupRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedCircuitGroupRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -250,7 +251,7 @@ func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -346,5 +347,3 @@ func (v *NullablePatchedCircuitGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go
index 03a2632a7..d89157edd 100644
--- a/model_patched_circuit_termination_request.go
+++ b/model_patched_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{}
// PatchedCircuitTerminationRequest Adds support for custom fields and tags.
type PatchedCircuitTerminationRequest struct {
- Circuit *BriefCircuitRequest `json:"circuit,omitempty"`
- TermSide *TerminationSide1 `json:"term_side,omitempty"`
- TerminationType NullableString `json:"termination_type,omitempty"`
- TerminationId NullableInt32 `json:"termination_id,omitempty"`
+ Circuit *CircuitTerminationRequestCircuit `json:"circuit,omitempty"`
+ TermSide *TerminationSide1 `json:"term_side,omitempty"`
+ TerminationType NullableString `json:"termination_type,omitempty"`
+ TerminationId NullableInt32 `json:"termination_id,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -30,12 +30,12 @@ type PatchedCircuitTerminationRequest struct {
// ID of the local cross-connect
XconnectId *string `json:"xconnect_id,omitempty"`
// Patch panel ID and port number(s)
- PpInfo *string `json:"pp_info,omitempty"`
+ PpInfo *string `json:"pp_info,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio
}
// GetCircuit returns the Circuit field value if set, zero value otherwise.
-func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest {
+func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitTerminationRequestCircuit {
if o == nil || IsNil(o.Circuit) {
- var ret BriefCircuitRequest
+ var ret CircuitTerminationRequestCircuit
return ret
}
return *o.Circuit
@@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest {
// GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) {
+func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitTerminationRequestCircuit, bool) {
if o == nil || IsNil(o.Circuit) {
return nil, false
}
@@ -85,8 +85,8 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool {
return false
}
-// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field.
-func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) {
+// SetCircuit gets a reference to the given CircuitTerminationRequestCircuit and assigns it to the Circuit field.
+func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitTerminationRequestCircuit) {
o.Circuit = &v
}
@@ -154,6 +154,7 @@ func (o *PatchedCircuitTerminationRequest) HasTerminationType() bool {
func (o *PatchedCircuitTerminationRequest) SetTerminationType(v string) {
o.TerminationType.Set(&v)
}
+
// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil
func (o *PatchedCircuitTerminationRequest) SetTerminationTypeNil() {
o.TerminationType.Set(nil)
@@ -196,6 +197,7 @@ func (o *PatchedCircuitTerminationRequest) HasTerminationId() bool {
func (o *PatchedCircuitTerminationRequest) SetTerminationId(v int32) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *PatchedCircuitTerminationRequest) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -238,6 +240,7 @@ func (o *PatchedCircuitTerminationRequest) HasPortSpeed() bool {
func (o *PatchedCircuitTerminationRequest) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
+
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
func (o *PatchedCircuitTerminationRequest) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
@@ -280,6 +283,7 @@ func (o *PatchedCircuitTerminationRequest) HasUpstreamSpeed() bool {
func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
+
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
@@ -483,7 +487,7 @@ func (o *PatchedCircuitTerminationRequest) SetCustomFields(v map[string]interfac
}
func (o PatchedCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -603,5 +607,3 @@ func (v *NullablePatchedCircuitTerminationRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go
index 6dda64872..56f600a17 100644
--- a/model_patched_circuit_type_request.go
+++ b/model_patched_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedCircuitTypeRequest{}
// PatchedCircuitTypeRequest Adds support for custom fields and tags.
type PatchedCircuitTypeRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -240,7 +240,7 @@ func (o *PatchedCircuitTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedCircuitTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go
index 773bd4d53..111a0a6c8 100644
--- a/model_patched_cluster_group_request.go
+++ b/model_patched_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedClusterGroupRequest{}
// PatchedClusterGroupRequest Adds support for custom fields and tags.
type PatchedClusterGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -207,7 +207,7 @@ func (o *PatchedClusterGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedClusterGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedClusterGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go
index 5c1343041..0d0bdba37 100644
--- a/model_patched_cluster_type_request.go
+++ b/model_patched_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedClusterTypeRequest{}
// PatchedClusterTypeRequest Adds support for custom fields and tags.
type PatchedClusterTypeRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -207,7 +207,7 @@ func (o *PatchedClusterTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedClusterTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedClusterTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go
index c5784c23e..44cfc765a 100644
--- a/model_patched_config_context_request.go
+++ b/model_patched_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{}
// PatchedConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedConfigContextRequest struct {
- Name *string `json:"name,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []int32 `json:"regions,omitempty"`
- SiteGroups []int32 `json:"site_groups,omitempty"`
- Sites []int32 `json:"sites,omitempty"`
- Locations []int32 `json:"locations,omitempty"`
- DeviceTypes []int32 `json:"device_types,omitempty"`
- Roles []int32 `json:"roles,omitempty"`
- Platforms []int32 `json:"platforms,omitempty"`
- ClusterTypes []int32 `json:"cluster_types,omitempty"`
- ClusterGroups []int32 `json:"cluster_groups,omitempty"`
- Clusters []int32 `json:"clusters,omitempty"`
- TenantGroups []int32 `json:"tenant_groups,omitempty"`
- Tenants []int32 `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
- Data interface{} `json:"data,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ Regions []int32 `json:"regions,omitempty"`
+ SiteGroups []int32 `json:"site_groups,omitempty"`
+ Sites []int32 `json:"sites,omitempty"`
+ Locations []int32 `json:"locations,omitempty"`
+ DeviceTypes []int32 `json:"device_types,omitempty"`
+ Roles []int32 `json:"roles,omitempty"`
+ Platforms []int32 `json:"platforms,omitempty"`
+ ClusterTypes []int32 `json:"cluster_types,omitempty"`
+ ClusterGroups []int32 `json:"cluster_groups,omitempty"`
+ Clusters []int32 `json:"clusters,omitempty"`
+ TenantGroups []int32 `json:"tenant_groups,omitempty"`
+ Tenants []int32 `json:"tenants,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
+ Data interface{} `json:"data,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest {
+func (o *PatchedConfigContextRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *PatchedConfigContextRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *PatchedConfigContextRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
@@ -670,7 +670,7 @@ func (o *PatchedConfigContextRequest) SetData(v interface{}) {
}
func (o PatchedConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -818,5 +818,3 @@ func (v *NullablePatchedConfigContextRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go
index af6519eb2..2fb111265 100644
--- a/model_patched_config_template_request.go
+++ b/model_patched_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,22 @@ var _ MappedNullable = &PatchedConfigTemplateRequest{}
// PatchedConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
type PatchedConfigTemplateRequest struct {
- Name *string `json:"name,omitempty"`
+ Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
- // Any additional parameters to pass when constructing the Jinja2 environment.
+ // Any additional parameters to pass when constructing the Jinja environment
EnvironmentParams interface{} `json:"environment_params,omitempty"`
- // Jinja2 template code.
+ // Jinja template code.
TemplateCode *string `json:"template_code,omitempty"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ // Defaults to text/plain; charset=utf-8
+ MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
+ // Extension to append to the rendered filename
+ FileExtension *string `json:"file_extension,omitempty"`
+ // Download file as attachment
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -178,10 +186,138 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) {
o.TemplateCode = &v
}
+// GetMimeType returns the MimeType field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetMimeType() string {
+ if o == nil || IsNil(o.MimeType) {
+ var ret string
+ return ret
+ }
+ return *o.MimeType
+}
+
+// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedConfigTemplateRequest) GetMimeTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.MimeType) {
+ return nil, false
+ }
+ return o.MimeType, true
+}
+
+// HasMimeType returns a boolean if a field has been set.
+func (o *PatchedConfigTemplateRequest) HasMimeType() bool {
+ if o != nil && !IsNil(o.MimeType) {
+ return true
+ }
+
+ return false
+}
+
+// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
+func (o *PatchedConfigTemplateRequest) SetMimeType(v string) {
+ o.MimeType = &v
+}
+
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedConfigTemplateRequest) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *PatchedConfigTemplateRequest) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *PatchedConfigTemplateRequest) SetFileName(v string) {
+ o.FileName = &v
+}
+
+// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetFileExtension() string {
+ if o == nil || IsNil(o.FileExtension) {
+ var ret string
+ return ret
+ }
+ return *o.FileExtension
+}
+
+// GetFileExtensionOk returns a tuple with the FileExtension field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedConfigTemplateRequest) GetFileExtensionOk() (*string, bool) {
+ if o == nil || IsNil(o.FileExtension) {
+ return nil, false
+ }
+ return o.FileExtension, true
+}
+
+// HasFileExtension returns a boolean if a field has been set.
+func (o *PatchedConfigTemplateRequest) HasFileExtension() bool {
+ if o != nil && !IsNil(o.FileExtension) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileExtension gets a reference to the given string and assigns it to the FileExtension field.
+func (o *PatchedConfigTemplateRequest) SetFileExtension(v string) {
+ o.FileExtension = &v
+}
+
+// GetAsAttachment returns the AsAttachment field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetAsAttachment() bool {
+ if o == nil || IsNil(o.AsAttachment) {
+ var ret bool
+ return ret
+ }
+ return *o.AsAttachment
+}
+
+// GetAsAttachmentOk returns a tuple with the AsAttachment field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedConfigTemplateRequest) GetAsAttachmentOk() (*bool, bool) {
+ if o == nil || IsNil(o.AsAttachment) {
+ return nil, false
+ }
+ return o.AsAttachment, true
+}
+
+// HasAsAttachment returns a boolean if a field has been set.
+func (o *PatchedConfigTemplateRequest) HasAsAttachment() bool {
+ if o != nil && !IsNil(o.AsAttachment) {
+ return true
+ }
+
+ return false
+}
+
+// SetAsAttachment gets a reference to the given bool and assigns it to the AsAttachment field.
+func (o *PatchedConfigTemplateRequest) SetAsAttachment(v bool) {
+ o.AsAttachment = &v
+}
+
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest {
+func (o *PatchedConfigTemplateRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -189,7 +325,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -205,8 +341,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *PatchedConfigTemplateRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
@@ -243,7 +379,7 @@ func (o *PatchedConfigTemplateRequest) SetTags(v []NestedTagRequest) {
}
func (o PatchedConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -264,6 +400,18 @@ func (o PatchedConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.TemplateCode) {
toSerialize["template_code"] = o.TemplateCode
}
+ if !IsNil(o.MimeType) {
+ toSerialize["mime_type"] = o.MimeType
+ }
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
+ if !IsNil(o.FileExtension) {
+ toSerialize["file_extension"] = o.FileExtension
+ }
+ if !IsNil(o.AsAttachment) {
+ toSerialize["as_attachment"] = o.AsAttachment
+ }
if !IsNil(o.DataSource) {
toSerialize["data_source"] = o.DataSource
}
@@ -296,6 +444,10 @@ func (o *PatchedConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
+ delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
+ delete(additionalProperties, "file_extension")
+ delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
delete(additionalProperties, "tags")
o.AdditionalProperties = additionalProperties
@@ -339,5 +491,3 @@ func (v *NullablePatchedConfigTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go
index ad86609a0..7ddba08a6 100644
--- a/model_patched_contact_request.go
+++ b/model_patched_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{}
// PatchedContactRequest Adds support for custom fields and tags.
type PatchedContactRequest struct {
- Group NullableBriefContactGroupRequest `json:"group,omitempty"`
- Name *string `json:"name,omitempty"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Title *string `json:"title,omitempty"`
+ Phone *string `json:"phone,omitempty"`
+ Email *string `json:"email,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Link *string `json:"link,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,46 +52,36 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest {
return &this
}
-// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret BriefContactGroupRequest
+// GetGroups returns the Groups field value if set, zero value otherwise.
+func (o *PatchedContactRequest) GetGroups() []int32 {
+ if o == nil || IsNil(o.Groups) {
+ var ret []int32
return ret
}
- return *o.Group.Get()
+ return o.Groups
}
-// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
+// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) {
- if o == nil {
+func (o *PatchedContactRequest) GetGroupsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Groups) {
return nil, false
}
- return o.Group.Get(), o.Group.IsSet()
+ return o.Groups, true
}
-// HasGroup returns a boolean if a field has been set.
-func (o *PatchedContactRequest) HasGroup() bool {
- if o != nil && o.Group.IsSet() {
+// HasGroups returns a boolean if a field has been set.
+func (o *PatchedContactRequest) HasGroups() bool {
+ if o != nil && !IsNil(o.Groups) {
return true
}
return false
}
-// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field.
-func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) {
- o.Group.Set(&v)
-}
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *PatchedContactRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *PatchedContactRequest) UnsetGroup() {
- o.Group.Unset()
+// SetGroups gets a reference to the given []int32 and assigns it to the Groups field.
+func (o *PatchedContactRequest) SetGroups(v []int32) {
+ o.Groups = v
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -415,7 +405,7 @@ func (o *PatchedContactRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedContactRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -424,8 +414,8 @@ func (o PatchedContactRequest) MarshalJSON() ([]byte, error) {
func (o PatchedContactRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if o.Group.IsSet() {
- toSerialize["group"] = o.Group.Get()
+ if !IsNil(o.Groups) {
+ toSerialize["groups"] = o.Groups
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -479,7 +469,7 @@ func (o *PatchedContactRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "group")
+ delete(additionalProperties, "groups")
delete(additionalProperties, "name")
delete(additionalProperties, "title")
delete(additionalProperties, "phone")
@@ -531,5 +521,3 @@ func (v *NullablePatchedContactRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go
index 37198da11..1824d294d 100644
--- a/model_patched_contact_role_request.go
+++ b/model_patched_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedContactRoleRequest{}
// PatchedContactRoleRequest Adds support for custom fields and tags.
type PatchedContactRoleRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -207,7 +207,7 @@ func (o *PatchedContactRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedContactRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedContactRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go
index d4d66d482..8f2302d37 100644
--- a/model_patched_custom_link_request.go
+++ b/model_patched_custom_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &PatchedCustomLinkRequest{}
// PatchedCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedCustomLinkRequest struct {
ObjectTypes []string `json:"object_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
// Jinja2 template code for link text
LinkText *string `json:"link_text,omitempty"`
// Jinja2 template code for link URL
LinkUrl *string `json:"link_url,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
// Links with the same group will appear as a dropdown menu
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
ButtonClass *CustomLinkButtonClass `json:"button_class,omitempty"`
// Force link to open in a new window
- NewWindow *bool `json:"new_window,omitempty"`
+ NewWindow *bool `json:"new_window,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -343,7 +343,7 @@ func (o *PatchedCustomLinkRequest) SetNewWindow(v bool) {
}
func (o PatchedCustomLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -451,5 +451,3 @@ func (v *NullablePatchedCustomLinkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go
index 1d683b61b..885ca02a1 100644
--- a/model_patched_dashboard_request.go
+++ b/model_patched_dashboard_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedDashboardRequest{}
// PatchedDashboardRequest struct for PatchedDashboardRequest
type PatchedDashboardRequest struct {
- Layout interface{} `json:"layout,omitempty"`
- Config interface{} `json:"config,omitempty"`
+ Layout interface{} `json:"layout,omitempty"`
+ Config interface{} `json:"config,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -110,7 +110,7 @@ func (o *PatchedDashboardRequest) SetConfig(v interface{}) {
}
func (o PatchedDashboardRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -190,5 +190,3 @@ func (v *NullablePatchedDashboardRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go
index 9c8015af7..d68724e3e 100644
--- a/model_patched_device_bay_request.go
+++ b/model_patched_device_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{}
// PatchedDeviceBayRequest Adds support for custom fields and tags.
type PatchedDeviceBayRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
+ InstalledDevice NullableDeviceBayRequestInstalledDevice `json:"installed_device,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest {
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedDeviceBayRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedDeviceBayRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
@@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) {
}
// GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest {
+func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceBayRequestInstalledDevice {
if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret BriefDeviceRequest
+ var ret DeviceBayRequestInstalledDevice
return ret
}
return *o.InstalledDevice.Get()
@@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest {
// GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceBayRequestInstalledDevice, bool) {
if o == nil {
return nil, false
}
@@ -205,10 +205,11 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool {
return false
}
-// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field.
-func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) {
+// SetInstalledDevice gets a reference to the given NullableDeviceBayRequestInstalledDevice and assigns it to the InstalledDevice field.
+func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceBayRequestInstalledDevice) {
o.InstalledDevice.Set(&v)
}
+
// SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
func (o *PatchedDeviceBayRequest) SetInstalledDeviceNil() {
o.InstalledDevice.Set(nil)
@@ -284,7 +285,7 @@ func (o *PatchedDeviceBayRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedDeviceBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -384,5 +385,3 @@ func (v *NullablePatchedDeviceBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go
index 7cd2f64cf..b85cfd831 100644
--- a/model_patched_device_bay_template_request.go
+++ b/model_patched_device_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{}
// PatchedDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedDeviceBayTemplateRequest struct {
- DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"`
+ DeviceType *DeviceBayTemplateRequestDeviceType `json:"device_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType) {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
return *o.DeviceType
@@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given DeviceBayTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = &v
}
@@ -176,7 +176,7 @@ func (o *PatchedDeviceBayTemplateRequest) SetDescription(v string) {
}
func (o PatchedDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -264,5 +264,3 @@ func (v *NullablePatchedDeviceBayTemplateRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go
deleted file mode 100644
index f8982bcd6..000000000
--- a/model_patched_device_role_request.go
+++ /dev/null
@@ -1,425 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 4.2.2 (4.2)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the PatchedDeviceRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedDeviceRoleRequest{}
-
-// PatchedDeviceRoleRequest Adds support for custom fields and tags.
-type PatchedDeviceRoleRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- // Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _PatchedDeviceRoleRequest PatchedDeviceRoleRequest
-
-// NewPatchedDeviceRoleRequest instantiates a new PatchedDeviceRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewPatchedDeviceRoleRequest() *PatchedDeviceRoleRequest {
- this := PatchedDeviceRoleRequest{}
- return &this
-}
-
-// NewPatchedDeviceRoleRequestWithDefaults instantiates a new PatchedDeviceRoleRequest object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewPatchedDeviceRoleRequestWithDefaults() *PatchedDeviceRoleRequest {
- this := PatchedDeviceRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetName(v string) {
- o.Name = &v
-}
-
-// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetSlug(v string) {
- o.Slug = &v
-}
-
-// GetColor returns the Color field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetColor(v string) {
- o.Color = &v
-}
-
-// GetVmRole returns the VmRole field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) GetVmRole() bool {
- if o == nil || IsNil(o.VmRole) {
- var ret bool
- return ret
- }
- return *o.VmRole
-}
-
-// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
- if o == nil || IsNil(o.VmRole) {
- return nil, false
- }
- return o.VmRole, true
-}
-
-// HasVmRole returns a boolean if a field has been set.
-func (o *PatchedDeviceRoleRequest) HasVmRole() bool {
- if o != nil && !IsNil(o.VmRole) {
- return true
- }
-
- return false
-}
-
-// SetVmRole gets a reference to the given bool and assigns it to the VmRole field.
-func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) {
- o.VmRole = &v
-}
-
-// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
- o.ConfigTemplate.Set(&v)
-}
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *PatchedDeviceRoleRequest) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-func (o *PatchedDeviceRoleRequest) UnsetConfigTemplate() {
- o.ConfigTemplate.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o PatchedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o PatchedDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if !IsNil(o.Name) {
- toSerialize["name"] = o.Name
- }
- if !IsNil(o.Slug) {
- toSerialize["slug"] = o.Slug
- }
- if !IsNil(o.Color) {
- toSerialize["color"] = o.Color
- }
- if !IsNil(o.VmRole) {
- toSerialize["vm_role"] = o.VmRole
- }
- if o.ConfigTemplate.IsSet() {
- toSerialize["config_template"] = o.ConfigTemplate.Get()
- }
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- if !IsNil(o.Tags) {
- toSerialize["tags"] = o.Tags
- }
- if !IsNil(o.CustomFields) {
- toSerialize["custom_fields"] = o.CustomFields
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *PatchedDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedDeviceRoleRequest := _PatchedDeviceRoleRequest{}
-
- err = json.Unmarshal(data, &varPatchedDeviceRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = PatchedDeviceRoleRequest(varPatchedDeviceRoleRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "slug")
- delete(additionalProperties, "color")
- delete(additionalProperties, "vm_role")
- delete(additionalProperties, "config_template")
- delete(additionalProperties, "description")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullablePatchedDeviceRoleRequest struct {
- value *PatchedDeviceRoleRequest
- isSet bool
-}
-
-func (v NullablePatchedDeviceRoleRequest) Get() *PatchedDeviceRoleRequest {
- return v.value
-}
-
-func (v *NullablePatchedDeviceRoleRequest) Set(val *PatchedDeviceRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullablePatchedDeviceRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullablePatchedDeviceRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullablePatchedDeviceRoleRequest(val *PatchedDeviceRoleRequest) *NullablePatchedDeviceRoleRequest {
- return &NullablePatchedDeviceRoleRequest{value: val, isSet: true}
-}
-
-func (v NullablePatchedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullablePatchedDeviceRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
-
-
diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go
index 46344155c..c1ec2e829 100644
--- a/model_patched_export_template_request.go
+++ b/model_patched_export_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,21 @@ var _ MappedNullable = &PatchedExportTemplateRequest{}
// PatchedExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedExportTemplateRequest struct {
ObjectTypes []string `json:"object_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset
.
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ // Any additional parameters to pass when constructing the Jinja environment
+ EnvironmentParams interface{} `json:"environment_params,omitempty"`
+ // Jinja template code.
TemplateCode *string `json:"template_code,omitempty"`
// Defaults to text/plain; charset=utf-8
MimeType *string `json:"mime_type,omitempty"`
+ // Filename to give to the rendered export file
+ FileName *string `json:"file_name,omitempty"`
// Extension to append to the rendered filename
FileExtension *string `json:"file_extension,omitempty"`
// Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- DataSource *BriefDataSourceRequest `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *ConfigContextRequestDataSource `json:"data_source,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -149,6 +153,39 @@ func (o *PatchedExportTemplateRequest) SetDescription(v string) {
o.Description = &v
}
+// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedExportTemplateRequest) GetEnvironmentParams() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.EnvironmentParams
+}
+
+// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedExportTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.EnvironmentParams) {
+ return nil, false
+ }
+ return &o.EnvironmentParams, true
+}
+
+// HasEnvironmentParams returns a boolean if a field has been set.
+func (o *PatchedExportTemplateRequest) HasEnvironmentParams() bool {
+ if o != nil && !IsNil(o.EnvironmentParams) {
+ return true
+ }
+
+ return false
+}
+
+// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field.
+func (o *PatchedExportTemplateRequest) SetEnvironmentParams(v interface{}) {
+ o.EnvironmentParams = v
+}
+
// GetTemplateCode returns the TemplateCode field value if set, zero value otherwise.
func (o *PatchedExportTemplateRequest) GetTemplateCode() string {
if o == nil || IsNil(o.TemplateCode) {
@@ -213,6 +250,38 @@ func (o *PatchedExportTemplateRequest) SetMimeType(v string) {
o.MimeType = &v
}
+// GetFileName returns the FileName field value if set, zero value otherwise.
+func (o *PatchedExportTemplateRequest) GetFileName() string {
+ if o == nil || IsNil(o.FileName) {
+ var ret string
+ return ret
+ }
+ return *o.FileName
+}
+
+// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedExportTemplateRequest) GetFileNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FileName) {
+ return nil, false
+ }
+ return o.FileName, true
+}
+
+// HasFileName returns a boolean if a field has been set.
+func (o *PatchedExportTemplateRequest) HasFileName() bool {
+ if o != nil && !IsNil(o.FileName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFileName gets a reference to the given string and assigns it to the FileName field.
+func (o *PatchedExportTemplateRequest) SetFileName(v string) {
+ o.FileName = &v
+}
+
// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
func (o *PatchedExportTemplateRequest) GetFileExtension() string {
if o == nil || IsNil(o.FileExtension) {
@@ -278,9 +347,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest {
+func (o *PatchedExportTemplateRequest) GetDataSource() ConfigContextRequestDataSource {
if o == nil || IsNil(o.DataSource) {
- var ret BriefDataSourceRequest
+ var ret ConfigContextRequestDataSource
return ret
}
return *o.DataSource
@@ -288,7 +357,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest {
// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) {
+func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*ConfigContextRequestDataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -304,13 +373,13 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field.
-func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) {
+// SetDataSource gets a reference to the given ConfigContextRequestDataSource and assigns it to the DataSource field.
+func (o *PatchedExportTemplateRequest) SetDataSource(v ConfigContextRequestDataSource) {
o.DataSource = &v
}
func (o PatchedExportTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -328,12 +397,18 @@ func (o PatchedExportTemplateRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.EnvironmentParams != nil {
+ toSerialize["environment_params"] = o.EnvironmentParams
+ }
if !IsNil(o.TemplateCode) {
toSerialize["template_code"] = o.TemplateCode
}
if !IsNil(o.MimeType) {
toSerialize["mime_type"] = o.MimeType
}
+ if !IsNil(o.FileName) {
+ toSerialize["file_name"] = o.FileName
+ }
if !IsNil(o.FileExtension) {
toSerialize["file_extension"] = o.FileExtension
}
@@ -368,8 +443,10 @@ func (o *PatchedExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
+ delete(additionalProperties, "environment_params")
delete(additionalProperties, "template_code")
delete(additionalProperties, "mime_type")
+ delete(additionalProperties, "file_name")
delete(additionalProperties, "file_extension")
delete(additionalProperties, "as_attachment")
delete(additionalProperties, "data_source")
@@ -414,5 +491,3 @@ func (v *NullablePatchedExportTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go
index 82384728c..4ceeb4cb9 100644
--- a/model_patched_fhrp_group_assignment_request.go
+++ b/model_patched_fhrp_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{}
// PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags.
type PatchedFHRPGroupAssignmentRequest struct {
- Group *BriefFHRPGroupRequest `json:"group,omitempty"`
- InterfaceType *string `json:"interface_type,omitempty"`
- InterfaceId *int64 `json:"interface_id,omitempty"`
- Priority *int32 `json:"priority,omitempty"`
+ Group *FHRPGroupAssignmentRequestGroup `json:"group,omitempty"`
+ InterfaceType *string `json:"interface_type,omitempty"`
+ InterfaceId *int64 `json:"interface_id,omitempty"`
+ Priority *int32 `json:"priority,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm
}
// GetGroup returns the Group field value if set, zero value otherwise.
-func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest {
+func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupAssignmentRequestGroup {
if o == nil || IsNil(o.Group) {
- var ret BriefFHRPGroupRequest
+ var ret FHRPGroupAssignmentRequestGroup
return ret
}
return *o.Group
@@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) {
+func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupAssignmentRequestGroup, bool) {
if o == nil || IsNil(o.Group) {
return nil, false
}
@@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field.
-func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) {
+// SetGroup gets a reference to the given FHRPGroupAssignmentRequestGroup and assigns it to the Group field.
+func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupAssignmentRequestGroup) {
o.Group = &v
}
@@ -174,7 +174,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) SetPriority(v int32) {
}
func (o PatchedFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,5 +262,3 @@ func (v *NullablePatchedFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go
index 9e53bada7..ded7b9440 100644
--- a/model_patched_fhrp_group_request.go
+++ b/model_patched_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{}
// PatchedFHRPGroupRequest Adds support for custom fields and tags.
type PatchedFHRPGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"`
- GroupId *int32 `json:"group_id,omitempty"`
- AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
- AuthKey *string `json:"auth_key,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"`
+ GroupId *int32 `json:"group_id,omitempty"`
+ AuthType NullableAuthenticationType `json:"auth_type,omitempty"`
+ AuthKey *string `json:"auth_key,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -178,6 +178,7 @@ func (o *PatchedFHRPGroupRequest) HasAuthType() bool {
func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *PatchedFHRPGroupRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -349,7 +350,7 @@ func (o *PatchedFHRPGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedFHRPGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -457,5 +458,3 @@ func (v *NullablePatchedFHRPGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_group_request.go b/model_patched_group_request.go
index 50b745dd9..b81d1ec96 100644
--- a/model_patched_group_request.go
+++ b/model_patched_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedGroupRequest{}
// PatchedGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Permissions []int32 `json:"permissions,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Permissions []int32 `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -141,7 +141,7 @@ func (o *PatchedGroupRequest) SetPermissions(v []int32) {
}
func (o PatchedGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -225,5 +225,3 @@ func (v *NullablePatchedGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go
index 3879cbf3a..ae5ae6021 100644
--- a/model_patched_image_attachment_request.go
+++ b/model_patched_image_attachment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedImageAttachmentRequest{}
// PatchedImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedImageAttachmentRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- Name *string `json:"name,omitempty"`
- Image **os.File `json:"image,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Image **os.File `json:"image,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -175,7 +175,7 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) {
}
func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -263,5 +263,3 @@ func (v *NullablePatchedImageAttachmentRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go
index 827eb98af..760cd35cd 100644
--- a/model_patched_inventory_item_role_request.go
+++ b/model_patched_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedInventoryItemRoleRequest{}
// PatchedInventoryItemRoleRequest Adds support for custom fields and tags.
type PatchedInventoryItemRoleRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -240,7 +240,7 @@ func (o *PatchedInventoryItemRoleRequest) SetCustomFields(v map[string]interface
}
func (o PatchedInventoryItemRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedInventoryItemRoleRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go
index 2594abf34..495adefca 100644
--- a/model_patched_inventory_item_template_request.go
+++ b/model_patched_inventory_item_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{}
// PatchedInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedInventoryItemTemplateRequest struct {
- DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ DeviceType *DeviceBayTemplateRequestDeviceType `json:"device_type,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRequestRole `json:"role,omitempty"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
+ PartId *string `json:"part_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType) {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
return *o.DeviceType
@@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeReq
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given DeviceBayTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = &v
}
@@ -118,6 +118,7 @@ func (o *PatchedInventoryItemTemplateRequest) HasParent() bool {
func (o *PatchedInventoryItemTemplateRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedInventoryItemTemplateRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -193,9 +194,9 @@ func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest {
+func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefInventoryItemRoleRequest
+ var ret InventoryItemRequestRole
return ret
}
return *o.Role.Get()
@@ -204,7 +205,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRe
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +221,11 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field.
-func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRequestRole and assigns it to the Role field.
+func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedInventoryItemTemplateRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -235,9 +237,9 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetRole() {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -246,7 +248,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacture
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -262,10 +264,11 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *PatchedInventoryItemTemplateRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -372,6 +375,7 @@ func (o *PatchedInventoryItemTemplateRequest) HasComponentType() bool {
func (o *PatchedInventoryItemTemplateRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *PatchedInventoryItemTemplateRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -414,6 +418,7 @@ func (o *PatchedInventoryItemTemplateRequest) HasComponentId() bool {
func (o *PatchedInventoryItemTemplateRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *PatchedInventoryItemTemplateRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -425,7 +430,7 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetComponentId() {
}
func (o PatchedInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -537,5 +542,3 @@ func (v *NullablePatchedInventoryItemTemplateRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go
index 92daca771..89a4e1bfa 100644
--- a/model_patched_l2_vpn_termination_request.go
+++ b/model_patched_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{}
// PatchedL2VPNTerminationRequest Adds support for custom fields and tags.
type PatchedL2VPNTerminationRequest struct {
- L2vpn *BriefL2VPNRequest `json:"l2vpn,omitempty"`
- AssignedObjectType *string `json:"assigned_object_type,omitempty"`
- AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ L2vpn *BriefL2VPNTerminationRequestL2vpn `json:"l2vpn,omitempty"`
+ AssignedObjectType *string `json:"assigned_object_type,omitempty"`
+ AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq
}
// GetL2vpn returns the L2vpn field value if set, zero value otherwise.
-func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
+func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNTerminationRequestL2vpn {
if o == nil || IsNil(o.L2vpn) {
- var ret BriefL2VPNRequest
+ var ret BriefL2VPNTerminationRequestL2vpn
return ret
}
return *o.L2vpn
@@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest {
// GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNTerminationRequestL2vpn, bool) {
if o == nil || IsNil(o.L2vpn) {
return nil, false
}
@@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool {
return false
}
-// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field.
-func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) {
+// SetL2vpn gets a reference to the given BriefL2VPNTerminationRequestL2vpn and assigns it to the L2vpn field.
+func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNTerminationRequestL2vpn) {
o.L2vpn = &v
}
@@ -207,7 +207,7 @@ func (o *PatchedL2VPNTerminationRequest) SetCustomFields(v map[string]interface{
}
func (o PatchedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedL2VPNTerminationRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_mac_address_request.go b/model_patched_mac_address_request.go
index 5119e3f01..dd4854a0f 100644
--- a/model_patched_mac_address_request.go
+++ b/model_patched_mac_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedMACAddressRequest{}
// PatchedMACAddressRequest Adds support for custom fields and tags.
type PatchedMACAddressRequest struct {
- MacAddress *string `json:"mac_address,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MacAddress *string `json:"mac_address,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -112,6 +112,7 @@ func (o *PatchedMACAddressRequest) HasAssignedObjectType() bool {
func (o *PatchedMACAddressRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *PatchedMACAddressRequest) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -154,6 +155,7 @@ func (o *PatchedMACAddressRequest) HasAssignedObjectId() bool {
func (o *PatchedMACAddressRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *PatchedMACAddressRequest) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -293,7 +295,7 @@ func (o *PatchedMACAddressRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedMACAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -393,5 +395,3 @@ func (v *NullablePatchedMACAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go
index 30f200a92..51a340b63 100644
--- a/model_patched_manufacturer_request.go
+++ b/model_patched_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedManufacturerRequest{}
// PatchedManufacturerRequest Adds support for custom fields and tags.
type PatchedManufacturerRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -207,7 +207,7 @@ func (o *PatchedManufacturerRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedManufacturerRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedManufacturerRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go
index 3aabf7e78..8244a70e0 100644
--- a/model_patched_module_bay_request.go
+++ b/model_patched_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedModuleBayRequest{}
// PatchedModuleBayRequest Adds support for custom fields and tags.
type PatchedModuleBayRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
- InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
+ InstalledModule NullableConsolePortRequestModule `json:"installed_module,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,9 +53,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest {
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedModuleBayRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -63,7 +63,7 @@ func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -79,15 +79,15 @@ func (o *PatchedModuleBayRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedModuleBayRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest {
+func (o *PatchedModuleBayRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -96,7 +96,7 @@ func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedModuleBayRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +112,11 @@ func (o *PatchedModuleBayRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedModuleBayRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedModuleBayRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -159,9 +160,9 @@ func (o *PatchedModuleBayRequest) SetName(v string) {
}
// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest {
+func (o *PatchedModuleBayRequest) GetInstalledModule() ConsolePortRequestModule {
if o == nil || IsNil(o.InstalledModule.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.InstalledModule.Get()
@@ -170,7 +171,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest {
// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -186,10 +187,11 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool {
return false
}
-// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field.
-func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) {
+// SetInstalledModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the InstalledModule field.
+func (o *PatchedModuleBayRequest) SetInstalledModule(v ConsolePortRequestModule) {
o.InstalledModule.Set(&v)
}
+
// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil
func (o *PatchedModuleBayRequest) SetInstalledModuleNil() {
o.InstalledModule.Set(nil)
@@ -361,7 +363,7 @@ func (o *PatchedModuleBayRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedModuleBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -469,5 +471,3 @@ func (v *NullablePatchedModuleBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go
index eb3aac125..500adf026 100644
--- a/model_patched_module_bay_template_request.go
+++ b/model_patched_module_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{}
// PatchedModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedModuleBayTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
- Position *string `json:"position,omitempty"`
- Description *string `json:"description,omitempty"`
+ Position *string `json:"position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -51,9 +51,9 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedModuleBayTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -62,7 +62,7 @@ func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -78,10 +78,11 @@ func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -93,9 +94,9 @@ func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedModuleBayTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -104,7 +105,7 @@ func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -120,10 +121,11 @@ func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedModuleBayTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -263,7 +265,7 @@ func (o *PatchedModuleBayTemplateRequest) SetDescription(v string) {
}
func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -359,5 +361,3 @@ func (v *NullablePatchedModuleBayTemplateRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_module_type_profile_request.go b/model_patched_module_type_profile_request.go
new file mode 100644
index 000000000..f83b67ab9
--- /dev/null
+++ b/model_patched_module_type_profile_request.go
@@ -0,0 +1,339 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedModuleTypeProfileRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedModuleTypeProfileRequest{}
+
+// PatchedModuleTypeProfileRequest Adds support for custom fields and tags.
+type PatchedModuleTypeProfileRequest struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Schema interface{} `json:"schema,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedModuleTypeProfileRequest PatchedModuleTypeProfileRequest
+
+// NewPatchedModuleTypeProfileRequest instantiates a new PatchedModuleTypeProfileRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedModuleTypeProfileRequest() *PatchedModuleTypeProfileRequest {
+ this := PatchedModuleTypeProfileRequest{}
+ return &this
+}
+
+// NewPatchedModuleTypeProfileRequestWithDefaults instantiates a new PatchedModuleTypeProfileRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedModuleTypeProfileRequestWithDefaults() *PatchedModuleTypeProfileRequest {
+ this := PatchedModuleTypeProfileRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetSchema returns the Schema field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedModuleTypeProfileRequest) GetSchema() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Schema
+}
+
+// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedModuleTypeProfileRequest) GetSchemaOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Schema) {
+ return nil, false
+ }
+ return &o.Schema, true
+}
+
+// HasSchema returns a boolean if a field has been set.
+func (o *PatchedModuleTypeProfileRequest) HasSchema() bool {
+ if o != nil && !IsNil(o.Schema) {
+ return true
+ }
+
+ return false
+}
+
+// SetSchema gets a reference to the given interface{} and assigns it to the Schema field.
+func (o *PatchedModuleTypeProfileRequest) SetSchema(v interface{}) {
+ o.Schema = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) 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 *PatchedModuleTypeProfileRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+func (o PatchedModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedModuleTypeProfileRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.Schema != nil {
+ toSerialize["schema"] = o.Schema
+ }
+ 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 *PatchedModuleTypeProfileRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedModuleTypeProfileRequest := _PatchedModuleTypeProfileRequest{}
+
+ err = json.Unmarshal(data, &varPatchedModuleTypeProfileRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedModuleTypeProfileRequest(varPatchedModuleTypeProfileRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "schema")
+ delete(additionalProperties, "comments")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedModuleTypeProfileRequest struct {
+ value *PatchedModuleTypeProfileRequest
+ isSet bool
+}
+
+func (v NullablePatchedModuleTypeProfileRequest) Get() *PatchedModuleTypeProfileRequest {
+ return v.value
+}
+
+func (v *NullablePatchedModuleTypeProfileRequest) Set(val *PatchedModuleTypeProfileRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedModuleTypeProfileRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedModuleTypeProfileRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedModuleTypeProfileRequest(val *PatchedModuleTypeProfileRequest) *NullablePatchedModuleTypeProfileRequest {
+ return &NullablePatchedModuleTypeProfileRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedModuleTypeProfileRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedModuleTypeProfileRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go
index c07afa29e..2917c986f 100644
--- a/model_patched_notification_group_request.go
+++ b/model_patched_notification_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedNotificationGroupRequest{}
// PatchedNotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedNotificationGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Users []int32 `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -174,7 +174,7 @@ func (o *PatchedNotificationGroupRequest) SetUsers(v []int32) {
}
func (o PatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,5 +262,3 @@ func (v *NullablePatchedNotificationGroupRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go
index 38b959392..7b02f3539 100644
--- a/model_patched_notification_request.go
+++ b/model_patched_notification_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedNotificationRequest{}
// PatchedNotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedNotificationRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- User *BriefUserRequest `json:"user,omitempty"`
- Read NullableTime `json:"read,omitempty"`
- EventType *Event `json:"event_type,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ User *BookmarkRequestUser `json:"user,omitempty"`
+ Read NullableTime `json:"read,omitempty"`
+ EventType *Event `json:"event_type,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -112,9 +112,9 @@ func (o *PatchedNotificationRequest) SetObjectId(v int64) {
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedNotificationRequest) GetUser() BriefUserRequest {
+func (o *PatchedNotificationRequest) GetUser() BookmarkRequestUser {
if o == nil || IsNil(o.User) {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
return *o.User
@@ -122,7 +122,7 @@ func (o *PatchedNotificationRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *PatchedNotificationRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -138,8 +138,8 @@ func (o *PatchedNotificationRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field.
-func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest) {
+// SetUser gets a reference to the given BookmarkRequestUser and assigns it to the User field.
+func (o *PatchedNotificationRequest) SetUser(v BookmarkRequestUser) {
o.User = &v
}
@@ -175,6 +175,7 @@ func (o *PatchedNotificationRequest) HasRead() bool {
func (o *PatchedNotificationRequest) SetRead(v time.Time) {
o.Read.Set(&v)
}
+
// SetReadNil sets the value for Read to be an explicit nil
func (o *PatchedNotificationRequest) SetReadNil() {
o.Read.Set(nil)
@@ -218,7 +219,7 @@ func (o *PatchedNotificationRequest) SetEventType(v Event) {
}
func (o PatchedNotificationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,5 +311,3 @@ func (v *NullablePatchedNotificationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go
index 905be0938..6a0ab1fc2 100644
--- a/model_patched_object_permission_request.go
+++ b/model_patched_object_permission_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedObjectPermissionRequest{}
// PatchedObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedObjectPermissionRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
ObjectTypes []string `json:"object_types,omitempty"`
// The list of actions granted by this permission
Actions []string `json:"actions,omitempty"`
// Queryset filter matching the applicable objects of the selected type(s)
- Constraints interface{} `json:"constraints,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
+ Constraints interface{} `json:"constraints,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Users []int32 `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -309,7 +309,7 @@ func (o *PatchedObjectPermissionRequest) SetUsers(v []int32) {
}
func (o PatchedObjectPermissionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -413,5 +413,3 @@ func (v *NullablePatchedObjectPermissionRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go
index 351315dea..506d89fd8 100644
--- a/model_patched_platform_request.go
+++ b/model_patched_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{}
// PatchedPlatformRequest Adds support for custom fields and tags.
type PatchedPlatformRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedPlatformRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedPlatformRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -140,10 +140,11 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedPlatformRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *PatchedPlatformRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -155,9 +156,9 @@ func (o *PatchedPlatformRequest) UnsetManufacturer() {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *PatchedPlatformRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -166,7 +167,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -182,10 +183,11 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *PatchedPlatformRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *PatchedPlatformRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -293,7 +295,7 @@ func (o *PatchedPlatformRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedPlatformRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -393,5 +395,3 @@ func (v *NullablePatchedPlatformRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go
index 5e5c68b3e..064e1d17c 100644
--- a/model_patched_power_panel_request.go
+++ b/model_patched_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{}
// PatchedPowerPanelRequest Adds support for custom fields and tags.
type PatchedPowerPanelRequest struct {
- Site *BriefSiteRequest `json:"site,omitempty"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Site *DeviceWithConfigContextRequestSite `json:"site,omitempty"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest {
+func (o *PatchedPowerPanelRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil || IsNil(o.Site) {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
return *o.Site
@@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedPowerPanelRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field.
-func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given DeviceWithConfigContextRequestSite and assigns it to the Site field.
+func (o *PatchedPowerPanelRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = &v
}
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest {
+func (o *PatchedPowerPanelRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *PatchedPowerPanelRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -108,10 +108,11 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *PatchedPowerPanelRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PatchedPowerPanelRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -283,7 +284,7 @@ func (o *PatchedPowerPanelRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedPowerPanelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -383,5 +384,3 @@ func (v *NullablePatchedPowerPanelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go
index 32e463b5a..83ede3a7a 100644
--- a/model_patched_provider_account_request.go
+++ b/model_patched_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedProviderAccountRequest{}
// PatchedProviderAccountRequest Adds support for custom fields and tags.
type PatchedProviderAccountRequest struct {
- Provider *BriefProviderRequest `json:"provider,omitempty"`
- Name *string `json:"name,omitempty"`
- Account *string `json:"account,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Provider *BriefCircuitRequestProvider `json:"provider,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Account *string `json:"account,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest {
+func (o *PatchedProviderAccountRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil || IsNil(o.Provider) {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
return *o.Provider
@@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field.
-func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) {
+// SetProvider gets a reference to the given BriefCircuitRequestProvider and assigns it to the Provider field.
+func (o *PatchedProviderAccountRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = &v
}
@@ -277,7 +277,7 @@ func (o *PatchedProviderAccountRequest) SetCustomFields(v map[string]interface{}
}
func (o PatchedProviderAccountRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -377,5 +377,3 @@ func (v *NullablePatchedProviderAccountRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go
index ef02ad434..e22ad68b8 100644
--- a/model_patched_provider_network_request.go
+++ b/model_patched_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{}
// PatchedProviderNetworkRequest Adds support for custom fields and tags.
type PatchedProviderNetworkRequest struct {
- Provider *BriefProviderRequest `json:"provider,omitempty"`
- Name *string `json:"name,omitempty"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Provider *BriefCircuitRequestProvider `json:"provider,omitempty"`
+ Name *string `json:"name,omitempty"`
+ ServiceId *string `json:"service_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest {
+func (o *PatchedProviderNetworkRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil || IsNil(o.Provider) {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
return *o.Provider
@@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field.
-func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) {
+// SetProvider gets a reference to the given BriefCircuitRequestProvider and assigns it to the Provider field.
+func (o *PatchedProviderNetworkRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = &v
}
@@ -273,7 +273,7 @@ func (o *PatchedProviderNetworkRequest) SetCustomFields(v map[string]interface{}
}
func (o PatchedProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -373,5 +373,3 @@ func (v *NullablePatchedProviderNetworkRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go
index 265eb82df..f0a9a7370 100644
--- a/model_patched_provider_request.go
+++ b/model_patched_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &PatchedProviderRequest{}
// PatchedProviderRequest Adds support for custom fields and tags.
type PatchedProviderRequest struct {
// Full name of the provider
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Accounts []int32 `json:"accounts,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Accounts []int32 `json:"accounts,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []int32 `json:"asns,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -307,7 +307,7 @@ func (o *PatchedProviderRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedProviderRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -411,5 +411,3 @@ func (v *NullablePatchedProviderRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go
index e58a48b17..24d0df58c 100644
--- a/model_patched_rack_reservation_request.go
+++ b/model_patched_rack_reservation_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{}
// PatchedRackReservationRequest Adds support for custom fields and tags.
type PatchedRackReservationRequest struct {
- Rack *BriefRackRequest `json:"rack,omitempty"`
- Units []int32 `json:"units,omitempty"`
- User *BriefUserRequest `json:"user,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Rack *PatchedRackReservationRequestRack `json:"rack,omitempty"`
+ Units []int32 `json:"units,omitempty"`
+ User *BookmarkRequestUser `json:"user,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque
}
// GetRack returns the Rack field value if set, zero value otherwise.
-func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest {
+func (o *PatchedRackReservationRequest) GetRack() PatchedRackReservationRequestRack {
if o == nil || IsNil(o.Rack) {
- var ret BriefRackRequest
+ var ret PatchedRackReservationRequestRack
return ret
}
return *o.Rack
@@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *PatchedRackReservationRequest) GetRackOk() (*PatchedRackReservationRequestRack, bool) {
if o == nil || IsNil(o.Rack) {
return nil, false
}
@@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field.
-func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given PatchedRackReservationRequestRack and assigns it to the Rack field.
+func (o *PatchedRackReservationRequest) SetRack(v PatchedRackReservationRequestRack) {
o.Rack = &v
}
@@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) {
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest {
+func (o *PatchedRackReservationRequest) GetUser() BookmarkRequestUser {
if o == nil || IsNil(o.User) {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
return *o.User
@@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *PatchedRackReservationRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field.
-func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) {
+// SetUser gets a reference to the given BookmarkRequestUser and assigns it to the User field.
+func (o *PatchedRackReservationRequest) SetUser(v BookmarkRequestUser) {
o.User = &v
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedRackReservationRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedRackReservationRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -173,10 +173,11 @@ func (o *PatchedRackReservationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedRackReservationRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedRackReservationRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -316,7 +317,7 @@ func (o *PatchedRackReservationRequest) SetCustomFields(v map[string]interface{}
}
func (o PatchedRackReservationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -420,5 +421,3 @@ func (v *NullablePatchedRackReservationRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_rack_reservation_request_rack.go b/model_patched_rack_reservation_request_rack.go
new file mode 100644
index 000000000..2cb895bb8
--- /dev/null
+++ b/model_patched_rack_reservation_request_rack.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedRackReservationRequestRack - struct for PatchedRackReservationRequestRack
+type PatchedRackReservationRequestRack struct {
+ BriefRackRequest *BriefRackRequest
+ Int32 *int32
+}
+
+// BriefRackRequestAsPatchedRackReservationRequestRack is a convenience function that returns BriefRackRequest wrapped in PatchedRackReservationRequestRack
+func BriefRackRequestAsPatchedRackReservationRequestRack(v *BriefRackRequest) PatchedRackReservationRequestRack {
+ return PatchedRackReservationRequestRack{
+ BriefRackRequest: v,
+ }
+}
+
+// int32AsPatchedRackReservationRequestRack is a convenience function that returns int32 wrapped in PatchedRackReservationRequestRack
+func Int32AsPatchedRackReservationRequestRack(v *int32) PatchedRackReservationRequestRack {
+ return PatchedRackReservationRequestRack{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedRackReservationRequestRack) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefRackRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRackRequest)
+ if err == nil {
+ jsonBriefRackRequest, _ := json.Marshal(dst.BriefRackRequest)
+ if string(jsonBriefRackRequest) == "{}" { // empty struct
+ dst.BriefRackRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRackRequest); err != nil {
+ dst.BriefRackRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRackRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRackRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedRackReservationRequestRack)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedRackReservationRequestRack)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedRackReservationRequestRack) MarshalJSON() ([]byte, error) {
+ if src.BriefRackRequest != nil {
+ return json.Marshal(&src.BriefRackRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedRackReservationRequestRack) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRackRequest != nil {
+ return obj.BriefRackRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedRackReservationRequestRack struct {
+ value *PatchedRackReservationRequestRack
+ isSet bool
+}
+
+func (v NullablePatchedRackReservationRequestRack) Get() *PatchedRackReservationRequestRack {
+ return v.value
+}
+
+func (v *NullablePatchedRackReservationRequestRack) Set(val *PatchedRackReservationRequestRack) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedRackReservationRequestRack) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedRackReservationRequestRack) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedRackReservationRequestRack(val *PatchedRackReservationRequestRack) *NullablePatchedRackReservationRequestRack {
+ return &NullablePatchedRackReservationRequestRack{value: val, isSet: true}
+}
+
+func (v NullablePatchedRackReservationRequestRack) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedRackReservationRequestRack) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go
index 69de442fa..47a1ce112 100644
--- a/model_patched_rack_role_request.go
+++ b/model_patched_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedRackRoleRequest{}
// PatchedRackRoleRequest Adds support for custom fields and tags.
type PatchedRackRoleRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -240,7 +240,7 @@ func (o *PatchedRackRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedRackRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedRackRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go
index 22b2f943f..34ba692e6 100644
--- a/model_patched_rir_request.go
+++ b/model_patched_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,10 +22,10 @@ type PatchedRIRRequest struct {
Name *string `json:"name,omitempty"`
Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// IP space managed by this RIR is considered private
- IsPrivate *bool `json:"is_private,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IsPrivate *bool `json:"is_private,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -241,7 +241,7 @@ func (o *PatchedRIRRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedRIRRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -337,5 +337,3 @@ func (v *NullablePatchedRIRRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_role_request.go b/model_patched_role_request.go
index 873597bb4..63fd3a20f 100644
--- a/model_patched_role_request.go
+++ b/model_patched_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedRoleRequest{}
// PatchedRoleRequest Adds support for custom fields and tags.
type PatchedRoleRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -240,7 +240,7 @@ func (o *PatchedRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go
index 153dd58f3..d5819aebe 100644
--- a/model_patched_route_target_request.go
+++ b/model_patched_route_target_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{}
// PatchedRouteTargetRequest Adds support for custom fields and tags.
type PatchedRouteTargetRequest struct {
// Route target value (formatted in accordance with RFC 4360)
- Name *string `json:"name,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedRouteTargetRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedRouteTargetRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -108,10 +108,11 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedRouteTargetRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedRouteTargetRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -251,7 +252,7 @@ func (o *PatchedRouteTargetRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedRouteTargetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -347,5 +348,3 @@ func (v *NullablePatchedRouteTargetRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go
index 28105c804..0e3b0eacf 100644
--- a/model_patched_saved_filter_request.go
+++ b/model_patched_saved_filter_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedSavedFilterRequest{}
// PatchedSavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedSavedFilterRequest struct {
- ObjectTypes []string `json:"object_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters interface{} `json:"parameters,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -210,6 +210,7 @@ func (o *PatchedSavedFilterRequest) HasUser() bool {
func (o *PatchedSavedFilterRequest) SetUser(v int32) {
o.User.Set(&v)
}
+
// SetUserNil sets the value for User to be an explicit nil
func (o *PatchedSavedFilterRequest) SetUserNil() {
o.User.Set(nil)
@@ -350,7 +351,7 @@ func (o *PatchedSavedFilterRequest) SetParameters(v interface{}) {
}
func (o PatchedSavedFilterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -458,5 +459,3 @@ func (v *NullablePatchedSavedFilterRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go
index c91c30f1f..916332d45 100644
--- a/model_patched_script_input_request.go
+++ b/model_patched_script_input_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedScriptInputRequest{}
// PatchedScriptInputRequest struct for PatchedScriptInputRequest
type PatchedScriptInputRequest struct {
- Data interface{} `json:"data,omitempty"`
- Commit *bool `json:"commit,omitempty"`
- ScheduleAt NullableTime `json:"schedule_at,omitempty"`
- Interval NullableInt32 `json:"interval,omitempty"`
+ Data interface{} `json:"data,omitempty"`
+ Commit *bool `json:"commit,omitempty"`
+ ScheduleAt NullableTime `json:"schedule_at,omitempty"`
+ Interval NullableInt32 `json:"interval,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +143,7 @@ func (o *PatchedScriptInputRequest) HasScheduleAt() bool {
func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time) {
o.ScheduleAt.Set(&v)
}
+
// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil
func (o *PatchedScriptInputRequest) SetScheduleAtNil() {
o.ScheduleAt.Set(nil)
@@ -185,6 +186,7 @@ func (o *PatchedScriptInputRequest) HasInterval() bool {
func (o *PatchedScriptInputRequest) SetInterval(v int32) {
o.Interval.Set(&v)
}
+
// SetIntervalNil sets the value for Interval to be an explicit nil
func (o *PatchedScriptInputRequest) SetIntervalNil() {
o.Interval.Set(nil)
@@ -196,7 +198,7 @@ func (o *PatchedScriptInputRequest) UnsetInterval() {
}
func (o PatchedScriptInputRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -284,5 +286,3 @@ func (v *NullablePatchedScriptInputRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go
index 498d50ca9..b4b1aa670 100644
--- a/model_patched_subscription_request.go
+++ b/model_patched_subscription_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedSubscriptionRequest{}
// PatchedSubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedSubscriptionRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- User *BriefUserRequest `json:"user,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ User *BookmarkRequestUser `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -109,9 +109,9 @@ func (o *PatchedSubscriptionRequest) SetObjectId(v int64) {
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest {
+func (o *PatchedSubscriptionRequest) GetUser() BookmarkRequestUser {
if o == nil || IsNil(o.User) {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
return *o.User
@@ -119,7 +119,7 @@ func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *PatchedSubscriptionRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -135,13 +135,13 @@ func (o *PatchedSubscriptionRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field.
-func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest) {
+// SetUser gets a reference to the given BookmarkRequestUser and assigns it to the User field.
+func (o *PatchedSubscriptionRequest) SetUser(v BookmarkRequestUser) {
o.User = &v
}
func (o PatchedSubscriptionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -225,5 +225,3 @@ func (v *NullablePatchedSubscriptionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_table_config_request.go b/model_patched_table_config_request.go
new file mode 100644
index 000000000..6a1fe8f6c
--- /dev/null
+++ b/model_patched_table_config_request.go
@@ -0,0 +1,498 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedTableConfigRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedTableConfigRequest{}
+
+// PatchedTableConfigRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a 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 PatchedTableConfigRequest struct {
+ ObjectType *string `json:"object_type,omitempty"`
+ Table *string `json:"table,omitempty"`
+ Name *string `json:"name,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"`
+ Columns []string `json:"columns,omitempty"`
+ Ordering []string `json:"ordering,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedTableConfigRequest PatchedTableConfigRequest
+
+// NewPatchedTableConfigRequest instantiates a new PatchedTableConfigRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedTableConfigRequest() *PatchedTableConfigRequest {
+ this := PatchedTableConfigRequest{}
+ return &this
+}
+
+// NewPatchedTableConfigRequestWithDefaults instantiates a new PatchedTableConfigRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedTableConfigRequestWithDefaults() *PatchedTableConfigRequest {
+ this := PatchedTableConfigRequest{}
+ return &this
+}
+
+// GetObjectType returns the ObjectType field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) GetObjectType() string {
+ if o == nil || IsNil(o.ObjectType) {
+ var ret string
+ return ret
+ }
+ return *o.ObjectType
+}
+
+// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTableConfigRequest) GetObjectTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.ObjectType) {
+ return nil, false
+ }
+ return o.ObjectType, true
+}
+
+// HasObjectType returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasObjectType() bool {
+ if o != nil && !IsNil(o.ObjectType) {
+ return true
+ }
+
+ return false
+}
+
+// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
+func (o *PatchedTableConfigRequest) SetObjectType(v string) {
+ o.ObjectType = &v
+}
+
+// GetTable returns the Table field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) GetTable() string {
+ if o == nil || IsNil(o.Table) {
+ var ret string
+ return ret
+ }
+ return *o.Table
+}
+
+// GetTableOk returns a tuple with the Table field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTableConfigRequest) GetTableOk() (*string, bool) {
+ if o == nil || IsNil(o.Table) {
+ return nil, false
+ }
+ return o.Table, true
+}
+
+// HasTable returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasTable() bool {
+ if o != nil && !IsNil(o.Table) {
+ return true
+ }
+
+ return false
+}
+
+// SetTable gets a reference to the given string and assigns it to the Table field.
+func (o *PatchedTableConfigRequest) SetTable(v string) {
+ o.Table = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedTableConfigRequest) GetUser() int32 {
+ if o == nil || IsNil(o.User.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.User.Get()
+}
+
+// GetUserOk returns a tuple with the User field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedTableConfigRequest) GetUserOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.User.Get(), o.User.IsSet()
+}
+
+// HasUser returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasUser() bool {
+ if o != nil && o.User.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetUser gets a reference to the given NullableInt32 and assigns it to the User field.
+func (o *PatchedTableConfigRequest) SetUser(v int32) {
+ o.User.Set(&v)
+}
+
+// SetUserNil sets the value for User to be an explicit nil
+func (o *PatchedTableConfigRequest) SetUserNil() {
+ o.User.Set(nil)
+}
+
+// UnsetUser ensures that no value is present for User, not even an explicit nil
+func (o *PatchedTableConfigRequest) UnsetUser() {
+ o.User.Unset()
+}
+
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTableConfigRequest) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *PatchedTableConfigRequest) SetWeight(v int32) {
+ o.Weight = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) 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 *PatchedTableConfigRequest) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetShared returns the Shared field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) GetShared() bool {
+ if o == nil || IsNil(o.Shared) {
+ var ret bool
+ return ret
+ }
+ return *o.Shared
+}
+
+// GetSharedOk returns a tuple with the Shared field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTableConfigRequest) GetSharedOk() (*bool, bool) {
+ if o == nil || IsNil(o.Shared) {
+ return nil, false
+ }
+ return o.Shared, true
+}
+
+// HasShared returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasShared() bool {
+ if o != nil && !IsNil(o.Shared) {
+ return true
+ }
+
+ return false
+}
+
+// SetShared gets a reference to the given bool and assigns it to the Shared field.
+func (o *PatchedTableConfigRequest) SetShared(v bool) {
+ o.Shared = &v
+}
+
+// GetColumns returns the Columns field value if set, zero value otherwise.
+func (o *PatchedTableConfigRequest) GetColumns() []string {
+ if o == nil || IsNil(o.Columns) {
+ var ret []string
+ return ret
+ }
+ return o.Columns
+}
+
+// GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTableConfigRequest) GetColumnsOk() ([]string, bool) {
+ if o == nil || IsNil(o.Columns) {
+ return nil, false
+ }
+ return o.Columns, true
+}
+
+// HasColumns returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasColumns() bool {
+ if o != nil && !IsNil(o.Columns) {
+ return true
+ }
+
+ return false
+}
+
+// SetColumns gets a reference to the given []string and assigns it to the Columns field.
+func (o *PatchedTableConfigRequest) SetColumns(v []string) {
+ o.Columns = v
+}
+
+// GetOrdering returns the Ordering field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedTableConfigRequest) GetOrdering() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Ordering
+}
+
+// GetOrderingOk returns a tuple with the Ordering field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedTableConfigRequest) GetOrderingOk() ([]string, bool) {
+ if o == nil || IsNil(o.Ordering) {
+ return nil, false
+ }
+ return o.Ordering, true
+}
+
+// HasOrdering returns a boolean if a field has been set.
+func (o *PatchedTableConfigRequest) HasOrdering() bool {
+ if o != nil && !IsNil(o.Ordering) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrdering gets a reference to the given []string and assigns it to the Ordering field.
+func (o *PatchedTableConfigRequest) SetOrdering(v []string) {
+ o.Ordering = v
+}
+
+func (o PatchedTableConfigRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedTableConfigRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ObjectType) {
+ toSerialize["object_type"] = o.ObjectType
+ }
+ if !IsNil(o.Table) {
+ toSerialize["table"] = o.Table
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.User.IsSet() {
+ toSerialize["user"] = o.User.Get()
+ }
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if !IsNil(o.Shared) {
+ toSerialize["shared"] = o.Shared
+ }
+ if !IsNil(o.Columns) {
+ toSerialize["columns"] = o.Columns
+ }
+ if o.Ordering != nil {
+ toSerialize["ordering"] = o.Ordering
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedTableConfigRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedTableConfigRequest := _PatchedTableConfigRequest{}
+
+ err = json.Unmarshal(data, &varPatchedTableConfigRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedTableConfigRequest(varPatchedTableConfigRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "object_type")
+ delete(additionalProperties, "table")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "user")
+ delete(additionalProperties, "weight")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "shared")
+ delete(additionalProperties, "columns")
+ delete(additionalProperties, "ordering")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedTableConfigRequest struct {
+ value *PatchedTableConfigRequest
+ isSet bool
+}
+
+func (v NullablePatchedTableConfigRequest) Get() *PatchedTableConfigRequest {
+ return v.value
+}
+
+func (v *NullablePatchedTableConfigRequest) Set(val *PatchedTableConfigRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedTableConfigRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedTableConfigRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedTableConfigRequest(val *PatchedTableConfigRequest) *NullablePatchedTableConfigRequest {
+ return &NullablePatchedTableConfigRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedTableConfigRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedTableConfigRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go
index b929abb48..7b7685286 100644
--- a/model_patched_tag_request.go
+++ b/model_patched_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,12 @@ var _ MappedNullable = &PatchedTagRequest{}
// PatchedTagRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedTagRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-\\\\w]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- ObjectTypes []string `json:"object_types,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -174,6 +175,38 @@ func (o *PatchedTagRequest) SetDescription(v string) {
o.Description = &v
}
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *PatchedTagRequest) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedTagRequest) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *PatchedTagRequest) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *PatchedTagRequest) SetWeight(v int32) {
+ o.Weight = &v
+}
+
// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
func (o *PatchedTagRequest) GetObjectTypes() []string {
if o == nil || IsNil(o.ObjectTypes) {
@@ -207,7 +240,7 @@ func (o *PatchedTagRequest) SetObjectTypes(v []string) {
}
func (o PatchedTagRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -228,6 +261,9 @@ func (o PatchedTagRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
if !IsNil(o.ObjectTypes) {
toSerialize["object_types"] = o.ObjectTypes
}
@@ -257,6 +293,7 @@ func (o *PatchedTagRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
delete(additionalProperties, "description")
+ delete(additionalProperties, "weight")
delete(additionalProperties, "object_types")
o.AdditionalProperties = additionalProperties
}
@@ -299,5 +336,3 @@ func (v *NullablePatchedTagRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go
index 9749aff8f..f80b405f3 100644
--- a/model_patched_tenant_request.go
+++ b/model_patched_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{}
// PatchedTenantRequest Adds support for custom fields and tags.
type PatchedTenantRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Group NullableBriefTenantGroupRequest `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Group NullablePatchedTenantRequestGroup `json:"group,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest {
+func (o *PatchedTenantRequest) GetGroup() PatchedTenantRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefTenantGroupRequest
+ var ret PatchedTenantRequestGroup
return ret
}
return *o.Group.Get()
@@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) {
+func (o *PatchedTenantRequest) GetGroupOk() (*PatchedTenantRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -140,10 +140,11 @@ func (o *PatchedTenantRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field.
-func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedTenantRequestGroup and assigns it to the Group field.
+func (o *PatchedTenantRequest) SetGroup(v PatchedTenantRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedTenantRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -283,7 +284,7 @@ func (o *PatchedTenantRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedTenantRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -383,5 +384,3 @@ func (v *NullablePatchedTenantRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_tenant_request_group.go b/model_patched_tenant_request_group.go
new file mode 100644
index 000000000..29d2215ca
--- /dev/null
+++ b/model_patched_tenant_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedTenantRequestGroup - struct for PatchedTenantRequestGroup
+type PatchedTenantRequestGroup struct {
+ BriefTenantGroupRequest *BriefTenantGroupRequest
+ Int32 *int32
+}
+
+// BriefTenantGroupRequestAsPatchedTenantRequestGroup is a convenience function that returns BriefTenantGroupRequest wrapped in PatchedTenantRequestGroup
+func BriefTenantGroupRequestAsPatchedTenantRequestGroup(v *BriefTenantGroupRequest) PatchedTenantRequestGroup {
+ return PatchedTenantRequestGroup{
+ BriefTenantGroupRequest: v,
+ }
+}
+
+// int32AsPatchedTenantRequestGroup is a convenience function that returns int32 wrapped in PatchedTenantRequestGroup
+func Int32AsPatchedTenantRequestGroup(v *int32) PatchedTenantRequestGroup {
+ return PatchedTenantRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedTenantRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefTenantGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefTenantGroupRequest)
+ if err == nil {
+ jsonBriefTenantGroupRequest, _ := json.Marshal(dst.BriefTenantGroupRequest)
+ if string(jsonBriefTenantGroupRequest) == "{}" { // empty struct
+ dst.BriefTenantGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefTenantGroupRequest); err != nil {
+ dst.BriefTenantGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefTenantGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefTenantGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedTenantRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedTenantRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedTenantRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefTenantGroupRequest != nil {
+ return json.Marshal(&src.BriefTenantGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedTenantRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefTenantGroupRequest != nil {
+ return obj.BriefTenantGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedTenantRequestGroup struct {
+ value *PatchedTenantRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedTenantRequestGroup) Get() *PatchedTenantRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedTenantRequestGroup) Set(val *PatchedTenantRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedTenantRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedTenantRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedTenantRequestGroup(val *PatchedTenantRequestGroup) *NullablePatchedTenantRequestGroup {
+ return &NullablePatchedTenantRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedTenantRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedTenantRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_token_request.go b/model_patched_token_request.go
index febdb02db..d0cffefe6 100644
--- a/model_patched_token_request.go
+++ b/model_patched_token_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedTokenRequest{}
// PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedTokenRequest struct {
- User *BriefUserRequest `json:"user,omitempty"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed NullableTime `json:"last_used,omitempty"`
- Key *string `json:"key,omitempty"`
+ User *BookmarkRequestUser `json:"user,omitempty"`
+ Expires NullableTime `json:"expires,omitempty"`
+ LastUsed NullableTime `json:"last_used,omitempty"`
+ Key *string `json:"key,omitempty"`
// Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
+ WriteEnabled *bool `json:"write_enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest {
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedTokenRequest) GetUser() BriefUserRequest {
+func (o *PatchedTokenRequest) GetUser() BookmarkRequestUser {
if o == nil || IsNil(o.User) {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
return *o.User
@@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *PatchedTokenRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field.
-func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) {
+// SetUser gets a reference to the given BookmarkRequestUser and assigns it to the User field.
+func (o *PatchedTokenRequest) SetUser(v BookmarkRequestUser) {
o.User = &v
}
@@ -113,6 +113,7 @@ func (o *PatchedTokenRequest) HasExpires() bool {
func (o *PatchedTokenRequest) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
+
// SetExpiresNil sets the value for Expires to be an explicit nil
func (o *PatchedTokenRequest) SetExpiresNil() {
o.Expires.Set(nil)
@@ -155,6 +156,7 @@ func (o *PatchedTokenRequest) HasLastUsed() bool {
func (o *PatchedTokenRequest) SetLastUsed(v time.Time) {
o.LastUsed.Set(&v)
}
+
// SetLastUsedNil sets the value for LastUsed to be an explicit nil
func (o *PatchedTokenRequest) SetLastUsedNil() {
o.LastUsed.Set(nil)
@@ -262,7 +264,7 @@ func (o *PatchedTokenRequest) SetDescription(v string) {
}
func (o PatchedTokenRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -358,5 +360,3 @@ func (v *NullablePatchedTokenRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go
index 97fad83cc..b6ef09590 100644
--- a/model_patched_tunnel_group_request.go
+++ b/model_patched_tunnel_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedTunnelGroupRequest{}
// PatchedTunnelGroupRequest Adds support for custom fields and tags.
type PatchedTunnelGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -207,7 +207,7 @@ func (o *PatchedTunnelGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedTunnelGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,5 +299,3 @@ func (v *NullablePatchedTunnelGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_user_request.go b/model_patched_user_request.go
index 0e0ff4218..c03586757 100644
--- a/model_patched_user_request.go
+++ b/model_patched_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,19 +21,19 @@ var _ MappedNullable = &PatchedUserRequest{}
// PatchedUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedUserRequest struct {
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username *string `json:"username,omitempty" validate:"regexp=^[\\\\w.@+-]+$"`
- Password *string `json:"password,omitempty"`
+ Username *string `json:"username,omitempty" validate:"regexp=^[\\\\w.@+-]+$"`
+ Password *string `json:"password,omitempty"`
FirstName *string `json:"first_name,omitempty"`
- LastName *string `json:"last_name,omitempty"`
- Email *string `json:"email,omitempty"`
+ LastName *string `json:"last_name,omitempty"`
+ Email *string `json:"email,omitempty"`
// Designates whether the user can log into this admin site.
IsStaff *bool `json:"is_staff,omitempty"`
// Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
- IsActive *bool `json:"is_active,omitempty"`
- DateJoined *time.Time `json:"date_joined,omitempty"`
- LastLogin NullableTime `json:"last_login,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Permissions []int32 `json:"permissions,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ DateJoined *time.Time `json:"date_joined,omitempty"`
+ LastLogin NullableTime `json:"last_login,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Permissions []int32 `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -344,6 +344,7 @@ func (o *PatchedUserRequest) HasLastLogin() bool {
func (o *PatchedUserRequest) SetLastLogin(v time.Time) {
o.LastLogin.Set(&v)
}
+
// SetLastLoginNil sets the value for LastLogin to be an explicit nil
func (o *PatchedUserRequest) SetLastLoginNil() {
o.LastLogin.Set(nil)
@@ -419,7 +420,7 @@ func (o *PatchedUserRequest) SetPermissions(v []int32) {
}
func (o PatchedUserRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -535,5 +536,3 @@ func (v *NullablePatchedUserRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_virtual_circuit_type_request.go b/model_patched_virtual_circuit_type_request.go
index a152c4b96..eaa338fc6 100644
--- a/model_patched_virtual_circuit_type_request.go
+++ b/model_patched_virtual_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualCircuitTypeRequest{}
// PatchedVirtualCircuitTypeRequest Adds support for custom fields and tags.
type PatchedVirtualCircuitTypeRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -240,7 +240,7 @@ func (o *PatchedVirtualCircuitTypeRequest) SetCustomFields(v map[string]interfac
}
func (o PatchedVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedVirtualCircuitTypeRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go
index 4d0de06dd..988aacef9 100644
--- a/model_patched_virtual_disk_request.go
+++ b/model_patched_virtual_disk_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{}
// PatchedVirtualDiskRequest Adds support for custom fields and tags.
type PatchedVirtualDiskRequest struct {
- VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"`
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Size *int32 `json:"size,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualMachine *PatchedVirtualDiskRequestVirtualMachine `json:"virtual_machine,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Size *int32 `json:"size,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest {
}
// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise.
-func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest {
+func (o *PatchedVirtualDiskRequest) GetVirtualMachine() PatchedVirtualDiskRequestVirtualMachine {
if o == nil || IsNil(o.VirtualMachine) {
- var ret BriefVirtualMachineRequest
+ var ret PatchedVirtualDiskRequestVirtualMachine
return ret
}
return *o.VirtualMachine
@@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineReque
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*PatchedVirtualDiskRequestVirtualMachine, bool) {
if o == nil || IsNil(o.VirtualMachine) {
return nil, false
}
@@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
+// SetVirtualMachine gets a reference to the given PatchedVirtualDiskRequestVirtualMachine and assigns it to the VirtualMachine field.
+func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v PatchedVirtualDiskRequestVirtualMachine) {
o.VirtualMachine = &v
}
@@ -240,7 +240,7 @@ func (o *PatchedVirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedVirtualDiskRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedVirtualDiskRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_virtual_disk_request_virtual_machine.go b/model_patched_virtual_disk_request_virtual_machine.go
new file mode 100644
index 000000000..55c858932
--- /dev/null
+++ b/model_patched_virtual_disk_request_virtual_machine.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedVirtualDiskRequestVirtualMachine - struct for PatchedVirtualDiskRequestVirtualMachine
+type PatchedVirtualDiskRequestVirtualMachine struct {
+ BriefVirtualMachineRequest *BriefVirtualMachineRequest
+ Int32 *int32
+}
+
+// BriefVirtualMachineRequestAsPatchedVirtualDiskRequestVirtualMachine is a convenience function that returns BriefVirtualMachineRequest wrapped in PatchedVirtualDiskRequestVirtualMachine
+func BriefVirtualMachineRequestAsPatchedVirtualDiskRequestVirtualMachine(v *BriefVirtualMachineRequest) PatchedVirtualDiskRequestVirtualMachine {
+ return PatchedVirtualDiskRequestVirtualMachine{
+ BriefVirtualMachineRequest: v,
+ }
+}
+
+// int32AsPatchedVirtualDiskRequestVirtualMachine is a convenience function that returns int32 wrapped in PatchedVirtualDiskRequestVirtualMachine
+func Int32AsPatchedVirtualDiskRequestVirtualMachine(v *int32) PatchedVirtualDiskRequestVirtualMachine {
+ return PatchedVirtualDiskRequestVirtualMachine{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedVirtualDiskRequestVirtualMachine) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefVirtualMachineRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVirtualMachineRequest)
+ if err == nil {
+ jsonBriefVirtualMachineRequest, _ := json.Marshal(dst.BriefVirtualMachineRequest)
+ if string(jsonBriefVirtualMachineRequest) == "{}" { // empty struct
+ dst.BriefVirtualMachineRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVirtualMachineRequest); err != nil {
+ dst.BriefVirtualMachineRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVirtualMachineRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVirtualMachineRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedVirtualDiskRequestVirtualMachine)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedVirtualDiskRequestVirtualMachine)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedVirtualDiskRequestVirtualMachine) MarshalJSON() ([]byte, error) {
+ if src.BriefVirtualMachineRequest != nil {
+ return json.Marshal(&src.BriefVirtualMachineRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedVirtualDiskRequestVirtualMachine) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVirtualMachineRequest != nil {
+ return obj.BriefVirtualMachineRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedVirtualDiskRequestVirtualMachine struct {
+ value *PatchedVirtualDiskRequestVirtualMachine
+ isSet bool
+}
+
+func (v NullablePatchedVirtualDiskRequestVirtualMachine) Get() *PatchedVirtualDiskRequestVirtualMachine {
+ return v.value
+}
+
+func (v *NullablePatchedVirtualDiskRequestVirtualMachine) Set(val *PatchedVirtualDiskRequestVirtualMachine) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedVirtualDiskRequestVirtualMachine) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedVirtualDiskRequestVirtualMachine) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedVirtualDiskRequestVirtualMachine(val *PatchedVirtualDiskRequestVirtualMachine) *NullablePatchedVirtualDiskRequestVirtualMachine {
+ return &NullablePatchedVirtualDiskRequestVirtualMachine{value: val, isSet: true}
+}
+
+func (v NullablePatchedVirtualDiskRequestVirtualMachine) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedVirtualDiskRequestVirtualMachine) 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 244970342..3b058353c 100644
--- a/model_patched_vlan_group_request.go
+++ b/model_patched_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,15 @@ var _ MappedNullable = &PatchedVLANGroupRequest{}
// PatchedVLANGroupRequest Adds support for custom fields and tags.
type PatchedVLANGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ VidRanges [][][]int32 `json:"vid_ranges,omitempty"`
+ Tenant NullableASNRangeRequestTenant `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{}
}
@@ -144,6 +146,7 @@ func (o *PatchedVLANGroupRequest) HasScopeType() bool {
func (o *PatchedVLANGroupRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *PatchedVLANGroupRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -186,6 +189,7 @@ func (o *PatchedVLANGroupRequest) HasScopeId() bool {
func (o *PatchedVLANGroupRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *PatchedVLANGroupRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -196,6 +200,81 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() {
o.ScopeId.Unset()
}
+// GetVidRanges returns the VidRanges field value if set, zero value otherwise.
+func (o *PatchedVLANGroupRequest) GetVidRanges() [][][]int32 {
+ if o == nil || IsNil(o.VidRanges) {
+ var ret [][][]int32
+ return ret
+ }
+ return o.VidRanges
+}
+
+// GetVidRangesOk returns a tuple with the VidRanges field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedVLANGroupRequest) GetVidRangesOk() ([][][]int32, bool) {
+ if o == nil || IsNil(o.VidRanges) {
+ return nil, false
+ }
+ return o.VidRanges, true
+}
+
+// HasVidRanges returns a boolean if a field has been set.
+func (o *PatchedVLANGroupRequest) HasVidRanges() bool {
+ if o != nil && !IsNil(o.VidRanges) {
+ return true
+ }
+
+ return false
+}
+
+// SetVidRanges gets a reference to the given [][][]int32 and assigns it to the VidRanges field.
+func (o *PatchedVLANGroupRequest) SetVidRanges(v [][][]int32) {
+ o.VidRanges = v
+}
+
+// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedVLANGroupRequest) GetTenant() ASNRangeRequestTenant {
+ if o == nil || IsNil(o.Tenant.Get()) {
+ var ret ASNRangeRequestTenant
+ 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 *PatchedVLANGroupRequest) GetTenantOk() (*ASNRangeRequestTenant, 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 *PatchedVLANGroupRequest) HasTenant() bool {
+ if o != nil && o.Tenant.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedVLANGroupRequest) SetTenant(v ASNRangeRequestTenant) {
+ o.Tenant.Set(&v)
+}
+
+// SetTenantNil sets the value for Tenant to be an explicit nil
+func (o *PatchedVLANGroupRequest) SetTenantNil() {
+ o.Tenant.Set(nil)
+}
+
+// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+func (o *PatchedVLANGroupRequest) UnsetTenant() {
+ o.Tenant.Unset()
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PatchedVLANGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -293,7 +372,7 @@ func (o *PatchedVLANGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedVLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -314,6 +393,12 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) {
if o.ScopeId.IsSet() {
toSerialize["scope_id"] = o.ScopeId.Get()
}
+ if !IsNil(o.VidRanges) {
+ toSerialize["vid_ranges"] = o.VidRanges
+ }
+ if o.Tenant.IsSet() {
+ toSerialize["tenant"] = o.Tenant.Get()
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -349,6 +434,8 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "slug")
delete(additionalProperties, "scope_type")
delete(additionalProperties, "scope_id")
+ delete(additionalProperties, "vid_ranges")
+ delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -393,5 +480,3 @@ func (v *NullablePatchedVLANGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_vlan_translation_policy_request.go b/model_patched_vlan_translation_policy_request.go
index 1bcc2a797..2131915c3 100644
--- a/model_patched_vlan_translation_policy_request.go
+++ b/model_patched_vlan_translation_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedVLANTranslationPolicyRequest{}
// PatchedVLANTranslationPolicyRequest Adds support for custom fields and tags.
type PatchedVLANTranslationPolicyRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PatchedVLANTranslationPolicyRequest) SetDescription(v string) {
}
func (o PatchedVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePatchedVLANTranslationPolicyRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_vlan_translation_rule_request.go b/model_patched_vlan_translation_rule_request.go
index db7544af0..a80a0794e 100644
--- a/model_patched_vlan_translation_rule_request.go
+++ b/model_patched_vlan_translation_rule_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,8 +23,8 @@ type PatchedVLANTranslationRuleRequest struct {
// Numeric VLAN ID (1-4094)
LocalVid *int32 `json:"local_vid,omitempty"`
// Numeric VLAN ID (1-4094)
- RemoteVid *int32 `json:"remote_vid,omitempty"`
- Description *string `json:"description,omitempty"`
+ RemoteVid *int32 `json:"remote_vid,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -176,7 +176,7 @@ func (o *PatchedVLANTranslationRuleRequest) SetDescription(v string) {
}
func (o PatchedVLANTranslationRuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -264,5 +264,3 @@ func (v *NullablePatchedVLANTranslationRuleRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go
index 1b3495412..0b8ee5448 100644
--- a/model_patched_vrf_request.go
+++ b/model_patched_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,16 +21,16 @@ var _ MappedNullable = &PatchedVRFRequest{}
type PatchedVRFRequest struct {
Name *string `json:"name,omitempty"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Prevent duplicate prefixes/IP addresses within this VRF
- EnforceUnique *bool `json:"enforce_unique,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ EnforceUnique *bool `json:"enforce_unique,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ImportTargets []int32 `json:"import_targets,omitempty"`
+ ExportTargets []int32 `json:"export_targets,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -117,6 +117,7 @@ func (o *PatchedVRFRequest) HasRd() bool {
func (o *PatchedVRFRequest) SetRd(v string) {
o.Rd.Set(&v)
}
+
// SetRdNil sets the value for Rd to be an explicit nil
func (o *PatchedVRFRequest) SetRdNil() {
o.Rd.Set(nil)
@@ -128,9 +129,9 @@ func (o *PatchedVRFRequest) UnsetRd() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedVRFRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -139,7 +140,7 @@ func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedVRFRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -155,10 +156,11 @@ func (o *PatchedVRFRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedVRFRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedVRFRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -394,7 +396,7 @@ func (o *PatchedVRFRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedVRFRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -506,5 +508,3 @@ func (v *NullablePatchedVRFRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go
index cc773955e..b91f913dc 100644
--- a/model_patched_webhook_request.go
+++ b/model_patched_webhook_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWebhookRequest{}
// PatchedWebhookRequest Adds support for custom fields and tags.
type PatchedWebhookRequest struct {
- Name *string `json:"name,omitempty"`
+ Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl *string `json:"payload_url,omitempty"`
+ PayloadUrl *string `json:"payload_url,omitempty"`
HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
@@ -35,9 +35,9 @@ type PatchedWebhookRequest struct {
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
- CaFilePath NullableString `json:"ca_file_path,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ CaFilePath NullableString `json:"ca_file_path,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -380,6 +380,7 @@ func (o *PatchedWebhookRequest) HasCaFilePath() bool {
func (o *PatchedWebhookRequest) SetCaFilePath(v string) {
o.CaFilePath.Set(&v)
}
+
// SetCaFilePathNil sets the value for CaFilePath to be an explicit nil
func (o *PatchedWebhookRequest) SetCaFilePathNil() {
o.CaFilePath.Set(nil)
@@ -455,7 +456,7 @@ func (o *PatchedWebhookRequest) SetTags(v []NestedTagRequest) {
}
func (o PatchedWebhookRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -575,5 +576,3 @@ func (v *NullablePatchedWebhookRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go
index 29c2d32bc..9f774cd86 100644
--- a/model_patched_webhook_request_http_method.go
+++ b/model_patched_webhook_request_http_method.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type PatchedWebhookRequestHttpMethod string
// List of PatchedWebhookRequest_http_method
const (
- PATCHEDWEBHOOKREQUESTHTTPMETHOD_GET PatchedWebhookRequestHttpMethod = "GET"
- PATCHEDWEBHOOKREQUESTHTTPMETHOD_POST PatchedWebhookRequestHttpMethod = "POST"
- PATCHEDWEBHOOKREQUESTHTTPMETHOD_PUT PatchedWebhookRequestHttpMethod = "PUT"
- PATCHEDWEBHOOKREQUESTHTTPMETHOD_PATCH PatchedWebhookRequestHttpMethod = "PATCH"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_GET PatchedWebhookRequestHttpMethod = "GET"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_POST PatchedWebhookRequestHttpMethod = "POST"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_PUT PatchedWebhookRequestHttpMethod = "PUT"
+ PATCHEDWEBHOOKREQUESTHTTPMETHOD_PATCH PatchedWebhookRequestHttpMethod = "PATCH"
PATCHEDWEBHOOKREQUESTHTTPMETHOD_DELETE PatchedWebhookRequestHttpMethod = "DELETE"
)
@@ -114,4 +114,3 @@ func (v *NullablePatchedWebhookRequestHttpMethod) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go
index 61be8c01e..587c8aa0a 100644
--- a/model_patched_writable_aggregate_request.go
+++ b/model_patched_writable_aggregate_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{}
// PatchedWritableAggregateRequest Adds support for custom fields and tags.
type PatchedWritableAggregateRequest struct {
- Prefix *string `json:"prefix,omitempty"`
- Rir *BriefRIRRequest `json:"rir,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- DateAdded NullableString `json:"date_added,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Prefix *string `json:"prefix,omitempty"`
+ Rir *ASNRangeRequestRir `json:"rir,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ DateAdded NullableString `json:"date_added,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) {
}
// GetRir returns the Rir field value if set, zero value otherwise.
-func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest {
+func (o *PatchedWritableAggregateRequest) GetRir() ASNRangeRequestRir {
if o == nil || IsNil(o.Rir) {
- var ret BriefRIRRequest
+ var ret ASNRangeRequestRir
return ret
}
return *o.Rir
@@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest {
// GetRirOk returns a tuple with the Rir field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) {
+func (o *PatchedWritableAggregateRequest) GetRirOk() (*ASNRangeRequestRir, bool) {
if o == nil || IsNil(o.Rir) {
return nil, false
}
@@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field.
-func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) {
+// SetRir gets a reference to the given ASNRangeRequestRir and assigns it to the Rir field.
+func (o *PatchedWritableAggregateRequest) SetRir(v ASNRangeRequestRir) {
o.Rir = &v
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableAggregateRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableAggregateRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -141,10 +141,11 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableAggregateRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableAggregateRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -187,6 +188,7 @@ func (o *PatchedWritableAggregateRequest) HasDateAdded() bool {
func (o *PatchedWritableAggregateRequest) SetDateAdded(v string) {
o.DateAdded.Set(&v)
}
+
// SetDateAddedNil sets the value for DateAdded to be an explicit nil
func (o *PatchedWritableAggregateRequest) SetDateAddedNil() {
o.DateAdded.Set(nil)
@@ -326,7 +328,7 @@ func (o *PatchedWritableAggregateRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritableAggregateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -430,5 +432,3 @@ func (v *NullablePatchedWritableAggregateRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go
index 04a01b462..ce18fd663 100644
--- a/model_patched_writable_cable_request.go
+++ b/model_patched_writable_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{}
// PatchedWritableCableRequest Adds support for custom fields and tags.
type PatchedWritableCableRequest struct {
- Type NullableCableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Type NullableCableType `json:"type,omitempty"`
+ ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
+ BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Length NullableFloat64 `json:"length,omitempty"`
+ LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,6 +86,7 @@ func (o *PatchedWritableCableRequest) HasType() bool {
func (o *PatchedWritableCableRequest) SetType(v CableType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritableCableRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -193,9 +194,9 @@ func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableCableRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -204,7 +205,7 @@ func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableCableRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +221,11 @@ func (o *PatchedWritableCableRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableCableRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableCableRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -330,6 +332,7 @@ func (o *PatchedWritableCableRequest) HasLength() bool {
func (o *PatchedWritableCableRequest) SetLength(v float64) {
o.Length.Set(&v)
}
+
// SetLengthNil sets the value for Length to be an explicit nil
func (o *PatchedWritableCableRequest) SetLengthNil() {
o.Length.Set(nil)
@@ -372,6 +375,7 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool {
func (o *PatchedWritableCableRequest) SetLengthUnit(v CableRequestLengthUnit) {
o.LengthUnit.Set(&v)
}
+
// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
func (o *PatchedWritableCableRequest) SetLengthUnitNil() {
o.LengthUnit.Set(nil)
@@ -511,7 +515,7 @@ func (o *PatchedWritableCableRequest) SetCustomFields(v map[string]interface{})
}
func (o PatchedWritableCableRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -635,5 +639,3 @@ func (v *NullablePatchedWritableCableRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go
index d44403bb3..8ea7bea93 100644
--- a/model_patched_writable_circuit_group_assignment_request.go
+++ b/model_patched_writable_circuit_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableCircuitGroupAssignmentRequest{}
// PatchedWritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer.
type PatchedWritableCircuitGroupAssignmentRequest struct {
- Group *BriefCircuitGroupRequest `json:"group,omitempty"`
- MemberType *string `json:"member_type,omitempty"`
- MemberId *int64 `json:"member_id,omitempty"`
- Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Group *BriefCircuitGroupAssignmentSerializerRequestGroup `json:"group,omitempty"`
+ MemberType *string `json:"member_type,omitempty"`
+ MemberId *int64 `json:"member_id,omitempty"`
+ Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,9 +47,9 @@ func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWrita
}
// GetGroup returns the Group field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest {
+func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupAssignmentSerializerRequestGroup {
if o == nil || IsNil(o.Group) {
- var ret BriefCircuitGroupRequest
+ var ret BriefCircuitGroupAssignmentSerializerRequestGroup
return ret
}
return *o.Group
@@ -57,7 +57,7 @@ func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGr
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) {
+func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupAssignmentSerializerRequestGroup, bool) {
if o == nil || IsNil(o.Group) {
return nil, false
}
@@ -73,8 +73,8 @@ func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given BriefCircuitGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) {
+// SetGroup gets a reference to the given BriefCircuitGroupAssignmentSerializerRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupAssignmentSerializerRequestGroup) {
o.Group = &v
}
@@ -174,6 +174,7 @@ func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool {
func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) {
o.Priority.Set(&v)
}
+
// SetPriorityNil sets the value for Priority to be an explicit nil
func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriorityNil() {
o.Priority.Set(nil)
@@ -217,7 +218,7 @@ func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequ
}
func (o PatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -309,5 +310,3 @@ func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_circuit_group_assignment_request_priority.go b/model_patched_writable_circuit_group_assignment_request_priority.go
index 32119c42a..cc862a17b 100644
--- a/model_patched_writable_circuit_group_assignment_request_priority.go
+++ b/model_patched_writable_circuit_group_assignment_request_priority.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type PatchedWritableCircuitGroupAssignmentRequestPriority string
// List of PatchedWritableCircuitGroupAssignmentRequest_priority
const (
- PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_PRIMARY PatchedWritableCircuitGroupAssignmentRequestPriority = "primary"
+ PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_PRIMARY PatchedWritableCircuitGroupAssignmentRequestPriority = "primary"
PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_SECONDARY PatchedWritableCircuitGroupAssignmentRequestPriority = "secondary"
- PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_TERTIARY PatchedWritableCircuitGroupAssignmentRequestPriority = "tertiary"
- PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_INACTIVE PatchedWritableCircuitGroupAssignmentRequestPriority = "inactive"
- PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_EMPTY PatchedWritableCircuitGroupAssignmentRequestPriority = ""
+ PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_TERTIARY PatchedWritableCircuitGroupAssignmentRequestPriority = "tertiary"
+ PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_INACTIVE PatchedWritableCircuitGroupAssignmentRequestPriority = "inactive"
+ PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_EMPTY PatchedWritableCircuitGroupAssignmentRequestPriority = ""
)
// All allowed values of PatchedWritableCircuitGroupAssignmentRequestPriority enum
@@ -114,4 +114,3 @@ func (v *NullablePatchedWritableCircuitGroupAssignmentRequestPriority) Unmarshal
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go
index 1fd8d049e..bfd2d020b 100644
--- a/model_patched_writable_circuit_request.go
+++ b/model_patched_writable_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,23 +20,23 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{}
// PatchedWritableCircuitRequest Adds support for custom fields and tags.
type PatchedWritableCircuitRequest struct {
// Unique circuit ID
- Cid *string `json:"cid,omitempty"`
- Provider *BriefProviderRequest `json:"provider,omitempty"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type *BriefCircuitTypeRequest `json:"type,omitempty"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ Cid *string `json:"cid,omitempty"`
+ Provider *BriefCircuitRequestProvider `json:"provider,omitempty"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type *CircuitRequestType `json:"type,omitempty"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ InstallDate NullableString `json:"install_date,omitempty"`
+ TerminationDate NullableString `json:"termination_date,omitempty"`
// Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
+ CommitRate NullableInt32 `json:"commit_rate,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -92,9 +92,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) {
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest {
+func (o *PatchedWritableCircuitRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil || IsNil(o.Provider) {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
return *o.Provider
@@ -102,7 +102,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -118,15 +118,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field.
-func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) {
+// SetProvider gets a reference to the given BriefCircuitRequestProvider and assigns it to the Provider field.
+func (o *PatchedWritableCircuitRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = &v
}
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *PatchedWritableCircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -135,7 +135,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccoun
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -151,10 +151,11 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *PatchedWritableCircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -166,9 +167,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest {
+func (o *PatchedWritableCircuitRequest) GetType() CircuitRequestType {
if o == nil || IsNil(o.Type) {
- var ret BriefCircuitTypeRequest
+ var ret CircuitRequestType
return ret
}
return *o.Type
@@ -176,7 +177,7 @@ func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) {
+func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -192,8 +193,8 @@ func (o *PatchedWritableCircuitRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field.
-func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) {
+// SetType gets a reference to the given CircuitRequestType and assigns it to the Type field.
+func (o *PatchedWritableCircuitRequest) SetType(v CircuitRequestType) {
o.Type = &v
}
@@ -230,9 +231,9 @@ func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableCircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -241,7 +242,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableCircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -257,10 +258,11 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableCircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -303,6 +305,7 @@ func (o *PatchedWritableCircuitRequest) HasInstallDate() bool {
func (o *PatchedWritableCircuitRequest) SetInstallDate(v string) {
o.InstallDate.Set(&v)
}
+
// SetInstallDateNil sets the value for InstallDate to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetInstallDateNil() {
o.InstallDate.Set(nil)
@@ -345,6 +348,7 @@ func (o *PatchedWritableCircuitRequest) HasTerminationDate() bool {
func (o *PatchedWritableCircuitRequest) SetTerminationDate(v string) {
o.TerminationDate.Set(&v)
}
+
// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetTerminationDateNil() {
o.TerminationDate.Set(nil)
@@ -387,6 +391,7 @@ func (o *PatchedWritableCircuitRequest) HasCommitRate() bool {
func (o *PatchedWritableCircuitRequest) SetCommitRate(v int32) {
o.CommitRate.Set(&v)
}
+
// SetCommitRateNil sets the value for CommitRate to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetCommitRateNil() {
o.CommitRate.Set(nil)
@@ -461,6 +466,7 @@ func (o *PatchedWritableCircuitRequest) HasDistance() bool {
func (o *PatchedWritableCircuitRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -503,6 +509,7 @@ func (o *PatchedWritableCircuitRequest) HasDistanceUnit() bool {
func (o *PatchedWritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *PatchedWritableCircuitRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -642,7 +649,7 @@ func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssi
}
func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -778,5 +785,3 @@ func (v *NullablePatchedWritableCircuitRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go
index 163d390de..702e86365 100644
--- a/model_patched_writable_cluster_request.go
+++ b/model_patched_writable_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableClusterRequest{}
// PatchedWritableClusterRequest Adds support for custom fields and tags.
type PatchedWritableClusterRequest struct {
- Name *string `json:"name,omitempty"`
- Type *BriefClusterTypeRequest `json:"type,omitempty"`
- Group NullableBriefClusterGroupRequest `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Type *ClusterRequestType `json:"type,omitempty"`
+ Group NullableClusterRequestGroup `json:"group,omitempty"`
+ Status *ClusterStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,9 +85,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest {
+func (o *PatchedWritableClusterRequest) GetType() ClusterRequestType {
if o == nil || IsNil(o.Type) {
- var ret BriefClusterTypeRequest
+ var ret ClusterRequestType
return ret
}
return *o.Type
@@ -95,7 +95,7 @@ func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest {
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) {
+func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -111,15 +111,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field.
-func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) {
+// SetType gets a reference to the given ClusterRequestType and assigns it to the Type field.
+func (o *PatchedWritableClusterRequest) SetType(v ClusterRequestType) {
o.Type = &v
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest {
+func (o *PatchedWritableClusterRequest) GetGroup() ClusterRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefClusterGroupRequest
+ var ret ClusterRequestGroup
return ret
}
return *o.Group.Get()
@@ -128,7 +128,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) {
+func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -144,10 +144,11 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) {
+// SetGroup gets a reference to the given NullableClusterRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableClusterRequest) SetGroup(v ClusterRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedWritableClusterRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -191,9 +192,9 @@ func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableClusterRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -202,7 +203,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableClusterRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -218,10 +219,11 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableClusterRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableClusterRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -264,6 +266,7 @@ func (o *PatchedWritableClusterRequest) HasScopeType() bool {
func (o *PatchedWritableClusterRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *PatchedWritableClusterRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -306,6 +309,7 @@ func (o *PatchedWritableClusterRequest) HasScopeId() bool {
func (o *PatchedWritableClusterRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *PatchedWritableClusterRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -445,7 +449,7 @@ func (o *PatchedWritableClusterRequest) SetCustomFields(v map[string]interface{}
}
func (o PatchedWritableClusterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -561,5 +565,3 @@ func (v *NullablePatchedWritableClusterRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go
index 279867c0e..58027a310 100644
--- a/model_patched_writable_console_port_request.go
+++ b/model_patched_writable_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{}
// PatchedWritableConsolePortRequest Adds support for custom fields and tags.
type PatchedWritableConsolePortRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
- Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableConsolePortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritableConsolePortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -113,10 +113,11 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritableConsolePortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritableConsolePortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -223,6 +224,7 @@ func (o *PatchedWritableConsolePortRequest) HasType() bool {
func (o *PatchedWritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritableConsolePortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -265,6 +267,7 @@ func (o *PatchedWritableConsolePortRequest) HasSpeed() bool {
func (o *PatchedWritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *PatchedWritableConsolePortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -404,7 +407,7 @@ func (o *PatchedWritableConsolePortRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritableConsolePortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -516,5 +519,3 @@ func (v *NullablePatchedWritableConsolePortRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go
index ba458d18f..c4eb1dc4c 100644
--- a/model_patched_writable_console_port_request_speed.go
+++ b/model_patched_writable_console_port_request_speed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ type PatchedWritableConsolePortRequestSpeed int32
// List of PatchedWritableConsolePortRequest_speed
const (
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__1200 PatchedWritableConsolePortRequestSpeed = 1200
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__2400 PatchedWritableConsolePortRequestSpeed = 2400
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__4800 PatchedWritableConsolePortRequestSpeed = 4800
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__9600 PatchedWritableConsolePortRequestSpeed = 9600
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__19200 PatchedWritableConsolePortRequestSpeed = 19200
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__38400 PatchedWritableConsolePortRequestSpeed = 38400
- PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__57600 PatchedWritableConsolePortRequestSpeed = 57600
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__1200 PatchedWritableConsolePortRequestSpeed = 1200
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__2400 PatchedWritableConsolePortRequestSpeed = 2400
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__4800 PatchedWritableConsolePortRequestSpeed = 4800
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__9600 PatchedWritableConsolePortRequestSpeed = 9600
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__19200 PatchedWritableConsolePortRequestSpeed = 19200
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__38400 PatchedWritableConsolePortRequestSpeed = 38400
+ PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__57600 PatchedWritableConsolePortRequestSpeed = 57600
PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__115200 PatchedWritableConsolePortRequestSpeed = 115200
)
@@ -120,4 +120,3 @@ func (v *NullablePatchedWritableConsolePortRequestSpeed) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go
index 225dd1e09..87eb1723c 100644
--- a/model_patched_writable_console_port_request_type.go
+++ b/model_patched_writable_console_port_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ type PatchedWritableConsolePortRequestType string
// List of PatchedWritableConsolePortRequest_type
const (
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DE_9 PatchedWritableConsolePortRequestType = "de-9"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DB_25 PatchedWritableConsolePortRequestType = "db-25"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_11 PatchedWritableConsolePortRequestType = "rj-11"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_12 PatchedWritableConsolePortRequestType = "rj-12"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_45 PatchedWritableConsolePortRequestType = "rj-45"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortRequestType = "mini-din-8"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_A PatchedWritableConsolePortRequestType = "usb-a"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_B PatchedWritableConsolePortRequestType = "usb-b"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_C PatchedWritableConsolePortRequestType = "usb-c"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortRequestType = "usb-mini-a"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortRequestType = "usb-mini-b"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortRequestType = "usb-micro-a"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortRequestType = "usb-micro-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DE_9 PatchedWritableConsolePortRequestType = "de-9"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DB_25 PatchedWritableConsolePortRequestType = "db-25"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_11 PatchedWritableConsolePortRequestType = "rj-11"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_12 PatchedWritableConsolePortRequestType = "rj-12"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_45 PatchedWritableConsolePortRequestType = "rj-45"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortRequestType = "mini-din-8"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_A PatchedWritableConsolePortRequestType = "usb-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_B PatchedWritableConsolePortRequestType = "usb-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_C PatchedWritableConsolePortRequestType = "usb-c"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortRequestType = "usb-mini-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortRequestType = "usb-mini-b"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortRequestType = "usb-micro-a"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortRequestType = "usb-micro-b"
PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_AB PatchedWritableConsolePortRequestType = "usb-micro-ab"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_OTHER PatchedWritableConsolePortRequestType = "other"
- PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_EMPTY PatchedWritableConsolePortRequestType = ""
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_OTHER PatchedWritableConsolePortRequestType = "other"
+ PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_EMPTY PatchedWritableConsolePortRequestType = ""
)
// All allowed values of PatchedWritableConsolePortRequestType enum
@@ -136,4 +136,3 @@ func (v *NullablePatchedWritableConsolePortRequestType) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go
index 9191f755d..ceef2d14e 100644
--- a/model_patched_writable_console_port_template_request.go
+++ b/model_patched_writable_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{}
// PatchedWritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableConsolePortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceT
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -77,10 +77,11 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -92,9 +93,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -103,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleT
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -119,10 +120,11 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritableConsolePortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -229,6 +231,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasType() bool {
func (o *PatchedWritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritableConsolePortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -272,7 +275,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) SetDescription(v string) {
}
func (o PatchedWritableConsolePortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -368,5 +371,3 @@ func (v *NullablePatchedWritableConsolePortTemplateRequest) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_console_port_template_request_type.go b/model_patched_writable_console_port_template_request_type.go
index 909fa45d1..5ad052ffb 100644
--- a/model_patched_writable_console_port_template_request_type.go
+++ b/model_patched_writable_console_port_template_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ type PatchedWritableConsolePortTemplateRequestType string
// List of PatchedWritableConsolePortTemplateRequest_type
const (
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DE_9 PatchedWritableConsolePortTemplateRequestType = "de-9"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DB_25 PatchedWritableConsolePortTemplateRequestType = "db-25"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_11 PatchedWritableConsolePortTemplateRequestType = "rj-11"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_12 PatchedWritableConsolePortTemplateRequestType = "rj-12"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_45 PatchedWritableConsolePortTemplateRequestType = "rj-45"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortTemplateRequestType = "mini-din-8"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritableConsolePortTemplateRequestType = "usb-a"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritableConsolePortTemplateRequestType = "usb-b"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritableConsolePortTemplateRequestType = "usb-c"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortTemplateRequestType = "usb-mini-a"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortTemplateRequestType = "usb-mini-b"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortTemplateRequestType = "usb-micro-a"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortTemplateRequestType = "usb-micro-b"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DE_9 PatchedWritableConsolePortTemplateRequestType = "de-9"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DB_25 PatchedWritableConsolePortTemplateRequestType = "db-25"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_11 PatchedWritableConsolePortTemplateRequestType = "rj-11"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_12 PatchedWritableConsolePortTemplateRequestType = "rj-12"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_45 PatchedWritableConsolePortTemplateRequestType = "rj-45"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortTemplateRequestType = "mini-din-8"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritableConsolePortTemplateRequestType = "usb-a"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritableConsolePortTemplateRequestType = "usb-b"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritableConsolePortTemplateRequestType = "usb-c"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortTemplateRequestType = "usb-mini-a"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortTemplateRequestType = "usb-mini-b"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortTemplateRequestType = "usb-micro-a"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortTemplateRequestType = "usb-micro-b"
PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritableConsolePortTemplateRequestType = "usb-micro-ab"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritableConsolePortTemplateRequestType = "other"
- PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritableConsolePortTemplateRequestType = ""
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritableConsolePortTemplateRequestType = "other"
+ PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritableConsolePortTemplateRequestType = ""
)
// All allowed values of PatchedWritableConsolePortTemplateRequestType enum
@@ -136,4 +136,3 @@ func (v *NullablePatchedWritableConsolePortTemplateRequestType) UnmarshalJSON(sr
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go
index 0943dcfd7..c02693196 100644
--- a/model_patched_writable_console_server_port_request.go
+++ b/model_patched_writable_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{}
// PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags.
type PatchedWritableConsoleServerPortRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
- Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritableConsoleServerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -113,10 +113,11 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritableConsoleServerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -223,6 +224,7 @@ func (o *PatchedWritableConsoleServerPortRequest) HasType() bool {
func (o *PatchedWritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritableConsoleServerPortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -265,6 +267,7 @@ func (o *PatchedWritableConsoleServerPortRequest) HasSpeed() bool {
func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *PatchedWritableConsoleServerPortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -404,7 +407,7 @@ func (o *PatchedWritableConsoleServerPortRequest) SetCustomFields(v map[string]i
}
func (o PatchedWritableConsoleServerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -516,5 +519,3 @@ func (v *NullablePatchedWritableConsoleServerPortRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go
index 2c1e61b40..8b136353f 100644
--- a/model_patched_writable_console_server_port_template_request.go
+++ b/model_patched_writable_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{}
// PatchedWritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableConsoleServerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefD
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -77,10 +77,11 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -92,9 +93,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -103,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefM
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -119,10 +120,11 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -229,6 +231,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasType() bool {
func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritableConsoleServerPortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -272,7 +275,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDescription(v strin
}
func (o PatchedWritableConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -368,5 +371,3 @@ func (v *NullablePatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON(
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go
index eeaff7d7f..05caeaac4 100644
--- a/model_patched_writable_contact_assignment_request.go
+++ b/model_patched_writable_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{}
// PatchedWritableContactAssignmentRequest Adds support for custom fields and tags.
type PatchedWritableContactAssignmentRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- Contact *BriefContactRequest `json:"contact,omitempty"`
- Role NullableBriefContactRoleRequest `json:"role,omitempty"`
- Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
+ ObjectId *int64 `json:"object_id,omitempty"`
+ Contact *ContactAssignmentRequestContact `json:"contact,omitempty"`
+ Role NullableContactAssignmentRequestRole `json:"role,omitempty"`
+ Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) {
}
// GetContact returns the Contact field value if set, zero value otherwise.
-func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest {
+func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactAssignmentRequestContact {
if o == nil || IsNil(o.Contact) {
- var ret BriefContactRequest
+ var ret ContactAssignmentRequestContact
return ret
}
return *o.Contact
@@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactReque
// GetContactOk returns a tuple with the Contact field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) {
+func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactAssignmentRequestContact, bool) {
if o == nil || IsNil(o.Contact) {
return nil, false
}
@@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool {
return false
}
-// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field.
-func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) {
+// SetContact gets a reference to the given ContactAssignmentRequestContact and assigns it to the Contact field.
+func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactAssignmentRequestContact) {
o.Contact = &v
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest {
+func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactAssignmentRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefContactRoleRequest
+ var ret ContactAssignmentRequestRole
return ret
}
return *o.Role.Get()
@@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequ
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) {
+func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactAssignmentRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -172,10 +172,11 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) {
+// SetRole gets a reference to the given NullableContactAssignmentRequestRole and assigns it to the Role field.
+func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactAssignmentRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableContactAssignmentRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -218,6 +219,7 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool {
func (o *PatchedWritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) {
o.Priority.Set(&v)
}
+
// SetPriorityNil sets the value for Priority to be an explicit nil
func (o *PatchedWritableContactAssignmentRequest) SetPriorityNil() {
o.Priority.Set(nil)
@@ -293,7 +295,7 @@ func (o *PatchedWritableContactAssignmentRequest) SetCustomFields(v map[string]i
}
func (o PatchedWritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -393,5 +395,3 @@ func (v *NullablePatchedWritableContactAssignmentRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go
index 2515945ec..701376d09 100644
--- a/model_patched_writable_contact_group_request.go
+++ b/model_patched_writable_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ var _ MappedNullable = &PatchedWritableContactGroupRequest{}
// PatchedWritableContactGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableContactGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +144,7 @@ func (o *PatchedWritableContactGroupRequest) HasParent() bool {
func (o *PatchedWritableContactGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableContactGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -249,8 +251,40 @@ func (o *PatchedWritableContactGroupRequest) SetCustomFields(v map[string]interf
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableContactGroupRequest) 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 *PatchedWritableContactGroupRequest) 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 *PatchedWritableContactGroupRequest) 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 *PatchedWritableContactGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableContactGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -277,6 +311,9 @@ func (o PatchedWritableContactGroupRequest) ToMap() (map[string]interface{}, err
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -305,6 +342,7 @@ func (o *PatchedWritableContactGroupRequest) UnmarshalJSON(data []byte) (err err
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -346,5 +384,3 @@ func (v *NullablePatchedWritableContactGroupRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go
index a2ca591fc..7cf44fe7f 100644
--- a/model_patched_writable_custom_field_choice_set_request.go
+++ b/model_patched_writable_custom_field_choice_set_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableCustomFieldChoiceSetRequest{}
// PatchedWritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableCustomFieldChoiceSetRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
- ExtraChoices [][]interface{} `json:"extra_choices,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
+ ExtraChoices [][]interface{} `json:"extra_choices,omitempty"`
// Choices are automatically ordered alphabetically
- OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
+ OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +143,7 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) HasBaseChoices() bool {
func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) {
o.BaseChoices.Set(&v)
}
+
// SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil
func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoicesNil() {
o.BaseChoices.Set(nil)
@@ -218,7 +219,7 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bo
}
func (o PatchedWritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,5 +311,3 @@ func (v *NullablePatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src [
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go
index 1a1e619a8..eeef77d5e 100644
--- a/model_patched_writable_custom_field_choice_set_request_base_choices.go
+++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type PatchedWritableCustomFieldChoiceSetRequestBaseChoices string
// List of PatchedWritableCustomFieldChoiceSetRequest_base_choices
const (
- PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_IATA PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "IATA"
- PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_ISO_3166 PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "ISO_3166"
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_IATA PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "IATA"
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_ISO_3166 PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "ISO_3166"
PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_UN_LOCODE PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "UN_LOCODE"
- PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_EMPTY PatchedWritableCustomFieldChoiceSetRequestBaseChoices = ""
+ PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_EMPTY PatchedWritableCustomFieldChoiceSetRequestBaseChoices = ""
)
// All allowed values of PatchedWritableCustomFieldChoiceSetRequestBaseChoices enum
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) Unmarsha
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go
index ccca28cfb..6e0ca552b 100644
--- a/model_patched_writable_custom_field_request.go
+++ b/model_patched_writable_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedWritableCustomFieldRequest{}
// PatchedWritableCustomFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableCustomFieldRequest struct {
- ObjectTypes []string `json:"object_types,omitempty"`
- Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
- RelatedObjectType NullableString `json:"related_object_type,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
+ Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
+ RelatedObjectType NullableString `json:"related_object_type,omitempty"`
// Internal field name
Name *string `json:"name,omitempty" validate:"regexp=^[a-z0-9_]+$"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
Label *string `json:"label,omitempty"`
// Custom fields within the same group will be displayed together
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
Description *string `json:"description,omitempty"`
// This field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// The value of this field must be unique for the assigned object
Unique *bool `json:"unique,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
- UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
- UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
@@ -51,9 +51,9 @@ type PatchedWritableCustomFieldRequest struct {
// Maximum allowed value (for numeric fields)
ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"`
// Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$
will limit values to exactly three uppercase letters.
- ValidationRegex *string `json:"validation_regex,omitempty"`
- ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldRequestChoiceSet `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -172,6 +172,7 @@ func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectType() bool {
func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectType(v string) {
o.RelatedObjectType.Set(&v)
}
+
// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectTypeNil() {
o.RelatedObjectType.Set(nil)
@@ -664,6 +665,7 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMinimum() bool {
func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
+
// SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil
func (o *PatchedWritableCustomFieldRequest) SetValidationMinimumNil() {
o.ValidationMinimum.Set(nil)
@@ -706,6 +708,7 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMaximum() bool {
func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
+
// SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil
func (o *PatchedWritableCustomFieldRequest) SetValidationMaximumNil() {
o.ValidationMaximum.Set(nil)
@@ -749,9 +752,9 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v string) {
}
// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest {
+func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldRequestChoiceSet {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret BriefCustomFieldChoiceSetRequest
+ var ret CustomFieldRequestChoiceSet
return ret
}
return *o.ChoiceSet.Get()
@@ -760,7 +763,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoic
// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldRequestChoiceSet, bool) {
if o == nil {
return nil, false
}
@@ -776,10 +779,11 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
-func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldRequestChoiceSet and assigns it to the ChoiceSet field.
+func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldRequestChoiceSet) {
o.ChoiceSet.Set(&v)
}
+
// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil
func (o *PatchedWritableCustomFieldRequest) SetChoiceSetNil() {
o.ChoiceSet.Set(nil)
@@ -823,7 +827,7 @@ func (o *PatchedWritableCustomFieldRequest) SetComments(v string) {
}
func (o PatchedWritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -983,5 +987,3 @@ func (v *NullablePatchedWritableCustomFieldRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go
index a270ad1b9..9bfca16d0 100644
--- a/model_patched_writable_custom_field_request_filter_logic.go
+++ b/model_patched_writable_custom_field_request_filter_logic.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type PatchedWritableCustomFieldRequestFilterLogic string
// List of PatchedWritableCustomFieldRequest_filter_logic
const (
PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_DISABLED PatchedWritableCustomFieldRequestFilterLogic = "disabled"
- PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_LOOSE PatchedWritableCustomFieldRequestFilterLogic = "loose"
- PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_EXACT PatchedWritableCustomFieldRequestFilterLogic = "exact"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_LOOSE PatchedWritableCustomFieldRequestFilterLogic = "loose"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_EXACT PatchedWritableCustomFieldRequestFilterLogic = "exact"
)
// All allowed values of PatchedWritableCustomFieldRequestFilterLogic enum
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableCustomFieldRequestFilterLogic) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go
index 30a381885..dd7ca1ffd 100644
--- a/model_patched_writable_custom_field_request_type.go
+++ b/model_patched_writable_custom_field_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ type PatchedWritableCustomFieldRequestType string
// List of PatchedWritableCustomFieldRequest_type
const (
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_TEXT PatchedWritableCustomFieldRequestType = "text"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_LONGTEXT PatchedWritableCustomFieldRequestType = "longtext"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_INTEGER PatchedWritableCustomFieldRequestType = "integer"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DECIMAL PatchedWritableCustomFieldRequestType = "decimal"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_BOOLEAN PatchedWritableCustomFieldRequestType = "boolean"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATE PatchedWritableCustomFieldRequestType = "date"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATETIME PatchedWritableCustomFieldRequestType = "datetime"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_URL PatchedWritableCustomFieldRequestType = "url"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_JSON PatchedWritableCustomFieldRequestType = "json"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_SELECT PatchedWritableCustomFieldRequestType = "select"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_TEXT PatchedWritableCustomFieldRequestType = "text"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_LONGTEXT PatchedWritableCustomFieldRequestType = "longtext"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_INTEGER PatchedWritableCustomFieldRequestType = "integer"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DECIMAL PatchedWritableCustomFieldRequestType = "decimal"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_BOOLEAN PatchedWritableCustomFieldRequestType = "boolean"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATE PatchedWritableCustomFieldRequestType = "date"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATETIME PatchedWritableCustomFieldRequestType = "datetime"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_URL PatchedWritableCustomFieldRequestType = "url"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_JSON PatchedWritableCustomFieldRequestType = "json"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_SELECT PatchedWritableCustomFieldRequestType = "select"
PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTISELECT PatchedWritableCustomFieldRequestType = "multiselect"
- PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_OBJECT PatchedWritableCustomFieldRequestType = "object"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_OBJECT PatchedWritableCustomFieldRequestType = "object"
PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTIOBJECT PatchedWritableCustomFieldRequestType = "multiobject"
)
@@ -130,4 +130,3 @@ func (v *NullablePatchedWritableCustomFieldRequestType) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go
index 3c5038148..44a1df83f 100644
--- a/model_patched_writable_custom_field_request_ui_editable.go
+++ b/model_patched_writable_custom_field_request_ui_editable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableCustomFieldRequestUiEditable string
// List of PatchedWritableCustomFieldRequest_ui_editable
const (
- PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_YES PatchedWritableCustomFieldRequestUiEditable = "yes"
- PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_NO PatchedWritableCustomFieldRequestUiEditable = "no"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_YES PatchedWritableCustomFieldRequestUiEditable = "yes"
+ PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_NO PatchedWritableCustomFieldRequestUiEditable = "no"
PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_HIDDEN PatchedWritableCustomFieldRequestUiEditable = "hidden"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableCustomFieldRequestUiEditable) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go
index 35c826e85..59d2e3ece 100644
--- a/model_patched_writable_custom_field_request_ui_visible.go
+++ b/model_patched_writable_custom_field_request_ui_visible.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableCustomFieldRequestUiVisible) UnmarshalJSON(src [
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go
index 319c76b3b..fdadd565e 100644
--- a/model_patched_writable_data_source_request.go
+++ b/model_patched_writable_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableDataSourceRequest{}
// PatchedWritableDataSourceRequest Adds support for custom fields and tags.
type PatchedWritableDataSourceRequest struct {
- Name *string `json:"name,omitempty"`
- Type *string `json:"type,omitempty"`
- SourceUrl *string `json:"source_url,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Parameters interface{} `json:"parameters,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Type *string `json:"type,omitempty"`
+ SourceUrl *string `json:"source_url,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ SyncInterval NullableDataSourceSyncInterval `json:"sync_interval,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
- IgnoreRules *string `json:"ignore_rules,omitempty"`
- Comments *string `json:"comments,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IgnoreRules *string `json:"ignore_rules,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -211,6 +212,49 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) {
o.Description = &v
}
+// GetSyncInterval returns the SyncInterval field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableDataSourceRequest) GetSyncInterval() DataSourceSyncInterval {
+ if o == nil || IsNil(o.SyncInterval.Get()) {
+ var ret DataSourceSyncInterval
+ return ret
+ }
+ return *o.SyncInterval.Get()
+}
+
+// GetSyncIntervalOk returns a tuple with the SyncInterval field value if set, nil otherwise
+// and a 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) GetSyncIntervalOk() (*DataSourceSyncInterval, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SyncInterval.Get(), o.SyncInterval.IsSet()
+}
+
+// HasSyncInterval returns a boolean if a field has been set.
+func (o *PatchedWritableDataSourceRequest) HasSyncInterval() bool {
+ if o != nil && o.SyncInterval.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSyncInterval gets a reference to the given NullableDataSourceSyncInterval and assigns it to the SyncInterval field.
+func (o *PatchedWritableDataSourceRequest) SetSyncInterval(v DataSourceSyncInterval) {
+ o.SyncInterval.Set(&v)
+}
+
+// SetSyncIntervalNil sets the value for SyncInterval to be an explicit nil
+func (o *PatchedWritableDataSourceRequest) SetSyncIntervalNil() {
+ o.SyncInterval.Set(nil)
+}
+
+// UnsetSyncInterval ensures that no value is present for SyncInterval, not even an explicit nil
+func (o *PatchedWritableDataSourceRequest) UnsetSyncInterval() {
+ o.SyncInterval.Unset()
+}
+
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} {
if o == nil {
@@ -341,7 +385,7 @@ func (o *PatchedWritableDataSourceRequest) SetCustomFields(v map[string]interfac
}
func (o PatchedWritableDataSourceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -365,6 +409,9 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.SyncInterval.IsSet() {
+ toSerialize["sync_interval"] = o.SyncInterval.Get()
+ }
if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
@@ -404,6 +451,7 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error
delete(additionalProperties, "source_url")
delete(additionalProperties, "enabled")
delete(additionalProperties, "description")
+ delete(additionalProperties, "sync_interval")
delete(additionalProperties, "parameters")
delete(additionalProperties, "ignore_rules")
delete(additionalProperties, "comments")
@@ -449,5 +497,3 @@ func (v *NullablePatchedWritableDataSourceRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_device_role_request.go b/model_patched_writable_device_role_request.go
new file mode 100644
index 000000000..444a8368c
--- /dev/null
+++ b/model_patched_writable_device_role_request.go
@@ -0,0 +1,509 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PatchedWritableDeviceRoleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedWritableDeviceRoleRequest{}
+
+// PatchedWritableDeviceRoleRequest Extends PrimaryModelSerializer to include MPTT support.
+type PatchedWritableDeviceRoleRequest struct {
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ // Virtual machines may be assigned to this role
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedWritableDeviceRoleRequest PatchedWritableDeviceRoleRequest
+
+// NewPatchedWritableDeviceRoleRequest instantiates a new PatchedWritableDeviceRoleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedWritableDeviceRoleRequest() *PatchedWritableDeviceRoleRequest {
+ this := PatchedWritableDeviceRoleRequest{}
+ return &this
+}
+
+// NewPatchedWritableDeviceRoleRequestWithDefaults instantiates a new PatchedWritableDeviceRoleRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPatchedWritableDeviceRoleRequestWithDefaults() *PatchedWritableDeviceRoleRequest {
+ this := PatchedWritableDeviceRoleRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetSlug returns the Slug field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetSlug(v string) {
+ o.Slug = &v
+}
+
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetColor(v string) {
+ o.Color = &v
+}
+
+// GetVmRole returns the VmRole field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) GetVmRole() bool {
+ if o == nil || IsNil(o.VmRole) {
+ var ret bool
+ return ret
+ }
+ return *o.VmRole
+}
+
+// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
+ if o == nil || IsNil(o.VmRole) {
+ return nil, false
+ }
+ return o.VmRole, true
+}
+
+// HasVmRole returns a boolean if a field has been set.
+func (o *PatchedWritableDeviceRoleRequest) HasVmRole() bool {
+ if o != nil && !IsNil(o.VmRole) {
+ return true
+ }
+
+ return false
+}
+
+// SetVmRole gets a reference to the given bool and assigns it to the VmRole field.
+func (o *PatchedWritableDeviceRoleRequest) SetVmRole(v bool) {
+ o.VmRole = &v
+}
+
+// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
+ if o == nil || IsNil(o.ConfigTemplate.Get()) {
+ var ret DeviceRoleRequestConfigTemplate
+ return ret
+ }
+ return *o.ConfigTemplate.Get()
+}
+
+// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
+}
+
+// HasConfigTemplate returns a boolean if a field has been set.
+func (o *PatchedWritableDeviceRoleRequest) HasConfigTemplate() bool {
+ if o != nil && o.ConfigTemplate.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
+ o.ConfigTemplate.Set(&v)
+}
+
+// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
+func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplateNil() {
+ o.ConfigTemplate.Set(nil)
+}
+
+// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
+func (o *PatchedWritableDeviceRoleRequest) UnsetConfigTemplate() {
+ o.ConfigTemplate.Unset()
+}
+
+// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableDeviceRoleRequest) GetParent() int32 {
+ if o == nil || IsNil(o.Parent.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.Parent.Get()
+}
+
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableDeviceRoleRequest) GetParentOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Parent.Get(), o.Parent.IsSet()
+}
+
+// HasParent returns a boolean if a field has been set.
+func (o *PatchedWritableDeviceRoleRequest) HasParent() bool {
+ if o != nil && o.Parent.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field.
+func (o *PatchedWritableDeviceRoleRequest) SetParent(v int32) {
+ o.Parent.Set(&v)
+}
+
+// SetParentNil sets the value for Parent to be an explicit nil
+func (o *PatchedWritableDeviceRoleRequest) SetParentNil() {
+ o.Parent.Set(nil)
+}
+
+// UnsetParent ensures that no value is present for Parent, not even an explicit nil
+func (o *PatchedWritableDeviceRoleRequest) UnsetParent() {
+ o.Parent.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+func (o PatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedWritableDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Slug) {
+ toSerialize["slug"] = o.Slug
+ }
+ if !IsNil(o.Color) {
+ toSerialize["color"] = o.Color
+ }
+ if !IsNil(o.VmRole) {
+ toSerialize["vm_role"] = o.VmRole
+ }
+ if o.ConfigTemplate.IsSet() {
+ toSerialize["config_template"] = o.ConfigTemplate.Get()
+ }
+ if o.Parent.IsSet() {
+ toSerialize["parent"] = o.Parent.Get()
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedWritableDeviceRoleRequest := _PatchedWritableDeviceRoleRequest{}
+
+ err = json.Unmarshal(data, &varPatchedWritableDeviceRoleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedWritableDeviceRoleRequest(varPatchedWritableDeviceRoleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "slug")
+ delete(additionalProperties, "color")
+ delete(additionalProperties, "vm_role")
+ delete(additionalProperties, "config_template")
+ delete(additionalProperties, "parent")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullablePatchedWritableDeviceRoleRequest struct {
+ value *PatchedWritableDeviceRoleRequest
+ isSet bool
+}
+
+func (v NullablePatchedWritableDeviceRoleRequest) Get() *PatchedWritableDeviceRoleRequest {
+ return v.value
+}
+
+func (v *NullablePatchedWritableDeviceRoleRequest) Set(val *PatchedWritableDeviceRoleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableDeviceRoleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableDeviceRoleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableDeviceRoleRequest(val *PatchedWritableDeviceRoleRequest) *NullablePatchedWritableDeviceRoleRequest {
+ return &NullablePatchedWritableDeviceRoleRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableDeviceRoleRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go
index 58ac963c6..df7c97301 100644
--- a/model_patched_writable_device_type_request.go
+++ b/model_patched_writable_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{}
// PatchedWritableDeviceTypeRequest Adds support for custom fields and tags.
type PatchedWritableDeviceTypeRequest struct {
- Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"`
- DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"`
- Model *string `json:"model,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer *BriefDeviceTypeRequestManufacturer `json:"manufacturer,omitempty"`
+ DefaultPlatform NullableDeviceTypeRequestDefaultPlatform `json:"default_platform,omitempty"`
+ Model *string `json:"model,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- UHeight *float64 `json:"u_height,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ UHeight *float64 `json:"u_height,omitempty"`
// Devices of this type are excluded when calculating rack utilization.
ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"`
// Device consumes both front and rear rack faces.
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"`
- Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
- FrontImage **os.File `json:"front_image,omitempty"`
- RearImage **os.File `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IsFullDepth *bool `json:"is_full_depth,omitempty"`
+ SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"`
+ Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ FrontImage **os.File `json:"front_image,omitempty"`
+ RearImage **os.File `json:"rear_image,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil || IsNil(o.Manufacturer) {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
return *o.Manufacturer
@@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRe
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil || IsNil(o.Manufacturer) {
return nil, false
}
@@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given BriefDeviceTypeRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = &v
}
// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest {
+func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.DefaultPlatform.Get()
@@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformReq
// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -127,10 +127,11 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool {
return false
}
-// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field.
-func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) {
+// SetDefaultPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the DefaultPlatform field.
+func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v DeviceTypeRequestDefaultPlatform) {
o.DefaultPlatform.Set(&v)
}
+
// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatformNil() {
o.DefaultPlatform.Set(nil)
@@ -365,6 +366,7 @@ func (o *PatchedWritableDeviceTypeRequest) HasSubdeviceRole() bool {
func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) {
o.SubdeviceRole.Set(&v)
}
+
// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil
func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRoleNil() {
o.SubdeviceRole.Set(nil)
@@ -407,6 +409,7 @@ func (o *PatchedWritableDeviceTypeRequest) HasAirflow() bool {
func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *PatchedWritableDeviceTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -449,6 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeight() bool {
func (o *PatchedWritableDeviceTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *PatchedWritableDeviceTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -491,6 +495,7 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool {
func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *PatchedWritableDeviceTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -694,7 +699,7 @@ func (o *PatchedWritableDeviceTypeRequest) SetCustomFields(v map[string]interfac
}
func (o PatchedWritableDeviceTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -838,5 +843,3 @@ func (v *NullablePatchedWritableDeviceTypeRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go
index 91a5e565a..f4fb4865b 100644
--- a/model_patched_writable_device_with_config_context_request.go
+++ b/model_patched_writable_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,41 +19,41 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{}
// PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableDeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"`
- Role *BriefDeviceRoleRequest `json:"role,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType *DeviceBayTemplateRequestDeviceType `json:"device_type,omitempty"`
+ Role *DeviceWithConfigContextRequestRole `json:"role,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site *BriefSiteRequest `json:"site,omitempty"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face NullableRackFace1 `json:"face,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Site *DeviceWithConfigContextRequestSite `json:"site,omitempty"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Position NullableFloat64 `json:"position,omitempty"`
+ Face NullableRackFace1 `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Status *DeviceStatusValue `json:"status,omitempty"`
- Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Status *DeviceStatusValue `json:"status,omitempty"`
+ Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ OobIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"oob_ip,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ VirtualChassis NullableDeviceWithConfigContextRequestVirtualChassis `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 NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,6 +108,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasName() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetNameNil() {
o.Name.Set(nil)
@@ -119,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType) {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
return *o.DeviceType
@@ -129,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDev
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -145,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given DeviceBayTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceWithConfigContextRequestRole {
if o == nil || IsNil(o.Role) {
- var ret BriefDeviceRoleRequest
+ var ret DeviceWithConfigContextRequestRole
return ret
}
return *o.Role
@@ -161,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRol
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceWithConfigContextRequestRole, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
@@ -177,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+// SetRole gets a reference to the given DeviceWithConfigContextRequestRole and assigns it to the Role field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceWithConfigContextRequestRole) {
o.Role = &v
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -194,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantR
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -210,10 +211,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -225,9 +227,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -236,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatf
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -252,10 +254,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -330,6 +333,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasAssetTag() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -341,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil || IsNil(o.Site) {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
return *o.Site
@@ -351,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteReque
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -367,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given DeviceWithConfigContextRequestSite and assigns it to the Site field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = &v
}
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -384,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocat
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -400,10 +404,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -415,9 +420,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() {
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -426,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackReque
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -442,10 +447,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -488,6 +494,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPosition() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPosition(v float64) {
o.Position.Set(&v)
}
+
// SetPositionNil sets the value for Position to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPositionNil() {
o.Position.Set(nil)
@@ -530,6 +537,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasFace() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace1) {
o.Face.Set(&v)
}
+
// SetFaceNil sets the value for Face to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetFaceNil() {
o.Face.Set(nil)
@@ -572,6 +580,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLatitude() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -614,6 +623,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLongitude() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -688,6 +698,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasAirflow() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -699,9 +710,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAirflow() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -710,7 +721,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPA
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -726,10 +737,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -741,9 +753,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -752,7 +764,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPA
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -768,10 +780,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -783,9 +796,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() {
}
// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OobIp.Get()
@@ -794,7 +807,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddres
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -810,10 +823,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) {
+// SetOobIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OobIp field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OobIp.Set(&v)
}
+
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIpNil() {
o.OobIp.Set(nil)
@@ -825,9 +839,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -836,7 +850,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefCluste
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -852,10 +866,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -867,9 +882,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() {
}
// GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() DeviceWithConfigContextRequestVirtualChassis {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret BriefVirtualChassisRequest
+ var ret DeviceWithConfigContextRequestVirtualChassis
return ret
}
return *o.VirtualChassis.Get()
@@ -878,7 +893,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Brie
// GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*DeviceWithConfigContextRequestVirtualChassis, bool) {
if o == nil {
return nil, false
}
@@ -894,10 +909,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool
return false
}
-// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) {
+// SetVirtualChassis gets a reference to the given NullableDeviceWithConfigContextRequestVirtualChassis and assigns it to the VirtualChassis field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v DeviceWithConfigContextRequestVirtualChassis) {
o.VirtualChassis.Set(&v)
}
+
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
@@ -940,6 +956,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVcPosition() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
+
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPositionNil() {
o.VcPosition.Set(nil)
@@ -982,6 +999,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVcPriority() bool {
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
+
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPriorityNil() {
o.VcPriority.Set(nil)
@@ -1057,9 +1075,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -1068,7 +1086,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Brie
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -1084,10 +1102,11 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1196,7 +1215,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetCustomFields(v map[st
}
func (o PatchedWritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1384,5 +1403,3 @@ func (v *NullablePatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(sr
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go
index fd4c30d24..4b43e7e0d 100644
--- a/model_patched_writable_event_rule_request.go
+++ b/model_patched_writable_event_rule_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{}
// PatchedWritableEventRuleRequest Adds support for custom fields and tags.
type PatchedWritableEventRuleRequest struct {
ObjectTypes []string `json:"object_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
// The types of event which will trigger this rule.
EventTypes []EventRuleEventTypesInner `json:"event_types,omitempty"`
// A set of conditions which determine whether the event will be generated.
- Conditions interface{} `json:"conditions,omitempty"`
- ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
- ActionObjectType *string `json:"action_object_type,omitempty"`
- ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
- Description *string `json:"description,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
+ ActionObjectType *string `json:"action_object_type,omitempty"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -311,6 +311,7 @@ func (o *PatchedWritableEventRuleRequest) HasActionObjectId() bool {
func (o *PatchedWritableEventRuleRequest) SetActionObjectId(v int64) {
o.ActionObjectId.Set(&v)
}
+
// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
func (o *PatchedWritableEventRuleRequest) SetActionObjectIdNil() {
o.ActionObjectId.Set(nil)
@@ -418,7 +419,7 @@ func (o *PatchedWritableEventRuleRequest) SetTags(v []NestedTagRequest) {
}
func (o PatchedWritableEventRuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -534,5 +535,3 @@ func (v *NullablePatchedWritableEventRuleRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go
index 5fd6cb6a2..6077dd830 100644
--- a/model_patched_writable_front_port_request.go
+++ b/model_patched_writable_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{}
// PatchedWritableFrontPortRequest Adds support for custom fields and tags.
type PatchedWritableFrontPortRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *FrontPortTypeValue `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort *int32 `json:"rear_port,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort *int32 `json:"rear_port,omitempty"`
// Mapped position on corresponding rear port
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -57,9 +57,9 @@ func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortR
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableFrontPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -67,7 +67,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -83,15 +83,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritableFrontPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -100,7 +100,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -116,10 +116,11 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritableFrontPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritableFrontPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -451,7 +452,7 @@ func (o *PatchedWritableFrontPortRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritableFrontPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -571,5 +572,3 @@ func (v *NullablePatchedWritableFrontPortRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go
index 6b35bdc85..b9d1f79fc 100644
--- a/model_patched_writable_front_port_template_request.go
+++ b/model_patched_writable_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{}
// PatchedWritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableFrontPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *FrontPortTypeValue `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort *FrontPortTemplateRequestRearPort `json:"rear_port,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,9 +53,9 @@ func NewPatchedWritableFrontPortTemplateRequestWithDefaults() *PatchedWritableFr
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -64,7 +64,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTyp
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -80,10 +80,11 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -95,9 +96,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +107,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTyp
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -122,10 +123,11 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritableFrontPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -265,9 +267,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value if set, zero value otherwise.
-func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest {
+func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() FrontPortTemplateRequestRearPort {
if o == nil || IsNil(o.RearPort) {
- var ret BriefRearPortTemplateRequest
+ var ret FrontPortTemplateRequestRearPort
return ret
}
return *o.RearPort
@@ -275,7 +277,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTem
// GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*FrontPortTemplateRequestRearPort, bool) {
if o == nil || IsNil(o.RearPort) {
return nil, false
}
@@ -291,8 +293,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool {
return false
}
-// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) {
+// SetRearPort gets a reference to the given FrontPortTemplateRequestRearPort and assigns it to the RearPort field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v FrontPortTemplateRequestRearPort) {
o.RearPort = &v
}
@@ -361,7 +363,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetDescription(v string) {
}
func (o PatchedWritableFrontPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -469,5 +471,3 @@ func (v *NullablePatchedWritableFrontPortTemplateRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go
index 9f75c8758..4376b3bc2 100644
--- a/model_patched_writable_ike_policy_request.go
+++ b/model_patched_writable_ike_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedWritableIKEPolicyRequest{}
// PatchedWritableIKEPolicyRequest Adds support for custom fields and tags.
type PatchedWritableIKEPolicyRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
- Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PresharedKey *string `json:"preshared_key,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
+ Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -178,6 +178,7 @@ func (o *PatchedWritableIKEPolicyRequest) HasMode() bool {
func (o *PatchedWritableIKEPolicyRequest) SetMode(v PatchedWritableIKEPolicyRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *PatchedWritableIKEPolicyRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -349,7 +350,7 @@ func (o *PatchedWritableIKEPolicyRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -457,5 +458,3 @@ func (v *NullablePatchedWritableIKEPolicyRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go
index 2b966ce46..609f95a74 100644
--- a/model_patched_writable_ike_policy_request_mode.go
+++ b/model_patched_writable_ike_policy_request_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ type PatchedWritableIKEPolicyRequestMode string
// List of PatchedWritableIKEPolicyRequest_mode
const (
PATCHEDWRITABLEIKEPOLICYREQUESTMODE_AGGRESSIVE PatchedWritableIKEPolicyRequestMode = "aggressive"
- PATCHEDWRITABLEIKEPOLICYREQUESTMODE_MAIN PatchedWritableIKEPolicyRequestMode = "main"
- PATCHEDWRITABLEIKEPOLICYREQUESTMODE_EMPTY PatchedWritableIKEPolicyRequestMode = ""
+ PATCHEDWRITABLEIKEPOLICYREQUESTMODE_MAIN PatchedWritableIKEPolicyRequestMode = "main"
+ PATCHEDWRITABLEIKEPOLICYREQUESTMODE_EMPTY PatchedWritableIKEPolicyRequestMode = ""
)
// All allowed values of PatchedWritableIKEPolicyRequestMode enum
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableIKEPolicyRequestMode) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go
index 6bd9944fd..f80140b0e 100644
--- a/model_patched_writable_ike_policy_request_version.go
+++ b/model_patched_writable_ike_policy_request_version.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullablePatchedWritableIKEPolicyRequestVersion) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go
index 1aa001cc1..b376b6bab 100644
--- a/model_patched_writable_ike_proposal_request.go
+++ b/model_patched_writable_ike_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableIKEProposalRequest{}
// PatchedWritableIKEProposalRequest Adds support for custom fields and tags.
type PatchedWritableIKEProposalRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- AuthenticationMethod *IKEProposalAuthenticationMethodValue `json:"authentication_method,omitempty"`
- EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod *IKEProposalAuthenticationMethodValue `json:"authentication_method,omitempty"`
+ EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"`
AuthenticationAlgorithm NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
- Group *PatchedWritableIKEProposalRequestGroup `json:"group,omitempty"`
+ Group *PatchedWritableIKEProposalRequestGroup `json:"group,omitempty"`
// Security association lifetime (in seconds)
- SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -212,6 +212,7 @@ func (o *PatchedWritableIKEProposalRequest) HasAuthenticationAlgorithm() bool {
func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) {
o.AuthenticationAlgorithm.Set(&v)
}
+
// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil
func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithmNil() {
o.AuthenticationAlgorithm.Set(nil)
@@ -286,6 +287,7 @@ func (o *PatchedWritableIKEProposalRequest) HasSaLifetime() bool {
func (o *PatchedWritableIKEProposalRequest) SetSaLifetime(v int32) {
o.SaLifetime.Set(&v)
}
+
// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
func (o *PatchedWritableIKEProposalRequest) SetSaLifetimeNil() {
o.SaLifetime.Set(nil)
@@ -393,7 +395,7 @@ func (o *PatchedWritableIKEProposalRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -505,5 +507,3 @@ func (v *NullablePatchedWritableIKEProposalRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go
index f961d1f0c..132fd58e7 100644
--- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go
+++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type PatchedWritableIKEProposalRequestAuthenticationAlgorithm string
// List of PatchedWritableIKEProposalRequest_authentication_algorithm
const (
- PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA1 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha1"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA1 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha1"
PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA256 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha256"
PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA384 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha384"
PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA512 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha512"
- PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_MD5 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-md5"
- PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_EMPTY PatchedWritableIKEProposalRequestAuthenticationAlgorithm = ""
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_MD5 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-md5"
+ PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_EMPTY PatchedWritableIKEProposalRequestAuthenticationAlgorithm = ""
)
// All allowed values of PatchedWritableIKEProposalRequestAuthenticationAlgorithm enum
@@ -116,4 +116,3 @@ func (v *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) Unmar
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go
index 76223fc6a..ba5a2cc1c 100644
--- a/model_patched_writable_ike_proposal_request_group.go
+++ b/model_patched_writable_ike_proposal_request_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PatchedWritableIKEProposalRequestGroup int32
// List of PatchedWritableIKEProposalRequest_group
const (
- PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__1 PatchedWritableIKEProposalRequestGroup = 1
- PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__2 PatchedWritableIKEProposalRequestGroup = 2
- PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__5 PatchedWritableIKEProposalRequestGroup = 5
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__1 PatchedWritableIKEProposalRequestGroup = 1
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__2 PatchedWritableIKEProposalRequestGroup = 2
+ PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__5 PatchedWritableIKEProposalRequestGroup = 5
PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__14 PatchedWritableIKEProposalRequestGroup = 14
PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__15 PatchedWritableIKEProposalRequestGroup = 15
PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__16 PatchedWritableIKEProposalRequestGroup = 16
@@ -152,4 +152,3 @@ func (v *NullablePatchedWritableIKEProposalRequestGroup) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go
index 533b6abd0..7f61854ba 100644
--- a/model_patched_writable_interface_request.go
+++ b/model_patched_writable_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,45 +19,45 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{}
// PatchedWritableInterfaceRequest Adds support for custom fields and tags.
type PatchedWritableInterfaceRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *InterfaceTypeValue `json:"type,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Lag NullableInt32 `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *InterfaceTypeValue `json:"type,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Lag NullableInt32 `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- RfRole NullableWirelessRole `json:"rf_role,omitempty"`
- RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"`
- PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ RfRole NullableWirelessRole `json:"rf_role,omitempty"`
+ RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
+ RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
+ TxPower NullableInt32 `json:"tx_power,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ WirelessLans []int32 `json:"wireless_lans,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,9 +81,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableInterfaceRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -91,7 +91,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -107,8 +107,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
@@ -145,9 +145,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) {
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritableInterfaceRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -156,7 +156,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -172,10 +172,11 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritableInterfaceRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -346,6 +347,7 @@ func (o *PatchedWritableInterfaceRequest) HasParent() bool {
func (o *PatchedWritableInterfaceRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -388,6 +390,7 @@ func (o *PatchedWritableInterfaceRequest) HasBridge() bool {
func (o *PatchedWritableInterfaceRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -430,6 +433,7 @@ func (o *PatchedWritableInterfaceRequest) HasLag() bool {
func (o *PatchedWritableInterfaceRequest) SetLag(v int32) {
o.Lag.Set(&v)
}
+
// SetLagNil sets the value for Lag to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetLagNil() {
o.Lag.Set(nil)
@@ -472,6 +476,7 @@ func (o *PatchedWritableInterfaceRequest) HasMtu() bool {
func (o *PatchedWritableInterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -483,9 +488,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -494,7 +499,7 @@ func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddress
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -510,10 +515,11 @@ func (o *PatchedWritableInterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -556,6 +562,7 @@ func (o *PatchedWritableInterfaceRequest) HasSpeed() bool {
func (o *PatchedWritableInterfaceRequest) SetSpeed(v int32) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -598,6 +605,7 @@ func (o *PatchedWritableInterfaceRequest) HasDuplex() bool {
func (o *PatchedWritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
+
// SetDuplexNil sets the value for Duplex to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetDuplexNil() {
o.Duplex.Set(nil)
@@ -640,6 +648,7 @@ func (o *PatchedWritableInterfaceRequest) HasWwn() bool {
func (o *PatchedWritableInterfaceRequest) SetWwn(v string) {
o.Wwn.Set(&v)
}
+
// SetWwnNil sets the value for Wwn to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetWwnNil() {
o.Wwn.Set(nil)
@@ -746,6 +755,7 @@ func (o *PatchedWritableInterfaceRequest) HasMode() bool {
func (o *PatchedWritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -788,6 +798,7 @@ func (o *PatchedWritableInterfaceRequest) HasRfRole() bool {
func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -830,6 +841,7 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannel() bool {
func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel) {
o.RfChannel.Set(&v)
}
+
// SetRfChannelNil sets the value for RfChannel to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetRfChannelNil() {
o.RfChannel.Set(nil)
@@ -872,6 +884,7 @@ func (o *PatchedWritableInterfaceRequest) HasPoeMode() bool {
func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -914,6 +927,7 @@ func (o *PatchedWritableInterfaceRequest) HasPoeType() bool {
func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -956,6 +970,7 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannelFrequency() bool {
func (o *PatchedWritableInterfaceRequest) SetRfChannelFrequency(v float64) {
o.RfChannelFrequency.Set(&v)
}
+
// SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetRfChannelFrequencyNil() {
o.RfChannelFrequency.Set(nil)
@@ -998,6 +1013,7 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannelWidth() bool {
func (o *PatchedWritableInterfaceRequest) SetRfChannelWidth(v float64) {
o.RfChannelWidth.Set(&v)
}
+
// SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetRfChannelWidthNil() {
o.RfChannelWidth.Set(nil)
@@ -1040,6 +1056,7 @@ func (o *PatchedWritableInterfaceRequest) HasTxPower() bool {
func (o *PatchedWritableInterfaceRequest) SetTxPower(v int32) {
o.TxPower.Set(&v)
}
+
// SetTxPowerNil sets the value for TxPower to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetTxPowerNil() {
o.TxPower.Set(nil)
@@ -1051,9 +1068,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -1062,7 +1079,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1078,10 +1095,11 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -1125,9 +1143,9 @@ func (o *PatchedWritableInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *PatchedWritableInterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -1136,7 +1154,7 @@ func (o *PatchedWritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1152,10 +1170,11 @@ func (o *PatchedWritableInterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *PatchedWritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *PatchedWritableInterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -1167,9 +1186,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -1178,7 +1197,7 @@ func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTr
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -1194,10 +1213,11 @@ func (o *PatchedWritableInterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -1273,9 +1293,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *PatchedWritableInterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -1284,7 +1304,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -1300,10 +1320,11 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PatchedWritableInterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PatchedWritableInterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -1379,7 +1400,7 @@ func (o *PatchedWritableInterfaceRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritableInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1587,5 +1608,3 @@ func (v *NullablePatchedWritableInterfaceRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go
index 68c4641ca..e72fa5bc4 100644
--- a/model_patched_writable_interface_request_mode.go
+++ b/model_patched_writable_interface_request_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type PatchedWritableInterfaceRequestMode string
// List of PatchedWritableInterfaceRequest_mode
const (
- PATCHEDWRITABLEINTERFACEREQUESTMODE_ACCESS PatchedWritableInterfaceRequestMode = "access"
- PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED PatchedWritableInterfaceRequestMode = "tagged"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_ACCESS PatchedWritableInterfaceRequestMode = "access"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED PatchedWritableInterfaceRequestMode = "tagged"
PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED_ALL PatchedWritableInterfaceRequestMode = "tagged-all"
- PATCHEDWRITABLEINTERFACEREQUESTMODE_Q_IN_Q PatchedWritableInterfaceRequestMode = "q-in-q"
- PATCHEDWRITABLEINTERFACEREQUESTMODE_EMPTY PatchedWritableInterfaceRequestMode = ""
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_Q_IN_Q PatchedWritableInterfaceRequestMode = "q-in-q"
+ PATCHEDWRITABLEINTERFACEREQUESTMODE_EMPTY PatchedWritableInterfaceRequestMode = ""
)
// All allowed values of PatchedWritableInterfaceRequestMode enum
@@ -114,4 +114,3 @@ func (v *NullablePatchedWritableInterfaceRequestMode) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go
index d9ebb0d96..b333a44fd 100644
--- a/model_patched_writable_interface_template_request.go
+++ b/model_patched_writable_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{}
// PatchedWritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableInterfaceTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *InterfaceTypeValue `json:"type,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
- RfRole NullableWirelessRole `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *InterfaceTypeValue `json:"type,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ RfRole NullableWirelessRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTyp
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -83,10 +83,11 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -98,9 +99,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -109,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTyp
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -125,10 +126,11 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -363,6 +365,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasBridge() bool {
func (o *PatchedWritableInterfaceTemplateRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -405,6 +408,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasPoeMode() bool {
func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -447,6 +451,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasPoeType() bool {
func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -489,6 +494,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool {
func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *PatchedWritableInterfaceTemplateRequest) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -500,7 +506,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetRfRole() {
}
func (o PatchedWritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -620,5 +626,3 @@ func (v *NullablePatchedWritableInterfaceTemplateRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_inventory_item_request.go b/model_patched_writable_inventory_item_request.go
index 0e65a66d2..25b04e74c 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,26 +19,26 @@ var _ MappedNullable = &PatchedWritableInventoryItemRequest{}
// PatchedWritableInventoryItemRequest Adds support for custom fields and tags.
type PatchedWritableInventoryItemRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Role NullableInventoryItemRequestRole `json:"role,omitempty"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this item
AssetTag NullableString `json:"asset_tag,omitempty"`
// This item was automatically discovered
- Discovered *bool `json:"discovered,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Discovered *bool `json:"discovered,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -62,9 +62,9 @@ func NewPatchedWritableInventoryItemRequestWithDefaults() *PatchedWritableInvent
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableInventoryItemRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -72,7 +72,7 @@ func (o *PatchedWritableInventoryItemRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -88,8 +88,8 @@ func (o *PatchedWritableInventoryItemRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableInventoryItemRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableInventoryItemRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
@@ -125,6 +125,7 @@ func (o *PatchedWritableInventoryItemRequest) HasParent() bool {
func (o *PatchedWritableInventoryItemRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -232,9 +233,9 @@ func (o *PatchedWritableInventoryItemRequest) SetStatus(v InventoryItemStatusVal
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest {
+func (o *PatchedWritableInventoryItemRequest) GetRole() InventoryItemRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefInventoryItemRoleRequest
+ var ret InventoryItemRequestRole
return ret
}
return *o.Role.Get()
@@ -243,7 +244,7 @@ func (o *PatchedWritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRe
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) {
+func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*InventoryItemRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -259,10 +260,11 @@ func (o *PatchedWritableInventoryItemRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRequestRole and assigns it to the Role field.
+func (o *PatchedWritableInventoryItemRequest) SetRole(v InventoryItemRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -274,9 +276,9 @@ func (o *PatchedWritableInventoryItemRequest) UnsetRole() {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedWritableInventoryItemRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -285,7 +287,7 @@ func (o *PatchedWritableInventoryItemRequest) GetManufacturer() BriefManufacture
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -301,10 +303,11 @@ func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -411,6 +414,7 @@ func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool {
func (o *PatchedWritableInventoryItemRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -517,6 +521,7 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool {
func (o *PatchedWritableInventoryItemRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -559,6 +564,7 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool {
func (o *PatchedWritableInventoryItemRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *PatchedWritableInventoryItemRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -634,7 +640,7 @@ func (o *PatchedWritableInventoryItemRequest) SetCustomFields(v map[string]inter
}
func (o PatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -770,5 +776,3 @@ func (v *NullablePatchedWritableInventoryItemRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go
index 88314fe8a..dc6c110d6 100644
--- a/model_patched_writable_ip_address_request.go
+++ b/model_patched_writable_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{}
// PatchedWritableIPAddressRequest Adds support for custom fields and tags.
type PatchedWritableIPAddressRequest struct {
- Address *string `json:"address,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
- Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
+ Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
// The IP for which this address is the \"outside\" IP
NatInside NullableInt32 `json:"nat_inside,omitempty"`
// Hostname or FQDN (not case-sensitive)
- DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest {
+func (o *PatchedWritableIPAddressRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -116,10 +116,11 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PatchedWritableIPAddressRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -131,9 +132,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableIPAddressRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -142,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -158,10 +159,11 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableIPAddressRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -236,6 +238,7 @@ func (o *PatchedWritableIPAddressRequest) HasRole() bool {
func (o *PatchedWritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -278,6 +281,7 @@ func (o *PatchedWritableIPAddressRequest) HasAssignedObjectType() bool {
func (o *PatchedWritableIPAddressRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -320,6 +324,7 @@ func (o *PatchedWritableIPAddressRequest) HasAssignedObjectId() bool {
func (o *PatchedWritableIPAddressRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -362,6 +367,7 @@ func (o *PatchedWritableIPAddressRequest) HasNatInside() bool {
func (o *PatchedWritableIPAddressRequest) SetNatInside(v int32) {
o.NatInside.Set(&v)
}
+
// SetNatInsideNil sets the value for NatInside to be an explicit nil
func (o *PatchedWritableIPAddressRequest) SetNatInsideNil() {
o.NatInside.Set(nil)
@@ -533,7 +539,7 @@ func (o *PatchedWritableIPAddressRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritableIPAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -657,5 +663,3 @@ func (v *NullablePatchedWritableIPAddressRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go
index 5e77e30a1..3f431718c 100644
--- a/model_patched_writable_ip_address_request_role.go
+++ b/model_patched_writable_ip_address_request_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ type PatchedWritableIPAddressRequestRole string
// List of PatchedWritableIPAddressRequest_role
const (
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_LOOPBACK PatchedWritableIPAddressRequestRole = "loopback"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_LOOPBACK PatchedWritableIPAddressRequestRole = "loopback"
PATCHEDWRITABLEIPADDRESSREQUESTROLE_SECONDARY PatchedWritableIPAddressRequestRole = "secondary"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_ANYCAST PatchedWritableIPAddressRequestRole = "anycast"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_VIP PatchedWritableIPAddressRequestRole = "vip"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_VRRP PatchedWritableIPAddressRequestRole = "vrrp"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_HSRP PatchedWritableIPAddressRequestRole = "hsrp"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_GLBP PatchedWritableIPAddressRequestRole = "glbp"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_CARP PatchedWritableIPAddressRequestRole = "carp"
- PATCHEDWRITABLEIPADDRESSREQUESTROLE_EMPTY PatchedWritableIPAddressRequestRole = ""
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_ANYCAST PatchedWritableIPAddressRequestRole = "anycast"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_VIP PatchedWritableIPAddressRequestRole = "vip"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_VRRP PatchedWritableIPAddressRequestRole = "vrrp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_HSRP PatchedWritableIPAddressRequestRole = "hsrp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_GLBP PatchedWritableIPAddressRequestRole = "glbp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_CARP PatchedWritableIPAddressRequestRole = "carp"
+ PATCHEDWRITABLEIPADDRESSREQUESTROLE_EMPTY PatchedWritableIPAddressRequestRole = ""
)
// All allowed values of PatchedWritableIPAddressRequestRole enum
@@ -122,4 +122,3 @@ func (v *NullablePatchedWritableIPAddressRequestRole) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go
index 4c4a6fdb2..1703410c9 100644
--- a/model_patched_writable_ip_address_request_status.go
+++ b/model_patched_writable_ip_address_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type PatchedWritableIPAddressRequestStatus string
// List of PatchedWritableIPAddressRequest_status
const (
- PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_ACTIVE PatchedWritableIPAddressRequestStatus = "active"
- PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_RESERVED PatchedWritableIPAddressRequestStatus = "reserved"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_ACTIVE PatchedWritableIPAddressRequestStatus = "active"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_RESERVED PatchedWritableIPAddressRequestStatus = "reserved"
PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DEPRECATED PatchedWritableIPAddressRequestStatus = "deprecated"
- PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DHCP PatchedWritableIPAddressRequestStatus = "dhcp"
- PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_SLAAC PatchedWritableIPAddressRequestStatus = "slaac"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DHCP PatchedWritableIPAddressRequestStatus = "dhcp"
+ PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_SLAAC PatchedWritableIPAddressRequestStatus = "slaac"
)
// All allowed values of PatchedWritableIPAddressRequestStatus enum
@@ -114,4 +114,3 @@ func (v *NullablePatchedWritableIPAddressRequestStatus) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go
index beb7df231..850fc34d1 100644
--- a/model_patched_writable_ip_range_request.go
+++ b/model_patched_writable_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{}
// PatchedWritableIPRangeRequest Adds support for custom fields and tags.
type PatchedWritableIPRangeRequest struct {
- StartAddress *string `json:"start_address,omitempty"`
- EndAddress *string `json:"end_address,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- // Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ StartAddress *string `json:"start_address,omitempty"`
+ EndAddress *string `json:"end_address,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `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"`
+ // Prevent the creation of IP addresses within this range
+ MarkPopulated *bool `json:"mark_populated,omitempty"`
+ // Report space as 100% utilized
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -118,9 +120,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest {
+func (o *PatchedWritableIPRangeRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -129,7 +131,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -145,10 +147,11 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PatchedWritableIPRangeRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PatchedWritableIPRangeRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -160,9 +163,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableIPRangeRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -171,7 +174,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -187,10 +190,11 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableIPRangeRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableIPRangeRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -234,9 +238,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest {
+func (o *PatchedWritableIPRangeRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -245,7 +249,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -261,10 +265,11 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *PatchedWritableIPRangeRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableIPRangeRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -403,6 +408,38 @@ func (o *PatchedWritableIPRangeRequest) SetCustomFields(v map[string]interface{}
o.CustomFields = v
}
+// GetMarkPopulated returns the MarkPopulated field value if set, zero value otherwise.
+func (o *PatchedWritableIPRangeRequest) GetMarkPopulated() bool {
+ if o == nil || IsNil(o.MarkPopulated) {
+ var ret bool
+ return ret
+ }
+ return *o.MarkPopulated
+}
+
+// GetMarkPopulatedOk returns a tuple with the MarkPopulated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedWritableIPRangeRequest) GetMarkPopulatedOk() (*bool, bool) {
+ if o == nil || IsNil(o.MarkPopulated) {
+ return nil, false
+ }
+ return o.MarkPopulated, true
+}
+
+// HasMarkPopulated returns a boolean if a field has been set.
+func (o *PatchedWritableIPRangeRequest) HasMarkPopulated() bool {
+ if o != nil && !IsNil(o.MarkPopulated) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarkPopulated gets a reference to the given bool and assigns it to the MarkPopulated field.
+func (o *PatchedWritableIPRangeRequest) SetMarkPopulated(v bool) {
+ o.MarkPopulated = &v
+}
+
// GetMarkUtilized returns the MarkUtilized field value if set, zero value otherwise.
func (o *PatchedWritableIPRangeRequest) GetMarkUtilized() bool {
if o == nil || IsNil(o.MarkUtilized) {
@@ -436,7 +473,7 @@ func (o *PatchedWritableIPRangeRequest) SetMarkUtilized(v bool) {
}
func (o PatchedWritableIPRangeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -475,6 +512,9 @@ func (o PatchedWritableIPRangeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.MarkPopulated) {
+ toSerialize["mark_populated"] = o.MarkPopulated
+ }
if !IsNil(o.MarkUtilized) {
toSerialize["mark_utilized"] = o.MarkUtilized
}
@@ -510,6 +550,7 @@ func (o *PatchedWritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "mark_populated")
delete(additionalProperties, "mark_utilized")
o.AdditionalProperties = additionalProperties
}
@@ -552,5 +593,3 @@ func (v *NullablePatchedWritableIPRangeRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go
index 249bb5ee9..7e1f79b11 100644
--- a/model_patched_writable_ip_range_request_status.go
+++ b/model_patched_writable_ip_range_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableIPRangeRequestStatus string
// List of PatchedWritableIPRangeRequest_status
const (
- PATCHEDWRITABLEIPRANGEREQUESTSTATUS_ACTIVE PatchedWritableIPRangeRequestStatus = "active"
- PATCHEDWRITABLEIPRANGEREQUESTSTATUS_RESERVED PatchedWritableIPRangeRequestStatus = "reserved"
+ PATCHEDWRITABLEIPRANGEREQUESTSTATUS_ACTIVE PatchedWritableIPRangeRequestStatus = "active"
+ PATCHEDWRITABLEIPRANGEREQUESTSTATUS_RESERVED PatchedWritableIPRangeRequestStatus = "reserved"
PATCHEDWRITABLEIPRANGEREQUESTSTATUS_DEPRECATED PatchedWritableIPRangeRequestStatus = "deprecated"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableIPRangeRequestStatus) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go
index efa8ac461..08cedbd2d 100644
--- a/model_patched_writable_ip_sec_policy_request.go
+++ b/model_patched_writable_ip_sec_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableIPSecPolicyRequest{}
// PatchedWritableIPSecPolicyRequest Adds support for custom fields and tags.
type PatchedWritableIPSecPolicyRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -176,6 +176,7 @@ func (o *PatchedWritableIPSecPolicyRequest) HasPfsGroup() bool {
func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) {
o.PfsGroup.Set(&v)
}
+
// SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroupNil() {
o.PfsGroup.Set(nil)
@@ -283,7 +284,7 @@ func (o *PatchedWritableIPSecPolicyRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -383,5 +384,3 @@ func (v *NullablePatchedWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go
index 232ebad70..b748eff5d 100644
--- a/model_patched_writable_ip_sec_policy_request_pfs_group.go
+++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PatchedWritableIPSecPolicyRequestPfsGroup int32
// List of PatchedWritableIPSecPolicyRequest_pfs_group
const (
- PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__1 PatchedWritableIPSecPolicyRequestPfsGroup = 1
- PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__2 PatchedWritableIPSecPolicyRequestPfsGroup = 2
- PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__5 PatchedWritableIPSecPolicyRequestPfsGroup = 5
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__1 PatchedWritableIPSecPolicyRequestPfsGroup = 1
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__2 PatchedWritableIPSecPolicyRequestPfsGroup = 2
+ PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__5 PatchedWritableIPSecPolicyRequestPfsGroup = 5
PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__14 PatchedWritableIPSecPolicyRequestPfsGroup = 14
PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__15 PatchedWritableIPSecPolicyRequestPfsGroup = 15
PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__16 PatchedWritableIPSecPolicyRequestPfsGroup = 16
@@ -152,4 +152,3 @@ func (v *NullablePatchedWritableIPSecPolicyRequestPfsGroup) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go
index aad2b4931..91be4ead1 100644
--- a/model_patched_writable_ip_sec_profile_request.go
+++ b/model_patched_writable_ip_sec_profile_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{}
// PatchedWritableIPSecProfileRequest Adds support for custom fields and tags.
type PatchedWritableIPSecProfileRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *IPSecProfileModeValue `json:"mode,omitempty"`
- IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"`
- IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *IPSecProfileModeValue `json:"mode,omitempty"`
+ IkePolicy *IPSecProfileRequestIkePolicy `json:"ike_policy,omitempty"`
+ IpsecPolicy *IPSecProfileRequestIpsecPolicy `json:"ipsec_policy,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
}
// GetIkePolicy returns the IkePolicy field value if set, zero value otherwise.
-func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest {
+func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IPSecProfileRequestIkePolicy {
if o == nil || IsNil(o.IkePolicy) {
- var ret BriefIKEPolicyRequest
+ var ret IPSecProfileRequestIkePolicy
return ret
}
return *o.IkePolicy
@@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyReques
// 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() (*BriefIKEPolicyRequest, bool) {
+func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IPSecProfileRequestIkePolicy, bool) {
if o == nil || IsNil(o.IkePolicy) {
return nil, false
}
@@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool {
return false
}
-// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field.
-func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) {
+// SetIkePolicy gets a reference to the given IPSecProfileRequestIkePolicy and assigns it to the IkePolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IPSecProfileRequestIkePolicy) {
o.IkePolicy = &v
}
// GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise.
-func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest {
+func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecProfileRequestIpsecPolicy {
if o == nil || IsNil(o.IpsecPolicy) {
- var ret BriefIPSecPolicyRequest
+ var ret IPSecProfileRequestIpsecPolicy
return ret
}
return *o.IpsecPolicy
@@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRe
// 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() (*BriefIPSecPolicyRequest, bool) {
+func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecProfileRequestIpsecPolicy, bool) {
if o == nil || IsNil(o.IpsecPolicy) {
return nil, false
}
@@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool {
return false
}
-// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field.
-func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) {
+// SetIpsecPolicy gets a reference to the given IPSecProfileRequestIpsecPolicy and assigns it to the IpsecPolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecProfileRequestIpsecPolicy) {
o.IpsecPolicy = &v
}
@@ -306,7 +306,7 @@ func (o *PatchedWritableIPSecProfileRequest) SetCustomFields(v map[string]interf
}
func (o PatchedWritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -410,5 +410,3 @@ func (v *NullablePatchedWritableIPSecProfileRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go
index 362029759..158819d6e 100644
--- a/model_patched_writable_ip_sec_proposal_request.go
+++ b/model_patched_writable_ip_sec_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableIPSecProposalRequest{}
// PatchedWritableIPSecProposalRequest Adds support for custom fields and tags.
type PatchedWritableIPSecProposalRequest struct {
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"`
AuthenticationAlgorithm NullableAuthentication `json:"authentication_algorithm,omitempty"`
// Security association lifetime (seconds)
SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
// Security association lifetime (in kilobytes)
- SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -148,6 +148,7 @@ func (o *PatchedWritableIPSecProposalRequest) HasEncryptionAlgorithm() bool {
func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) {
o.EncryptionAlgorithm.Set(&v)
}
+
// SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil
func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithmNil() {
o.EncryptionAlgorithm.Set(nil)
@@ -190,6 +191,7 @@ func (o *PatchedWritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool
func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) {
o.AuthenticationAlgorithm.Set(&v)
}
+
// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil
func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithmNil() {
o.AuthenticationAlgorithm.Set(nil)
@@ -232,6 +234,7 @@ func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeSeconds() bool {
func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
o.SaLifetimeSeconds.Set(&v)
}
+
// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSecondsNil() {
o.SaLifetimeSeconds.Set(nil)
@@ -274,6 +277,7 @@ func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeData() bool {
func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeData(v int32) {
o.SaLifetimeData.Set(&v)
}
+
// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeDataNil() {
o.SaLifetimeData.Set(nil)
@@ -381,7 +385,7 @@ func (o *PatchedWritableIPSecProposalRequest) SetCustomFields(v map[string]inter
}
func (o PatchedWritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -489,5 +493,3 @@ func (v *NullablePatchedWritableIPSecProposalRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go
index 98a8d80a6..efb93b7e6 100644
--- a/model_patched_writable_journal_entry_request.go
+++ b/model_patched_writable_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableJournalEntryRequest{}
// PatchedWritableJournalEntryRequest Adds support for custom fields and tags.
type PatchedWritableJournalEntryRequest struct {
- AssignedObjectType *string `json:"assigned_object_type,omitempty"`
- AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- Kind *JournalEntryKindValue `json:"kind,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssignedObjectType *string `json:"assigned_object_type,omitempty"`
+ AssignedObjectId *int64 `json:"assigned_object_id,omitempty"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -144,6 +144,7 @@ func (o *PatchedWritableJournalEntryRequest) HasCreatedBy() bool {
func (o *PatchedWritableJournalEntryRequest) SetCreatedBy(v int32) {
o.CreatedBy.Set(&v)
}
+
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *PatchedWritableJournalEntryRequest) SetCreatedByNil() {
o.CreatedBy.Set(nil)
@@ -283,7 +284,7 @@ func (o *PatchedWritableJournalEntryRequest) SetCustomFields(v map[string]interf
}
func (o PatchedWritableJournalEntryRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -383,5 +384,3 @@ func (v *NullablePatchedWritableJournalEntryRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go
index f4702a297..4306a585e 100644
--- a/model_patched_writable_l2_vpn_request.go
+++ b/model_patched_writable_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,18 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type *BriefL2VPNTypeValue `json:"type,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type *BriefL2VPNTypeValue `json:"type,omitempty"`
+ Status *L2VPNStatusValue `json:"status,omitempty"`
+ ImportTargets []int32 `json:"import_targets,omitempty"`
+ ExportTargets []int32 `json:"export_targets,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,6 +85,7 @@ func (o *PatchedWritableL2VPNRequest) HasIdentifier() bool {
func (o *PatchedWritableL2VPNRequest) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *PatchedWritableL2VPNRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -190,6 +192,38 @@ func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) {
o.Type = &v
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *PatchedWritableL2VPNRequest) GetStatus() L2VPNStatusValue {
+ if o == nil || IsNil(o.Status) {
+ var ret L2VPNStatusValue
+ 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 *PatchedWritableL2VPNRequest) GetStatusOk() (*L2VPNStatusValue, 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 *PatchedWritableL2VPNRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given L2VPNStatusValue and assigns it to the Status field.
+func (o *PatchedWritableL2VPNRequest) SetStatus(v L2VPNStatusValue) {
+ o.Status = &v
+}
+
// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
func (o *PatchedWritableL2VPNRequest) GetImportTargets() []int32 {
if o == nil || IsNil(o.ImportTargets) {
@@ -319,9 +353,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableL2VPNRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -330,7 +364,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -346,10 +380,11 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableL2VPNRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableL2VPNRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -425,7 +460,7 @@ func (o *PatchedWritableL2VPNRequest) SetCustomFields(v map[string]interface{})
}
func (o PatchedWritableL2VPNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -446,6 +481,9 @@ func (o PatchedWritableL2VPNRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.ImportTargets) {
toSerialize["import_targets"] = o.ImportTargets
}
@@ -493,6 +531,7 @@ func (o *PatchedWritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "import_targets")
delete(additionalProperties, "export_targets")
delete(additionalProperties, "description")
@@ -541,5 +580,3 @@ func (v *NullablePatchedWritableL2VPNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go
index 0c12b37c3..e200b7fe7 100644
--- a/model_patched_writable_location_request.go
+++ b/model_patched_writable_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,18 @@ var _ MappedNullable = &PatchedWritableLocationRequest{}
// PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableLocationRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Site *BriefSiteRequest `json:"site,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Site *DeviceWithConfigContextRequestSite `json:"site,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -117,9 +118,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest {
+func (o *PatchedWritableLocationRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil || IsNil(o.Site) {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
return *o.Site
@@ -127,7 +128,7 @@ func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedWritableLocationRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -143,8 +144,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field.
-func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given DeviceWithConfigContextRequestSite and assigns it to the Site field.
+func (o *PatchedWritableLocationRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = &v
}
@@ -180,6 +181,7 @@ func (o *PatchedWritableLocationRequest) HasParent() bool {
func (o *PatchedWritableLocationRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableLocationRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -223,9 +225,9 @@ func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableLocationRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -234,7 +236,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableLocationRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -250,10 +252,11 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableLocationRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableLocationRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -392,8 +395,40 @@ func (o *PatchedWritableLocationRequest) SetCustomFields(v map[string]interface{
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableLocationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -432,6 +467,9 @@ func (o PatchedWritableLocationRequest) ToMap() (map[string]interface{}, error)
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -464,6 +502,7 @@ func (o *PatchedWritableLocationRequest) UnmarshalJSON(data []byte) (err error)
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -505,5 +544,3 @@ func (v *NullablePatchedWritableLocationRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go
index eece2b0d6..4aea62597 100644
--- a/model_patched_writable_module_request.go
+++ b/model_patched_writable_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleRequest{}
// PatchedWritableModuleRequest Adds support for custom fields and tags.
type PatchedWritableModuleRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- ModuleBay *int32 `json:"module_bay,omitempty"`
- ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ ModuleBay *int32 `json:"module_bay,omitempty"`
+ ModuleType *ModuleRequestModuleType `json:"module_type,omitempty"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableModuleRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableModuleRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
@@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise.
-func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableModuleRequest) GetModuleType() ModuleRequestModuleType {
if o == nil || IsNil(o.ModuleType) {
- var ret BriefModuleTypeRequest
+ var ret ModuleRequestModuleType
return ret
}
return *o.ModuleType
@@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleRequestModuleType, bool) {
if o == nil || IsNil(o.ModuleType) {
return nil, false
}
@@ -143,8 +143,8 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given ModuleRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleRequestModuleType) {
o.ModuleType = &v
}
@@ -244,6 +244,7 @@ func (o *PatchedWritableModuleRequest) HasAssetTag() bool {
func (o *PatchedWritableModuleRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *PatchedWritableModuleRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -383,7 +384,7 @@ func (o *PatchedWritableModuleRequest) SetCustomFields(v map[string]interface{})
}
func (o PatchedWritableModuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -495,5 +496,3 @@ func (v *NullablePatchedWritableModuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go
index 5868b052b..4e7a6eff2 100644
--- a/model_patched_writable_module_type_request.go
+++ b/model_patched_writable_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,19 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{}
// PatchedWritableModuleTypeRequest Adds support for custom fields and tags.
type PatchedWritableModuleTypeRequest struct {
- Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"`
- Model *string `json:"model,omitempty"`
+ Profile NullableBriefModuleTypeRequestProfile `json:"profile,omitempty"`
+ Manufacturer *BriefDeviceTypeRequestManufacturer `json:"manufacturer,omitempty"`
+ Model *string `json:"model,omitempty"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Attributes interface{} `json:"attributes,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,10 +54,53 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp
return &this
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableModuleTypeRequest) GetProfile() BriefModuleTypeRequestProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeRequestProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableModuleTypeRequest) GetProfileOk() (*BriefModuleTypeRequestProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *PatchedWritableModuleTypeRequest) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeRequestProfile and assigns it to the Profile field.
+func (o *PatchedWritableModuleTypeRequest) SetProfile(v BriefModuleTypeRequestProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *PatchedWritableModuleTypeRequest) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *PatchedWritableModuleTypeRequest) UnsetProfile() {
+ o.Profile.Unset()
+}
+
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
-func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil || IsNil(o.Manufacturer) {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
return *o.Manufacturer
@@ -63,7 +108,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRe
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil || IsNil(o.Manufacturer) {
return nil, false
}
@@ -79,8 +124,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given BriefDeviceTypeRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = &v
}
@@ -180,6 +225,7 @@ func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool {
func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *PatchedWritableModuleTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -222,6 +268,7 @@ func (o *PatchedWritableModuleTypeRequest) HasWeight() bool {
func (o *PatchedWritableModuleTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *PatchedWritableModuleTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -264,6 +311,7 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool {
func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *PatchedWritableModuleTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -306,6 +354,39 @@ func (o *PatchedWritableModuleTypeRequest) SetDescription(v string) {
o.Description = &v
}
+// GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableModuleTypeRequest) GetAttributes() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Attributes
+}
+
+// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableModuleTypeRequest) GetAttributesOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Attributes) {
+ return nil, false
+ }
+ return &o.Attributes, true
+}
+
+// HasAttributes returns a boolean if a field has been set.
+func (o *PatchedWritableModuleTypeRequest) HasAttributes() bool {
+ if o != nil && !IsNil(o.Attributes) {
+ return true
+ }
+
+ return false
+}
+
+// SetAttributes gets a reference to the given interface{} and assigns it to the Attributes field.
+func (o *PatchedWritableModuleTypeRequest) SetAttributes(v interface{}) {
+ o.Attributes = v
+}
+
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *PatchedWritableModuleTypeRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -403,7 +484,7 @@ func (o *PatchedWritableModuleTypeRequest) SetCustomFields(v map[string]interfac
}
func (o PatchedWritableModuleTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -412,6 +493,9 @@ func (o PatchedWritableModuleTypeRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
if !IsNil(o.Manufacturer) {
toSerialize["manufacturer"] = o.Manufacturer
}
@@ -433,6 +517,9 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.Attributes != nil {
+ toSerialize["attributes"] = o.Attributes
+ }
if !IsNil(o.Comments) {
toSerialize["comments"] = o.Comments
}
@@ -464,6 +551,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
@@ -471,6 +559,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error
delete(additionalProperties, "weight")
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "description")
+ delete(additionalProperties, "attributes")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -515,5 +604,3 @@ func (v *NullablePatchedWritableModuleTypeRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go
index fcb83caa1..60f09a6df 100644
--- a/model_patched_writable_power_feed_request.go
+++ b/model_patched_writable_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,24 +19,24 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{}
// PatchedWritablePowerFeedRequest Adds support for custom fields and tags.
type PatchedWritablePowerFeedRequest struct {
- PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Name *string `json:"name,omitempty"`
- Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
- Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
- Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
- Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel *PatchedWritablePowerFeedRequestPowerPanel `json:"power_panel,omitempty"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR
}
// GetPowerPanel returns the PowerPanel field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest {
+func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PatchedWritablePowerFeedRequestPowerPanel {
if o == nil || IsNil(o.PowerPanel) {
- var ret BriefPowerPanelRequest
+ var ret PatchedWritablePowerFeedRequestPowerPanel
return ret
}
return *o.PowerPanel
@@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest
// GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PatchedWritablePowerFeedRequestPowerPanel, bool) {
if o == nil || IsNil(o.PowerPanel) {
return nil, false
}
@@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool {
return false
}
-// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field.
-func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) {
+// SetPowerPanel gets a reference to the given PatchedWritablePowerFeedRequestPowerPanel and assigns it to the PowerPanel field.
+func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PatchedWritablePowerFeedRequestPowerPanel) {
o.PowerPanel = &v
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest {
+func (o *PatchedWritablePowerFeedRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -119,10 +119,11 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *PatchedWritablePowerFeedRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *PatchedWritablePowerFeedRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -454,9 +455,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritablePowerFeedRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -465,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -481,10 +482,11 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritablePowerFeedRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritablePowerFeedRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -592,7 +594,7 @@ func (o *PatchedWritablePowerFeedRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritablePowerFeedRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -728,5 +730,3 @@ func (v *NullablePatchedWritablePowerFeedRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go
index cb1d8fea6..64d6bc119 100644
--- a/model_patched_writable_power_feed_request_phase.go
+++ b/model_patched_writable_power_feed_request_phase.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type PatchedWritablePowerFeedRequestPhase string
// List of PatchedWritablePowerFeedRequest_phase
const (
PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_SINGLE_PHASE PatchedWritablePowerFeedRequestPhase = "single-phase"
- PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_THREE_PHASE PatchedWritablePowerFeedRequestPhase = "three-phase"
+ PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_THREE_PHASE PatchedWritablePowerFeedRequestPhase = "three-phase"
)
// All allowed values of PatchedWritablePowerFeedRequestPhase enum
@@ -108,4 +108,3 @@ func (v *NullablePatchedWritablePowerFeedRequestPhase) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_feed_request_power_panel.go b/model_patched_writable_power_feed_request_power_panel.go
new file mode 100644
index 000000000..fe0d7e0df
--- /dev/null
+++ b/model_patched_writable_power_feed_request_power_panel.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritablePowerFeedRequestPowerPanel - struct for PatchedWritablePowerFeedRequestPowerPanel
+type PatchedWritablePowerFeedRequestPowerPanel struct {
+ BriefPowerPanelRequest *BriefPowerPanelRequest
+ Int32 *int32
+}
+
+// BriefPowerPanelRequestAsPatchedWritablePowerFeedRequestPowerPanel is a convenience function that returns BriefPowerPanelRequest wrapped in PatchedWritablePowerFeedRequestPowerPanel
+func BriefPowerPanelRequestAsPatchedWritablePowerFeedRequestPowerPanel(v *BriefPowerPanelRequest) PatchedWritablePowerFeedRequestPowerPanel {
+ return PatchedWritablePowerFeedRequestPowerPanel{
+ BriefPowerPanelRequest: v,
+ }
+}
+
+// int32AsPatchedWritablePowerFeedRequestPowerPanel is a convenience function that returns int32 wrapped in PatchedWritablePowerFeedRequestPowerPanel
+func Int32AsPatchedWritablePowerFeedRequestPowerPanel(v *int32) PatchedWritablePowerFeedRequestPowerPanel {
+ return PatchedWritablePowerFeedRequestPowerPanel{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritablePowerFeedRequestPowerPanel) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefPowerPanelRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefPowerPanelRequest)
+ if err == nil {
+ jsonBriefPowerPanelRequest, _ := json.Marshal(dst.BriefPowerPanelRequest)
+ if string(jsonBriefPowerPanelRequest) == "{}" { // empty struct
+ dst.BriefPowerPanelRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefPowerPanelRequest); err != nil {
+ dst.BriefPowerPanelRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefPowerPanelRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefPowerPanelRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritablePowerFeedRequestPowerPanel)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritablePowerFeedRequestPowerPanel)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritablePowerFeedRequestPowerPanel) MarshalJSON() ([]byte, error) {
+ if src.BriefPowerPanelRequest != nil {
+ return json.Marshal(&src.BriefPowerPanelRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritablePowerFeedRequestPowerPanel) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefPowerPanelRequest != nil {
+ return obj.BriefPowerPanelRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritablePowerFeedRequestPowerPanel struct {
+ value *PatchedWritablePowerFeedRequestPowerPanel
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPowerPanel) Get() *PatchedWritablePowerFeedRequestPowerPanel {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPowerPanel) Set(val *PatchedWritablePowerFeedRequestPowerPanel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPowerPanel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPowerPanel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerFeedRequestPowerPanel(val *PatchedWritablePowerFeedRequestPowerPanel) *NullablePatchedWritablePowerFeedRequestPowerPanel {
+ return &NullablePatchedWritablePowerFeedRequestPowerPanel{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerFeedRequestPowerPanel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerFeedRequestPowerPanel) 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
index 3079dc357..5da4f0c0f 100644
--- a/model_patched_writable_power_feed_request_status.go
+++ b/model_patched_writable_power_feed_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ type PatchedWritablePowerFeedRequestStatus string
// List of PatchedWritablePowerFeedRequest_status
const (
PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_OFFLINE PatchedWritablePowerFeedRequestStatus = "offline"
- PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_ACTIVE PatchedWritablePowerFeedRequestStatus = "active"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_ACTIVE PatchedWritablePowerFeedRequestStatus = "active"
PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_PLANNED PatchedWritablePowerFeedRequestStatus = "planned"
- PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_FAILED PatchedWritablePowerFeedRequestStatus = "failed"
+ PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_FAILED PatchedWritablePowerFeedRequestStatus = "failed"
)
// All allowed values of PatchedWritablePowerFeedRequestStatus enum
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritablePowerFeedRequestStatus) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go
index e0c039ad0..18dfb812e 100644
--- a/model_patched_writable_power_feed_request_supply.go
+++ b/model_patched_writable_power_feed_request_supply.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullablePatchedWritablePowerFeedRequestSupply) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go
index d32c590b3..db5d6a6ae 100644
--- a/model_patched_writable_power_feed_request_type.go
+++ b/model_patched_writable_power_feed_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type PatchedWritablePowerFeedRequestType string
// List of PatchedWritablePowerFeedRequest_type
const (
- PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_PRIMARY PatchedWritablePowerFeedRequestType = "primary"
+ PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_PRIMARY PatchedWritablePowerFeedRequestType = "primary"
PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_REDUNDANT PatchedWritablePowerFeedRequestType = "redundant"
)
@@ -108,4 +108,3 @@ func (v *NullablePatchedWritablePowerFeedRequestType) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go
index eb3972b1f..ed2283340 100644
--- a/model_patched_writable_power_outlet_request.go
+++ b/model_patched_writable_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,21 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{}
// PatchedWritablePowerOutletRequest Adds support for custom fields and tags.
type PatchedWritablePowerOutletRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"`
- FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"`
+ Status *PatchedWritablePowerOutletRequestStatus `json:"status,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ PowerPort NullablePatchedWritablePowerOutletRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +57,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -66,7 +67,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -82,15 +83,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritablePowerOutletRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -99,7 +100,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -115,10 +116,11 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritablePowerOutletRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritablePowerOutletRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -225,6 +227,7 @@ func (o *PatchedWritablePowerOutletRequest) HasType() bool {
func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritablePowerOutletRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -235,6 +238,38 @@ func (o *PatchedWritablePowerOutletRequest) UnsetType() {
o.Type.Unset()
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *PatchedWritablePowerOutletRequest) GetStatus() PatchedWritablePowerOutletRequestStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PatchedWritablePowerOutletRequestStatus
+ 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 *PatchedWritablePowerOutletRequest) GetStatusOk() (*PatchedWritablePowerOutletRequestStatus, 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 *PatchedWritablePowerOutletRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PatchedWritablePowerOutletRequestStatus and assigns it to the Status field.
+func (o *PatchedWritablePowerOutletRequest) SetStatus(v PatchedWritablePowerOutletRequestStatus) {
+ o.Status = &v
+}
+
// GetColor returns the Color field value if set, zero value otherwise.
func (o *PatchedWritablePowerOutletRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -268,9 +303,9 @@ func (o *PatchedWritablePowerOutletRequest) SetColor(v string) {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest {
+func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PatchedWritablePowerOutletRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortRequest
+ var ret PatchedWritablePowerOutletRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -279,7 +314,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PatchedWritablePowerOutletRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -295,10 +330,11 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field.
-func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletRequestPowerPort and assigns it to the PowerPort field.
+func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PatchedWritablePowerOutletRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PatchedWritablePowerOutletRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -341,6 +377,7 @@ func (o *PatchedWritablePowerOutletRequest) HasFeedLeg() bool {
func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PatchedWritablePowerOutletRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -480,7 +517,7 @@ func (o *PatchedWritablePowerOutletRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritablePowerOutletRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -504,6 +541,9 @@ func (o PatchedWritablePowerOutletRequest) ToMap() (map[string]interface{}, erro
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.Color) {
toSerialize["color"] = o.Color
}
@@ -552,6 +592,7 @@ func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(data []byte) (err erro
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "color")
delete(additionalProperties, "power_port")
delete(additionalProperties, "feed_leg")
@@ -600,5 +641,3 @@ func (v *NullablePatchedWritablePowerOutletRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go
index c2bc6ab2f..3e5b9dab5 100644
--- a/model_patched_writable_power_outlet_request_feed_leg.go
+++ b/model_patched_writable_power_outlet_request_feed_leg.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PatchedWritablePowerOutletRequestFeedLeg string
// List of PatchedWritablePowerOutletRequest_feed_leg
const (
- PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_A PatchedWritablePowerOutletRequestFeedLeg = "A"
- PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_B PatchedWritablePowerOutletRequestFeedLeg = "B"
- PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_C PatchedWritablePowerOutletRequestFeedLeg = "C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_A PatchedWritablePowerOutletRequestFeedLeg = "A"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_B PatchedWritablePowerOutletRequestFeedLeg = "B"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_C PatchedWritablePowerOutletRequestFeedLeg = "C"
PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_EMPTY PatchedWritablePowerOutletRequestFeedLeg = ""
)
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritablePowerOutletRequestFeedLeg) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_outlet_request_power_port.go b/model_patched_writable_power_outlet_request_power_port.go
new file mode 100644
index 000000000..263382281
--- /dev/null
+++ b/model_patched_writable_power_outlet_request_power_port.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritablePowerOutletRequestPowerPort - struct for PatchedWritablePowerOutletRequestPowerPort
+type PatchedWritablePowerOutletRequestPowerPort struct {
+ BriefPowerPortRequest *BriefPowerPortRequest
+ Int32 *int32
+}
+
+// BriefPowerPortRequestAsPatchedWritablePowerOutletRequestPowerPort is a convenience function that returns BriefPowerPortRequest wrapped in PatchedWritablePowerOutletRequestPowerPort
+func BriefPowerPortRequestAsPatchedWritablePowerOutletRequestPowerPort(v *BriefPowerPortRequest) PatchedWritablePowerOutletRequestPowerPort {
+ return PatchedWritablePowerOutletRequestPowerPort{
+ BriefPowerPortRequest: v,
+ }
+}
+
+// int32AsPatchedWritablePowerOutletRequestPowerPort is a convenience function that returns int32 wrapped in PatchedWritablePowerOutletRequestPowerPort
+func Int32AsPatchedWritablePowerOutletRequestPowerPort(v *int32) PatchedWritablePowerOutletRequestPowerPort {
+ return PatchedWritablePowerOutletRequestPowerPort{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritablePowerOutletRequestPowerPort) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefPowerPortRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefPowerPortRequest)
+ if err == nil {
+ jsonBriefPowerPortRequest, _ := json.Marshal(dst.BriefPowerPortRequest)
+ if string(jsonBriefPowerPortRequest) == "{}" { // empty struct
+ dst.BriefPowerPortRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefPowerPortRequest); err != nil {
+ dst.BriefPowerPortRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefPowerPortRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefPowerPortRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritablePowerOutletRequestPowerPort)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritablePowerOutletRequestPowerPort)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritablePowerOutletRequestPowerPort) MarshalJSON() ([]byte, error) {
+ if src.BriefPowerPortRequest != nil {
+ return json.Marshal(&src.BriefPowerPortRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritablePowerOutletRequestPowerPort) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefPowerPortRequest != nil {
+ return obj.BriefPowerPortRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritablePowerOutletRequestPowerPort struct {
+ value *PatchedWritablePowerOutletRequestPowerPort
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletRequestPowerPort) Get() *PatchedWritablePowerOutletRequestPowerPort {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestPowerPort) Set(val *PatchedWritablePowerOutletRequestPowerPort) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletRequestPowerPort) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestPowerPort) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletRequestPowerPort(val *PatchedWritablePowerOutletRequestPowerPort) *NullablePatchedWritablePowerOutletRequestPowerPort {
+ return &NullablePatchedWritablePowerOutletRequestPowerPort{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletRequestPowerPort) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestPowerPort) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_outlet_request_status.go b/model_patched_writable_power_outlet_request_status.go
new file mode 100644
index 000000000..ea2f82978
--- /dev/null
+++ b/model_patched_writable_power_outlet_request_status.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritablePowerOutletRequestStatus * `enabled` - Enabled * `disabled` - Disabled * `faulty` - Faulty
+type PatchedWritablePowerOutletRequestStatus string
+
+// List of PatchedWritablePowerOutletRequest_status
+const (
+ PATCHEDWRITABLEPOWEROUTLETREQUESTSTATUS_ENABLED PatchedWritablePowerOutletRequestStatus = "enabled"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTSTATUS_DISABLED PatchedWritablePowerOutletRequestStatus = "disabled"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTSTATUS_FAULTY PatchedWritablePowerOutletRequestStatus = "faulty"
+)
+
+// All allowed values of PatchedWritablePowerOutletRequestStatus enum
+var AllowedPatchedWritablePowerOutletRequestStatusEnumValues = []PatchedWritablePowerOutletRequestStatus{
+ "enabled",
+ "disabled",
+ "faulty",
+}
+
+func (v *PatchedWritablePowerOutletRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritablePowerOutletRequestStatus(value)
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritablePowerOutletRequestStatus", value)
+}
+
+// NewPatchedWritablePowerOutletRequestStatusFromValue returns a pointer to a valid PatchedWritablePowerOutletRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritablePowerOutletRequestStatusFromValue(v string) (*PatchedWritablePowerOutletRequestStatus, error) {
+ ev := PatchedWritablePowerOutletRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritablePowerOutletRequestStatus: valid values are %v", v, AllowedPatchedWritablePowerOutletRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritablePowerOutletRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritablePowerOutletRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritablePowerOutletRequest_status value
+func (v PatchedWritablePowerOutletRequestStatus) Ptr() *PatchedWritablePowerOutletRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritablePowerOutletRequestStatus struct {
+ value *PatchedWritablePowerOutletRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletRequestStatus) Get() *PatchedWritablePowerOutletRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestStatus) Set(val *PatchedWritablePowerOutletRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletRequestStatus(val *PatchedWritablePowerOutletRequestStatus) *NullablePatchedWritablePowerOutletRequestStatus {
+ return &NullablePatchedWritablePowerOutletRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletRequestStatus) 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
index fcbc01d98..5eb278468 100644
--- a/model_patched_writable_power_outlet_request_type.go
+++ b/model_patched_writable_power_outlet_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,105 +20,105 @@ 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_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8164_C PatchedWritablePowerOutletRequestType = "CS8164C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8264_C PatchedWritablePowerOutletRequestType = "CS8264C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8364_C PatchedWritablePowerOutletRequestType = "CS8364C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8464_C PatchedWritablePowerOutletRequestType = "CS8464C"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_E PatchedWritablePowerOutletRequestType = "ita-e"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_F PatchedWritablePowerOutletRequestType = "ita-f"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_G PatchedWritablePowerOutletRequestType = "ita-g"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_H PatchedWritablePowerOutletRequestType = "ita-h"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_I PatchedWritablePowerOutletRequestType = "ita-i"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_J PatchedWritablePowerOutletRequestType = "ita-j"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_K PatchedWritablePowerOutletRequestType = "ita-k"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_L PatchedWritablePowerOutletRequestType = "ita-l"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_M PatchedWritablePowerOutletRequestType = "ita-m"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_N PatchedWritablePowerOutletRequestType = "ita-n"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_O PatchedWritablePowerOutletRequestType = "ita-o"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletRequestType = "ita-multistandard"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_A PatchedWritablePowerOutletRequestType = "usb-a"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletRequestType = "usb-micro-b"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_C PatchedWritablePowerOutletRequestType = "usb-c"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-1x2"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x2"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x4"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletRequestType = "eaton-c39"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletRequestType = "neutrik-powercon-32a"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletRequestType = "iec-60320-c5"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletRequestType = "iec-60320-c7"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletRequestType = "iec-60320-c13"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletRequestType = "iec-60320-c15"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletRequestType = "iec-60320-c19"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletRequestType = "iec-60320-c21"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletRequestType = "nema-1-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletRequestType = "nema-5-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletRequestType = "nema-5-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletRequestType = "nema-5-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletRequestType = "nema-5-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletRequestType = "nema-6-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletRequestType = "nema-6-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletRequestType = "nema-6-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletRequestType = "nema-6-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletRequestType = "nema-10-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletRequestType = "nema-10-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletRequestType = "nema-14-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletRequestType = "nema-14-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletRequestType = "nema-14-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletRequestType = "nema-14-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletRequestType = "nema-15-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletRequestType = "nema-15-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletRequestType = "nema-15-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletRequestType = "nema-15-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletRequestType = "nema-15-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletRequestType = "nema-l1-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletRequestType = "nema-l5-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletRequestType = "nema-l5-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletRequestType = "nema-l5-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletRequestType = "nema-l5-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletRequestType = "nema-l6-15r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletRequestType = "nema-l6-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletRequestType = "nema-l6-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletRequestType = "nema-l6-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletRequestType = "nema-l10-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletRequestType = "nema-l14-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletRequestType = "nema-l14-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletRequestType = "nema-l14-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletRequestType = "nema-l14-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletRequestType = "nema-l15-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletRequestType = "nema-l15-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletRequestType = "nema-l15-50r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8164_C PatchedWritablePowerOutletRequestType = "CS8164C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8264_C PatchedWritablePowerOutletRequestType = "CS8264C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8364_C PatchedWritablePowerOutletRequestType = "CS8364C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8464_C PatchedWritablePowerOutletRequestType = "CS8464C"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_E PatchedWritablePowerOutletRequestType = "ita-e"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_F PatchedWritablePowerOutletRequestType = "ita-f"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_G PatchedWritablePowerOutletRequestType = "ita-g"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_H PatchedWritablePowerOutletRequestType = "ita-h"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_I PatchedWritablePowerOutletRequestType = "ita-i"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_J PatchedWritablePowerOutletRequestType = "ita-j"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_K PatchedWritablePowerOutletRequestType = "ita-k"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_L PatchedWritablePowerOutletRequestType = "ita-l"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_M PatchedWritablePowerOutletRequestType = "ita-m"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_N PatchedWritablePowerOutletRequestType = "ita-n"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_O PatchedWritablePowerOutletRequestType = "ita-o"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletRequestType = "ita-multistandard"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_A PatchedWritablePowerOutletRequestType = "usb-a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_C PatchedWritablePowerOutletRequestType = "usb-c"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-1x2"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x2"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x4"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletRequestType = "eaton-c39"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletRequestType = "neutrik-powercon-32a"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1"
PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1-top"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletRequestType = "ubiquiti-smartpower"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletRequestType = "hardwired"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_OTHER PatchedWritablePowerOutletRequestType = "other"
- PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EMPTY PatchedWritablePowerOutletRequestType = ""
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletRequestType = "hardwired"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_OTHER PatchedWritablePowerOutletRequestType = "other"
+ PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EMPTY PatchedWritablePowerOutletRequestType = ""
)
// All allowed values of PatchedWritablePowerOutletRequestType enum
@@ -302,4 +302,3 @@ func (v *NullablePatchedWritablePowerOutletRequestType) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go
index 92c17b415..c1175e14a 100644
--- a/model_patched_writable_power_outlet_template_request.go
+++ b/model_patched_writable_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{}
// PatchedWritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritablePowerOutletTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
- PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"`
- FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ PowerPort NullablePatchedWritablePowerOutletTemplateRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceT
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleT
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -231,6 +233,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasType() bool {
func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritablePowerOutletTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -242,9 +245,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetType() {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PatchedWritablePowerOutletTemplateRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortTemplateRequest
+ var ret PatchedWritablePowerOutletTemplateRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -253,7 +256,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPor
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PatchedWritablePowerOutletTemplateRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -269,10 +272,11 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestPowerPort and assigns it to the PowerPort field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PatchedWritablePowerOutletTemplateRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -315,6 +319,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasFeedLeg() bool {
func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -358,7 +363,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetDescription(v string) {
}
func (o PatchedWritablePowerOutletTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -462,5 +467,3 @@ func (v *NullablePatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_outlet_template_request_power_port.go b/model_patched_writable_power_outlet_template_request_power_port.go
new file mode 100644
index 000000000..33b16c342
--- /dev/null
+++ b/model_patched_writable_power_outlet_template_request_power_port.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritablePowerOutletTemplateRequestPowerPort - struct for PatchedWritablePowerOutletTemplateRequestPowerPort
+type PatchedWritablePowerOutletTemplateRequestPowerPort struct {
+ BriefPowerPortTemplateRequest *BriefPowerPortTemplateRequest
+ Int32 *int32
+}
+
+// BriefPowerPortTemplateRequestAsPatchedWritablePowerOutletTemplateRequestPowerPort is a convenience function that returns BriefPowerPortTemplateRequest wrapped in PatchedWritablePowerOutletTemplateRequestPowerPort
+func BriefPowerPortTemplateRequestAsPatchedWritablePowerOutletTemplateRequestPowerPort(v *BriefPowerPortTemplateRequest) PatchedWritablePowerOutletTemplateRequestPowerPort {
+ return PatchedWritablePowerOutletTemplateRequestPowerPort{
+ BriefPowerPortTemplateRequest: v,
+ }
+}
+
+// int32AsPatchedWritablePowerOutletTemplateRequestPowerPort is a convenience function that returns int32 wrapped in PatchedWritablePowerOutletTemplateRequestPowerPort
+func Int32AsPatchedWritablePowerOutletTemplateRequestPowerPort(v *int32) PatchedWritablePowerOutletTemplateRequestPowerPort {
+ return PatchedWritablePowerOutletTemplateRequestPowerPort{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritablePowerOutletTemplateRequestPowerPort) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefPowerPortTemplateRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefPowerPortTemplateRequest)
+ if err == nil {
+ jsonBriefPowerPortTemplateRequest, _ := json.Marshal(dst.BriefPowerPortTemplateRequest)
+ if string(jsonBriefPowerPortTemplateRequest) == "{}" { // empty struct
+ dst.BriefPowerPortTemplateRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefPowerPortTemplateRequest); err != nil {
+ dst.BriefPowerPortTemplateRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefPowerPortTemplateRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefPowerPortTemplateRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritablePowerOutletTemplateRequestPowerPort)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritablePowerOutletTemplateRequestPowerPort)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritablePowerOutletTemplateRequestPowerPort) MarshalJSON() ([]byte, error) {
+ if src.BriefPowerPortTemplateRequest != nil {
+ return json.Marshal(&src.BriefPowerPortTemplateRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritablePowerOutletTemplateRequestPowerPort) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefPowerPortTemplateRequest != nil {
+ return obj.BriefPowerPortTemplateRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritablePowerOutletTemplateRequestPowerPort struct {
+ value *PatchedWritablePowerOutletTemplateRequestPowerPort
+ isSet bool
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestPowerPort) Get() *PatchedWritablePowerOutletTemplateRequestPowerPort {
+ return v.value
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestPowerPort) Set(val *PatchedWritablePowerOutletTemplateRequestPowerPort) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestPowerPort) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestPowerPort) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritablePowerOutletTemplateRequestPowerPort(val *PatchedWritablePowerOutletTemplateRequestPowerPort) *NullablePatchedWritablePowerOutletTemplateRequestPowerPort {
+ return &NullablePatchedWritablePowerOutletTemplateRequestPowerPort{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritablePowerOutletTemplateRequestPowerPort) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritablePowerOutletTemplateRequestPowerPort) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go
index 2eb9ee171..1289aeedc 100644
--- a/model_patched_writable_power_outlet_template_request_type.go
+++ b/model_patched_writable_power_outlet_template_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,105 +20,105 @@ 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_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8164_C PatchedWritablePowerOutletTemplateRequestType = "CS8164C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8264_C PatchedWritablePowerOutletTemplateRequestType = "CS8264C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8364_C PatchedWritablePowerOutletTemplateRequestType = "CS8364C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8464_C PatchedWritablePowerOutletTemplateRequestType = "CS8464C"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerOutletTemplateRequestType = "ita-e"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerOutletTemplateRequestType = "ita-f"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerOutletTemplateRequestType = "ita-g"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerOutletTemplateRequestType = "ita-h"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerOutletTemplateRequestType = "ita-i"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerOutletTemplateRequestType = "ita-j"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerOutletTemplateRequestType = "ita-k"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerOutletTemplateRequestType = "ita-l"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerOutletTemplateRequestType = "ita-m"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerOutletTemplateRequestType = "ita-n"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerOutletTemplateRequestType = "ita-o"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletTemplateRequestType = "ita-multistandard"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerOutletTemplateRequestType = "usb-a"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletTemplateRequestType = "usb-micro-b"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerOutletTemplateRequestType = "usb-c"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-1x2"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x2"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x4"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletTemplateRequestType = "eaton-c39"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-32a"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c5"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c7"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c13"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c15"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c19"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c21"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletTemplateRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-1-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-5-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-5-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-5-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-5-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-6-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-6-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-6-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-6-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-10-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletTemplateRequestType = "nema-10-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-14-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-14-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-14-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-14-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletTemplateRequestType = "nema-15-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-15-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-15-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-15-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-15-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l1-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-15r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l10-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-50r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8164_C PatchedWritablePowerOutletTemplateRequestType = "CS8164C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8264_C PatchedWritablePowerOutletTemplateRequestType = "CS8264C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8364_C PatchedWritablePowerOutletTemplateRequestType = "CS8364C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8464_C PatchedWritablePowerOutletTemplateRequestType = "CS8464C"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerOutletTemplateRequestType = "ita-e"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerOutletTemplateRequestType = "ita-f"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerOutletTemplateRequestType = "ita-g"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerOutletTemplateRequestType = "ita-h"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerOutletTemplateRequestType = "ita-i"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerOutletTemplateRequestType = "ita-j"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerOutletTemplateRequestType = "ita-k"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerOutletTemplateRequestType = "ita-l"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerOutletTemplateRequestType = "ita-m"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerOutletTemplateRequestType = "ita-n"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerOutletTemplateRequestType = "ita-o"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletTemplateRequestType = "ita-multistandard"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerOutletTemplateRequestType = "usb-a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletTemplateRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerOutletTemplateRequestType = "usb-c"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-1x2"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x2"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x4"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletTemplateRequestType = "eaton-c39"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-32a"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1"
PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1-top"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletTemplateRequestType = "ubiquiti-smartpower"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletTemplateRequestType = "hardwired"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerOutletTemplateRequestType = "other"
- PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerOutletTemplateRequestType = ""
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletTemplateRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletTemplateRequestType = "hardwired"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerOutletTemplateRequestType = "other"
+ PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerOutletTemplateRequestType = ""
)
// All allowed values of PatchedWritablePowerOutletTemplateRequestType enum
@@ -302,4 +302,3 @@ func (v *NullablePatchedWritablePowerOutletTemplateRequestType) UnmarshalJSON(sr
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go
index fd3d74740..d055ce5f2 100644
--- a/model_patched_writable_power_port_request.go
+++ b/model_patched_writable_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{}
// PatchedWritablePowerPortRequest Adds support for custom fields and tags.
type PatchedWritablePowerPortRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritablePowerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritablePowerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -116,10 +116,11 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritablePowerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritablePowerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -226,6 +227,7 @@ func (o *PatchedWritablePowerPortRequest) HasType() bool {
func (o *PatchedWritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritablePowerPortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -268,6 +270,7 @@ func (o *PatchedWritablePowerPortRequest) HasMaximumDraw() bool {
func (o *PatchedWritablePowerPortRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PatchedWritablePowerPortRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -310,6 +313,7 @@ func (o *PatchedWritablePowerPortRequest) HasAllocatedDraw() bool {
func (o *PatchedWritablePowerPortRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PatchedWritablePowerPortRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -449,7 +453,7 @@ func (o *PatchedWritablePowerPortRequest) SetCustomFields(v map[string]interface
}
func (o PatchedWritablePowerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -565,5 +569,3 @@ func (v *NullablePatchedWritablePowerPortRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go
index c56b4ed9b..1faec0f89 100644
--- a/model_patched_writable_power_port_request_type.go
+++ b/model_patched_writable_power_port_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,111 +20,111 @@ 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_20P PatchedWritablePowerPortRequestType = "nema-l22-20p"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8165C PatchedWritablePowerPortRequestType = "cs8165c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8265C PatchedWritablePowerPortRequestType = "cs8265c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8365C PatchedWritablePowerPortRequestType = "cs8365c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8465C PatchedWritablePowerPortRequestType = "cs8465c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_C PatchedWritablePowerPortRequestType = "ita-c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_E PatchedWritablePowerPortRequestType = "ita-e"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_F PatchedWritablePowerPortRequestType = "ita-f"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_EF PatchedWritablePowerPortRequestType = "ita-ef"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_G PatchedWritablePowerPortRequestType = "ita-g"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_H PatchedWritablePowerPortRequestType = "ita-h"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_I PatchedWritablePowerPortRequestType = "ita-i"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_J PatchedWritablePowerPortRequestType = "ita-j"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_K PatchedWritablePowerPortRequestType = "ita-k"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_L PatchedWritablePowerPortRequestType = "ita-l"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_M PatchedWritablePowerPortRequestType = "ita-m"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_N PatchedWritablePowerPortRequestType = "ita-n"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_O PatchedWritablePowerPortRequestType = "ita-o"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_A PatchedWritablePowerPortRequestType = "usb-a"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_B PatchedWritablePowerPortRequestType = "usb-b"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_C PatchedWritablePowerPortRequestType = "usb-c"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortRequestType = "usb-mini-a"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortRequestType = "usb-mini-b"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortRequestType = "usb-micro-a"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortRequestType = "usb-micro-b"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortRequestType = "usb-micro-ab"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_B PatchedWritablePowerPortRequestType = "usb-3-b"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortRequestType = "usb-3-micro-b"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-1x2"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x2"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x4"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortRequestType = "dc-terminal"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortRequestType = "saf-d-grid"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortRequestType = "neutrik-powercon-20"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortRequestType = "neutrik-powercon-32"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortRequestType = "iec-60320-c6"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortRequestType = "iec-60320-c8"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortRequestType = "iec-60320-c14"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortRequestType = "iec-60320-c16"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortRequestType = "iec-60320-c20"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortRequestType = "iec-60320-c22"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortRequestType = "nema-1-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortRequestType = "nema-5-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortRequestType = "nema-5-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortRequestType = "nema-5-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortRequestType = "nema-5-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortRequestType = "nema-6-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortRequestType = "nema-6-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortRequestType = "nema-6-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortRequestType = "nema-6-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortRequestType = "nema-10-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortRequestType = "nema-10-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortRequestType = "nema-14-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortRequestType = "nema-14-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortRequestType = "nema-14-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortRequestType = "nema-14-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortRequestType = "nema-15-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortRequestType = "nema-15-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortRequestType = "nema-15-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortRequestType = "nema-15-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortRequestType = "nema-15-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortRequestType = "nema-l1-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortRequestType = "nema-l5-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortRequestType = "nema-l5-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortRequestType = "nema-l5-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortRequestType = "nema-l5-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortRequestType = "nema-l6-15p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortRequestType = "nema-l6-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortRequestType = "nema-l6-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortRequestType = "nema-l6-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortRequestType = "nema-l10-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortRequestType = "nema-l14-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortRequestType = "nema-l14-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortRequestType = "nema-l14-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortRequestType = "nema-l14-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortRequestType = "nema-l15-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortRequestType = "nema-l15-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortRequestType = "nema-l15-50p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortRequestType = "nema-l22-20p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8165C PatchedWritablePowerPortRequestType = "cs8165c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8265C PatchedWritablePowerPortRequestType = "cs8265c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8365C PatchedWritablePowerPortRequestType = "cs8365c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8465C PatchedWritablePowerPortRequestType = "cs8465c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_C PatchedWritablePowerPortRequestType = "ita-c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_E PatchedWritablePowerPortRequestType = "ita-e"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_F PatchedWritablePowerPortRequestType = "ita-f"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_EF PatchedWritablePowerPortRequestType = "ita-ef"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_G PatchedWritablePowerPortRequestType = "ita-g"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_H PatchedWritablePowerPortRequestType = "ita-h"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_I PatchedWritablePowerPortRequestType = "ita-i"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_J PatchedWritablePowerPortRequestType = "ita-j"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_K PatchedWritablePowerPortRequestType = "ita-k"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_L PatchedWritablePowerPortRequestType = "ita-l"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_M PatchedWritablePowerPortRequestType = "ita-m"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_N PatchedWritablePowerPortRequestType = "ita-n"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_O PatchedWritablePowerPortRequestType = "ita-o"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_A PatchedWritablePowerPortRequestType = "usb-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_B PatchedWritablePowerPortRequestType = "usb-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_C PatchedWritablePowerPortRequestType = "usb-c"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortRequestType = "usb-mini-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortRequestType = "usb-mini-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortRequestType = "usb-micro-a"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortRequestType = "usb-micro-ab"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_B PatchedWritablePowerPortRequestType = "usb-3-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortRequestType = "usb-3-micro-b"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-1x2"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x2"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x4"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortRequestType = "neutrik-powercon-20"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortRequestType = "neutrik-powercon-32"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortRequestType = "neutrik-powercon-true1"
PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortRequestType = "neutrik-powercon-true1-top"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortRequestType = "ubiquiti-smartpower"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_HARDWIRED PatchedWritablePowerPortRequestType = "hardwired"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_OTHER PatchedWritablePowerPortRequestType = "other"
- PATCHEDWRITABLEPOWERPORTREQUESTTYPE_EMPTY PatchedWritablePowerPortRequestType = ""
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_HARDWIRED PatchedWritablePowerPortRequestType = "hardwired"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_OTHER PatchedWritablePowerPortRequestType = "other"
+ PATCHEDWRITABLEPOWERPORTREQUESTTYPE_EMPTY PatchedWritablePowerPortRequestType = ""
)
// All allowed values of PatchedWritablePowerPortRequestType enum
@@ -314,4 +314,3 @@ func (v *NullablePatchedWritablePowerPortRequestType) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go
index 86f682875..abdc2400f 100644
--- a/model_patched_writable_power_port_template_request.go
+++ b/model_patched_writable_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{}
// PatchedWritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritablePowerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
- AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTyp
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -81,10 +81,11 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -96,9 +97,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -107,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTyp
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -123,10 +124,11 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritablePowerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -233,6 +235,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasType() bool {
func (o *PatchedWritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PatchedWritablePowerPortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -275,6 +278,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasMaximumDraw() bool {
func (o *PatchedWritablePowerPortTemplateRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PatchedWritablePowerPortTemplateRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -317,6 +321,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasAllocatedDraw() bool {
func (o *PatchedWritablePowerPortTemplateRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PatchedWritablePowerPortTemplateRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -360,7 +365,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) SetDescription(v string) {
}
func (o PatchedWritablePowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -464,5 +469,3 @@ func (v *NullablePatchedWritablePowerPortTemplateRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go
index a85e757cc..9994f2308 100644
--- a/model_patched_writable_power_port_template_request_type.go
+++ b/model_patched_writable_power_port_template_request_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,111 +20,111 @@ 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_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8165C PatchedWritablePowerPortTemplateRequestType = "cs8165c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8265C PatchedWritablePowerPortTemplateRequestType = "cs8265c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8365C PatchedWritablePowerPortTemplateRequestType = "cs8365c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8465C PatchedWritablePowerPortTemplateRequestType = "cs8465c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_C PatchedWritablePowerPortTemplateRequestType = "ita-c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerPortTemplateRequestType = "ita-e"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerPortTemplateRequestType = "ita-f"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_EF PatchedWritablePowerPortTemplateRequestType = "ita-ef"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerPortTemplateRequestType = "ita-g"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerPortTemplateRequestType = "ita-h"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerPortTemplateRequestType = "ita-i"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerPortTemplateRequestType = "ita-j"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerPortTemplateRequestType = "ita-k"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerPortTemplateRequestType = "ita-l"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerPortTemplateRequestType = "ita-m"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerPortTemplateRequestType = "ita-n"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerPortTemplateRequestType = "ita-o"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerPortTemplateRequestType = "usb-a"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritablePowerPortTemplateRequestType = "usb-b"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerPortTemplateRequestType = "usb-c"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortTemplateRequestType = "usb-mini-a"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortTemplateRequestType = "usb-mini-b"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortTemplateRequestType = "usb-micro-a"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-micro-b"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortTemplateRequestType = "usb-micro-ab"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_B PatchedWritablePowerPortTemplateRequestType = "usb-3-b"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-3-micro-b"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-1x2"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x2"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x4"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortTemplateRequestType = "dc-terminal"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortTemplateRequestType = "saf-d-grid"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-20"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-32"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c6"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c8"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c14"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c16"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c20"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c22"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-4h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-6h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-9h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortTemplateRequestType = "iec-60906-1"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-10a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-20a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortTemplateRequestType = "nema-1-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortTemplateRequestType = "nema-5-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortTemplateRequestType = "nema-5-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortTemplateRequestType = "nema-5-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortTemplateRequestType = "nema-5-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortTemplateRequestType = "nema-6-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortTemplateRequestType = "nema-6-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortTemplateRequestType = "nema-6-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortTemplateRequestType = "nema-6-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortTemplateRequestType = "nema-10-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortTemplateRequestType = "nema-10-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortTemplateRequestType = "nema-14-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortTemplateRequestType = "nema-14-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortTemplateRequestType = "nema-14-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortTemplateRequestType = "nema-14-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortTemplateRequestType = "nema-15-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortTemplateRequestType = "nema-15-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortTemplateRequestType = "nema-15-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortTemplateRequestType = "nema-15-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortTemplateRequestType = "nema-15-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortTemplateRequestType = "nema-l1-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortTemplateRequestType = "nema-l5-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortTemplateRequestType = "nema-l5-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortTemplateRequestType = "nema-l5-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortTemplateRequestType = "nema-l5-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortTemplateRequestType = "nema-l6-15p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortTemplateRequestType = "nema-l6-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortTemplateRequestType = "nema-l6-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortTemplateRequestType = "nema-l6-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortTemplateRequestType = "nema-l10-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortTemplateRequestType = "nema-l14-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortTemplateRequestType = "nema-l14-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortTemplateRequestType = "nema-l14-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortTemplateRequestType = "nema-l14-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortTemplateRequestType = "nema-l15-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortTemplateRequestType = "nema-l15-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortTemplateRequestType = "nema-l15-50p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8165C PatchedWritablePowerPortTemplateRequestType = "cs8165c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8265C PatchedWritablePowerPortTemplateRequestType = "cs8265c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8365C PatchedWritablePowerPortTemplateRequestType = "cs8365c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8465C PatchedWritablePowerPortTemplateRequestType = "cs8465c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_C PatchedWritablePowerPortTemplateRequestType = "ita-c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerPortTemplateRequestType = "ita-e"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerPortTemplateRequestType = "ita-f"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_EF PatchedWritablePowerPortTemplateRequestType = "ita-ef"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerPortTemplateRequestType = "ita-g"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerPortTemplateRequestType = "ita-h"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerPortTemplateRequestType = "ita-i"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerPortTemplateRequestType = "ita-j"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerPortTemplateRequestType = "ita-k"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerPortTemplateRequestType = "ita-l"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerPortTemplateRequestType = "ita-m"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerPortTemplateRequestType = "ita-n"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerPortTemplateRequestType = "ita-o"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerPortTemplateRequestType = "usb-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritablePowerPortTemplateRequestType = "usb-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerPortTemplateRequestType = "usb-c"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortTemplateRequestType = "usb-mini-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortTemplateRequestType = "usb-mini-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortTemplateRequestType = "usb-micro-a"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-micro-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortTemplateRequestType = "usb-micro-ab"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_B PatchedWritablePowerPortTemplateRequestType = "usb-3-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-3-micro-b"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-1x2"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x2"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x4"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortTemplateRequestType = "dc-terminal"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortTemplateRequestType = "saf-d-grid"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-20"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-32"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1"
PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1-top"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortTemplateRequestType = "ubiquiti-smartpower"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerPortTemplateRequestType = "hardwired"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerPortTemplateRequestType = "other"
- PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerPortTemplateRequestType = ""
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortTemplateRequestType = "ubiquiti-smartpower"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerPortTemplateRequestType = "hardwired"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerPortTemplateRequestType = "other"
+ PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerPortTemplateRequestType = ""
)
// All allowed values of PatchedWritablePowerPortTemplateRequestType enum
@@ -314,4 +314,3 @@ func (v *NullablePatchedWritablePowerPortTemplateRequestType) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go
index 59598bd38..b0869ea41 100644
--- a/model_patched_writable_prefix_request.go
+++ b/model_patched_writable_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,22 +19,22 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{}
// PatchedWritablePrefixRequest Adds support for custom fields and tags.
type PatchedWritablePrefixRequest struct {
- Prefix *string `json:"prefix,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
+ Prefix *string `json:"prefix,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -90,9 +90,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest {
+func (o *PatchedWritablePrefixRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -101,7 +101,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PatchedWritablePrefixRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -117,10 +117,11 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PatchedWritablePrefixRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -163,6 +164,7 @@ func (o *PatchedWritablePrefixRequest) HasScopeType() bool {
func (o *PatchedWritablePrefixRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -205,6 +207,7 @@ func (o *PatchedWritablePrefixRequest) HasScopeId() bool {
func (o *PatchedWritablePrefixRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -216,9 +219,9 @@ func (o *PatchedWritablePrefixRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritablePrefixRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -227,7 +230,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritablePrefixRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -243,10 +246,11 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritablePrefixRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -258,9 +262,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() {
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest {
+func (o *PatchedWritablePrefixRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -269,7 +273,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritablePrefixRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -285,10 +289,11 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *PatchedWritablePrefixRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -332,9 +337,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest {
+func (o *PatchedWritablePrefixRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -343,7 +348,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *PatchedWritablePrefixRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -359,10 +364,11 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *PatchedWritablePrefixRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritablePrefixRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -566,7 +572,7 @@ func (o *PatchedWritablePrefixRequest) SetCustomFields(v map[string]interface{})
}
func (o PatchedWritablePrefixRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -694,5 +700,3 @@ func (v *NullablePatchedWritablePrefixRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go
index da83727b1..353b56dca 100644
--- a/model_patched_writable_prefix_request_status.go
+++ b/model_patched_writable_prefix_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PatchedWritablePrefixRequestStatus string
// List of PatchedWritablePrefixRequest_status
const (
- PATCHEDWRITABLEPREFIXREQUESTSTATUS_CONTAINER PatchedWritablePrefixRequestStatus = "container"
- PATCHEDWRITABLEPREFIXREQUESTSTATUS_ACTIVE PatchedWritablePrefixRequestStatus = "active"
- PATCHEDWRITABLEPREFIXREQUESTSTATUS_RESERVED PatchedWritablePrefixRequestStatus = "reserved"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_CONTAINER PatchedWritablePrefixRequestStatus = "container"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_ACTIVE PatchedWritablePrefixRequestStatus = "active"
+ PATCHEDWRITABLEPREFIXREQUESTSTATUS_RESERVED PatchedWritablePrefixRequestStatus = "reserved"
PATCHEDWRITABLEPREFIXREQUESTSTATUS_DEPRECATED PatchedWritablePrefixRequestStatus = "deprecated"
)
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritablePrefixRequestStatus) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go
index c556220c3..9b1d469ce 100644
--- a/model_patched_writable_rack_request.go
+++ b/model_patched_writable_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,41 +19,43 @@ 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 *BriefSiteRequest `json:"site,omitempty"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- Role NullableBriefRackRoleRequest `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Name *string `json:"name,omitempty"`
+ FacilityId NullableString `json:"facility_id,omitempty"`
+ Site *DeviceWithConfigContextRequestSite `json:"site,omitempty"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
+ Role NullablePatchedWritableRackRequestRole `json:"role,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ RackType NullablePatchedWritableRackRequestRackType `json:"rack_type,omitempty"`
FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"`
- Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
- StartingUnit *int32 `json:"starting_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ StartingUnit *int32 `json:"starting_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ 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 (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -140,6 +142,7 @@ func (o *PatchedWritableRackRequest) HasFacilityId() bool {
func (o *PatchedWritableRackRequest) SetFacilityId(v string) {
o.FacilityId.Set(&v)
}
+
// SetFacilityIdNil sets the value for FacilityId to be an explicit nil
func (o *PatchedWritableRackRequest) SetFacilityIdNil() {
o.FacilityId.Set(nil)
@@ -151,9 +154,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest {
+func (o *PatchedWritableRackRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil || IsNil(o.Site) {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
return *o.Site
@@ -161,7 +164,7 @@ func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedWritableRackRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -177,15 +180,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field.
-func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given DeviceWithConfigContextRequestSite and assigns it to the Site field.
+func (o *PatchedWritableRackRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = &v
}
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest {
+func (o *PatchedWritableRackRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -194,7 +197,7 @@ func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *PatchedWritableRackRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -210,10 +213,11 @@ func (o *PatchedWritableRackRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *PatchedWritableRackRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PatchedWritableRackRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -225,9 +229,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableRackRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -236,7 +240,7 @@ func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableRackRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -252,10 +256,11 @@ func (o *PatchedWritableRackRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableRackRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableRackRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -299,9 +304,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest {
+func (o *PatchedWritableRackRequest) GetRole() PatchedWritableRackRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRackRoleRequest
+ var ret PatchedWritableRackRequestRole
return ret
}
return *o.Role.Get()
@@ -310,7 +315,7 @@ func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) {
+func (o *PatchedWritableRackRequest) GetRoleOk() (*PatchedWritableRackRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -326,10 +331,11 @@ func (o *PatchedWritableRackRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableRackRequestRole and assigns it to the Role field.
+func (o *PatchedWritableRackRequest) SetRole(v PatchedWritableRackRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableRackRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -404,6 +410,7 @@ func (o *PatchedWritableRackRequest) HasAssetTag() bool {
func (o *PatchedWritableRackRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *PatchedWritableRackRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -415,9 +422,9 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() {
}
// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest {
+func (o *PatchedWritableRackRequest) GetRackType() PatchedWritableRackRequestRackType {
if o == nil || IsNil(o.RackType.Get()) {
- var ret BriefRackTypeRequest
+ var ret PatchedWritableRackRequestRackType
return ret
}
return *o.RackType.Get()
@@ -426,7 +433,7 @@ func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest {
// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) {
+func (o *PatchedWritableRackRequest) GetRackTypeOk() (*PatchedWritableRackRequestRackType, bool) {
if o == nil {
return nil, false
}
@@ -442,10 +449,11 @@ func (o *PatchedWritableRackRequest) HasRackType() bool {
return false
}
-// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field.
-func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) {
+// SetRackType gets a reference to the given NullablePatchedWritableRackRequestRackType and assigns it to the RackType field.
+func (o *PatchedWritableRackRequest) SetRackType(v PatchedWritableRackRequestRackType) {
o.RackType.Set(&v)
}
+
// SetRackTypeNil sets the value for RackType to be an explicit nil
func (o *PatchedWritableRackRequest) SetRackTypeNil() {
o.RackType.Set(nil)
@@ -488,6 +496,7 @@ func (o *PatchedWritableRackRequest) HasFormFactor() bool {
func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *PatchedWritableRackRequest) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -626,6 +635,7 @@ func (o *PatchedWritableRackRequest) HasWeight() bool {
func (o *PatchedWritableRackRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *PatchedWritableRackRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -668,6 +678,7 @@ func (o *PatchedWritableRackRequest) HasMaxWeight() bool {
func (o *PatchedWritableRackRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *PatchedWritableRackRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -710,6 +721,7 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool {
func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *PatchedWritableRackRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -784,6 +796,7 @@ func (o *PatchedWritableRackRequest) HasOuterWidth() bool {
func (o *PatchedWritableRackRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *PatchedWritableRackRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -794,6 +807,49 @@ func (o *PatchedWritableRackRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableRackRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableRackRequest) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *PatchedWritableRackRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *PatchedWritableRackRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *PatchedWritableRackRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *PatchedWritableRackRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableRackRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -826,6 +882,7 @@ func (o *PatchedWritableRackRequest) HasOuterDepth() bool {
func (o *PatchedWritableRackRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *PatchedWritableRackRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -868,6 +925,7 @@ func (o *PatchedWritableRackRequest) HasOuterUnit() bool {
func (o *PatchedWritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *PatchedWritableRackRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -910,6 +968,7 @@ func (o *PatchedWritableRackRequest) HasMountingDepth() bool {
func (o *PatchedWritableRackRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *PatchedWritableRackRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -952,6 +1011,7 @@ func (o *PatchedWritableRackRequest) HasAirflow() bool {
func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *PatchedWritableRackRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -1091,7 +1151,7 @@ func (o *PatchedWritableRackRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedWritableRackRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1157,6 +1217,9 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -1222,6 +1285,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "mounting_depth")
@@ -1271,5 +1335,3 @@ func (v *NullablePatchedWritableRackRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go
index cdc90c214..b6bfe53e0 100644
--- a/model_patched_writable_rack_request_airflow.go
+++ b/model_patched_writable_rack_request_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ type PatchedWritableRackRequestAirflow string
const (
PATCHEDWRITABLERACKREQUESTAIRFLOW_FRONT_TO_REAR PatchedWritableRackRequestAirflow = "front-to-rear"
PATCHEDWRITABLERACKREQUESTAIRFLOW_REAR_TO_FRONT PatchedWritableRackRequestAirflow = "rear-to-front"
- PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = ""
+ PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = ""
)
// All allowed values of PatchedWritableRackRequestAirflow enum
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go
index 764ea11a6..21461a7b4 100644
--- a/model_patched_writable_rack_request_form_factor.go
+++ b/model_patched_writable_rack_request_form_factor.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ type PatchedWritableRackRequestFormFactor string
// List of PatchedWritableRackRequest_form_factor
const (
- PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical"
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet"
PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackRequestFormFactor = "wall-cabinet-vertical"
- PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = ""
+ PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = ""
)
// All allowed values of PatchedWritableRackRequestFormFactor enum
@@ -120,4 +120,3 @@ func (v *NullablePatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go
index 94a7da9f3..e1fe536e5 100644
--- a/model_patched_writable_rack_request_outer_unit.go
+++ b/model_patched_writable_rack_request_outer_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableRackRequestOuterUnit string
// List of PatchedWritableRackRequest_outer_unit
const (
- PATCHEDWRITABLERACKREQUESTOUTERUNIT_MM PatchedWritableRackRequestOuterUnit = "mm"
- PATCHEDWRITABLERACKREQUESTOUTERUNIT_IN PatchedWritableRackRequestOuterUnit = "in"
+ PATCHEDWRITABLERACKREQUESTOUTERUNIT_MM PatchedWritableRackRequestOuterUnit = "mm"
+ PATCHEDWRITABLERACKREQUESTOUTERUNIT_IN PatchedWritableRackRequestOuterUnit = "in"
PATCHEDWRITABLERACKREQUESTOUTERUNIT_EMPTY PatchedWritableRackRequestOuterUnit = ""
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableRackRequestOuterUnit) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_request_rack_type.go b/model_patched_writable_rack_request_rack_type.go
new file mode 100644
index 000000000..ba45b5e38
--- /dev/null
+++ b/model_patched_writable_rack_request_rack_type.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableRackRequestRackType - struct for PatchedWritableRackRequestRackType
+type PatchedWritableRackRequestRackType struct {
+ BriefRackTypeRequest *BriefRackTypeRequest
+ Int32 *int32
+}
+
+// BriefRackTypeRequestAsPatchedWritableRackRequestRackType is a convenience function that returns BriefRackTypeRequest wrapped in PatchedWritableRackRequestRackType
+func BriefRackTypeRequestAsPatchedWritableRackRequestRackType(v *BriefRackTypeRequest) PatchedWritableRackRequestRackType {
+ return PatchedWritableRackRequestRackType{
+ BriefRackTypeRequest: v,
+ }
+}
+
+// int32AsPatchedWritableRackRequestRackType is a convenience function that returns int32 wrapped in PatchedWritableRackRequestRackType
+func Int32AsPatchedWritableRackRequestRackType(v *int32) PatchedWritableRackRequestRackType {
+ return PatchedWritableRackRequestRackType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableRackRequestRackType) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRackTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRackTypeRequest)
+ if err == nil {
+ jsonBriefRackTypeRequest, _ := json.Marshal(dst.BriefRackTypeRequest)
+ if string(jsonBriefRackTypeRequest) == "{}" { // empty struct
+ dst.BriefRackTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRackTypeRequest); err != nil {
+ dst.BriefRackTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRackTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRackTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableRackRequestRackType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableRackRequestRackType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableRackRequestRackType) MarshalJSON() ([]byte, error) {
+ if src.BriefRackTypeRequest != nil {
+ return json.Marshal(&src.BriefRackTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableRackRequestRackType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRackTypeRequest != nil {
+ return obj.BriefRackTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableRackRequestRackType struct {
+ value *PatchedWritableRackRequestRackType
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestRackType) Get() *PatchedWritableRackRequestRackType {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestRackType) Set(val *PatchedWritableRackRequestRackType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestRackType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestRackType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestRackType(val *PatchedWritableRackRequestRackType) *NullablePatchedWritableRackRequestRackType {
+ return &NullablePatchedWritableRackRequestRackType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestRackType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestRackType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_rack_request_role.go b/model_patched_writable_rack_request_role.go
new file mode 100644
index 000000000..742bf1fe2
--- /dev/null
+++ b/model_patched_writable_rack_request_role.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableRackRequestRole - struct for PatchedWritableRackRequestRole
+type PatchedWritableRackRequestRole struct {
+ BriefRackRoleRequest *BriefRackRoleRequest
+ Int32 *int32
+}
+
+// BriefRackRoleRequestAsPatchedWritableRackRequestRole is a convenience function that returns BriefRackRoleRequest wrapped in PatchedWritableRackRequestRole
+func BriefRackRoleRequestAsPatchedWritableRackRequestRole(v *BriefRackRoleRequest) PatchedWritableRackRequestRole {
+ return PatchedWritableRackRequestRole{
+ BriefRackRoleRequest: v,
+ }
+}
+
+// int32AsPatchedWritableRackRequestRole is a convenience function that returns int32 wrapped in PatchedWritableRackRequestRole
+func Int32AsPatchedWritableRackRequestRole(v *int32) PatchedWritableRackRequestRole {
+ return PatchedWritableRackRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableRackRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRackRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRackRoleRequest)
+ if err == nil {
+ jsonBriefRackRoleRequest, _ := json.Marshal(dst.BriefRackRoleRequest)
+ if string(jsonBriefRackRoleRequest) == "{}" { // empty struct
+ dst.BriefRackRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRackRoleRequest); err != nil {
+ dst.BriefRackRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRackRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRackRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableRackRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableRackRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableRackRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefRackRoleRequest != nil {
+ return json.Marshal(&src.BriefRackRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableRackRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRackRoleRequest != nil {
+ return obj.BriefRackRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableRackRequestRole struct {
+ value *PatchedWritableRackRequestRole
+ isSet bool
+}
+
+func (v NullablePatchedWritableRackRequestRole) Get() *PatchedWritableRackRequestRole {
+ return v.value
+}
+
+func (v *NullablePatchedWritableRackRequestRole) Set(val *PatchedWritableRackRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableRackRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableRackRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableRackRequestRole(val *PatchedWritableRackRequestRole) *NullablePatchedWritableRackRequestRole {
+ return &NullablePatchedWritableRackRequestRole{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableRackRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableRackRequestRole) 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
index 21396ea06..52606207d 100644
--- a/model_patched_writable_rack_request_status.go
+++ b/model_patched_writable_rack_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type PatchedWritableRackRequestStatus string
// List of PatchedWritableRackRequest_status
const (
- PATCHEDWRITABLERACKREQUESTSTATUS_RESERVED PatchedWritableRackRequestStatus = "reserved"
- PATCHEDWRITABLERACKREQUESTSTATUS_AVAILABLE PatchedWritableRackRequestStatus = "available"
- PATCHEDWRITABLERACKREQUESTSTATUS_PLANNED PatchedWritableRackRequestStatus = "planned"
- PATCHEDWRITABLERACKREQUESTSTATUS_ACTIVE PatchedWritableRackRequestStatus = "active"
+ PATCHEDWRITABLERACKREQUESTSTATUS_RESERVED PatchedWritableRackRequestStatus = "reserved"
+ PATCHEDWRITABLERACKREQUESTSTATUS_AVAILABLE PatchedWritableRackRequestStatus = "available"
+ PATCHEDWRITABLERACKREQUESTSTATUS_PLANNED PatchedWritableRackRequestStatus = "planned"
+ PATCHEDWRITABLERACKREQUESTSTATUS_ACTIVE PatchedWritableRackRequestStatus = "active"
PATCHEDWRITABLERACKREQUESTSTATUS_DEPRECATED PatchedWritableRackRequestStatus = "deprecated"
)
@@ -114,4 +114,3 @@ func (v *NullablePatchedWritableRackRequestStatus) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go
index 33ca6c8e6..731b21d8c 100644
--- a/model_patched_writable_rack_request_width.go
+++ b/model_patched_writable_rack_request_width.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritableRackRequestWidth) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go
index b76c32eef..bd0c9fa08 100644
--- a/model_patched_writable_rack_type_request.go
+++ b/model_patched_writable_rack_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableRackTypeRequest{}
// PatchedWritableRackTypeRequest Adds support for custom fields and tags.
type PatchedWritableRackTypeRequest struct {
- Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"`
- Model *string `json:"model,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"`
- Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
+ Manufacturer *BriefDeviceTypeRequestManufacturer `json:"manufacturer,omitempty"`
+ Model *string `json:"model,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
@@ -33,18 +33,20 @@ type PatchedWritableRackTypeRequest struct {
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
+ // Outer dimension of rack (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -68,9 +70,9 @@ func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeReq
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
-func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil || IsNil(o.Manufacturer) {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
return *o.Manufacturer
@@ -78,7 +80,7 @@ func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequ
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil || IsNil(o.Manufacturer) {
return nil, false
}
@@ -94,8 +96,8 @@ func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given BriefDeviceTypeRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = &v
}
@@ -387,6 +389,7 @@ func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool {
func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -397,6 +400,49 @@ func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableRackTypeRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableRackTypeRequest) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *PatchedWritableRackTypeRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *PatchedWritableRackTypeRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *PatchedWritableRackTypeRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *PatchedWritableRackTypeRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -429,6 +475,7 @@ func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool {
func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -471,6 +518,7 @@ func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool {
func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -513,6 +561,7 @@ func (o *PatchedWritableRackTypeRequest) HasWeight() bool {
func (o *PatchedWritableRackTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -555,6 +604,7 @@ func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool {
func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -597,6 +647,7 @@ func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool {
func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -639,6 +690,7 @@ func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool {
func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -746,7 +798,7 @@ func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{
}
func (o PatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -785,6 +837,9 @@ func (o PatchedWritableRackTypeRequest) ToMap() (map[string]interface{}, error)
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -844,6 +899,7 @@ func (o *PatchedWritableRackTypeRequest) UnmarshalJSON(data []byte) (err error)
delete(additionalProperties, "starting_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "weight")
@@ -894,5 +950,3 @@ func (v *NullablePatchedWritableRackTypeRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go
index b3a378433..ca4689048 100644
--- a/model_patched_writable_rack_type_request_form_factor.go
+++ b/model_patched_writable_rack_type_request_form_factor.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type PatchedWritableRackTypeRequestFormFactor string
// List of PatchedWritableRackTypeRequest_form_factor
const (
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame"
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame"
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet"
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame"
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical"
- PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical"
+ PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet"
PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-cabinet-vertical"
)
@@ -118,4 +118,3 @@ func (v *NullablePatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go
index ad5cdc931..9ea2f6c92 100644
--- a/model_patched_writable_rear_port_request.go
+++ b/model_patched_writable_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{}
// PatchedWritableRearPortRequest Adds support for custom fields and tags.
type PatchedWritableRearPortRequest struct {
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *FrontPortTypeValue `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Number of front ports which may be mapped
- Positions *int32 `json:"positions,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableRearPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableRearPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest {
+func (o *PatchedWritableRearPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -115,10 +115,11 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PatchedWritableRearPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PatchedWritableRearPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -418,7 +419,7 @@ func (o *PatchedWritableRearPortRequest) SetCustomFields(v map[string]interface{
}
func (o PatchedWritableRearPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -534,5 +535,3 @@ func (v *NullablePatchedWritableRearPortRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go
index 05dd24d1b..4956da1b4 100644
--- a/model_patched_writable_rear_port_template_request.go
+++ b/model_patched_writable_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{}
// PatchedWritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedWritableRearPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type *FrontPortTypeValue `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type *FrontPortTypeValue `json:"type,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceType
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PatchedWritableRearPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleType
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PatchedWritableRearPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -328,7 +330,7 @@ func (o *PatchedWritableRearPortTemplateRequest) SetDescription(v string) {
}
func (o PatchedWritableRearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -432,5 +434,3 @@ func (v *NullablePatchedWritableRearPortTemplateRequest) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go
index bc97556c2..23020920a 100644
--- a/model_patched_writable_region_request.go
+++ b/model_patched_writable_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ var _ MappedNullable = &PatchedWritableRegionRequest{}
// PatchedWritableRegionRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableRegionRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +144,7 @@ func (o *PatchedWritableRegionRequest) HasParent() bool {
func (o *PatchedWritableRegionRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableRegionRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -249,8 +251,40 @@ func (o *PatchedWritableRegionRequest) SetCustomFields(v map[string]interface{})
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableRegionRequest) 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 *PatchedWritableRegionRequest) 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 *PatchedWritableRegionRequest) 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 *PatchedWritableRegionRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableRegionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -277,6 +311,9 @@ func (o PatchedWritableRegionRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -305,6 +342,7 @@ func (o *PatchedWritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -346,5 +384,3 @@ func (v *NullablePatchedWritableRegionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go
index a48de7ce1..762546add 100644
--- a/model_patched_writable_service_request.go
+++ b/model_patched_writable_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableServiceRequest{}
// PatchedWritableServiceRequest Adds support for custom fields and tags.
type PatchedWritableServiceRequest struct {
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"`
- Name *string `json:"name,omitempty"`
- Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports,omitempty"`
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ParentObjectType *string `json:"parent_object_type,omitempty"`
+ ParentObjectId *int64 `json:"parent_object_id,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports,omitempty"`
+ Ipaddresses []int32 `json:"ipaddresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -51,88 +51,68 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque
return &this
}
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest {
- if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+// GetParentObjectType returns the ParentObjectType field value if set, zero value otherwise.
+func (o *PatchedWritableServiceRequest) GetParentObjectType() string {
+ if o == nil || IsNil(o.ParentObjectType) {
+ var ret string
return ret
}
- return *o.Device.Get()
+ return *o.ParentObjectType
}
-// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
+// GetParentObjectTypeOk returns a tuple with the ParentObjectType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
- if o == nil {
+func (o *PatchedWritableServiceRequest) GetParentObjectTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.ParentObjectType) {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
+ return o.ParentObjectType, true
}
-// HasDevice returns a boolean if a field has been set.
-func (o *PatchedWritableServiceRequest) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
+// HasParentObjectType returns a boolean if a field has been set.
+func (o *PatchedWritableServiceRequest) HasParentObjectType() bool {
+ if o != nil && !IsNil(o.ParentObjectType) {
return true
}
return false
}
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) {
- o.Device.Set(&v)
-}
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *PatchedWritableServiceRequest) SetDeviceNil() {
- o.Device.Set(nil)
+// SetParentObjectType gets a reference to the given string and assigns it to the ParentObjectType field.
+func (o *PatchedWritableServiceRequest) SetParentObjectType(v string) {
+ o.ParentObjectType = &v
}
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *PatchedWritableServiceRequest) UnsetDevice() {
- o.Device.Unset()
-}
-
-// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
- if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret BriefVirtualMachineRequest
+// GetParentObjectId returns the ParentObjectId field value if set, zero value otherwise.
+func (o *PatchedWritableServiceRequest) GetParentObjectId() int64 {
+ if o == nil || IsNil(o.ParentObjectId) {
+ var ret int64
return ret
}
- return *o.VirtualMachine.Get()
+ return *o.ParentObjectId
}
-// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
+// GetParentObjectIdOk returns a tuple with the ParentObjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
- if o == nil {
+func (o *PatchedWritableServiceRequest) GetParentObjectIdOk() (*int64, bool) {
+ if o == nil || IsNil(o.ParentObjectId) {
return nil, false
}
- return o.VirtualMachine.Get(), o.VirtualMachine.IsSet()
+ return o.ParentObjectId, true
}
-// HasVirtualMachine returns a boolean if a field has been set.
-func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool {
- if o != nil && o.VirtualMachine.IsSet() {
+// HasParentObjectId returns a boolean if a field has been set.
+func (o *PatchedWritableServiceRequest) HasParentObjectId() bool {
+ if o != nil && !IsNil(o.ParentObjectId) {
return true
}
return false
}
-// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
- o.VirtualMachine.Set(&v)
-}
-// SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil
-func (o *PatchedWritableServiceRequest) SetVirtualMachineNil() {
- o.VirtualMachine.Set(nil)
-}
-
-// UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil
-func (o *PatchedWritableServiceRequest) UnsetVirtualMachine() {
- o.VirtualMachine.Unset()
+// SetParentObjectId gets a reference to the given int64 and assigns it to the ParentObjectId field.
+func (o *PatchedWritableServiceRequest) SetParentObjectId(v int64) {
+ o.ParentObjectId = &v
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -392,7 +372,7 @@ func (o *PatchedWritableServiceRequest) SetCustomFields(v map[string]interface{}
}
func (o PatchedWritableServiceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -401,11 +381,11 @@ func (o PatchedWritableServiceRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWritableServiceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
+ if !IsNil(o.ParentObjectType) {
+ toSerialize["parent_object_type"] = o.ParentObjectType
}
- if o.VirtualMachine.IsSet() {
- toSerialize["virtual_machine"] = o.VirtualMachine.Get()
+ if !IsNil(o.ParentObjectId) {
+ toSerialize["parent_object_id"] = o.ParentObjectId
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -453,8 +433,8 @@ func (o *PatchedWritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- delete(additionalProperties, "virtual_machine")
+ delete(additionalProperties, "parent_object_type")
+ delete(additionalProperties, "parent_object_id")
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "ports")
@@ -504,5 +484,3 @@ func (v *NullablePatchedWritableServiceRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go
index f04e73671..2cf4dbda4 100644
--- a/model_patched_writable_service_request_protocol.go
+++ b/model_patched_writable_service_request_protocol.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableServiceRequestProtocol string
// List of PatchedWritableServiceRequest_protocol
const (
- PATCHEDWRITABLESERVICEREQUESTPROTOCOL_TCP PatchedWritableServiceRequestProtocol = "tcp"
- PATCHEDWRITABLESERVICEREQUESTPROTOCOL_UDP PatchedWritableServiceRequestProtocol = "udp"
+ PATCHEDWRITABLESERVICEREQUESTPROTOCOL_TCP PatchedWritableServiceRequestProtocol = "tcp"
+ PATCHEDWRITABLESERVICEREQUESTPROTOCOL_UDP PatchedWritableServiceRequestProtocol = "udp"
PATCHEDWRITABLESERVICEREQUESTPROTOCOL_SCTP PatchedWritableServiceRequestProtocol = "sctp"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableServiceRequestProtocol) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go
index 4e705df08..c4edae529 100644
--- a/model_patched_writable_service_template_request.go
+++ b/model_patched_writable_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableServiceTemplateRequest{}
// PatchedWritableServiceTemplateRequest Adds support for custom fields and tags.
type PatchedWritableServiceTemplateRequest struct {
- Name *string `json:"name,omitempty"`
- Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -273,7 +273,7 @@ func (o *PatchedWritableServiceTemplateRequest) SetCustomFields(v map[string]int
}
func (o PatchedWritableServiceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -373,5 +373,3 @@ func (v *NullablePatchedWritableServiceTemplateRequest) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go
index 9789f14a0..80b0b272c 100644
--- a/model_patched_writable_site_group_request.go
+++ b/model_patched_writable_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ var _ MappedNullable = &PatchedWritableSiteGroupRequest{}
// PatchedWritableSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableSiteGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +144,7 @@ func (o *PatchedWritableSiteGroupRequest) HasParent() bool {
func (o *PatchedWritableSiteGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableSiteGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -249,8 +251,40 @@ func (o *PatchedWritableSiteGroupRequest) SetCustomFields(v map[string]interface
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableSiteGroupRequest) 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 *PatchedWritableSiteGroupRequest) 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 *PatchedWritableSiteGroupRequest) 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 *PatchedWritableSiteGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableSiteGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -277,6 +311,9 @@ func (o PatchedWritableSiteGroupRequest) ToMap() (map[string]interface{}, error)
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -305,6 +342,7 @@ func (o *PatchedWritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error)
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -346,5 +384,3 @@ func (v *NullablePatchedWritableSiteGroupRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go
index 59cc948a8..43926009b 100644
--- a/model_patched_writable_site_request.go
+++ b/model_patched_writable_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &PatchedWritableSiteRequest{}
// PatchedWritableSiteRequest Adds support for custom fields and tags.
type PatchedWritableSiteRequest struct {
// Full name of the site
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Region NullableBriefRegionRequest `json:"region,omitempty"`
- Group NullableBriefSiteGroupRequest `json:"group,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Region NullablePatchedWritableSiteRequestRegion `json:"region,omitempty"`
+ Group NullablePatchedWritableSiteRequestGroup `json:"group,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- TimeZone NullableString `json:"time_zone,omitempty"`
- Description *string `json:"description,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ TimeZone NullableString `json:"time_zone,omitempty"`
+ Description *string `json:"description,omitempty"`
// Physical location of the building
PhysicalAddress *string `json:"physical_address,omitempty"`
// If different from the physical address
@@ -37,11 +37,11 @@ type PatchedWritableSiteRequest struct {
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []int32 `json:"asns,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -161,9 +161,9 @@ func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) {
}
// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest {
+func (o *PatchedWritableSiteRequest) GetRegion() PatchedWritableSiteRequestRegion {
if o == nil || IsNil(o.Region.Get()) {
- var ret BriefRegionRequest
+ var ret PatchedWritableSiteRequestRegion
return ret
}
return *o.Region.Get()
@@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest {
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) {
+func (o *PatchedWritableSiteRequest) GetRegionOk() (*PatchedWritableSiteRequestRegion, bool) {
if o == nil {
return nil, false
}
@@ -188,10 +188,11 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool {
return false
}
-// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field.
-func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) {
+// SetRegion gets a reference to the given NullablePatchedWritableSiteRequestRegion and assigns it to the Region field.
+func (o *PatchedWritableSiteRequest) SetRegion(v PatchedWritableSiteRequestRegion) {
o.Region.Set(&v)
}
+
// SetRegionNil sets the value for Region to be an explicit nil
func (o *PatchedWritableSiteRequest) SetRegionNil() {
o.Region.Set(nil)
@@ -203,9 +204,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest {
+func (o *PatchedWritableSiteRequest) GetGroup() PatchedWritableSiteRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefSiteGroupRequest
+ var ret PatchedWritableSiteRequestGroup
return ret
}
return *o.Group.Get()
@@ -214,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) {
+func (o *PatchedWritableSiteRequest) GetGroupOk() (*PatchedWritableSiteRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -230,10 +231,11 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableSiteRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableSiteRequest) SetGroup(v PatchedWritableSiteRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedWritableSiteRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -245,9 +247,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableSiteRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -256,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableSiteRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -272,10 +274,11 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableSiteRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableSiteRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -350,6 +353,7 @@ func (o *PatchedWritableSiteRequest) HasTimeZone() bool {
func (o *PatchedWritableSiteRequest) SetTimeZone(v string) {
o.TimeZone.Set(&v)
}
+
// SetTimeZoneNil sets the value for TimeZone to be an explicit nil
func (o *PatchedWritableSiteRequest) SetTimeZoneNil() {
o.TimeZone.Set(nil)
@@ -488,6 +492,7 @@ func (o *PatchedWritableSiteRequest) HasLatitude() bool {
func (o *PatchedWritableSiteRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *PatchedWritableSiteRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -530,6 +535,7 @@ func (o *PatchedWritableSiteRequest) HasLongitude() bool {
func (o *PatchedWritableSiteRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *PatchedWritableSiteRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -669,7 +675,7 @@ func (o *PatchedWritableSiteRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedWritableSiteRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -809,5 +815,3 @@ func (v *NullablePatchedWritableSiteRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_site_request_group.go b/model_patched_writable_site_request_group.go
new file mode 100644
index 000000000..55d8bcde0
--- /dev/null
+++ b/model_patched_writable_site_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableSiteRequestGroup - struct for PatchedWritableSiteRequestGroup
+type PatchedWritableSiteRequestGroup struct {
+ BriefSiteGroupRequest *BriefSiteGroupRequest
+ Int32 *int32
+}
+
+// BriefSiteGroupRequestAsPatchedWritableSiteRequestGroup is a convenience function that returns BriefSiteGroupRequest wrapped in PatchedWritableSiteRequestGroup
+func BriefSiteGroupRequestAsPatchedWritableSiteRequestGroup(v *BriefSiteGroupRequest) PatchedWritableSiteRequestGroup {
+ return PatchedWritableSiteRequestGroup{
+ BriefSiteGroupRequest: v,
+ }
+}
+
+// int32AsPatchedWritableSiteRequestGroup is a convenience function that returns int32 wrapped in PatchedWritableSiteRequestGroup
+func Int32AsPatchedWritableSiteRequestGroup(v *int32) PatchedWritableSiteRequestGroup {
+ return PatchedWritableSiteRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableSiteRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefSiteGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefSiteGroupRequest)
+ if err == nil {
+ jsonBriefSiteGroupRequest, _ := json.Marshal(dst.BriefSiteGroupRequest)
+ if string(jsonBriefSiteGroupRequest) == "{}" { // empty struct
+ dst.BriefSiteGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefSiteGroupRequest); err != nil {
+ dst.BriefSiteGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefSiteGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefSiteGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableSiteRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableSiteRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableSiteRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefSiteGroupRequest != nil {
+ return json.Marshal(&src.BriefSiteGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableSiteRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefSiteGroupRequest != nil {
+ return obj.BriefSiteGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableSiteRequestGroup struct {
+ value *PatchedWritableSiteRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableSiteRequestGroup) Get() *PatchedWritableSiteRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableSiteRequestGroup) Set(val *PatchedWritableSiteRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableSiteRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableSiteRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableSiteRequestGroup(val *PatchedWritableSiteRequestGroup) *NullablePatchedWritableSiteRequestGroup {
+ return &NullablePatchedWritableSiteRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableSiteRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableSiteRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_site_request_region.go b/model_patched_writable_site_request_region.go
new file mode 100644
index 000000000..87b4e143e
--- /dev/null
+++ b/model_patched_writable_site_request_region.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableSiteRequestRegion - struct for PatchedWritableSiteRequestRegion
+type PatchedWritableSiteRequestRegion struct {
+ BriefRegionRequest *BriefRegionRequest
+ Int32 *int32
+}
+
+// BriefRegionRequestAsPatchedWritableSiteRequestRegion is a convenience function that returns BriefRegionRequest wrapped in PatchedWritableSiteRequestRegion
+func BriefRegionRequestAsPatchedWritableSiteRequestRegion(v *BriefRegionRequest) PatchedWritableSiteRequestRegion {
+ return PatchedWritableSiteRequestRegion{
+ BriefRegionRequest: v,
+ }
+}
+
+// int32AsPatchedWritableSiteRequestRegion is a convenience function that returns int32 wrapped in PatchedWritableSiteRequestRegion
+func Int32AsPatchedWritableSiteRequestRegion(v *int32) PatchedWritableSiteRequestRegion {
+ return PatchedWritableSiteRequestRegion{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableSiteRequestRegion) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefRegionRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefRegionRequest)
+ if err == nil {
+ jsonBriefRegionRequest, _ := json.Marshal(dst.BriefRegionRequest)
+ if string(jsonBriefRegionRequest) == "{}" { // empty struct
+ dst.BriefRegionRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefRegionRequest); err != nil {
+ dst.BriefRegionRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefRegionRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefRegionRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableSiteRequestRegion)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableSiteRequestRegion)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableSiteRequestRegion) MarshalJSON() ([]byte, error) {
+ if src.BriefRegionRequest != nil {
+ return json.Marshal(&src.BriefRegionRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableSiteRequestRegion) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefRegionRequest != nil {
+ return obj.BriefRegionRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableSiteRequestRegion struct {
+ value *PatchedWritableSiteRequestRegion
+ isSet bool
+}
+
+func (v NullablePatchedWritableSiteRequestRegion) Get() *PatchedWritableSiteRequestRegion {
+ return v.value
+}
+
+func (v *NullablePatchedWritableSiteRequestRegion) Set(val *PatchedWritableSiteRequestRegion) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableSiteRequestRegion) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableSiteRequestRegion) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableSiteRequestRegion(val *PatchedWritableSiteRequestRegion) *NullablePatchedWritableSiteRequestRegion {
+ return &NullablePatchedWritableSiteRequestRegion{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableSiteRequestRegion) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableSiteRequestRegion) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go
index 25439aa62..2965880aa 100644
--- a/model_patched_writable_tenant_group_request.go
+++ b/model_patched_writable_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ var _ MappedNullable = &PatchedWritableTenantGroupRequest{}
// PatchedWritableTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableTenantGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +144,7 @@ func (o *PatchedWritableTenantGroupRequest) HasParent() bool {
func (o *PatchedWritableTenantGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableTenantGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -249,8 +251,40 @@ func (o *PatchedWritableTenantGroupRequest) SetCustomFields(v map[string]interfa
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableTenantGroupRequest) 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 *PatchedWritableTenantGroupRequest) 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 *PatchedWritableTenantGroupRequest) 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 *PatchedWritableTenantGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableTenantGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -277,6 +311,9 @@ func (o PatchedWritableTenantGroupRequest) ToMap() (map[string]interface{}, erro
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -305,6 +342,7 @@ func (o *PatchedWritableTenantGroupRequest) UnmarshalJSON(data []byte) (err erro
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -346,5 +384,3 @@ func (v *NullablePatchedWritableTenantGroupRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go
index 1f2faf9f3..2c3733ebe 100644
--- a/model_patched_writable_tunnel_request.go
+++ b/model_patched_writable_tunnel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{}
// PatchedWritableTunnelRequest Adds support for custom fields and tags.
type PatchedWritableTunnelRequest struct {
- Name *string `json:"name,omitempty"`
- Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
- Group NullableBriefTunnelGroupRequest `json:"group,omitempty"`
- Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"`
- IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
+ Group NullablePatchedWritableTunnelRequestGroup `json:"group,omitempty"`
+ Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"`
+ IpsecProfile NullablePatchedWritableTunnelRequestIpsecProfile `json:"ipsec_profile,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest {
+func (o *PatchedWritableTunnelRequest) GetGroup() PatchedWritableTunnelRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefTunnelGroupRequest
+ var ret PatchedWritableTunnelRequestGroup
return ret
}
return *o.Group.Get()
@@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest {
// 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() (*BriefTunnelGroupRequest, bool) {
+func (o *PatchedWritableTunnelRequest) GetGroupOk() (*PatchedWritableTunnelRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -144,10 +144,11 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableTunnelRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableTunnelRequest) SetGroup(v PatchedWritableTunnelRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedWritableTunnelRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -191,9 +192,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR
}
// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest {
+func (o *PatchedWritableTunnelRequest) GetIpsecProfile() PatchedWritableTunnelRequestIpsecProfile {
if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret BriefIPSecProfileRequest
+ var ret PatchedWritableTunnelRequestIpsecProfile
return ret
}
return *o.IpsecProfile.Get()
@@ -202,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileReques
// 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() (*BriefIPSecProfileRequest, bool) {
+func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*PatchedWritableTunnelRequestIpsecProfile, bool) {
if o == nil {
return nil, false
}
@@ -218,10 +219,11 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool {
return false
}
-// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field.
-func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) {
+// SetIpsecProfile gets a reference to the given NullablePatchedWritableTunnelRequestIpsecProfile and assigns it to the IpsecProfile field.
+func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v PatchedWritableTunnelRequestIpsecProfile) {
o.IpsecProfile.Set(&v)
}
+
// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
func (o *PatchedWritableTunnelRequest) SetIpsecProfileNil() {
o.IpsecProfile.Set(nil)
@@ -233,9 +235,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableTunnelRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -244,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest {
// 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() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableTunnelRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -260,10 +262,11 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableTunnelRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableTunnelRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -306,6 +309,7 @@ func (o *PatchedWritableTunnelRequest) HasTunnelId() bool {
func (o *PatchedWritableTunnelRequest) SetTunnelId(v int64) {
o.TunnelId.Set(&v)
}
+
// SetTunnelIdNil sets the value for TunnelId to be an explicit nil
func (o *PatchedWritableTunnelRequest) SetTunnelIdNil() {
o.TunnelId.Set(nil)
@@ -445,7 +449,7 @@ func (o *PatchedWritableTunnelRequest) SetCustomFields(v map[string]interface{})
}
func (o PatchedWritableTunnelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -561,5 +565,3 @@ func (v *NullablePatchedWritableTunnelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go
index 61e7855cb..5a723899c 100644
--- a/model_patched_writable_tunnel_request_encapsulation.go
+++ b/model_patched_writable_tunnel_request_encapsulation.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ type PatchedWritableTunnelRequestEncapsulation string
// List of PatchedWritableTunnelRequest_encapsulation
const (
PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TRANSPORT PatchedWritableTunnelRequestEncapsulation = "ipsec-transport"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TUNNEL PatchedWritableTunnelRequestEncapsulation = "ipsec-tunnel"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IP_IP PatchedWritableTunnelRequestEncapsulation = "ip-ip"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_GRE PatchedWritableTunnelRequestEncapsulation = "gre"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_WIREGUARD PatchedWritableTunnelRequestEncapsulation = "wireguard"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_OPENVPN PatchedWritableTunnelRequestEncapsulation = "openvpn"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_L2TP PatchedWritableTunnelRequestEncapsulation = "l2tp"
- PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_PPTP PatchedWritableTunnelRequestEncapsulation = "pptp"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TUNNEL PatchedWritableTunnelRequestEncapsulation = "ipsec-tunnel"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IP_IP PatchedWritableTunnelRequestEncapsulation = "ip-ip"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_GRE PatchedWritableTunnelRequestEncapsulation = "gre"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_WIREGUARD PatchedWritableTunnelRequestEncapsulation = "wireguard"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_OPENVPN PatchedWritableTunnelRequestEncapsulation = "openvpn"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_L2TP PatchedWritableTunnelRequestEncapsulation = "l2tp"
+ PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_PPTP PatchedWritableTunnelRequestEncapsulation = "pptp"
)
// All allowed values of PatchedWritableTunnelRequestEncapsulation enum
@@ -120,4 +120,3 @@ func (v *NullablePatchedWritableTunnelRequestEncapsulation) UnmarshalJSON(src []
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_tunnel_request_group.go b/model_patched_writable_tunnel_request_group.go
new file mode 100644
index 000000000..8a963aa0a
--- /dev/null
+++ b/model_patched_writable_tunnel_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableTunnelRequestGroup - struct for PatchedWritableTunnelRequestGroup
+type PatchedWritableTunnelRequestGroup struct {
+ BriefTunnelGroupRequest *BriefTunnelGroupRequest
+ Int32 *int32
+}
+
+// BriefTunnelGroupRequestAsPatchedWritableTunnelRequestGroup is a convenience function that returns BriefTunnelGroupRequest wrapped in PatchedWritableTunnelRequestGroup
+func BriefTunnelGroupRequestAsPatchedWritableTunnelRequestGroup(v *BriefTunnelGroupRequest) PatchedWritableTunnelRequestGroup {
+ return PatchedWritableTunnelRequestGroup{
+ BriefTunnelGroupRequest: v,
+ }
+}
+
+// int32AsPatchedWritableTunnelRequestGroup is a convenience function that returns int32 wrapped in PatchedWritableTunnelRequestGroup
+func Int32AsPatchedWritableTunnelRequestGroup(v *int32) PatchedWritableTunnelRequestGroup {
+ return PatchedWritableTunnelRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableTunnelRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefTunnelGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefTunnelGroupRequest)
+ if err == nil {
+ jsonBriefTunnelGroupRequest, _ := json.Marshal(dst.BriefTunnelGroupRequest)
+ if string(jsonBriefTunnelGroupRequest) == "{}" { // empty struct
+ dst.BriefTunnelGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefTunnelGroupRequest); err != nil {
+ dst.BriefTunnelGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefTunnelGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefTunnelGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableTunnelRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableTunnelRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableTunnelRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefTunnelGroupRequest != nil {
+ return json.Marshal(&src.BriefTunnelGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableTunnelRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefTunnelGroupRequest != nil {
+ return obj.BriefTunnelGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableTunnelRequestGroup struct {
+ value *PatchedWritableTunnelRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelRequestGroup) Get() *PatchedWritableTunnelRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelRequestGroup) Set(val *PatchedWritableTunnelRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelRequestGroup(val *PatchedWritableTunnelRequestGroup) *NullablePatchedWritableTunnelRequestGroup {
+ return &NullablePatchedWritableTunnelRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_tunnel_request_ipsec_profile.go b/model_patched_writable_tunnel_request_ipsec_profile.go
new file mode 100644
index 000000000..471d9683b
--- /dev/null
+++ b/model_patched_writable_tunnel_request_ipsec_profile.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableTunnelRequestIpsecProfile - struct for PatchedWritableTunnelRequestIpsecProfile
+type PatchedWritableTunnelRequestIpsecProfile struct {
+ BriefIPSecProfileRequest *BriefIPSecProfileRequest
+ Int32 *int32
+}
+
+// BriefIPSecProfileRequestAsPatchedWritableTunnelRequestIpsecProfile is a convenience function that returns BriefIPSecProfileRequest wrapped in PatchedWritableTunnelRequestIpsecProfile
+func BriefIPSecProfileRequestAsPatchedWritableTunnelRequestIpsecProfile(v *BriefIPSecProfileRequest) PatchedWritableTunnelRequestIpsecProfile {
+ return PatchedWritableTunnelRequestIpsecProfile{
+ BriefIPSecProfileRequest: v,
+ }
+}
+
+// int32AsPatchedWritableTunnelRequestIpsecProfile is a convenience function that returns int32 wrapped in PatchedWritableTunnelRequestIpsecProfile
+func Int32AsPatchedWritableTunnelRequestIpsecProfile(v *int32) PatchedWritableTunnelRequestIpsecProfile {
+ return PatchedWritableTunnelRequestIpsecProfile{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableTunnelRequestIpsecProfile) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefIPSecProfileRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefIPSecProfileRequest)
+ if err == nil {
+ jsonBriefIPSecProfileRequest, _ := json.Marshal(dst.BriefIPSecProfileRequest)
+ if string(jsonBriefIPSecProfileRequest) == "{}" { // empty struct
+ dst.BriefIPSecProfileRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefIPSecProfileRequest); err != nil {
+ dst.BriefIPSecProfileRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefIPSecProfileRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefIPSecProfileRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableTunnelRequestIpsecProfile)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableTunnelRequestIpsecProfile)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableTunnelRequestIpsecProfile) MarshalJSON() ([]byte, error) {
+ if src.BriefIPSecProfileRequest != nil {
+ return json.Marshal(&src.BriefIPSecProfileRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableTunnelRequestIpsecProfile) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefIPSecProfileRequest != nil {
+ return obj.BriefIPSecProfileRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableTunnelRequestIpsecProfile struct {
+ value *PatchedWritableTunnelRequestIpsecProfile
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelRequestIpsecProfile) Get() *PatchedWritableTunnelRequestIpsecProfile {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelRequestIpsecProfile) Set(val *PatchedWritableTunnelRequestIpsecProfile) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelRequestIpsecProfile) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelRequestIpsecProfile) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelRequestIpsecProfile(val *PatchedWritableTunnelRequestIpsecProfile) *NullablePatchedWritableTunnelRequestIpsecProfile {
+ return &NullablePatchedWritableTunnelRequestIpsecProfile{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelRequestIpsecProfile) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelRequestIpsecProfile) 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
index 9ef91cc24..bd4ff1232 100644
--- a/model_patched_writable_tunnel_request_status.go
+++ b/model_patched_writable_tunnel_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableTunnelRequestStatus string
// List of PatchedWritableTunnelRequest_status
const (
- PATCHEDWRITABLETUNNELREQUESTSTATUS_PLANNED PatchedWritableTunnelRequestStatus = "planned"
- PATCHEDWRITABLETUNNELREQUESTSTATUS_ACTIVE PatchedWritableTunnelRequestStatus = "active"
+ PATCHEDWRITABLETUNNELREQUESTSTATUS_PLANNED PatchedWritableTunnelRequestStatus = "planned"
+ PATCHEDWRITABLETUNNELREQUESTSTATUS_ACTIVE PatchedWritableTunnelRequestStatus = "active"
PATCHEDWRITABLETUNNELREQUESTSTATUS_DISABLED PatchedWritableTunnelRequestStatus = "disabled"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableTunnelRequestStatus) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go
index fd38d97f3..cf9b66fba 100644
--- a/model_patched_writable_tunnel_termination_request.go
+++ b/model_patched_writable_tunnel_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{}
// PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags.
type PatchedWritableTunnelTerminationRequest struct {
- Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"`
- Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
- TerminationType *string `json:"termination_type,omitempty"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tunnel *PatchedWritableTunnelTerminationRequestTunnel `json:"tunnel,omitempty"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ TerminationType *string `json:"termination_type,omitempty"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ OutsideIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"outside_ip,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu
}
// GetTunnel returns the Tunnel field value if set, zero value otherwise.
-func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest {
+func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() PatchedWritableTunnelTerminationRequestTunnel {
if o == nil || IsNil(o.Tunnel) {
- var ret BriefTunnelRequest
+ var ret PatchedWritableTunnelTerminationRequestTunnel
return ret
}
return *o.Tunnel
@@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest
// 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() (*BriefTunnelRequest, bool) {
+func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*PatchedWritableTunnelTerminationRequestTunnel, bool) {
if o == nil || IsNil(o.Tunnel) {
return nil, false
}
@@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool {
return false
}
-// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field.
-func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) {
+// SetTunnel gets a reference to the given PatchedWritableTunnelTerminationRequestTunnel and assigns it to the Tunnel field.
+func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v PatchedWritableTunnelTerminationRequestTunnel) {
o.Tunnel = &v
}
@@ -176,6 +176,7 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTerminationId() bool {
func (o *PatchedWritableTunnelTerminationRequest) SetTerminationId(v int64) {
o.TerminationId.Set(&v)
}
+
// SetTerminationIdNil sets the value for TerminationId to be an explicit nil
func (o *PatchedWritableTunnelTerminationRequest) SetTerminationIdNil() {
o.TerminationId.Set(nil)
@@ -187,9 +188,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() {
}
// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest {
+func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OutsideIp.Get()
@@ -198,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressR
// 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() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -214,10 +215,11 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field.
-func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) {
+// SetOutsideIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OutsideIp field.
+func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OutsideIp.Set(&v)
}
+
// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIpNil() {
o.OutsideIp.Set(nil)
@@ -293,7 +295,7 @@ func (o *PatchedWritableTunnelTerminationRequest) SetCustomFields(v map[string]i
}
func (o PatchedWritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -393,5 +395,3 @@ func (v *NullablePatchedWritableTunnelTerminationRequest) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go
index bc58c70c6..1f7e8e2e2 100644
--- a/model_patched_writable_tunnel_termination_request_role.go
+++ b/model_patched_writable_tunnel_termination_request_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableTunnelTerminationRequestRole string
// List of PatchedWritableTunnelTerminationRequest_role
const (
- PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_PEER PatchedWritableTunnelTerminationRequestRole = "peer"
- PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_HUB PatchedWritableTunnelTerminationRequestRole = "hub"
+ PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_PEER PatchedWritableTunnelTerminationRequestRole = "peer"
+ PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_HUB PatchedWritableTunnelTerminationRequestRole = "hub"
PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_SPOKE PatchedWritableTunnelTerminationRequestRole = "spoke"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableTunnelTerminationRequestRole) UnmarshalJSON(src
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_tunnel_termination_request_tunnel.go b/model_patched_writable_tunnel_termination_request_tunnel.go
new file mode 100644
index 000000000..58b05303a
--- /dev/null
+++ b/model_patched_writable_tunnel_termination_request_tunnel.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableTunnelTerminationRequestTunnel - struct for PatchedWritableTunnelTerminationRequestTunnel
+type PatchedWritableTunnelTerminationRequestTunnel struct {
+ BriefTunnelRequest *BriefTunnelRequest
+ Int32 *int32
+}
+
+// BriefTunnelRequestAsPatchedWritableTunnelTerminationRequestTunnel is a convenience function that returns BriefTunnelRequest wrapped in PatchedWritableTunnelTerminationRequestTunnel
+func BriefTunnelRequestAsPatchedWritableTunnelTerminationRequestTunnel(v *BriefTunnelRequest) PatchedWritableTunnelTerminationRequestTunnel {
+ return PatchedWritableTunnelTerminationRequestTunnel{
+ BriefTunnelRequest: v,
+ }
+}
+
+// int32AsPatchedWritableTunnelTerminationRequestTunnel is a convenience function that returns int32 wrapped in PatchedWritableTunnelTerminationRequestTunnel
+func Int32AsPatchedWritableTunnelTerminationRequestTunnel(v *int32) PatchedWritableTunnelTerminationRequestTunnel {
+ return PatchedWritableTunnelTerminationRequestTunnel{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableTunnelTerminationRequestTunnel) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefTunnelRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefTunnelRequest)
+ if err == nil {
+ jsonBriefTunnelRequest, _ := json.Marshal(dst.BriefTunnelRequest)
+ if string(jsonBriefTunnelRequest) == "{}" { // empty struct
+ dst.BriefTunnelRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefTunnelRequest); err != nil {
+ dst.BriefTunnelRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefTunnelRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefTunnelRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableTunnelTerminationRequestTunnel)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableTunnelTerminationRequestTunnel)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableTunnelTerminationRequestTunnel) MarshalJSON() ([]byte, error) {
+ if src.BriefTunnelRequest != nil {
+ return json.Marshal(&src.BriefTunnelRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableTunnelTerminationRequestTunnel) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefTunnelRequest != nil {
+ return obj.BriefTunnelRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableTunnelTerminationRequestTunnel struct {
+ value *PatchedWritableTunnelTerminationRequestTunnel
+ isSet bool
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestTunnel) Get() *PatchedWritableTunnelTerminationRequestTunnel {
+ return v.value
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestTunnel) Set(val *PatchedWritableTunnelTerminationRequestTunnel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestTunnel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestTunnel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableTunnelTerminationRequestTunnel(val *PatchedWritableTunnelTerminationRequestTunnel) *NullablePatchedWritableTunnelTerminationRequestTunnel {
+ return &NullablePatchedWritableTunnelTerminationRequestTunnel{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableTunnelTerminationRequestTunnel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableTunnelTerminationRequestTunnel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go
index 915041168..349d6c409 100644
--- a/model_patched_writable_virtual_chassis_request.go
+++ b/model_patched_writable_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableVirtualChassisRequest{}
// PatchedWritableVirtualChassisRequest Adds support for custom fields and tags.
type PatchedWritableVirtualChassisRequest struct {
- Name *string `json:"name,omitempty"`
- Domain *string `json:"domain,omitempty"`
- Master NullableInt32 `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Domain *string `json:"domain,omitempty"`
+ Master NullableInt32 `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -144,6 +144,7 @@ func (o *PatchedWritableVirtualChassisRequest) HasMaster() bool {
func (o *PatchedWritableVirtualChassisRequest) SetMaster(v int32) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *PatchedWritableVirtualChassisRequest) SetMasterNil() {
o.Master.Set(nil)
@@ -283,7 +284,7 @@ func (o *PatchedWritableVirtualChassisRequest) SetCustomFields(v map[string]inte
}
func (o PatchedWritableVirtualChassisRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -383,5 +384,3 @@ func (v *NullablePatchedWritableVirtualChassisRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_virtual_circuit_request.go b/model_patched_writable_virtual_circuit_request.go
index f86405818..988703ae5 100644
--- a/model_patched_writable_virtual_circuit_request.go
+++ b/model_patched_writable_virtual_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &PatchedWritableVirtualCircuitRequest{}
// PatchedWritableVirtualCircuitRequest Adds support for custom fields and tags.
type PatchedWritableVirtualCircuitRequest struct {
// Unique circuit ID
- Cid *string `json:"cid,omitempty"`
- ProviderNetwork *BriefProviderNetworkRequest `json:"provider_network,omitempty"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type *BriefVirtualCircuitTypeRequest `json:"type,omitempty"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Cid *string `json:"cid,omitempty"`
+ ProviderNetwork *BriefVirtualCircuitRequestProviderNetwork `json:"provider_network,omitempty"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type *PatchedWritableVirtualCircuitRequestType `json:"type,omitempty"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualCircuitRequest) SetCid(v string) {
}
// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest {
+func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetwork() BriefVirtualCircuitRequestProviderNetwork {
if o == nil || IsNil(o.ProviderNetwork) {
- var ret BriefProviderNetworkRequest
+ var ret BriefVirtualCircuitRequestProviderNetwork
return ret
}
return *o.ProviderNetwork
@@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetwork() BriefProvide
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) {
+func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefVirtualCircuitRequestProviderNetwork, bool) {
if o == nil || IsNil(o.ProviderNetwork) {
return nil, false
}
@@ -111,15 +111,15 @@ func (o *PatchedWritableVirtualCircuitRequest) HasProviderNetwork() bool {
return false
}
-// SetProviderNetwork gets a reference to the given BriefProviderNetworkRequest and assigns it to the ProviderNetwork field.
-func (o *PatchedWritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) {
+// SetProviderNetwork gets a reference to the given BriefVirtualCircuitRequestProviderNetwork and assigns it to the ProviderNetwork field.
+func (o *PatchedWritableVirtualCircuitRequest) SetProviderNetwork(v BriefVirtualCircuitRequestProviderNetwork) {
o.ProviderNetwork = &v
}
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -128,7 +128,7 @@ func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccount() BriefProvide
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -144,10 +144,11 @@ func (o *PatchedWritableVirtualCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -159,9 +160,9 @@ func (o *PatchedWritableVirtualCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest {
+func (o *PatchedWritableVirtualCircuitRequest) GetType() PatchedWritableVirtualCircuitRequestType {
if o == nil || IsNil(o.Type) {
- var ret BriefVirtualCircuitTypeRequest
+ var ret PatchedWritableVirtualCircuitRequestType
return ret
}
return *o.Type
@@ -169,7 +170,7 @@ func (o *PatchedWritableVirtualCircuitRequest) GetType() BriefVirtualCircuitType
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) {
+func (o *PatchedWritableVirtualCircuitRequest) GetTypeOk() (*PatchedWritableVirtualCircuitRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -185,8 +186,8 @@ func (o *PatchedWritableVirtualCircuitRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given BriefVirtualCircuitTypeRequest and assigns it to the Type field.
-func (o *PatchedWritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) {
+// SetType gets a reference to the given PatchedWritableVirtualCircuitRequestType and assigns it to the Type field.
+func (o *PatchedWritableVirtualCircuitRequest) SetType(v PatchedWritableVirtualCircuitRequestType) {
o.Type = &v
}
@@ -223,9 +224,9 @@ func (o *PatchedWritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualCircuitRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableVirtualCircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -234,7 +235,7 @@ func (o *PatchedWritableVirtualCircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableVirtualCircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -250,10 +251,11 @@ func (o *PatchedWritableVirtualCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableVirtualCircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableVirtualCircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -393,7 +395,7 @@ func (o *PatchedWritableVirtualCircuitRequest) SetCustomFields(v map[string]inte
}
func (o PatchedWritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -505,5 +507,3 @@ func (v *NullablePatchedWritableVirtualCircuitRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_virtual_circuit_request_type.go b/model_patched_writable_virtual_circuit_request_type.go
new file mode 100644
index 000000000..de259ff58
--- /dev/null
+++ b/model_patched_writable_virtual_circuit_request_type.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVirtualCircuitRequestType - struct for PatchedWritableVirtualCircuitRequestType
+type PatchedWritableVirtualCircuitRequestType struct {
+ BriefVirtualCircuitTypeRequest *BriefVirtualCircuitTypeRequest
+ Int32 *int32
+}
+
+// BriefVirtualCircuitTypeRequestAsPatchedWritableVirtualCircuitRequestType is a convenience function that returns BriefVirtualCircuitTypeRequest wrapped in PatchedWritableVirtualCircuitRequestType
+func BriefVirtualCircuitTypeRequestAsPatchedWritableVirtualCircuitRequestType(v *BriefVirtualCircuitTypeRequest) PatchedWritableVirtualCircuitRequestType {
+ return PatchedWritableVirtualCircuitRequestType{
+ BriefVirtualCircuitTypeRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVirtualCircuitRequestType is a convenience function that returns int32 wrapped in PatchedWritableVirtualCircuitRequestType
+func Int32AsPatchedWritableVirtualCircuitRequestType(v *int32) PatchedWritableVirtualCircuitRequestType {
+ return PatchedWritableVirtualCircuitRequestType{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVirtualCircuitRequestType) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefVirtualCircuitTypeRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVirtualCircuitTypeRequest)
+ if err == nil {
+ jsonBriefVirtualCircuitTypeRequest, _ := json.Marshal(dst.BriefVirtualCircuitTypeRequest)
+ if string(jsonBriefVirtualCircuitTypeRequest) == "{}" { // empty struct
+ dst.BriefVirtualCircuitTypeRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVirtualCircuitTypeRequest); err != nil {
+ dst.BriefVirtualCircuitTypeRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVirtualCircuitTypeRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVirtualCircuitTypeRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVirtualCircuitRequestType)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVirtualCircuitRequestType)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVirtualCircuitRequestType) MarshalJSON() ([]byte, error) {
+ if src.BriefVirtualCircuitTypeRequest != nil {
+ return json.Marshal(&src.BriefVirtualCircuitTypeRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVirtualCircuitRequestType) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVirtualCircuitTypeRequest != nil {
+ return obj.BriefVirtualCircuitTypeRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVirtualCircuitRequestType struct {
+ value *PatchedWritableVirtualCircuitRequestType
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualCircuitRequestType) Get() *PatchedWritableVirtualCircuitRequestType {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualCircuitRequestType) Set(val *PatchedWritableVirtualCircuitRequestType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualCircuitRequestType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualCircuitRequestType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualCircuitRequestType(val *PatchedWritableVirtualCircuitRequestType) *NullablePatchedWritableVirtualCircuitRequestType {
+ return &NullablePatchedWritableVirtualCircuitRequestType{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualCircuitRequestType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualCircuitRequestType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_virtual_circuit_termination_request.go b/model_patched_writable_virtual_circuit_termination_request.go
index 0dab69c05..2ad5a414d 100644
--- a/model_patched_writable_virtual_circuit_termination_request.go
+++ b/model_patched_writable_virtual_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableVirtualCircuitTerminationRequest{}
// PatchedWritableVirtualCircuitTerminationRequest Adds support for custom fields and tags.
type PatchedWritableVirtualCircuitTerminationRequest struct {
- VirtualCircuit *BriefVirtualCircuitRequest `json:"virtual_circuit,omitempty"`
- Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
- Interface *BriefInterfaceRequest `json:"interface,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualCircuit *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit `json:"virtual_circuit,omitempty"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ Interface *PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -48,9 +48,9 @@ func NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults() *PatchedWr
}
// GetVirtualCircuit returns the VirtualCircuit field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest {
+func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuit() PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
if o == nil || IsNil(o.VirtualCircuit) {
- var ret BriefVirtualCircuitRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
return ret
}
return *o.VirtualCircuit
@@ -58,7 +58,7 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuit() Br
// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) {
+func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit, bool) {
if o == nil || IsNil(o.VirtualCircuit) {
return nil, false
}
@@ -74,8 +74,8 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) HasVirtualCircuit() bo
return false
}
-// SetVirtualCircuit gets a reference to the given BriefVirtualCircuitRequest and assigns it to the VirtualCircuit field.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) {
+// SetVirtualCircuit gets a reference to the given PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit and assigns it to the VirtualCircuit field.
+func (o *PatchedWritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) {
o.VirtualCircuit = &v
}
@@ -112,9 +112,9 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) SetRole(v PatchedWrita
}
// GetInterface returns the Interface field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest {
+func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterface() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil || IsNil(o.Interface) {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
return *o.Interface
@@ -122,7 +122,7 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterface() BriefIn
// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) {
+func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil || IsNil(o.Interface) {
return nil, false
}
@@ -138,8 +138,8 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) HasInterface() bool {
return false
}
-// SetInterface gets a reference to the given BriefInterfaceRequest and assigns it to the Interface field.
-func (o *PatchedWritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) {
+// SetInterface gets a reference to the given PatchedWritableVirtualCircuitTerminationRequestInterface and assigns it to the Interface field.
+func (o *PatchedWritableVirtualCircuitTerminationRequest) SetInterface(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.Interface = &v
}
@@ -240,7 +240,7 @@ func (o *PatchedWritableVirtualCircuitTerminationRequest) SetCustomFields(v map[
}
func (o PatchedWritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -336,5 +336,3 @@ func (v *NullablePatchedWritableVirtualCircuitTerminationRequest) UnmarshalJSON(
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_virtual_circuit_termination_request_interface.go b/model_patched_writable_virtual_circuit_termination_request_interface.go
new file mode 100644
index 000000000..5eb10b3be
--- /dev/null
+++ b/model_patched_writable_virtual_circuit_termination_request_interface.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVirtualCircuitTerminationRequestInterface - struct for PatchedWritableVirtualCircuitTerminationRequestInterface
+type PatchedWritableVirtualCircuitTerminationRequestInterface struct {
+ BriefInterfaceRequest *BriefInterfaceRequest
+ Int32 *int32
+}
+
+// BriefInterfaceRequestAsPatchedWritableVirtualCircuitTerminationRequestInterface is a convenience function that returns BriefInterfaceRequest wrapped in PatchedWritableVirtualCircuitTerminationRequestInterface
+func BriefInterfaceRequestAsPatchedWritableVirtualCircuitTerminationRequestInterface(v *BriefInterfaceRequest) PatchedWritableVirtualCircuitTerminationRequestInterface {
+ return PatchedWritableVirtualCircuitTerminationRequestInterface{
+ BriefInterfaceRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVirtualCircuitTerminationRequestInterface is a convenience function that returns int32 wrapped in PatchedWritableVirtualCircuitTerminationRequestInterface
+func Int32AsPatchedWritableVirtualCircuitTerminationRequestInterface(v *int32) PatchedWritableVirtualCircuitTerminationRequestInterface {
+ return PatchedWritableVirtualCircuitTerminationRequestInterface{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVirtualCircuitTerminationRequestInterface) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefInterfaceRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefInterfaceRequest)
+ if err == nil {
+ jsonBriefInterfaceRequest, _ := json.Marshal(dst.BriefInterfaceRequest)
+ if string(jsonBriefInterfaceRequest) == "{}" { // empty struct
+ dst.BriefInterfaceRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefInterfaceRequest); err != nil {
+ dst.BriefInterfaceRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefInterfaceRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefInterfaceRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVirtualCircuitTerminationRequestInterface)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVirtualCircuitTerminationRequestInterface)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVirtualCircuitTerminationRequestInterface) MarshalJSON() ([]byte, error) {
+ if src.BriefInterfaceRequest != nil {
+ return json.Marshal(&src.BriefInterfaceRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVirtualCircuitTerminationRequestInterface) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefInterfaceRequest != nil {
+ return obj.BriefInterfaceRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVirtualCircuitTerminationRequestInterface struct {
+ value *PatchedWritableVirtualCircuitTerminationRequestInterface
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestInterface) Get() *PatchedWritableVirtualCircuitTerminationRequestInterface {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestInterface) Set(val *PatchedWritableVirtualCircuitTerminationRequestInterface) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestInterface) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestInterface) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualCircuitTerminationRequestInterface(val *PatchedWritableVirtualCircuitTerminationRequestInterface) *NullablePatchedWritableVirtualCircuitTerminationRequestInterface {
+ return &NullablePatchedWritableVirtualCircuitTerminationRequestInterface{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestInterface) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestInterface) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_virtual_circuit_termination_request_virtual_circuit.go b/model_patched_writable_virtual_circuit_termination_request_virtual_circuit.go
new file mode 100644
index 000000000..e88d6fb04
--- /dev/null
+++ b/model_patched_writable_virtual_circuit_termination_request_virtual_circuit.go
@@ -0,0 +1,155 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit - struct for PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
+type PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit struct {
+ BriefVirtualCircuitRequest *BriefVirtualCircuitRequest
+ Int32 *int32
+}
+
+// BriefVirtualCircuitRequestAsPatchedWritableVirtualCircuitTerminationRequestVirtualCircuit is a convenience function that returns BriefVirtualCircuitRequest wrapped in PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
+func BriefVirtualCircuitRequestAsPatchedWritableVirtualCircuitTerminationRequestVirtualCircuit(v *BriefVirtualCircuitRequest) PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
+ return PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit{
+ BriefVirtualCircuitRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVirtualCircuitTerminationRequestVirtualCircuit is a convenience function that returns int32 wrapped in PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
+func Int32AsPatchedWritableVirtualCircuitTerminationRequestVirtualCircuit(v *int32) PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
+ return PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) UnmarshalJSON(data []byte) error {
+ var err error
+ match := 0
+ // try to unmarshal data into BriefVirtualCircuitRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVirtualCircuitRequest)
+ if err == nil {
+ jsonBriefVirtualCircuitRequest, _ := json.Marshal(dst.BriefVirtualCircuitRequest)
+ if string(jsonBriefVirtualCircuitRequest) == "{}" { // empty struct
+ dst.BriefVirtualCircuitRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVirtualCircuitRequest); err != nil {
+ dst.BriefVirtualCircuitRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVirtualCircuitRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVirtualCircuitRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) MarshalJSON() ([]byte, error) {
+ if src.BriefVirtualCircuitRequest != nil {
+ return json.Marshal(&src.BriefVirtualCircuitRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVirtualCircuitRequest != nil {
+ return obj.BriefVirtualCircuitRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit struct {
+ value *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) Get() *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) Set(val *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit(val *PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) *NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
+ return &NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go
index a5d0081b6..c430d59f2 100644
--- a/model_patched_writable_virtual_device_context_request.go
+++ b/model_patched_writable_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{}
// PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags.
type PatchedWritableVirtualDeviceContextRequest struct {
- Name *string `json:"name,omitempty"`
- Device *BriefDeviceRequest `json:"device,omitempty"`
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Device *BriefInterfaceRequestDevice `json:"device,omitempty"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) {
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil || IsNil(o.Device) {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
return *o.Device
@@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequ
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given BriefInterfaceRequestDevice and assigns it to the Device field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = &v
}
@@ -148,6 +148,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasIdentifier() bool {
func (o *PatchedWritableVirtualDeviceContextRequest) SetIdentifier(v int32) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *PatchedWritableVirtualDeviceContextRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -159,9 +160,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetIdentifier() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -170,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequ
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -186,10 +187,11 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableVirtualDeviceContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -201,9 +203,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetTenant() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -212,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddr
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -228,10 +230,11 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -243,9 +246,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -254,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddr
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -270,10 +273,11 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -445,7 +449,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetCustomFields(v map[strin
}
func (o PatchedWritableVirtualDeviceContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -561,5 +565,3 @@ func (v *NullablePatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(src [
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go
index ca703bca4..f3ace5740 100644
--- a/model_patched_writable_virtual_device_context_request_status.go
+++ b/model_patched_writable_virtual_device_context_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type PatchedWritableVirtualDeviceContextRequestStatus string
// List of PatchedWritableVirtualDeviceContextRequest_status
const (
- PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualDeviceContextRequestStatus = "active"
+ PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualDeviceContextRequestStatus = "active"
PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_PLANNED PatchedWritableVirtualDeviceContextRequestStatus = "planned"
PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_OFFLINE PatchedWritableVirtualDeviceContextRequestStatus = "offline"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableVirtualDeviceContextRequestStatus) UnmarshalJSON
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go
index 5ccd199a9..829de3346 100644
--- a/model_patched_writable_virtual_machine_with_config_context_request.go
+++ b/model_patched_writable_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,27 +19,27 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{}
// PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableVirtualMachineWithConfigContextRequest struct {
- Name *string `json:"name,omitempty"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- Serial *string `json:"serial,omitempty"`
- Role NullableBriefDeviceRoleRequest `json:"role,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Status *PatchedWritableVirtualMachineWithConfigContextRequestStatus `json:"status,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ Device NullableDeviceBayRequestInstalledDevice `json:"device,omitempty"`
+ Serial *string `json:"serial,omitempty"`
+ Role NullablePatchedWritableVirtualMachineWithConfigContextRequestRole `json:"role,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Vcpus NullableFloat64 `json:"vcpus,omitempty"`
+ Memory NullableInt32 `json:"memory,omitempty"`
+ Disk NullableInt32 `json:"disk,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -95,9 +95,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableVirtualMachineWithConfigContextRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret InventoryItemStatusValue
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestStatus
return ret
}
return *o.Status
@@ -105,7 +105,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Inve
// 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() (*InventoryItemStatusValue, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableVirtualMachineWithConfigContextRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -121,15 +121,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool
return false
}
-// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableVirtualMachineWithConfigContextRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableVirtualMachineWithConfigContextRequestStatus) {
o.Status = &v
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -138,7 +138,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefS
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -154,10 +154,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -169,9 +170,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetSite() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -180,7 +181,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Bri
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -196,10 +197,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -211,9 +213,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetCluster() {
}
// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceBayRequestInstalledDevice {
if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+ var ret DeviceBayRequestInstalledDevice
return ret
}
return *o.Device.Get()
@@ -222,7 +224,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Brie
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceBayRequestInstalledDevice, bool) {
if o == nil {
return nil, false
}
@@ -238,10 +240,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool
return false
}
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given NullableDeviceBayRequestInstalledDevice and assigns it to the Device field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceBayRequestInstalledDevice) {
o.Device.Set(&v)
}
+
// SetDeviceNil sets the value for Device to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDeviceNil() {
o.Device.Set(nil)
@@ -285,9 +288,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v stri
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() PatchedWritableVirtualMachineWithConfigContextRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefDeviceRoleRequest
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestRole
return ret
}
return *o.Role.Get()
@@ -296,7 +299,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefD
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*PatchedWritableVirtualMachineWithConfigContextRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -312,10 +315,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableVirtualMachineWithConfigContextRequestRole and assigns it to the Role field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v PatchedWritableVirtualMachineWithConfigContextRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -327,9 +331,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetRole() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -338,7 +342,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Brie
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -354,10 +358,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -369,9 +374,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -380,7 +385,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Br
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -396,10 +401,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -411,9 +417,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPlatform()
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -422,7 +428,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4()
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -438,10 +444,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4()
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -453,9 +460,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4(
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -464,7 +471,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6()
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -480,10 +487,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6()
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -526,6 +534,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasVcpus() bool
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetVcpus(v float64) {
o.Vcpus.Set(&v)
}
+
// SetVcpusNil sets the value for Vcpus to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetVcpusNil() {
o.Vcpus.Set(nil)
@@ -568,6 +577,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasMemory() bool
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetMemory(v int32) {
o.Memory.Set(&v)
}
+
// SetMemoryNil sets the value for Memory to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetMemoryNil() {
o.Memory.Set(nil)
@@ -610,6 +620,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDisk() bool {
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDisk(v int32) {
o.Disk.Set(&v)
}
+
// SetDiskNil sets the value for Disk to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDiskNil() {
o.Disk.Set(nil)
@@ -685,9 +696,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -696,7 +707,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplat
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -712,10 +723,11 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -824,7 +836,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCustomFields(
}
func (o PatchedWritableVirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -976,5 +988,3 @@ func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequest) Unmarsha
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_virtual_machine_with_config_context_request_role.go b/model_patched_writable_virtual_machine_with_config_context_request_role.go
new file mode 100644
index 000000000..c35f2bf12
--- /dev/null
+++ b/model_patched_writable_virtual_machine_with_config_context_request_role.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVirtualMachineWithConfigContextRequestRole - struct for PatchedWritableVirtualMachineWithConfigContextRequestRole
+type PatchedWritableVirtualMachineWithConfigContextRequestRole struct {
+ BriefDeviceRoleRequest *BriefDeviceRoleRequest
+ Int32 *int32
+}
+
+// BriefDeviceRoleRequestAsPatchedWritableVirtualMachineWithConfigContextRequestRole is a convenience function that returns BriefDeviceRoleRequest wrapped in PatchedWritableVirtualMachineWithConfigContextRequestRole
+func BriefDeviceRoleRequestAsPatchedWritableVirtualMachineWithConfigContextRequestRole(v *BriefDeviceRoleRequest) PatchedWritableVirtualMachineWithConfigContextRequestRole {
+ return PatchedWritableVirtualMachineWithConfigContextRequestRole{
+ BriefDeviceRoleRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVirtualMachineWithConfigContextRequestRole is a convenience function that returns int32 wrapped in PatchedWritableVirtualMachineWithConfigContextRequestRole
+func Int32AsPatchedWritableVirtualMachineWithConfigContextRequestRole(v *int32) PatchedWritableVirtualMachineWithConfigContextRequestRole {
+ return PatchedWritableVirtualMachineWithConfigContextRequestRole{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVirtualMachineWithConfigContextRequestRole) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefDeviceRoleRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefDeviceRoleRequest)
+ if err == nil {
+ jsonBriefDeviceRoleRequest, _ := json.Marshal(dst.BriefDeviceRoleRequest)
+ if string(jsonBriefDeviceRoleRequest) == "{}" { // empty struct
+ dst.BriefDeviceRoleRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefDeviceRoleRequest); err != nil {
+ dst.BriefDeviceRoleRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefDeviceRoleRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefDeviceRoleRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVirtualMachineWithConfigContextRequestRole)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVirtualMachineWithConfigContextRequestRole)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVirtualMachineWithConfigContextRequestRole) MarshalJSON() ([]byte, error) {
+ if src.BriefDeviceRoleRequest != nil {
+ return json.Marshal(&src.BriefDeviceRoleRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVirtualMachineWithConfigContextRequestRole) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefDeviceRoleRequest != nil {
+ return obj.BriefDeviceRoleRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVirtualMachineWithConfigContextRequestRole struct {
+ value *PatchedWritableVirtualMachineWithConfigContextRequestRole
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) Get() *PatchedWritableVirtualMachineWithConfigContextRequestRole {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) Set(val *PatchedWritableVirtualMachineWithConfigContextRequestRole) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualMachineWithConfigContextRequestRole(val *PatchedWritableVirtualMachineWithConfigContextRequestRole) *NullablePatchedWritableVirtualMachineWithConfigContextRequestRole {
+ return &NullablePatchedWritableVirtualMachineWithConfigContextRequestRole{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestRole) 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_status.go b/model_patched_writable_virtual_machine_with_config_context_request_status.go
new file mode 100644
index 000000000..00733130a
--- /dev/null
+++ b/model_patched_writable_virtual_machine_with_config_context_request_status.go
@@ -0,0 +1,120 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PatchedWritableVirtualMachineWithConfigContextRequestStatus * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning * `paused` - Paused
+type PatchedWritableVirtualMachineWithConfigContextRequestStatus string
+
+// List of PatchedWritableVirtualMachineWithConfigContextRequest_status
+const (
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_OFFLINE PatchedWritableVirtualMachineWithConfigContextRequestStatus = "offline"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualMachineWithConfigContextRequestStatus = "active"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_PLANNED PatchedWritableVirtualMachineWithConfigContextRequestStatus = "planned"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_STAGED PatchedWritableVirtualMachineWithConfigContextRequestStatus = "staged"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_FAILED PatchedWritableVirtualMachineWithConfigContextRequestStatus = "failed"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_DECOMMISSIONING PatchedWritableVirtualMachineWithConfigContextRequestStatus = "decommissioning"
+ PATCHEDWRITABLEVIRTUALMACHINEWITHCONFIGCONTEXTREQUESTSTATUS_PAUSED PatchedWritableVirtualMachineWithConfigContextRequestStatus = "paused"
+)
+
+// All allowed values of PatchedWritableVirtualMachineWithConfigContextRequestStatus enum
+var AllowedPatchedWritableVirtualMachineWithConfigContextRequestStatusEnumValues = []PatchedWritableVirtualMachineWithConfigContextRequestStatus{
+ "offline",
+ "active",
+ "planned",
+ "staged",
+ "failed",
+ "decommissioning",
+ "paused",
+}
+
+func (v *PatchedWritableVirtualMachineWithConfigContextRequestStatus) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PatchedWritableVirtualMachineWithConfigContextRequestStatus(value)
+ for _, existing := range AllowedPatchedWritableVirtualMachineWithConfigContextRequestStatusEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PatchedWritableVirtualMachineWithConfigContextRequestStatus", value)
+}
+
+// NewPatchedWritableVirtualMachineWithConfigContextRequestStatusFromValue returns a pointer to a valid PatchedWritableVirtualMachineWithConfigContextRequestStatus
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPatchedWritableVirtualMachineWithConfigContextRequestStatusFromValue(v string) (*PatchedWritableVirtualMachineWithConfigContextRequestStatus, error) {
+ ev := PatchedWritableVirtualMachineWithConfigContextRequestStatus(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PatchedWritableVirtualMachineWithConfigContextRequestStatus: valid values are %v", v, AllowedPatchedWritableVirtualMachineWithConfigContextRequestStatusEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PatchedWritableVirtualMachineWithConfigContextRequestStatus) IsValid() bool {
+ for _, existing := range AllowedPatchedWritableVirtualMachineWithConfigContextRequestStatusEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PatchedWritableVirtualMachineWithConfigContextRequest_status value
+func (v PatchedWritableVirtualMachineWithConfigContextRequestStatus) Ptr() *PatchedWritableVirtualMachineWithConfigContextRequestStatus {
+ return &v
+}
+
+type NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus struct {
+ value *PatchedWritableVirtualMachineWithConfigContextRequestStatus
+ isSet bool
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) Get() *PatchedWritableVirtualMachineWithConfigContextRequestStatus {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) Set(val *PatchedWritableVirtualMachineWithConfigContextRequestStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVirtualMachineWithConfigContextRequestStatus(val *PatchedWritableVirtualMachineWithConfigContextRequestStatus) *NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus {
+ return &NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequestStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go
index ac3e69c73..65fd74401 100644
--- a/model_patched_writable_vlan_request.go
+++ b/model_patched_writable_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableVLANRequest{}
// PatchedWritableVLANRequest Adds support for custom fields and tags.
type PatchedWritableVLANRequest struct {
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Group NullableBriefVLANGroupRequest `json:"group,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Group NullablePatchedWritableVLANRequestGroup `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid *int32 `json:"vid,omitempty"`
- Name *string `json:"name,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- QinqRole NullableQInQRole `json:"qinq_role,omitempty"`
- QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Vid *int32 `json:"vid,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
+ Description *string `json:"description,omitempty"`
+ QinqRole NullableQInQRole `json:"qinq_role,omitempty"`
+ QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest {
+func (o *PatchedWritableVLANRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -67,7 +67,7 @@ func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PatchedWritableVLANRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -83,10 +83,11 @@ func (o *PatchedWritableVLANRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *PatchedWritableVLANRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *PatchedWritableVLANRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -98,9 +99,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest {
+func (o *PatchedWritableVLANRequest) GetGroup() PatchedWritableVLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefVLANGroupRequest
+ var ret PatchedWritableVLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -109,7 +110,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) {
+func (o *PatchedWritableVLANRequest) GetGroupOk() (*PatchedWritableVLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -125,10 +126,11 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableVLANRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableVLANRequest) SetGroup(v PatchedWritableVLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedWritableVLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -204,9 +206,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableVLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -215,7 +217,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableVLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -231,10 +233,11 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableVLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableVLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -278,9 +281,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest {
+func (o *PatchedWritableVLANRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -289,7 +292,7 @@ func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *PatchedWritableVLANRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -305,10 +308,11 @@ func (o *PatchedWritableVLANRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *PatchedWritableVLANRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PatchedWritableVLANRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -383,6 +387,7 @@ func (o *PatchedWritableVLANRequest) HasQinqRole() bool {
func (o *PatchedWritableVLANRequest) SetQinqRole(v QInQRole) {
o.QinqRole.Set(&v)
}
+
// SetQinqRoleNil sets the value for QinqRole to be an explicit nil
func (o *PatchedWritableVLANRequest) SetQinqRoleNil() {
o.QinqRole.Set(nil)
@@ -425,6 +430,7 @@ func (o *PatchedWritableVLANRequest) HasQinqSvlan() bool {
func (o *PatchedWritableVLANRequest) SetQinqSvlan(v int32) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *PatchedWritableVLANRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -532,7 +538,7 @@ func (o *PatchedWritableVLANRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PatchedWritableVLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -656,5 +662,3 @@ func (v *NullablePatchedWritableVLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_vlan_request_group.go b/model_patched_writable_vlan_request_group.go
new file mode 100644
index 000000000..ace90758c
--- /dev/null
+++ b/model_patched_writable_vlan_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVLANRequestGroup - struct for PatchedWritableVLANRequestGroup
+type PatchedWritableVLANRequestGroup struct {
+ BriefVLANGroupRequest *BriefVLANGroupRequest
+ Int32 *int32
+}
+
+// BriefVLANGroupRequestAsPatchedWritableVLANRequestGroup is a convenience function that returns BriefVLANGroupRequest wrapped in PatchedWritableVLANRequestGroup
+func BriefVLANGroupRequestAsPatchedWritableVLANRequestGroup(v *BriefVLANGroupRequest) PatchedWritableVLANRequestGroup {
+ return PatchedWritableVLANRequestGroup{
+ BriefVLANGroupRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVLANRequestGroup is a convenience function that returns int32 wrapped in PatchedWritableVLANRequestGroup
+func Int32AsPatchedWritableVLANRequestGroup(v *int32) PatchedWritableVLANRequestGroup {
+ return PatchedWritableVLANRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVLANRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefVLANGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefVLANGroupRequest)
+ if err == nil {
+ jsonBriefVLANGroupRequest, _ := json.Marshal(dst.BriefVLANGroupRequest)
+ if string(jsonBriefVLANGroupRequest) == "{}" { // empty struct
+ dst.BriefVLANGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefVLANGroupRequest); err != nil {
+ dst.BriefVLANGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefVLANGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefVLANGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVLANRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVLANRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVLANRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefVLANGroupRequest != nil {
+ return json.Marshal(&src.BriefVLANGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVLANRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefVLANGroupRequest != nil {
+ return obj.BriefVLANGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVLANRequestGroup struct {
+ value *PatchedWritableVLANRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableVLANRequestGroup) Get() *PatchedWritableVLANRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVLANRequestGroup) Set(val *PatchedWritableVLANRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVLANRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVLANRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVLANRequestGroup(val *PatchedWritableVLANRequestGroup) *NullablePatchedWritableVLANRequestGroup {
+ return &NullablePatchedWritableVLANRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVLANRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVLANRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_vlan_request_site.go b/model_patched_writable_vlan_request_site.go
new file mode 100644
index 000000000..f87da49be
--- /dev/null
+++ b/model_patched_writable_vlan_request_site.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableVLANRequestSite - struct for PatchedWritableVLANRequestSite
+type PatchedWritableVLANRequestSite struct {
+ BriefSiteRequest *BriefSiteRequest
+ Int32 *int32
+}
+
+// BriefSiteRequestAsPatchedWritableVLANRequestSite is a convenience function that returns BriefSiteRequest wrapped in PatchedWritableVLANRequestSite
+func BriefSiteRequestAsPatchedWritableVLANRequestSite(v *BriefSiteRequest) PatchedWritableVLANRequestSite {
+ return PatchedWritableVLANRequestSite{
+ BriefSiteRequest: v,
+ }
+}
+
+// int32AsPatchedWritableVLANRequestSite is a convenience function that returns int32 wrapped in PatchedWritableVLANRequestSite
+func Int32AsPatchedWritableVLANRequestSite(v *int32) PatchedWritableVLANRequestSite {
+ return PatchedWritableVLANRequestSite{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableVLANRequestSite) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefSiteRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefSiteRequest)
+ if err == nil {
+ jsonBriefSiteRequest, _ := json.Marshal(dst.BriefSiteRequest)
+ if string(jsonBriefSiteRequest) == "{}" { // empty struct
+ dst.BriefSiteRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefSiteRequest); err != nil {
+ dst.BriefSiteRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefSiteRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefSiteRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableVLANRequestSite)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableVLANRequestSite)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableVLANRequestSite) MarshalJSON() ([]byte, error) {
+ if src.BriefSiteRequest != nil {
+ return json.Marshal(&src.BriefSiteRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableVLANRequestSite) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefSiteRequest != nil {
+ return obj.BriefSiteRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableVLANRequestSite struct {
+ value *PatchedWritableVLANRequestSite
+ isSet bool
+}
+
+func (v NullablePatchedWritableVLANRequestSite) Get() *PatchedWritableVLANRequestSite {
+ return v.value
+}
+
+func (v *NullablePatchedWritableVLANRequestSite) Set(val *PatchedWritableVLANRequestSite) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableVLANRequestSite) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableVLANRequestSite) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableVLANRequestSite(val *PatchedWritableVLANRequestSite) *NullablePatchedWritableVLANRequestSite {
+ return &NullablePatchedWritableVLANRequestSite{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableVLANRequestSite) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableVLANRequestSite) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go
index ec50a6031..cf6cacb18 100644
--- a/model_patched_writable_vlan_request_status.go
+++ b/model_patched_writable_vlan_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type PatchedWritableVLANRequestStatus string
// List of PatchedWritableVLANRequest_status
const (
- PATCHEDWRITABLEVLANREQUESTSTATUS_ACTIVE PatchedWritableVLANRequestStatus = "active"
- PATCHEDWRITABLEVLANREQUESTSTATUS_RESERVED PatchedWritableVLANRequestStatus = "reserved"
+ PATCHEDWRITABLEVLANREQUESTSTATUS_ACTIVE PatchedWritableVLANRequestStatus = "active"
+ PATCHEDWRITABLEVLANREQUESTSTATUS_RESERVED PatchedWritableVLANRequestStatus = "reserved"
PATCHEDWRITABLEVLANREQUESTSTATUS_DEPRECATED PatchedWritableVLANRequestStatus = "deprecated"
)
@@ -110,4 +110,3 @@ func (v *NullablePatchedWritableVLANRequestStatus) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go
index 6a4fbb76c..1da8af24e 100644
--- a/model_patched_writable_vm_interface_request.go
+++ b/model_patched_writable_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,23 +19,23 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{}
// PatchedWritableVMInterfaceRequest Adds support for custom fields and tags.
type PatchedWritableVMInterfaceRequest struct {
- VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"`
- Name *string `json:"name,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
+ VirtualMachine *PatchedVirtualDiskRequestVirtualMachine `json:"virtual_machine,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
}
type _PatchedWritableVMInterfaceRequest PatchedWritableVMInterfaceRequest
@@ -58,9 +58,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf
}
// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise.
-func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() PatchedVirtualDiskRequestVirtualMachine {
if o == nil || IsNil(o.VirtualMachine) {
- var ret BriefVirtualMachineRequest
+ var ret PatchedVirtualDiskRequestVirtualMachine
return ret
}
return *o.VirtualMachine
@@ -68,7 +68,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMach
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*PatchedVirtualDiskRequestVirtualMachine, bool) {
if o == nil || IsNil(o.VirtualMachine) {
return nil, false
}
@@ -84,8 +84,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
+// SetVirtualMachine gets a reference to the given PatchedVirtualDiskRequestVirtualMachine and assigns it to the VirtualMachine field.
+func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v PatchedVirtualDiskRequestVirtualMachine) {
o.VirtualMachine = &v
}
@@ -185,6 +185,7 @@ func (o *PatchedWritableVMInterfaceRequest) HasParent() bool {
func (o *PatchedWritableVMInterfaceRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -227,6 +228,7 @@ func (o *PatchedWritableVMInterfaceRequest) HasBridge() bool {
func (o *PatchedWritableVMInterfaceRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -269,6 +271,7 @@ func (o *PatchedWritableVMInterfaceRequest) HasMtu() bool {
func (o *PatchedWritableVMInterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -280,9 +283,9 @@ func (o *PatchedWritableVMInterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -291,7 +294,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddre
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -307,10 +310,11 @@ func (o *PatchedWritableVMInterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -385,6 +389,7 @@ func (o *PatchedWritableVMInterfaceRequest) HasMode() bool {
func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -396,9 +401,9 @@ func (o *PatchedWritableVMInterfaceRequest) UnsetMode() {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -407,7 +412,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -423,10 +428,11 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -470,9 +476,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -481,7 +487,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -497,10 +503,11 @@ func (o *PatchedWritableVMInterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -512,9 +519,9 @@ func (o *PatchedWritableVMInterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -523,7 +530,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLAN
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -539,10 +546,11 @@ func (o *PatchedWritableVMInterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -554,9 +562,9 @@ func (o *PatchedWritableVMInterfaceRequest) UnsetVlanTranslationPolicy() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *PatchedWritableVMInterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -565,7 +573,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -581,10 +589,11 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PatchedWritableVMInterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PatchedWritableVMInterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -660,7 +669,7 @@ func (o *PatchedWritableVMInterfaceRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritableVMInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -796,5 +805,3 @@ func (v *NullablePatchedWritableVMInterfaceRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go
index 9828b84c9..31f413020 100644
--- a/model_patched_writable_wireless_lan_group_request.go
+++ b/model_patched_writable_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,13 @@ var _ MappedNullable = &PatchedWritableWirelessLANGroupRequest{}
// PatchedWritableWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableWirelessLANGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -143,6 +144,7 @@ func (o *PatchedWritableWirelessLANGroupRequest) HasParent() bool {
func (o *PatchedWritableWirelessLANGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *PatchedWritableWirelessLANGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -249,8 +251,40 @@ func (o *PatchedWritableWirelessLANGroupRequest) SetCustomFields(v map[string]in
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableWirelessLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -277,6 +311,9 @@ func (o PatchedWritableWirelessLANGroupRequest) ToMap() (map[string]interface{},
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -305,6 +342,7 @@ func (o *PatchedWritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -346,5 +384,3 @@ func (v *NullablePatchedWritableWirelessLANGroupRequest) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go
index 3df526f64..6c1d5fcc6 100644
--- a/model_patched_writable_wireless_lan_request.go
+++ b/model_patched_writable_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{}
// PatchedWritableWirelessLANRequest Adds support for custom fields and tags.
type PatchedWritableWirelessLANRequest struct {
- Ssid *string `json:"ssid,omitempty"`
- Description *string `json:"description,omitempty"`
- Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"`
- Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
- AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Ssid *string `json:"ssid,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Group NullablePatchedWritableWirelessLANRequestGroup `json:"group,omitempty"`
+ Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -120,9 +120,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest {
+func (o *PatchedWritableWirelessLANRequest) GetGroup() PatchedWritableWirelessLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefWirelessLANGroupRequest
+ var ret PatchedWritableWirelessLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -131,7 +131,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequ
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*PatchedWritableWirelessLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -147,10 +147,11 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field.
-func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableWirelessLANRequestGroup and assigns it to the Group field.
+func (o *PatchedWritableWirelessLANRequest) SetGroup(v PatchedWritableWirelessLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -194,9 +195,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest {
+func (o *PatchedWritableWirelessLANRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -205,7 +206,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -221,10 +222,11 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *PatchedWritableWirelessLANRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -267,6 +269,7 @@ func (o *PatchedWritableWirelessLANRequest) HasScopeType() bool {
func (o *PatchedWritableWirelessLANRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -309,6 +312,7 @@ func (o *PatchedWritableWirelessLANRequest) HasScopeId() bool {
func (o *PatchedWritableWirelessLANRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -320,9 +324,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableWirelessLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -331,7 +335,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -347,10 +351,11 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableWirelessLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -393,6 +398,7 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthType() bool {
func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -435,6 +441,7 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthCipher() bool {
func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher.Set(&v)
}
+
// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil
func (o *PatchedWritableWirelessLANRequest) SetAuthCipherNil() {
o.AuthCipher.Set(nil)
@@ -574,7 +581,7 @@ func (o *PatchedWritableWirelessLANRequest) SetCustomFields(v map[string]interfa
}
func (o PatchedWritableWirelessLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -702,5 +709,3 @@ func (v *NullablePatchedWritableWirelessLANRequest) UnmarshalJSON(src []byte) er
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_patched_writable_wireless_lan_request_group.go b/model_patched_writable_wireless_lan_request_group.go
new file mode 100644
index 000000000..7bb813a6e
--- /dev/null
+++ b/model_patched_writable_wireless_lan_request_group.go
@@ -0,0 +1,160 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "gopkg.in/validator.v2"
+)
+
+// PatchedWritableWirelessLANRequestGroup - struct for PatchedWritableWirelessLANRequestGroup
+type PatchedWritableWirelessLANRequestGroup struct {
+ BriefWirelessLANGroupRequest *BriefWirelessLANGroupRequest
+ Int32 *int32
+}
+
+// BriefWirelessLANGroupRequestAsPatchedWritableWirelessLANRequestGroup is a convenience function that returns BriefWirelessLANGroupRequest wrapped in PatchedWritableWirelessLANRequestGroup
+func BriefWirelessLANGroupRequestAsPatchedWritableWirelessLANRequestGroup(v *BriefWirelessLANGroupRequest) PatchedWritableWirelessLANRequestGroup {
+ return PatchedWritableWirelessLANRequestGroup{
+ BriefWirelessLANGroupRequest: v,
+ }
+}
+
+// int32AsPatchedWritableWirelessLANRequestGroup is a convenience function that returns int32 wrapped in PatchedWritableWirelessLANRequestGroup
+func Int32AsPatchedWritableWirelessLANRequestGroup(v *int32) PatchedWritableWirelessLANRequestGroup {
+ return PatchedWritableWirelessLANRequestGroup{
+ Int32: v,
+ }
+}
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *PatchedWritableWirelessLANRequestGroup) UnmarshalJSON(data []byte) error {
+ var err error
+ // this object is nullable so check if the payload is null or empty string
+ if string(data) == "" || string(data) == "{}" {
+ return nil
+ }
+
+ match := 0
+ // try to unmarshal data into BriefWirelessLANGroupRequest
+ err = newStrictDecoder(data).Decode(&dst.BriefWirelessLANGroupRequest)
+ if err == nil {
+ jsonBriefWirelessLANGroupRequest, _ := json.Marshal(dst.BriefWirelessLANGroupRequest)
+ if string(jsonBriefWirelessLANGroupRequest) == "{}" { // empty struct
+ dst.BriefWirelessLANGroupRequest = nil
+ } else {
+ if err = validator.Validate(dst.BriefWirelessLANGroupRequest); err != nil {
+ dst.BriefWirelessLANGroupRequest = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.BriefWirelessLANGroupRequest = nil
+ }
+
+ // try to unmarshal data into Int32
+ err = newStrictDecoder(data).Decode(&dst.Int32)
+ if err == nil {
+ jsonInt32, _ := json.Marshal(dst.Int32)
+ if string(jsonInt32) == "{}" { // empty struct
+ dst.Int32 = nil
+ } else {
+ if err = validator.Validate(dst.Int32); err != nil {
+ dst.Int32 = nil
+ } else {
+ match++
+ }
+ }
+ } else {
+ dst.Int32 = nil
+ }
+
+ if match > 1 { // more than 1 match
+ // reset to nil
+ dst.BriefWirelessLANGroupRequest = nil
+ dst.Int32 = nil
+
+ return fmt.Errorf("data matches more than one schema in oneOf(PatchedWritableWirelessLANRequestGroup)")
+ } else if match == 1 {
+ return nil // exactly one match
+ } else { // no match
+ return fmt.Errorf("data failed to match schemas in oneOf(PatchedWritableWirelessLANRequestGroup)")
+ }
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src PatchedWritableWirelessLANRequestGroup) MarshalJSON() ([]byte, error) {
+ if src.BriefWirelessLANGroupRequest != nil {
+ return json.Marshal(&src.BriefWirelessLANGroupRequest)
+ }
+
+ if src.Int32 != nil {
+ return json.Marshal(&src.Int32)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *PatchedWritableWirelessLANRequestGroup) GetActualInstance() interface{} {
+ if obj == nil {
+ return nil
+ }
+ if obj.BriefWirelessLANGroupRequest != nil {
+ return obj.BriefWirelessLANGroupRequest
+ }
+
+ if obj.Int32 != nil {
+ return obj.Int32
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullablePatchedWritableWirelessLANRequestGroup struct {
+ value *PatchedWritableWirelessLANRequestGroup
+ isSet bool
+}
+
+func (v NullablePatchedWritableWirelessLANRequestGroup) Get() *PatchedWritableWirelessLANRequestGroup {
+ return v.value
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestGroup) Set(val *PatchedWritableWirelessLANRequestGroup) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedWritableWirelessLANRequestGroup) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestGroup) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedWritableWirelessLANRequestGroup(val *PatchedWritableWirelessLANRequestGroup) *NullablePatchedWritableWirelessLANRequestGroup {
+ return &NullablePatchedWritableWirelessLANRequestGroup{value: val, isSet: true}
+}
+
+func (v NullablePatchedWritableWirelessLANRequestGroup) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedWritableWirelessLANRequestGroup) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go
index 810ef662b..0d61bb914 100644
--- a/model_patched_writable_wireless_lan_request_status.go
+++ b/model_patched_writable_wireless_lan_request_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PatchedWritableWirelessLANRequestStatus string
// List of PatchedWritableWirelessLANRequest_status
const (
- PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_ACTIVE PatchedWritableWirelessLANRequestStatus = "active"
- PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_RESERVED PatchedWritableWirelessLANRequestStatus = "reserved"
- PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DISABLED PatchedWritableWirelessLANRequestStatus = "disabled"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_ACTIVE PatchedWritableWirelessLANRequestStatus = "active"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_RESERVED PatchedWritableWirelessLANRequestStatus = "reserved"
+ PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DISABLED PatchedWritableWirelessLANRequestStatus = "disabled"
PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DEPRECATED PatchedWritableWirelessLANRequestStatus = "deprecated"
)
@@ -112,4 +112,3 @@ func (v *NullablePatchedWritableWirelessLANRequestStatus) UnmarshalJSON(src []by
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go
index 868ddfb79..724afcf5a 100644
--- a/model_patched_writable_wireless_link_request.go
+++ b/model_patched_writable_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{}
// PatchedWritableWirelessLinkRequest Adds support for custom fields and tags.
type PatchedWritableWirelessLinkRequest struct {
- InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"`
- InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
- AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ InterfaceA *PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_a,omitempty"`
+ InterfaceB *PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_b,omitempty"`
+ Ssid *string `json:"ssid,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles
}
// GetInterfaceA returns the InterfaceA field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil || IsNil(o.InterfaceA) {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
return *o.InterfaceA
@@ -66,7 +66,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceReque
// GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil || IsNil(o.InterfaceA) {
return nil, false
}
@@ -82,15 +82,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool {
return false
}
-// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field.
-func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) {
+// SetInterfaceA gets a reference to the given PatchedWritableVirtualCircuitTerminationRequestInterface and assigns it to the InterfaceA field.
+func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceA = &v
}
// GetInterfaceB returns the InterfaceB field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil || IsNil(o.InterfaceB) {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
return *o.InterfaceB
@@ -98,7 +98,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceReque
// GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil || IsNil(o.InterfaceB) {
return nil, false
}
@@ -114,8 +114,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool {
return false
}
-// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field.
-func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) {
+// SetInterfaceB gets a reference to the given PatchedWritableVirtualCircuitTerminationRequestInterface and assigns it to the InterfaceB field.
+func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceB = &v
}
@@ -184,9 +184,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest {
+func (o *PatchedWritableWirelessLinkRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -195,7 +195,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -211,10 +211,11 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PatchedWritableWirelessLinkRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableWirelessLinkRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -257,6 +258,7 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthType() bool {
func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *PatchedWritableWirelessLinkRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -299,6 +301,7 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthCipher() bool {
func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher.Set(&v)
}
+
// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil
func (o *PatchedWritableWirelessLinkRequest) SetAuthCipherNil() {
o.AuthCipher.Set(nil)
@@ -373,6 +376,7 @@ func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool {
func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -415,6 +419,7 @@ func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool {
func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -554,7 +559,7 @@ func (o *PatchedWritableWirelessLinkRequest) SetCustomFields(v map[string]interf
}
func (o PatchedWritableWirelessLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -682,5 +687,3 @@ func (v *NullablePatchedWritableWirelessLinkRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_platform.go b/model_platform.go
index 4453fc3dc..92fb07d12 100644
--- a/model_platform.go
+++ b/model_platform.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Platform type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &Platform{}
// Platform Adds support for custom fields and tags.
type Platform struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
- ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"`
+ ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *Platform) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Platform) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *Platform) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Platform) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +167,6 @@ func (o *Platform) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Platform) GetName() string {
if o == nil {
@@ -194,7 +191,6 @@ func (o *Platform) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Platform) GetSlug() string {
if o == nil {
@@ -219,7 +215,6 @@ func (o *Platform) SetSlug(v string) {
o.Slug = v
}
-
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Platform) GetManufacturer() BriefManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
@@ -252,6 +247,7 @@ func (o *Platform) HasManufacturer() bool {
func (o *Platform) SetManufacturer(v BriefManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *Platform) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -294,6 +290,7 @@ func (o *Platform) HasConfigTemplate() bool {
func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *Platform) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -432,6 +429,7 @@ func (o *Platform) HasCreated() bool {
func (o *Platform) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Platform) SetCreatedNil() {
o.Created.Set(nil)
@@ -474,6 +472,7 @@ func (o *Platform) HasLastUpdated() bool {
func (o *Platform) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Platform) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -549,7 +548,7 @@ func (o *Platform) SetVirtualmachineCount(v int64) {
}
func (o Platform) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -615,32 +614,31 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -713,5 +711,3 @@ func (v *NullablePlatform) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_platform_request.go b/model_platform_request.go
index 239f5e3a4..23d6155e6 100644
--- a/model_platform_request.go
+++ b/model_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PlatformRequest{}
// PlatformRequest Adds support for custom fields and tags.
type PlatformRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *PlatformRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *PlatformRequest) GetSlug() string {
if o == nil {
@@ -100,11 +99,10 @@ func (o *PlatformRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *PlatformRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -113,7 +111,7 @@ func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *PlatformRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -129,10 +127,11 @@ func (o *PlatformRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *PlatformRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *PlatformRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -144,9 +143,9 @@ func (o *PlatformRequest) UnsetManufacturer() {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *PlatformRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -155,7 +154,7 @@ func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest {
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *PlatformRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -171,10 +170,11 @@ func (o *PlatformRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *PlatformRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *PlatformRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -282,7 +282,7 @@ func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PlatformRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -327,32 +327,31 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -417,5 +416,3 @@ func (v *NullablePlatformRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed.go b/model_power_feed.go
index 2c895b302..8942ef593 100644
--- a/model_power_feed.go
+++ b/model_power_feed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerFeed type satisfies the MappedNullable interface at compile time
@@ -21,40 +21,40 @@ var _ MappedNullable = &PowerFeed{}
// PowerFeed Adds support for custom fields and tags.
type PowerFeed struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- PowerPanel BriefPowerPanel `json:"power_panel"`
- Rack NullableBriefRack `json:"rack,omitempty"`
- Name string `json:"name"`
- Status *PowerFeedStatus `json:"status,omitempty"`
- Type *PowerFeedType `json:"type,omitempty"`
- Supply *PowerFeedSupply `json:"supply,omitempty"`
- Phase *PowerFeedPhase `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ PowerPanel BriefPowerPanel `json:"power_panel"`
+ Rack NullableBriefRack `json:"rack,omitempty"`
+ Name string `json:"name"`
+ Status *PowerFeedStatus `json:"status,omitempty"`
+ Type *PowerFeedType `json:"type,omitempty"`
+ Supply *PowerFeedSupply `json:"supply,omitempty"`
+ Phase *PowerFeedPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _PowerFeed PowerFeed
@@ -108,7 +108,6 @@ func (o *PowerFeed) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerFeed) GetUrl() string {
if o == nil {
@@ -133,7 +132,6 @@ func (o *PowerFeed) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *PowerFeed) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -190,7 +188,6 @@ func (o *PowerFeed) SetDisplay(v string) {
o.Display = v
}
-
// GetPowerPanel returns the PowerPanel field value
func (o *PowerFeed) GetPowerPanel() BriefPowerPanel {
if o == nil {
@@ -215,7 +212,6 @@ func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) {
o.PowerPanel = v
}
-
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerFeed) GetRack() BriefRack {
if o == nil || IsNil(o.Rack.Get()) {
@@ -248,6 +244,7 @@ func (o *PowerFeed) HasRack() bool {
func (o *PowerFeed) SetRack(v BriefRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *PowerFeed) SetRackNil() {
o.Rack.Set(nil)
@@ -282,7 +279,6 @@ func (o *PowerFeed) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *PowerFeed) GetStatus() PowerFeedStatus {
if o == nil || IsNil(o.Status) {
@@ -571,6 +567,7 @@ func (o *PowerFeed) HasCable() bool {
func (o *PowerFeed) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *PowerFeed) SetCableNil() {
o.Cable.Set(nil)
@@ -637,7 +634,6 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerFeed) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -670,6 +666,7 @@ func (o *PowerFeed) HasLinkPeersType() bool {
func (o *PowerFeed) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *PowerFeed) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -745,6 +742,7 @@ func (o *PowerFeed) HasConnectedEndpointsType() bool {
func (o *PowerFeed) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *PowerFeed) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -779,7 +777,6 @@ func (o *PowerFeed) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PowerFeed) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -844,6 +841,7 @@ func (o *PowerFeed) HasTenant() bool {
func (o *PowerFeed) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PowerFeed) SetTenantNil() {
o.Tenant.Set(nil)
@@ -982,6 +980,7 @@ func (o *PowerFeed) HasCreated() bool {
func (o *PowerFeed) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerFeed) SetCreatedNil() {
o.Created.Set(nil)
@@ -1024,6 +1023,7 @@ func (o *PowerFeed) HasLastUpdated() bool {
func (o *PowerFeed) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerFeed) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1058,9 +1058,8 @@ func (o *PowerFeed) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o PowerFeed) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1168,32 +1167,31 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1281,5 +1279,3 @@ func (v *NullablePowerFeed) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go
index 34e25f13c..9e05bae2b 100644
--- a/model_power_feed_phase.go
+++ b/model_power_feed_phase.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedPhase{}
// PowerFeedPhase struct for PowerFeedPhase
type PowerFeedPhase struct {
- Value *PatchedWritablePowerFeedRequestPhase `json:"value,omitempty"`
- Label *PowerFeedPhaseLabel `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestPhase `json:"value,omitempty"`
+ Label *PowerFeedPhaseLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerFeedPhase) SetLabel(v PowerFeedPhaseLabel) {
}
func (o PowerFeedPhase) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerFeedPhase) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go
index 78bad946e..b905708aa 100644
--- a/model_power_feed_phase_label.go
+++ b/model_power_feed_phase_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type PowerFeedPhaseLabel string
// List of PowerFeed_phase_label
const (
POWERFEEDPHASELABEL_SINGLE_PHASE PowerFeedPhaseLabel = "Single phase"
- POWERFEEDPHASELABEL_THREE_PHASE PowerFeedPhaseLabel = "Three-phase"
+ POWERFEEDPHASELABEL_THREE_PHASE PowerFeedPhaseLabel = "Three-phase"
)
// All allowed values of PowerFeedPhaseLabel enum
@@ -108,4 +108,3 @@ 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 a0e7f84a5..94bccd5bf 100644
--- a/model_power_feed_request.go
+++ b/model_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,24 +20,24 @@ var _ MappedNullable = &PowerFeedRequest{}
// PowerFeedRequest Adds support for custom fields and tags.
type PowerFeedRequest struct {
- PowerPanel BriefPowerPanelRequest `json:"power_panel"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Name string `json:"name"`
- Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
- Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
- Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
- Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel PatchedWritablePowerFeedRequestPowerPanel `json:"power_panel"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest {
+func NewPowerFeedRequest(powerPanel PatchedWritablePowerFeedRequestPowerPanel, name string) *PowerFeedRequest {
this := PowerFeedRequest{}
this.PowerPanel = powerPanel
this.Name = name
@@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest {
}
// GetPowerPanel returns the PowerPanel field value
-func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest {
+func (o *PowerFeedRequest) GetPowerPanel() PatchedWritablePowerFeedRequestPowerPanel {
if o == nil {
- var ret BriefPowerPanelRequest
+ var ret PatchedWritablePowerFeedRequestPowerPanel
return ret
}
@@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest {
// GetPowerPanelOk returns a tuple with the PowerPanel field value
// and a boolean to check if the value has been set.
-func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) {
+func (o *PowerFeedRequest) GetPowerPanelOk() (*PatchedWritablePowerFeedRequestPowerPanel, bool) {
if o == nil {
return nil, false
}
@@ -82,15 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) {
}
// SetPowerPanel sets field value
-func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) {
+func (o *PowerFeedRequest) SetPowerPanel(v PatchedWritablePowerFeedRequestPowerPanel) {
o.PowerPanel = v
}
-
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerFeedRequest) GetRack() BriefRackRequest {
+func (o *PowerFeedRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -99,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *PowerFeedRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -115,10 +114,11 @@ func (o *PowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *PowerFeedRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *PowerFeedRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *PowerFeedRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -153,7 +153,6 @@ func (o *PowerFeedRequest) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *PowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Status) {
@@ -443,9 +442,9 @@ func (o *PowerFeedRequest) SetDescription(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerFeedRequest) GetTenant() BriefTenantRequest {
+func (o *PowerFeedRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -454,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PowerFeedRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -470,10 +469,11 @@ func (o *PowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PowerFeedRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PowerFeedRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -581,7 +581,7 @@ func (o *PowerFeedRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PowerFeedRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -653,32 +653,31 @@ func (o *PowerFeedRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -752,5 +751,3 @@ func (v *NullablePowerFeedRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_status.go b/model_power_feed_status.go
index e6d33d207..da7eaf4cf 100644
--- a/model_power_feed_status.go
+++ b/model_power_feed_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedStatus{}
// PowerFeedStatus struct for PowerFeedStatus
type PowerFeedStatus struct {
- Value *PatchedWritablePowerFeedRequestStatus `json:"value,omitempty"`
- Label *PowerFeedStatusLabel `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestStatus `json:"value,omitempty"`
+ Label *PowerFeedStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerFeedStatus) SetLabel(v PowerFeedStatusLabel) {
}
func (o PowerFeedStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerFeedStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go
index edc570f94..a732a9aa8 100644
--- a/model_power_feed_status_label.go
+++ b/model_power_feed_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,9 +21,9 @@ type PowerFeedStatusLabel string
// List of PowerFeed_status_label
const (
POWERFEEDSTATUSLABEL_OFFLINE PowerFeedStatusLabel = "Offline"
- POWERFEEDSTATUSLABEL_ACTIVE PowerFeedStatusLabel = "Active"
+ POWERFEEDSTATUSLABEL_ACTIVE PowerFeedStatusLabel = "Active"
POWERFEEDSTATUSLABEL_PLANNED PowerFeedStatusLabel = "Planned"
- POWERFEEDSTATUSLABEL_FAILED PowerFeedStatusLabel = "Failed"
+ POWERFEEDSTATUSLABEL_FAILED PowerFeedStatusLabel = "Failed"
)
// All allowed values of PowerFeedStatusLabel enum
@@ -112,4 +112,3 @@ 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 b8eb13a8a..ca4718df3 100644
--- a/model_power_feed_supply.go
+++ b/model_power_feed_supply.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedSupply{}
// PowerFeedSupply struct for PowerFeedSupply
type PowerFeedSupply struct {
- Value *PatchedWritablePowerFeedRequestSupply `json:"value,omitempty"`
- Label *PowerFeedSupplyLabel `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestSupply `json:"value,omitempty"`
+ Label *PowerFeedSupplyLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerFeedSupply) SetLabel(v PowerFeedSupplyLabel) {
}
func (o PowerFeedSupply) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerFeedSupply) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go
index 28d153e3e..dc3d47b76 100644
--- a/model_power_feed_supply_label.go
+++ b/model_power_feed_supply_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ 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 7e7cb7294..edaa061d8 100644
--- a/model_power_feed_type.go
+++ b/model_power_feed_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedType{}
// PowerFeedType struct for PowerFeedType
type PowerFeedType struct {
- Value *PatchedWritablePowerFeedRequestType `json:"value,omitempty"`
- Label *PowerFeedTypeLabel `json:"label,omitempty"`
+ Value *PatchedWritablePowerFeedRequestType `json:"value,omitempty"`
+ Label *PowerFeedTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerFeedType) SetLabel(v PowerFeedTypeLabel) {
}
func (o PowerFeedType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerFeedType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go
index b41082076..f38a64614 100644
--- a/model_power_feed_type_label.go
+++ b/model_power_feed_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type PowerFeedTypeLabel string
// List of PowerFeed_type_label
const (
- POWERFEEDTYPELABEL_PRIMARY PowerFeedTypeLabel = "Primary"
+ POWERFEEDTYPELABEL_PRIMARY PowerFeedTypeLabel = "Primary"
POWERFEEDTYPELABEL_REDUNDANT PowerFeedTypeLabel = "Redundant"
)
@@ -108,4 +108,3 @@ 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 fd59c321d..8f6a83cd3 100644
--- a/model_power_outlet.go
+++ b/model_power_outlet.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerOutlet type satisfies the MappedNullable interface at compile time
@@ -21,36 +21,37 @@ var _ MappedNullable = &PowerOutlet{}
// PowerOutlet Adds support for custom fields and tags.
type PowerOutlet struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerOutletType `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- PowerPort NullableBriefPowerPort `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerOutletType `json:"type,omitempty"`
+ Status *PowerOutletStatus `json:"status,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ PowerPort NullableBriefPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _PowerOutlet PowerOutlet
@@ -104,7 +105,6 @@ func (o *PowerOutlet) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerOutlet) GetUrl() string {
if o == nil {
@@ -129,7 +129,6 @@ func (o *PowerOutlet) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *PowerOutlet) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -186,7 +185,6 @@ func (o *PowerOutlet) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *PowerOutlet) GetDevice() BriefDevice {
if o == nil {
@@ -211,7 +209,6 @@ func (o *PowerOutlet) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerOutlet) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -244,6 +241,7 @@ func (o *PowerOutlet) HasModule() bool {
func (o *PowerOutlet) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PowerOutlet) SetModuleNil() {
o.Module.Set(nil)
@@ -278,7 +276,6 @@ func (o *PowerOutlet) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerOutlet) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -343,6 +340,7 @@ func (o *PowerOutlet) HasType() bool {
func (o *PowerOutlet) SetType(v PowerOutletType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerOutlet) SetTypeNil() {
o.Type.Set(nil)
@@ -353,6 +351,38 @@ func (o *PowerOutlet) UnsetType() {
o.Type.Unset()
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *PowerOutlet) GetStatus() PowerOutletStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PowerOutletStatus
+ 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 *PowerOutlet) GetStatusOk() (*PowerOutletStatus, 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 *PowerOutlet) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PowerOutletStatus and assigns it to the Status field.
+func (o *PowerOutlet) SetStatus(v PowerOutletStatus) {
+ o.Status = &v
+}
+
// GetColor returns the Color field value if set, zero value otherwise.
func (o *PowerOutlet) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -417,6 +447,7 @@ func (o *PowerOutlet) HasPowerPort() bool {
func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PowerOutlet) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -459,6 +490,7 @@ func (o *PowerOutlet) HasFeedLeg() bool {
func (o *PowerOutlet) SetFeedLeg(v PowerOutletFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PowerOutlet) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -565,6 +597,7 @@ func (o *PowerOutlet) HasCable() bool {
func (o *PowerOutlet) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *PowerOutlet) SetCableNil() {
o.Cable.Set(nil)
@@ -631,7 +664,6 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerOutlet) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -664,6 +696,7 @@ func (o *PowerOutlet) HasLinkPeersType() bool {
func (o *PowerOutlet) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *PowerOutlet) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -739,6 +772,7 @@ func (o *PowerOutlet) HasConnectedEndpointsType() bool {
func (o *PowerOutlet) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *PowerOutlet) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -773,7 +807,6 @@ func (o *PowerOutlet) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *PowerOutlet) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -870,6 +903,7 @@ func (o *PowerOutlet) HasCreated() bool {
func (o *PowerOutlet) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerOutlet) SetCreatedNil() {
o.Created.Set(nil)
@@ -912,6 +946,7 @@ func (o *PowerOutlet) HasLastUpdated() bool {
func (o *PowerOutlet) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerOutlet) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -946,9 +981,8 @@ func (o *PowerOutlet) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o PowerOutlet) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -974,6 +1008,9 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) {
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.Color) {
toSerialize["color"] = o.Color
}
@@ -1044,32 +1081,31 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1095,6 +1131,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "color")
delete(additionalProperties, "power_port")
delete(additionalProperties, "feed_leg")
@@ -1153,5 +1190,3 @@ func (v *NullablePowerOutlet) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go
index 4c5f1ff5d..721286f9d 100644
--- a/model_power_outlet_feed_leg.go
+++ b/model_power_outlet_feed_leg.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerOutletFeedLeg{}
// PowerOutletFeedLeg struct for PowerOutletFeedLeg
type PowerOutletFeedLeg struct {
- Value *PowerOutletFeedLegValue `json:"value,omitempty"`
- Label *PowerOutletFeedLegLabel `json:"label,omitempty"`
+ Value *PowerOutletFeedLegValue `json:"value,omitempty"`
+ Label *PowerOutletFeedLegLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerOutletFeedLeg) SetLabel(v PowerOutletFeedLegLabel) {
}
func (o PowerOutletFeedLeg) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerOutletFeedLeg) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go
index c91f1b5c1..d7b380126 100644
--- a/model_power_outlet_feed_leg_label.go
+++ b/model_power_outlet_feed_leg_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullablePowerOutletFeedLegLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go
index b18f6031f..abccc7413 100644
--- a/model_power_outlet_feed_leg_value.go
+++ b/model_power_outlet_feed_leg_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PowerOutletFeedLegValue string
// List of PowerOutlet_feed_leg_value
const (
- POWEROUTLETFEEDLEGVALUE_A PowerOutletFeedLegValue = "A"
- POWEROUTLETFEEDLEGVALUE_B PowerOutletFeedLegValue = "B"
- POWEROUTLETFEEDLEGVALUE_C PowerOutletFeedLegValue = "C"
+ POWEROUTLETFEEDLEGVALUE_A PowerOutletFeedLegValue = "A"
+ POWEROUTLETFEEDLEGVALUE_B PowerOutletFeedLegValue = "B"
+ POWEROUTLETFEEDLEGVALUE_C PowerOutletFeedLegValue = "C"
POWEROUTLETFEEDLEGVALUE_EMPTY PowerOutletFeedLegValue = ""
)
@@ -112,4 +112,3 @@ 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 55dbad929..1e76c4573 100644
--- a/model_power_outlet_request.go
+++ b/model_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,21 @@ var _ MappedNullable = &PowerOutletRequest{}
// PowerOutletRequest Adds support for custom fields and tags.
type PowerOutletRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ Status *PatchedWritablePowerOutletRequestStatus `json:"status,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ PowerPort NullablePatchedWritablePowerOutletRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +44,7 @@ type _PowerOutletRequest PowerOutletRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest {
+func NewPowerOutletRequest(device BriefInterfaceRequestDevice, name string) *PowerOutletRequest {
this := PowerOutletRequest{}
this.Device = device
this.Name = name
@@ -59,9 +60,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest {
}
// GetDevice returns the Device field value
-func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest {
+func (o *PowerOutletRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -70,7 +71,7 @@ func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PowerOutletRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -78,15 +79,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) {
+func (o *PowerOutletRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletRequest) GetModule() BriefModuleRequest {
+func (o *PowerOutletRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -95,7 +95,7 @@ func (o *PowerOutletRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PowerOutletRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -111,10 +111,11 @@ func (o *PowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PowerOutletRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PowerOutletRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -149,7 +150,6 @@ func (o *PowerOutletRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerOutletRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -214,6 +214,7 @@ func (o *PowerOutletRequest) HasType() bool {
func (o *PowerOutletRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerOutletRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -224,6 +225,38 @@ func (o *PowerOutletRequest) UnsetType() {
o.Type.Unset()
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *PowerOutletRequest) GetStatus() PatchedWritablePowerOutletRequestStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PatchedWritablePowerOutletRequestStatus
+ 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 *PowerOutletRequest) GetStatusOk() (*PatchedWritablePowerOutletRequestStatus, 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 *PowerOutletRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PatchedWritablePowerOutletRequestStatus and assigns it to the Status field.
+func (o *PowerOutletRequest) SetStatus(v PatchedWritablePowerOutletRequestStatus) {
+ o.Status = &v
+}
+
// GetColor returns the Color field value if set, zero value otherwise.
func (o *PowerOutletRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -257,9 +290,9 @@ func (o *PowerOutletRequest) SetColor(v string) {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest {
+func (o *PowerOutletRequest) GetPowerPort() PatchedWritablePowerOutletRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortRequest
+ var ret PatchedWritablePowerOutletRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -268,7 +301,7 @@ func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest {
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) {
+func (o *PowerOutletRequest) GetPowerPortOk() (*PatchedWritablePowerOutletRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -284,10 +317,11 @@ func (o *PowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field.
-func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletRequestPowerPort and assigns it to the PowerPort field.
+func (o *PowerOutletRequest) SetPowerPort(v PatchedWritablePowerOutletRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PowerOutletRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -330,6 +364,7 @@ func (o *PowerOutletRequest) HasFeedLeg() bool {
func (o *PowerOutletRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PowerOutletRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -469,7 +504,7 @@ func (o *PowerOutletRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PowerOutletRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -489,6 +524,9 @@ func (o PowerOutletRequest) ToMap() (map[string]interface{}, error) {
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.Color) {
toSerialize["color"] = o.Color
}
@@ -529,32 +567,31 @@ func (o *PowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -576,6 +613,7 @@ func (o *PowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "color")
delete(additionalProperties, "power_port")
delete(additionalProperties, "feed_leg")
@@ -624,5 +662,3 @@ func (v *NullablePowerOutletRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go
index 4da669b2f..216270669 100644
--- a/model_power_outlet_request_feed_leg.go
+++ b/model_power_outlet_request_feed_leg.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PowerOutletRequestFeedLeg string
// List of PowerOutletRequest_feed_leg
const (
- POWEROUTLETREQUESTFEEDLEG_A PowerOutletRequestFeedLeg = "A"
- POWEROUTLETREQUESTFEEDLEG_B PowerOutletRequestFeedLeg = "B"
- POWEROUTLETREQUESTFEEDLEG_C PowerOutletRequestFeedLeg = "C"
+ POWEROUTLETREQUESTFEEDLEG_A PowerOutletRequestFeedLeg = "A"
+ POWEROUTLETREQUESTFEEDLEG_B PowerOutletRequestFeedLeg = "B"
+ POWEROUTLETREQUESTFEEDLEG_C PowerOutletRequestFeedLeg = "C"
POWEROUTLETREQUESTFEEDLEG_EMPTY PowerOutletRequestFeedLeg = ""
)
@@ -112,4 +112,3 @@ func (v *NullablePowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_power_outlet_status.go b/model_power_outlet_status.go
new file mode 100644
index 000000000..5ed30690f
--- /dev/null
+++ b/model_power_outlet_status.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the PowerOutletStatus type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PowerOutletStatus{}
+
+// PowerOutletStatus struct for PowerOutletStatus
+type PowerOutletStatus struct {
+ Value *PatchedWritablePowerOutletRequestStatus `json:"value,omitempty"`
+ Label *PowerOutletStatusLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PowerOutletStatus PowerOutletStatus
+
+// NewPowerOutletStatus instantiates a new PowerOutletStatus object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPowerOutletStatus() *PowerOutletStatus {
+ this := PowerOutletStatus{}
+ return &this
+}
+
+// NewPowerOutletStatusWithDefaults instantiates a new PowerOutletStatus object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewPowerOutletStatusWithDefaults() *PowerOutletStatus {
+ this := PowerOutletStatus{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *PowerOutletStatus) GetValue() PatchedWritablePowerOutletRequestStatus {
+ if o == nil || IsNil(o.Value) {
+ var ret PatchedWritablePowerOutletRequestStatus
+ 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 *PowerOutletStatus) GetValueOk() (*PatchedWritablePowerOutletRequestStatus, 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 *PowerOutletStatus) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given PatchedWritablePowerOutletRequestStatus and assigns it to the Value field.
+func (o *PowerOutletStatus) SetValue(v PatchedWritablePowerOutletRequestStatus) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *PowerOutletStatus) GetLabel() PowerOutletStatusLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret PowerOutletStatusLabel
+ 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 *PowerOutletStatus) GetLabelOk() (*PowerOutletStatusLabel, 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 *PowerOutletStatus) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given PowerOutletStatusLabel and assigns it to the Label field.
+func (o *PowerOutletStatus) SetLabel(v PowerOutletStatusLabel) {
+ o.Label = &v
+}
+
+func (o PowerOutletStatus) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PowerOutletStatus) 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 *PowerOutletStatus) UnmarshalJSON(data []byte) (err error) {
+ varPowerOutletStatus := _PowerOutletStatus{}
+
+ err = json.Unmarshal(data, &varPowerOutletStatus)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PowerOutletStatus(varPowerOutletStatus)
+
+ 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 NullablePowerOutletStatus struct {
+ value *PowerOutletStatus
+ isSet bool
+}
+
+func (v NullablePowerOutletStatus) Get() *PowerOutletStatus {
+ return v.value
+}
+
+func (v *NullablePowerOutletStatus) Set(val *PowerOutletStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletStatus(val *PowerOutletStatus) *NullablePowerOutletStatus {
+ return &NullablePowerOutletStatus{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_power_outlet_status_label.go b/model_power_outlet_status_label.go
new file mode 100644
index 000000000..10b8a8131
--- /dev/null
+++ b/model_power_outlet_status_label.go
@@ -0,0 +1,112 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// PowerOutletStatusLabel the model 'PowerOutletStatusLabel'
+type PowerOutletStatusLabel string
+
+// List of PowerOutlet_status_label
+const (
+ POWEROUTLETSTATUSLABEL_ENABLED PowerOutletStatusLabel = "Enabled"
+ POWEROUTLETSTATUSLABEL_DISABLED PowerOutletStatusLabel = "Disabled"
+ POWEROUTLETSTATUSLABEL_FAULTY PowerOutletStatusLabel = "Faulty"
+)
+
+// All allowed values of PowerOutletStatusLabel enum
+var AllowedPowerOutletStatusLabelEnumValues = []PowerOutletStatusLabel{
+ "Enabled",
+ "Disabled",
+ "Faulty",
+}
+
+func (v *PowerOutletStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := PowerOutletStatusLabel(value)
+ for _, existing := range AllowedPowerOutletStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid PowerOutletStatusLabel", value)
+}
+
+// NewPowerOutletStatusLabelFromValue returns a pointer to a valid PowerOutletStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewPowerOutletStatusLabelFromValue(v string) (*PowerOutletStatusLabel, error) {
+ ev := PowerOutletStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for PowerOutletStatusLabel: valid values are %v", v, AllowedPowerOutletStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v PowerOutletStatusLabel) IsValid() bool {
+ for _, existing := range AllowedPowerOutletStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to PowerOutlet_status_label value
+func (v PowerOutletStatusLabel) Ptr() *PowerOutletStatusLabel {
+ return &v
+}
+
+type NullablePowerOutletStatusLabel struct {
+ value *PowerOutletStatusLabel
+ isSet bool
+}
+
+func (v NullablePowerOutletStatusLabel) Get() *PowerOutletStatusLabel {
+ return v.value
+}
+
+func (v *NullablePowerOutletStatusLabel) Set(val *PowerOutletStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePowerOutletStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePowerOutletStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePowerOutletStatusLabel(val *PowerOutletStatusLabel) *NullablePowerOutletStatusLabel {
+ return &NullablePowerOutletStatusLabel{value: val, isSet: true}
+}
+
+func (v NullablePowerOutletStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePowerOutletStatusLabel) 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 0b033861b..43fc413f1 100644
--- a/model_power_outlet_template.go
+++ b/model_power_outlet_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerOutletTemplate type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &PowerOutletTemplate{}
// PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PowerOutletTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerOutletType `json:"type,omitempty"`
- PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerOutletType `json:"type,omitempty"`
+ PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"`
+ FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *PowerOutletTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerOutletTemplate) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *PowerOutletTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *PowerOutletTemplate) GetDisplay() string {
if o == nil {
@@ -136,7 +134,6 @@ func (o *PowerOutletTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -169,6 +166,7 @@ func (o *PowerOutletTemplate) HasDeviceType() bool {
func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PowerOutletTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -211,6 +209,7 @@ func (o *PowerOutletTemplate) HasModuleType() bool {
func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PowerOutletTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -245,7 +244,6 @@ func (o *PowerOutletTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerOutletTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -310,6 +308,7 @@ func (o *PowerOutletTemplate) HasType() bool {
func (o *PowerOutletTemplate) SetType(v PowerOutletType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerOutletTemplate) SetTypeNil() {
o.Type.Set(nil)
@@ -352,6 +351,7 @@ func (o *PowerOutletTemplate) HasPowerPort() bool {
func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PowerOutletTemplate) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -394,6 +394,7 @@ func (o *PowerOutletTemplate) HasFeedLeg() bool {
func (o *PowerOutletTemplate) SetFeedLeg(v PowerOutletFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PowerOutletTemplate) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -468,6 +469,7 @@ func (o *PowerOutletTemplate) HasCreated() bool {
func (o *PowerOutletTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerOutletTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -510,6 +512,7 @@ func (o *PowerOutletTemplate) HasLastUpdated() bool {
func (o *PowerOutletTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerOutletTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -521,7 +524,7 @@ func (o *PowerOutletTemplate) UnsetLastUpdated() {
}
func (o PowerOutletTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -582,32 +585,31 @@ func (o *PowerOutletTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -678,5 +680,3 @@ func (v *NullablePowerOutletTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go
index 597fcee7e..a4c2ef7fe 100644
--- a/model_power_outlet_template_request.go
+++ b/model_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{}
// PowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PowerOutletTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
- PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ PowerPort NullablePatchedWritablePowerOutletTemplateRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PowerOutletTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -81,10 +81,11 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PowerOutletTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PowerOutletTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -96,9 +97,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PowerOutletTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -107,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -123,10 +124,11 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PowerOutletTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PowerOutletTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -161,7 +163,6 @@ func (o *PowerOutletTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerOutletTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -226,6 +227,7 @@ func (o *PowerOutletTemplateRequest) HasType() bool {
func (o *PowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerOutletTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -237,9 +239,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest {
+func (o *PowerOutletTemplateRequest) GetPowerPort() PatchedWritablePowerOutletTemplateRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortTemplateRequest
+ var ret PatchedWritablePowerOutletTemplateRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -248,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateReques
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PatchedWritablePowerOutletTemplateRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -264,10 +266,11 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field.
-func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestPowerPort and assigns it to the PowerPort field.
+func (o *PowerOutletTemplateRequest) SetPowerPort(v PatchedWritablePowerOutletTemplateRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *PowerOutletTemplateRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -310,6 +313,7 @@ func (o *PowerOutletTemplateRequest) HasFeedLeg() bool {
func (o *PowerOutletTemplateRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *PowerOutletTemplateRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -353,7 +357,7 @@ func (o *PowerOutletTemplateRequest) SetDescription(v string) {
}
func (o PowerOutletTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -402,32 +406,31 @@ func (o *PowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -493,5 +496,3 @@ func (v *NullablePowerOutletTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go
index 6eed469ed..beccdb1d2 100644
--- a/model_power_outlet_type.go
+++ b/model_power_outlet_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerOutletType{}
// PowerOutletType struct for PowerOutletType
type PowerOutletType struct {
- Value *PowerOutletTypeValue `json:"value,omitempty"`
- Label *PowerOutletTypeLabel `json:"label,omitempty"`
+ Value *PowerOutletTypeValue `json:"value,omitempty"`
+ Label *PowerOutletTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerOutletType) SetLabel(v PowerOutletTypeLabel) {
}
func (o PowerOutletType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerOutletType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go
index 882e594d9..5bec26395 100644
--- a/model_power_outlet_type_label.go
+++ b/model_power_outlet_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,104 +20,104 @@ type PowerOutletTypeLabel string
// List of PowerOutlet_type_label
const (
- POWEROUTLETTYPELABEL_C5 PowerOutletTypeLabel = "C5"
- POWEROUTLETTYPELABEL_C7 PowerOutletTypeLabel = "C7"
- POWEROUTLETTYPELABEL_C13 PowerOutletTypeLabel = "C13"
- POWEROUTLETTYPELABEL_C15 PowerOutletTypeLabel = "C15"
- POWEROUTLETTYPELABEL_C19 PowerOutletTypeLabel = "C19"
- POWEROUTLETTYPELABEL_C21 PowerOutletTypeLabel = "C21"
- POWEROUTLETTYPELABEL_PNE_4_H PowerOutletTypeLabel = "P+N+E 4H"
- POWEROUTLETTYPELABEL_PNE_6_H PowerOutletTypeLabel = "P+N+E 6H"
- POWEROUTLETTYPELABEL_PNE_9_H PowerOutletTypeLabel = "P+N+E 9H"
- POWEROUTLETTYPELABEL__2_PE_4_H PowerOutletTypeLabel = "2P+E 4H"
- POWEROUTLETTYPELABEL__2_PE_6_H PowerOutletTypeLabel = "2P+E 6H"
- POWEROUTLETTYPELABEL__2_PE_9_H PowerOutletTypeLabel = "2P+E 9H"
- POWEROUTLETTYPELABEL__3_PE_4_H PowerOutletTypeLabel = "3P+E 4H"
- POWEROUTLETTYPELABEL__3_PE_6_H PowerOutletTypeLabel = "3P+E 6H"
- POWEROUTLETTYPELABEL__3_PE_9_H PowerOutletTypeLabel = "3P+E 9H"
- POWEROUTLETTYPELABEL__3_PNE_4_H PowerOutletTypeLabel = "3P+N+E 4H"
- POWEROUTLETTYPELABEL__3_PNE_6_H PowerOutletTypeLabel = "3P+N+E 6H"
- POWEROUTLETTYPELABEL__3_PNE_9_H PowerOutletTypeLabel = "3P+N+E 9H"
- POWEROUTLETTYPELABEL_IEC_60906_1 PowerOutletTypeLabel = "IEC 60906-1"
- POWEROUTLETTYPELABEL__2_PT_10_A__NBR_14136 PowerOutletTypeLabel = "2P+T 10A (NBR 14136)"
- POWEROUTLETTYPELABEL__2_PT_20_A__NBR_14136 PowerOutletTypeLabel = "2P+T 20A (NBR 14136)"
- POWEROUTLETTYPELABEL_NEMA_1_15_R PowerOutletTypeLabel = "NEMA 1-15R"
- POWEROUTLETTYPELABEL_NEMA_5_15_R PowerOutletTypeLabel = "NEMA 5-15R"
- POWEROUTLETTYPELABEL_NEMA_5_20_R PowerOutletTypeLabel = "NEMA 5-20R"
- POWEROUTLETTYPELABEL_NEMA_5_30_R PowerOutletTypeLabel = "NEMA 5-30R"
- POWEROUTLETTYPELABEL_NEMA_5_50_R PowerOutletTypeLabel = "NEMA 5-50R"
- POWEROUTLETTYPELABEL_NEMA_6_15_R PowerOutletTypeLabel = "NEMA 6-15R"
- POWEROUTLETTYPELABEL_NEMA_6_20_R PowerOutletTypeLabel = "NEMA 6-20R"
- POWEROUTLETTYPELABEL_NEMA_6_30_R PowerOutletTypeLabel = "NEMA 6-30R"
- POWEROUTLETTYPELABEL_NEMA_6_50_R PowerOutletTypeLabel = "NEMA 6-50R"
- POWEROUTLETTYPELABEL_NEMA_10_30_R PowerOutletTypeLabel = "NEMA 10-30R"
- POWEROUTLETTYPELABEL_NEMA_10_50_R PowerOutletTypeLabel = "NEMA 10-50R"
- POWEROUTLETTYPELABEL_NEMA_14_20_R PowerOutletTypeLabel = "NEMA 14-20R"
- POWEROUTLETTYPELABEL_NEMA_14_30_R PowerOutletTypeLabel = "NEMA 14-30R"
- POWEROUTLETTYPELABEL_NEMA_14_50_R PowerOutletTypeLabel = "NEMA 14-50R"
- POWEROUTLETTYPELABEL_NEMA_14_60_R PowerOutletTypeLabel = "NEMA 14-60R"
- POWEROUTLETTYPELABEL_NEMA_15_15_R PowerOutletTypeLabel = "NEMA 15-15R"
- POWEROUTLETTYPELABEL_NEMA_15_20_R PowerOutletTypeLabel = "NEMA 15-20R"
- POWEROUTLETTYPELABEL_NEMA_15_30_R PowerOutletTypeLabel = "NEMA 15-30R"
- POWEROUTLETTYPELABEL_NEMA_15_50_R PowerOutletTypeLabel = "NEMA 15-50R"
- POWEROUTLETTYPELABEL_NEMA_15_60_R PowerOutletTypeLabel = "NEMA 15-60R"
- POWEROUTLETTYPELABEL_NEMA_L1_15_R PowerOutletTypeLabel = "NEMA L1-15R"
- POWEROUTLETTYPELABEL_NEMA_L5_15_R PowerOutletTypeLabel = "NEMA L5-15R"
- POWEROUTLETTYPELABEL_NEMA_L5_20_R PowerOutletTypeLabel = "NEMA L5-20R"
- POWEROUTLETTYPELABEL_NEMA_L5_30_R PowerOutletTypeLabel = "NEMA L5-30R"
- POWEROUTLETTYPELABEL_NEMA_L5_50_R PowerOutletTypeLabel = "NEMA L5-50R"
- POWEROUTLETTYPELABEL_NEMA_L6_15_R PowerOutletTypeLabel = "NEMA L6-15R"
- POWEROUTLETTYPELABEL_NEMA_L6_20_R PowerOutletTypeLabel = "NEMA L6-20R"
- POWEROUTLETTYPELABEL_NEMA_L6_30_R PowerOutletTypeLabel = "NEMA L6-30R"
- POWEROUTLETTYPELABEL_NEMA_L6_50_R PowerOutletTypeLabel = "NEMA L6-50R"
- POWEROUTLETTYPELABEL_NEMA_L10_30_R PowerOutletTypeLabel = "NEMA L10-30R"
- POWEROUTLETTYPELABEL_NEMA_L14_20_R PowerOutletTypeLabel = "NEMA L14-20R"
- POWEROUTLETTYPELABEL_NEMA_L14_30_R PowerOutletTypeLabel = "NEMA L14-30R"
- POWEROUTLETTYPELABEL_NEMA_L14_50_R PowerOutletTypeLabel = "NEMA L14-50R"
- POWEROUTLETTYPELABEL_NEMA_L14_60_R PowerOutletTypeLabel = "NEMA L14-60R"
- POWEROUTLETTYPELABEL_NEMA_L15_20_R PowerOutletTypeLabel = "NEMA L15-20R"
- POWEROUTLETTYPELABEL_NEMA_L15_30_R PowerOutletTypeLabel = "NEMA L15-30R"
- POWEROUTLETTYPELABEL_NEMA_L15_50_R PowerOutletTypeLabel = "NEMA L15-50R"
- POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R"
- POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R"
- POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R"
- POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R"
- POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R"
- POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C"
- POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C"
- POWEROUTLETTYPELABEL_CS8164_C PowerOutletTypeLabel = "CS8164C"
- POWEROUTLETTYPELABEL_CS8264_C PowerOutletTypeLabel = "CS8264C"
- POWEROUTLETTYPELABEL_CS8364_C PowerOutletTypeLabel = "CS8364C"
- POWEROUTLETTYPELABEL_CS8464_C PowerOutletTypeLabel = "CS8464C"
- POWEROUTLETTYPELABEL_ITA_TYPE_E__CEE_7_5 PowerOutletTypeLabel = "ITA Type E (CEE 7/5)"
- POWEROUTLETTYPELABEL_ITA_TYPE_F__CEE_7_3 PowerOutletTypeLabel = "ITA Type F (CEE 7/3)"
- POWEROUTLETTYPELABEL_ITA_TYPE_G__BS_1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)"
- POWEROUTLETTYPELABEL_ITA_TYPE_H PowerOutletTypeLabel = "ITA Type H"
- POWEROUTLETTYPELABEL_ITA_TYPE_I PowerOutletTypeLabel = "ITA Type I"
- POWEROUTLETTYPELABEL_ITA_TYPE_J PowerOutletTypeLabel = "ITA Type J"
- POWEROUTLETTYPELABEL_ITA_TYPE_K PowerOutletTypeLabel = "ITA Type K"
- POWEROUTLETTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)"
- POWEROUTLETTYPELABEL_ITA_TYPE_M__BS_546 PowerOutletTypeLabel = "ITA Type M (BS 546)"
- POWEROUTLETTYPELABEL_ITA_TYPE_N PowerOutletTypeLabel = "ITA Type N"
- POWEROUTLETTYPELABEL_ITA_TYPE_O PowerOutletTypeLabel = "ITA Type O"
- POWEROUTLETTYPELABEL_ITA_MULTISTANDARD PowerOutletTypeLabel = "ITA Multistandard"
- POWEROUTLETTYPELABEL_USB_TYPE_A PowerOutletTypeLabel = "USB Type A"
- POWEROUTLETTYPELABEL_USB_MICRO_B PowerOutletTypeLabel = "USB Micro B"
- POWEROUTLETTYPELABEL_USB_TYPE_C PowerOutletTypeLabel = "USB Type C"
- POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerOutletTypeLabel = "Molex Micro-Fit 1x2"
- POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerOutletTypeLabel = "Molex Micro-Fit 2x2"
- POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerOutletTypeLabel = "Molex Micro-Fit 2x4"
- POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal"
- POWEROUTLETTYPELABEL_EATON_C39 PowerOutletTypeLabel = "Eaton C39"
- POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx"
- POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid"
- POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)"
- POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__32_A PowerOutletTypeLabel = "Neutrik powerCON (32A)"
- POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerOutletTypeLabel = "Neutrik powerCON TRUE1"
+ POWEROUTLETTYPELABEL_C5 PowerOutletTypeLabel = "C5"
+ POWEROUTLETTYPELABEL_C7 PowerOutletTypeLabel = "C7"
+ POWEROUTLETTYPELABEL_C13 PowerOutletTypeLabel = "C13"
+ POWEROUTLETTYPELABEL_C15 PowerOutletTypeLabel = "C15"
+ POWEROUTLETTYPELABEL_C19 PowerOutletTypeLabel = "C19"
+ POWEROUTLETTYPELABEL_C21 PowerOutletTypeLabel = "C21"
+ POWEROUTLETTYPELABEL_PNE_4_H PowerOutletTypeLabel = "P+N+E 4H"
+ POWEROUTLETTYPELABEL_PNE_6_H PowerOutletTypeLabel = "P+N+E 6H"
+ POWEROUTLETTYPELABEL_PNE_9_H PowerOutletTypeLabel = "P+N+E 9H"
+ POWEROUTLETTYPELABEL__2_PE_4_H PowerOutletTypeLabel = "2P+E 4H"
+ POWEROUTLETTYPELABEL__2_PE_6_H PowerOutletTypeLabel = "2P+E 6H"
+ POWEROUTLETTYPELABEL__2_PE_9_H PowerOutletTypeLabel = "2P+E 9H"
+ POWEROUTLETTYPELABEL__3_PE_4_H PowerOutletTypeLabel = "3P+E 4H"
+ POWEROUTLETTYPELABEL__3_PE_6_H PowerOutletTypeLabel = "3P+E 6H"
+ POWEROUTLETTYPELABEL__3_PE_9_H PowerOutletTypeLabel = "3P+E 9H"
+ POWEROUTLETTYPELABEL__3_PNE_4_H PowerOutletTypeLabel = "3P+N+E 4H"
+ POWEROUTLETTYPELABEL__3_PNE_6_H PowerOutletTypeLabel = "3P+N+E 6H"
+ POWEROUTLETTYPELABEL__3_PNE_9_H PowerOutletTypeLabel = "3P+N+E 9H"
+ POWEROUTLETTYPELABEL_IEC_60906_1 PowerOutletTypeLabel = "IEC 60906-1"
+ POWEROUTLETTYPELABEL__2_PT_10_A__NBR_14136 PowerOutletTypeLabel = "2P+T 10A (NBR 14136)"
+ POWEROUTLETTYPELABEL__2_PT_20_A__NBR_14136 PowerOutletTypeLabel = "2P+T 20A (NBR 14136)"
+ POWEROUTLETTYPELABEL_NEMA_1_15_R PowerOutletTypeLabel = "NEMA 1-15R"
+ POWEROUTLETTYPELABEL_NEMA_5_15_R PowerOutletTypeLabel = "NEMA 5-15R"
+ POWEROUTLETTYPELABEL_NEMA_5_20_R PowerOutletTypeLabel = "NEMA 5-20R"
+ POWEROUTLETTYPELABEL_NEMA_5_30_R PowerOutletTypeLabel = "NEMA 5-30R"
+ POWEROUTLETTYPELABEL_NEMA_5_50_R PowerOutletTypeLabel = "NEMA 5-50R"
+ POWEROUTLETTYPELABEL_NEMA_6_15_R PowerOutletTypeLabel = "NEMA 6-15R"
+ POWEROUTLETTYPELABEL_NEMA_6_20_R PowerOutletTypeLabel = "NEMA 6-20R"
+ POWEROUTLETTYPELABEL_NEMA_6_30_R PowerOutletTypeLabel = "NEMA 6-30R"
+ POWEROUTLETTYPELABEL_NEMA_6_50_R PowerOutletTypeLabel = "NEMA 6-50R"
+ POWEROUTLETTYPELABEL_NEMA_10_30_R PowerOutletTypeLabel = "NEMA 10-30R"
+ POWEROUTLETTYPELABEL_NEMA_10_50_R PowerOutletTypeLabel = "NEMA 10-50R"
+ POWEROUTLETTYPELABEL_NEMA_14_20_R PowerOutletTypeLabel = "NEMA 14-20R"
+ POWEROUTLETTYPELABEL_NEMA_14_30_R PowerOutletTypeLabel = "NEMA 14-30R"
+ POWEROUTLETTYPELABEL_NEMA_14_50_R PowerOutletTypeLabel = "NEMA 14-50R"
+ POWEROUTLETTYPELABEL_NEMA_14_60_R PowerOutletTypeLabel = "NEMA 14-60R"
+ POWEROUTLETTYPELABEL_NEMA_15_15_R PowerOutletTypeLabel = "NEMA 15-15R"
+ POWEROUTLETTYPELABEL_NEMA_15_20_R PowerOutletTypeLabel = "NEMA 15-20R"
+ POWEROUTLETTYPELABEL_NEMA_15_30_R PowerOutletTypeLabel = "NEMA 15-30R"
+ POWEROUTLETTYPELABEL_NEMA_15_50_R PowerOutletTypeLabel = "NEMA 15-50R"
+ POWEROUTLETTYPELABEL_NEMA_15_60_R PowerOutletTypeLabel = "NEMA 15-60R"
+ POWEROUTLETTYPELABEL_NEMA_L1_15_R PowerOutletTypeLabel = "NEMA L1-15R"
+ POWEROUTLETTYPELABEL_NEMA_L5_15_R PowerOutletTypeLabel = "NEMA L5-15R"
+ POWEROUTLETTYPELABEL_NEMA_L5_20_R PowerOutletTypeLabel = "NEMA L5-20R"
+ POWEROUTLETTYPELABEL_NEMA_L5_30_R PowerOutletTypeLabel = "NEMA L5-30R"
+ POWEROUTLETTYPELABEL_NEMA_L5_50_R PowerOutletTypeLabel = "NEMA L5-50R"
+ POWEROUTLETTYPELABEL_NEMA_L6_15_R PowerOutletTypeLabel = "NEMA L6-15R"
+ POWEROUTLETTYPELABEL_NEMA_L6_20_R PowerOutletTypeLabel = "NEMA L6-20R"
+ POWEROUTLETTYPELABEL_NEMA_L6_30_R PowerOutletTypeLabel = "NEMA L6-30R"
+ POWEROUTLETTYPELABEL_NEMA_L6_50_R PowerOutletTypeLabel = "NEMA L6-50R"
+ POWEROUTLETTYPELABEL_NEMA_L10_30_R PowerOutletTypeLabel = "NEMA L10-30R"
+ POWEROUTLETTYPELABEL_NEMA_L14_20_R PowerOutletTypeLabel = "NEMA L14-20R"
+ POWEROUTLETTYPELABEL_NEMA_L14_30_R PowerOutletTypeLabel = "NEMA L14-30R"
+ POWEROUTLETTYPELABEL_NEMA_L14_50_R PowerOutletTypeLabel = "NEMA L14-50R"
+ POWEROUTLETTYPELABEL_NEMA_L14_60_R PowerOutletTypeLabel = "NEMA L14-60R"
+ POWEROUTLETTYPELABEL_NEMA_L15_20_R PowerOutletTypeLabel = "NEMA L15-20R"
+ POWEROUTLETTYPELABEL_NEMA_L15_30_R PowerOutletTypeLabel = "NEMA L15-30R"
+ POWEROUTLETTYPELABEL_NEMA_L15_50_R PowerOutletTypeLabel = "NEMA L15-50R"
+ POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R"
+ POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R"
+ POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R"
+ POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R"
+ POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R"
+ POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C"
+ POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C"
+ POWEROUTLETTYPELABEL_CS8164_C PowerOutletTypeLabel = "CS8164C"
+ POWEROUTLETTYPELABEL_CS8264_C PowerOutletTypeLabel = "CS8264C"
+ POWEROUTLETTYPELABEL_CS8364_C PowerOutletTypeLabel = "CS8364C"
+ POWEROUTLETTYPELABEL_CS8464_C PowerOutletTypeLabel = "CS8464C"
+ POWEROUTLETTYPELABEL_ITA_TYPE_E__CEE_7_5 PowerOutletTypeLabel = "ITA Type E (CEE 7/5)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_F__CEE_7_3 PowerOutletTypeLabel = "ITA Type F (CEE 7/3)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_G__BS_1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_H PowerOutletTypeLabel = "ITA Type H"
+ POWEROUTLETTYPELABEL_ITA_TYPE_I PowerOutletTypeLabel = "ITA Type I"
+ POWEROUTLETTYPELABEL_ITA_TYPE_J PowerOutletTypeLabel = "ITA Type J"
+ POWEROUTLETTYPELABEL_ITA_TYPE_K PowerOutletTypeLabel = "ITA Type K"
+ POWEROUTLETTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_M__BS_546 PowerOutletTypeLabel = "ITA Type M (BS 546)"
+ POWEROUTLETTYPELABEL_ITA_TYPE_N PowerOutletTypeLabel = "ITA Type N"
+ POWEROUTLETTYPELABEL_ITA_TYPE_O PowerOutletTypeLabel = "ITA Type O"
+ POWEROUTLETTYPELABEL_ITA_MULTISTANDARD PowerOutletTypeLabel = "ITA Multistandard"
+ POWEROUTLETTYPELABEL_USB_TYPE_A PowerOutletTypeLabel = "USB Type A"
+ POWEROUTLETTYPELABEL_USB_MICRO_B PowerOutletTypeLabel = "USB Micro B"
+ POWEROUTLETTYPELABEL_USB_TYPE_C PowerOutletTypeLabel = "USB Type C"
+ POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerOutletTypeLabel = "Molex Micro-Fit 1x2"
+ POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerOutletTypeLabel = "Molex Micro-Fit 2x2"
+ POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerOutletTypeLabel = "Molex Micro-Fit 2x4"
+ POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal"
+ POWEROUTLETTYPELABEL_EATON_C39 PowerOutletTypeLabel = "Eaton C39"
+ POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx"
+ POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__32_A PowerOutletTypeLabel = "Neutrik powerCON (32A)"
+ POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerOutletTypeLabel = "Neutrik powerCON TRUE1"
POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerOutletTypeLabel = "Neutrik powerCON TRUE1 TOP"
- POWEROUTLETTYPELABEL_UBIQUITI_SMART_POWER PowerOutletTypeLabel = "Ubiquiti SmartPower"
- POWEROUTLETTYPELABEL_HARDWIRED PowerOutletTypeLabel = "Hardwired"
- POWEROUTLETTYPELABEL_OTHER PowerOutletTypeLabel = "Other"
+ POWEROUTLETTYPELABEL_UBIQUITI_SMART_POWER PowerOutletTypeLabel = "Ubiquiti SmartPower"
+ POWEROUTLETTYPELABEL_HARDWIRED PowerOutletTypeLabel = "Hardwired"
+ POWEROUTLETTYPELABEL_OTHER PowerOutletTypeLabel = "Other"
)
// All allowed values of PowerOutletTypeLabel enum
@@ -300,4 +300,3 @@ func (v *NullablePowerOutletTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_power_outlet_type_value.go b/model_power_outlet_type_value.go
index ac3a0f406..8416ab6f1 100644
--- a/model_power_outlet_type_value.go
+++ b/model_power_outlet_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,105 +20,105 @@ type PowerOutletTypeValue string
// List of PowerOutlet_type_value
const (
- POWEROUTLETTYPEVALUE_IEC_60320_C5 PowerOutletTypeValue = "iec-60320-c5"
- POWEROUTLETTYPEVALUE_IEC_60320_C7 PowerOutletTypeValue = "iec-60320-c7"
- POWEROUTLETTYPEVALUE_IEC_60320_C13 PowerOutletTypeValue = "iec-60320-c13"
- POWEROUTLETTYPEVALUE_IEC_60320_C15 PowerOutletTypeValue = "iec-60320-c15"
- POWEROUTLETTYPEVALUE_IEC_60320_C19 PowerOutletTypeValue = "iec-60320-c19"
- POWEROUTLETTYPEVALUE_IEC_60320_C21 PowerOutletTypeValue = "iec-60320-c21"
- POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_4H PowerOutletTypeValue = "iec-60309-p-n-e-4h"
- POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_6H PowerOutletTypeValue = "iec-60309-p-n-e-6h"
- POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_9H PowerOutletTypeValue = "iec-60309-p-n-e-9h"
- POWEROUTLETTYPEVALUE_IEC_60309_2P_E_4H PowerOutletTypeValue = "iec-60309-2p-e-4h"
- POWEROUTLETTYPEVALUE_IEC_60309_2P_E_6H PowerOutletTypeValue = "iec-60309-2p-e-6h"
- POWEROUTLETTYPEVALUE_IEC_60309_2P_E_9H PowerOutletTypeValue = "iec-60309-2p-e-9h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_E_4H PowerOutletTypeValue = "iec-60309-3p-e-4h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_E_6H PowerOutletTypeValue = "iec-60309-3p-e-6h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_E_9H PowerOutletTypeValue = "iec-60309-3p-e-9h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_4H PowerOutletTypeValue = "iec-60309-3p-n-e-4h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_6H PowerOutletTypeValue = "iec-60309-3p-n-e-6h"
- POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_9H PowerOutletTypeValue = "iec-60309-3p-n-e-9h"
- POWEROUTLETTYPEVALUE_IEC_60906_1 PowerOutletTypeValue = "iec-60906-1"
- POWEROUTLETTYPEVALUE_NBR_14136_10A PowerOutletTypeValue = "nbr-14136-10a"
- POWEROUTLETTYPEVALUE_NBR_14136_20A PowerOutletTypeValue = "nbr-14136-20a"
- POWEROUTLETTYPEVALUE_NEMA_1_15R PowerOutletTypeValue = "nema-1-15r"
- POWEROUTLETTYPEVALUE_NEMA_5_15R PowerOutletTypeValue = "nema-5-15r"
- POWEROUTLETTYPEVALUE_NEMA_5_20R PowerOutletTypeValue = "nema-5-20r"
- POWEROUTLETTYPEVALUE_NEMA_5_30R PowerOutletTypeValue = "nema-5-30r"
- POWEROUTLETTYPEVALUE_NEMA_5_50R PowerOutletTypeValue = "nema-5-50r"
- POWEROUTLETTYPEVALUE_NEMA_6_15R PowerOutletTypeValue = "nema-6-15r"
- POWEROUTLETTYPEVALUE_NEMA_6_20R PowerOutletTypeValue = "nema-6-20r"
- POWEROUTLETTYPEVALUE_NEMA_6_30R PowerOutletTypeValue = "nema-6-30r"
- POWEROUTLETTYPEVALUE_NEMA_6_50R PowerOutletTypeValue = "nema-6-50r"
- POWEROUTLETTYPEVALUE_NEMA_10_30R PowerOutletTypeValue = "nema-10-30r"
- POWEROUTLETTYPEVALUE_NEMA_10_50R PowerOutletTypeValue = "nema-10-50r"
- POWEROUTLETTYPEVALUE_NEMA_14_20R PowerOutletTypeValue = "nema-14-20r"
- POWEROUTLETTYPEVALUE_NEMA_14_30R PowerOutletTypeValue = "nema-14-30r"
- POWEROUTLETTYPEVALUE_NEMA_14_50R PowerOutletTypeValue = "nema-14-50r"
- POWEROUTLETTYPEVALUE_NEMA_14_60R PowerOutletTypeValue = "nema-14-60r"
- POWEROUTLETTYPEVALUE_NEMA_15_15R PowerOutletTypeValue = "nema-15-15r"
- POWEROUTLETTYPEVALUE_NEMA_15_20R PowerOutletTypeValue = "nema-15-20r"
- POWEROUTLETTYPEVALUE_NEMA_15_30R PowerOutletTypeValue = "nema-15-30r"
- POWEROUTLETTYPEVALUE_NEMA_15_50R PowerOutletTypeValue = "nema-15-50r"
- POWEROUTLETTYPEVALUE_NEMA_15_60R PowerOutletTypeValue = "nema-15-60r"
- POWEROUTLETTYPEVALUE_NEMA_L1_15R PowerOutletTypeValue = "nema-l1-15r"
- POWEROUTLETTYPEVALUE_NEMA_L5_15R PowerOutletTypeValue = "nema-l5-15r"
- POWEROUTLETTYPEVALUE_NEMA_L5_20R PowerOutletTypeValue = "nema-l5-20r"
- POWEROUTLETTYPEVALUE_NEMA_L5_30R PowerOutletTypeValue = "nema-l5-30r"
- POWEROUTLETTYPEVALUE_NEMA_L5_50R PowerOutletTypeValue = "nema-l5-50r"
- POWEROUTLETTYPEVALUE_NEMA_L6_15R PowerOutletTypeValue = "nema-l6-15r"
- POWEROUTLETTYPEVALUE_NEMA_L6_20R PowerOutletTypeValue = "nema-l6-20r"
- POWEROUTLETTYPEVALUE_NEMA_L6_30R PowerOutletTypeValue = "nema-l6-30r"
- POWEROUTLETTYPEVALUE_NEMA_L6_50R PowerOutletTypeValue = "nema-l6-50r"
- POWEROUTLETTYPEVALUE_NEMA_L10_30R PowerOutletTypeValue = "nema-l10-30r"
- POWEROUTLETTYPEVALUE_NEMA_L14_20R PowerOutletTypeValue = "nema-l14-20r"
- POWEROUTLETTYPEVALUE_NEMA_L14_30R PowerOutletTypeValue = "nema-l14-30r"
- POWEROUTLETTYPEVALUE_NEMA_L14_50R PowerOutletTypeValue = "nema-l14-50r"
- POWEROUTLETTYPEVALUE_NEMA_L14_60R PowerOutletTypeValue = "nema-l14-60r"
- POWEROUTLETTYPEVALUE_NEMA_L15_20R PowerOutletTypeValue = "nema-l15-20r"
- POWEROUTLETTYPEVALUE_NEMA_L15_30R PowerOutletTypeValue = "nema-l15-30r"
- POWEROUTLETTYPEVALUE_NEMA_L15_50R PowerOutletTypeValue = "nema-l15-50r"
- POWEROUTLETTYPEVALUE_NEMA_L15_60R PowerOutletTypeValue = "nema-l15-60r"
- POWEROUTLETTYPEVALUE_NEMA_L21_20R PowerOutletTypeValue = "nema-l21-20r"
- POWEROUTLETTYPEVALUE_NEMA_L21_30R PowerOutletTypeValue = "nema-l21-30r"
- POWEROUTLETTYPEVALUE_NEMA_L22_20R PowerOutletTypeValue = "nema-l22-20r"
- POWEROUTLETTYPEVALUE_NEMA_L22_30R PowerOutletTypeValue = "nema-l22-30r"
- POWEROUTLETTYPEVALUE_CS6360_C PowerOutletTypeValue = "CS6360C"
- POWEROUTLETTYPEVALUE_CS6364_C PowerOutletTypeValue = "CS6364C"
- POWEROUTLETTYPEVALUE_CS8164_C PowerOutletTypeValue = "CS8164C"
- POWEROUTLETTYPEVALUE_CS8264_C PowerOutletTypeValue = "CS8264C"
- POWEROUTLETTYPEVALUE_CS8364_C PowerOutletTypeValue = "CS8364C"
- POWEROUTLETTYPEVALUE_CS8464_C PowerOutletTypeValue = "CS8464C"
- POWEROUTLETTYPEVALUE_ITA_E PowerOutletTypeValue = "ita-e"
- POWEROUTLETTYPEVALUE_ITA_F PowerOutletTypeValue = "ita-f"
- POWEROUTLETTYPEVALUE_ITA_G PowerOutletTypeValue = "ita-g"
- POWEROUTLETTYPEVALUE_ITA_H PowerOutletTypeValue = "ita-h"
- POWEROUTLETTYPEVALUE_ITA_I PowerOutletTypeValue = "ita-i"
- POWEROUTLETTYPEVALUE_ITA_J PowerOutletTypeValue = "ita-j"
- POWEROUTLETTYPEVALUE_ITA_K PowerOutletTypeValue = "ita-k"
- POWEROUTLETTYPEVALUE_ITA_L PowerOutletTypeValue = "ita-l"
- POWEROUTLETTYPEVALUE_ITA_M PowerOutletTypeValue = "ita-m"
- POWEROUTLETTYPEVALUE_ITA_N PowerOutletTypeValue = "ita-n"
- POWEROUTLETTYPEVALUE_ITA_O PowerOutletTypeValue = "ita-o"
- POWEROUTLETTYPEVALUE_ITA_MULTISTANDARD PowerOutletTypeValue = "ita-multistandard"
- POWEROUTLETTYPEVALUE_USB_A PowerOutletTypeValue = "usb-a"
- POWEROUTLETTYPEVALUE_USB_MICRO_B PowerOutletTypeValue = "usb-micro-b"
- POWEROUTLETTYPEVALUE_USB_C PowerOutletTypeValue = "usb-c"
- POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerOutletTypeValue = "molex-micro-fit-1x2"
- POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerOutletTypeValue = "molex-micro-fit-2x2"
- POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerOutletTypeValue = "molex-micro-fit-2x4"
- POWEROUTLETTYPEVALUE_DC_TERMINAL PowerOutletTypeValue = "dc-terminal"
- POWEROUTLETTYPEVALUE_EATON_C39 PowerOutletTypeValue = "eaton-c39"
- POWEROUTLETTYPEVALUE_HDOT_CX PowerOutletTypeValue = "hdot-cx"
- POWEROUTLETTYPEVALUE_SAF_D_GRID PowerOutletTypeValue = "saf-d-grid"
- POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_20A PowerOutletTypeValue = "neutrik-powercon-20a"
- POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_32A PowerOutletTypeValue = "neutrik-powercon-32a"
- POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerOutletTypeValue = "neutrik-powercon-true1"
+ POWEROUTLETTYPEVALUE_IEC_60320_C5 PowerOutletTypeValue = "iec-60320-c5"
+ POWEROUTLETTYPEVALUE_IEC_60320_C7 PowerOutletTypeValue = "iec-60320-c7"
+ POWEROUTLETTYPEVALUE_IEC_60320_C13 PowerOutletTypeValue = "iec-60320-c13"
+ POWEROUTLETTYPEVALUE_IEC_60320_C15 PowerOutletTypeValue = "iec-60320-c15"
+ POWEROUTLETTYPEVALUE_IEC_60320_C19 PowerOutletTypeValue = "iec-60320-c19"
+ POWEROUTLETTYPEVALUE_IEC_60320_C21 PowerOutletTypeValue = "iec-60320-c21"
+ POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_4H PowerOutletTypeValue = "iec-60309-p-n-e-4h"
+ POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_6H PowerOutletTypeValue = "iec-60309-p-n-e-6h"
+ POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_9H PowerOutletTypeValue = "iec-60309-p-n-e-9h"
+ POWEROUTLETTYPEVALUE_IEC_60309_2P_E_4H PowerOutletTypeValue = "iec-60309-2p-e-4h"
+ POWEROUTLETTYPEVALUE_IEC_60309_2P_E_6H PowerOutletTypeValue = "iec-60309-2p-e-6h"
+ POWEROUTLETTYPEVALUE_IEC_60309_2P_E_9H PowerOutletTypeValue = "iec-60309-2p-e-9h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_E_4H PowerOutletTypeValue = "iec-60309-3p-e-4h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_E_6H PowerOutletTypeValue = "iec-60309-3p-e-6h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_E_9H PowerOutletTypeValue = "iec-60309-3p-e-9h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_4H PowerOutletTypeValue = "iec-60309-3p-n-e-4h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_6H PowerOutletTypeValue = "iec-60309-3p-n-e-6h"
+ POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_9H PowerOutletTypeValue = "iec-60309-3p-n-e-9h"
+ POWEROUTLETTYPEVALUE_IEC_60906_1 PowerOutletTypeValue = "iec-60906-1"
+ POWEROUTLETTYPEVALUE_NBR_14136_10A PowerOutletTypeValue = "nbr-14136-10a"
+ POWEROUTLETTYPEVALUE_NBR_14136_20A PowerOutletTypeValue = "nbr-14136-20a"
+ POWEROUTLETTYPEVALUE_NEMA_1_15R PowerOutletTypeValue = "nema-1-15r"
+ POWEROUTLETTYPEVALUE_NEMA_5_15R PowerOutletTypeValue = "nema-5-15r"
+ POWEROUTLETTYPEVALUE_NEMA_5_20R PowerOutletTypeValue = "nema-5-20r"
+ POWEROUTLETTYPEVALUE_NEMA_5_30R PowerOutletTypeValue = "nema-5-30r"
+ POWEROUTLETTYPEVALUE_NEMA_5_50R PowerOutletTypeValue = "nema-5-50r"
+ POWEROUTLETTYPEVALUE_NEMA_6_15R PowerOutletTypeValue = "nema-6-15r"
+ POWEROUTLETTYPEVALUE_NEMA_6_20R PowerOutletTypeValue = "nema-6-20r"
+ POWEROUTLETTYPEVALUE_NEMA_6_30R PowerOutletTypeValue = "nema-6-30r"
+ POWEROUTLETTYPEVALUE_NEMA_6_50R PowerOutletTypeValue = "nema-6-50r"
+ POWEROUTLETTYPEVALUE_NEMA_10_30R PowerOutletTypeValue = "nema-10-30r"
+ POWEROUTLETTYPEVALUE_NEMA_10_50R PowerOutletTypeValue = "nema-10-50r"
+ POWEROUTLETTYPEVALUE_NEMA_14_20R PowerOutletTypeValue = "nema-14-20r"
+ POWEROUTLETTYPEVALUE_NEMA_14_30R PowerOutletTypeValue = "nema-14-30r"
+ POWEROUTLETTYPEVALUE_NEMA_14_50R PowerOutletTypeValue = "nema-14-50r"
+ POWEROUTLETTYPEVALUE_NEMA_14_60R PowerOutletTypeValue = "nema-14-60r"
+ POWEROUTLETTYPEVALUE_NEMA_15_15R PowerOutletTypeValue = "nema-15-15r"
+ POWEROUTLETTYPEVALUE_NEMA_15_20R PowerOutletTypeValue = "nema-15-20r"
+ POWEROUTLETTYPEVALUE_NEMA_15_30R PowerOutletTypeValue = "nema-15-30r"
+ POWEROUTLETTYPEVALUE_NEMA_15_50R PowerOutletTypeValue = "nema-15-50r"
+ POWEROUTLETTYPEVALUE_NEMA_15_60R PowerOutletTypeValue = "nema-15-60r"
+ POWEROUTLETTYPEVALUE_NEMA_L1_15R PowerOutletTypeValue = "nema-l1-15r"
+ POWEROUTLETTYPEVALUE_NEMA_L5_15R PowerOutletTypeValue = "nema-l5-15r"
+ POWEROUTLETTYPEVALUE_NEMA_L5_20R PowerOutletTypeValue = "nema-l5-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L5_30R PowerOutletTypeValue = "nema-l5-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L5_50R PowerOutletTypeValue = "nema-l5-50r"
+ POWEROUTLETTYPEVALUE_NEMA_L6_15R PowerOutletTypeValue = "nema-l6-15r"
+ POWEROUTLETTYPEVALUE_NEMA_L6_20R PowerOutletTypeValue = "nema-l6-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L6_30R PowerOutletTypeValue = "nema-l6-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L6_50R PowerOutletTypeValue = "nema-l6-50r"
+ POWEROUTLETTYPEVALUE_NEMA_L10_30R PowerOutletTypeValue = "nema-l10-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L14_20R PowerOutletTypeValue = "nema-l14-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L14_30R PowerOutletTypeValue = "nema-l14-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L14_50R PowerOutletTypeValue = "nema-l14-50r"
+ POWEROUTLETTYPEVALUE_NEMA_L14_60R PowerOutletTypeValue = "nema-l14-60r"
+ POWEROUTLETTYPEVALUE_NEMA_L15_20R PowerOutletTypeValue = "nema-l15-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L15_30R PowerOutletTypeValue = "nema-l15-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L15_50R PowerOutletTypeValue = "nema-l15-50r"
+ POWEROUTLETTYPEVALUE_NEMA_L15_60R PowerOutletTypeValue = "nema-l15-60r"
+ POWEROUTLETTYPEVALUE_NEMA_L21_20R PowerOutletTypeValue = "nema-l21-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L21_30R PowerOutletTypeValue = "nema-l21-30r"
+ POWEROUTLETTYPEVALUE_NEMA_L22_20R PowerOutletTypeValue = "nema-l22-20r"
+ POWEROUTLETTYPEVALUE_NEMA_L22_30R PowerOutletTypeValue = "nema-l22-30r"
+ POWEROUTLETTYPEVALUE_CS6360_C PowerOutletTypeValue = "CS6360C"
+ POWEROUTLETTYPEVALUE_CS6364_C PowerOutletTypeValue = "CS6364C"
+ POWEROUTLETTYPEVALUE_CS8164_C PowerOutletTypeValue = "CS8164C"
+ POWEROUTLETTYPEVALUE_CS8264_C PowerOutletTypeValue = "CS8264C"
+ POWEROUTLETTYPEVALUE_CS8364_C PowerOutletTypeValue = "CS8364C"
+ POWEROUTLETTYPEVALUE_CS8464_C PowerOutletTypeValue = "CS8464C"
+ POWEROUTLETTYPEVALUE_ITA_E PowerOutletTypeValue = "ita-e"
+ POWEROUTLETTYPEVALUE_ITA_F PowerOutletTypeValue = "ita-f"
+ POWEROUTLETTYPEVALUE_ITA_G PowerOutletTypeValue = "ita-g"
+ POWEROUTLETTYPEVALUE_ITA_H PowerOutletTypeValue = "ita-h"
+ POWEROUTLETTYPEVALUE_ITA_I PowerOutletTypeValue = "ita-i"
+ POWEROUTLETTYPEVALUE_ITA_J PowerOutletTypeValue = "ita-j"
+ POWEROUTLETTYPEVALUE_ITA_K PowerOutletTypeValue = "ita-k"
+ POWEROUTLETTYPEVALUE_ITA_L PowerOutletTypeValue = "ita-l"
+ POWEROUTLETTYPEVALUE_ITA_M PowerOutletTypeValue = "ita-m"
+ POWEROUTLETTYPEVALUE_ITA_N PowerOutletTypeValue = "ita-n"
+ POWEROUTLETTYPEVALUE_ITA_O PowerOutletTypeValue = "ita-o"
+ POWEROUTLETTYPEVALUE_ITA_MULTISTANDARD PowerOutletTypeValue = "ita-multistandard"
+ POWEROUTLETTYPEVALUE_USB_A PowerOutletTypeValue = "usb-a"
+ POWEROUTLETTYPEVALUE_USB_MICRO_B PowerOutletTypeValue = "usb-micro-b"
+ POWEROUTLETTYPEVALUE_USB_C PowerOutletTypeValue = "usb-c"
+ POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerOutletTypeValue = "molex-micro-fit-1x2"
+ POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerOutletTypeValue = "molex-micro-fit-2x2"
+ POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerOutletTypeValue = "molex-micro-fit-2x4"
+ POWEROUTLETTYPEVALUE_DC_TERMINAL PowerOutletTypeValue = "dc-terminal"
+ POWEROUTLETTYPEVALUE_EATON_C39 PowerOutletTypeValue = "eaton-c39"
+ POWEROUTLETTYPEVALUE_HDOT_CX PowerOutletTypeValue = "hdot-cx"
+ POWEROUTLETTYPEVALUE_SAF_D_GRID PowerOutletTypeValue = "saf-d-grid"
+ POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_20A PowerOutletTypeValue = "neutrik-powercon-20a"
+ POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_32A PowerOutletTypeValue = "neutrik-powercon-32a"
+ POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerOutletTypeValue = "neutrik-powercon-true1"
POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_TRUE1_TOP PowerOutletTypeValue = "neutrik-powercon-true1-top"
- POWEROUTLETTYPEVALUE_UBIQUITI_SMARTPOWER PowerOutletTypeValue = "ubiquiti-smartpower"
- POWEROUTLETTYPEVALUE_HARDWIRED PowerOutletTypeValue = "hardwired"
- POWEROUTLETTYPEVALUE_OTHER PowerOutletTypeValue = "other"
- POWEROUTLETTYPEVALUE_EMPTY PowerOutletTypeValue = ""
+ POWEROUTLETTYPEVALUE_UBIQUITI_SMARTPOWER PowerOutletTypeValue = "ubiquiti-smartpower"
+ POWEROUTLETTYPEVALUE_HARDWIRED PowerOutletTypeValue = "hardwired"
+ POWEROUTLETTYPEVALUE_OTHER PowerOutletTypeValue = "other"
+ POWEROUTLETTYPEVALUE_EMPTY PowerOutletTypeValue = ""
)
// All allowed values of PowerOutletTypeValue enum
@@ -302,4 +302,3 @@ func (v *NullablePowerOutletTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_power_panel.go b/model_power_panel.go
index 12637e6d0..805313d93 100644
--- a/model_power_panel.go
+++ b/model_power_panel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerPanel type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &PowerPanel{}
// PowerPanel Adds support for custom fields and tags.
type PowerPanel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Site BriefSite `json:"site"`
- Location NullableBriefLocation `json:"location,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Site BriefSite `json:"site"`
+ Location NullableBriefLocation `json:"location,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *PowerPanel) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerPanel) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *PowerPanel) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *PowerPanel) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *PowerPanel) SetDisplay(v string) {
o.Display = v
}
-
// GetSite returns the Site field value
func (o *PowerPanel) GetSite() BriefSite {
if o == nil {
@@ -193,7 +190,6 @@ func (o *PowerPanel) SetSite(v BriefSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerPanel) GetLocation() BriefLocation {
if o == nil || IsNil(o.Location.Get()) {
@@ -226,6 +222,7 @@ func (o *PowerPanel) HasLocation() bool {
func (o *PowerPanel) SetLocation(v BriefLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PowerPanel) SetLocationNil() {
o.Location.Set(nil)
@@ -260,7 +257,6 @@ func (o *PowerPanel) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PowerPanel) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -453,6 +449,7 @@ func (o *PowerPanel) HasCreated() bool {
func (o *PowerPanel) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerPanel) SetCreatedNil() {
o.Created.Set(nil)
@@ -495,6 +492,7 @@ func (o *PowerPanel) HasLastUpdated() bool {
func (o *PowerPanel) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerPanel) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -506,7 +504,7 @@ func (o *PowerPanel) UnsetLastUpdated() {
}
func (o PowerPanel) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -569,32 +567,31 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -666,5 +663,3 @@ func (v *NullablePowerPanel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_panel_request.go b/model_power_panel_request.go
index 189aad7fe..de7a947e0 100644
--- a/model_power_panel_request.go
+++ b/model_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PowerPanelRequest{}
// PowerPanelRequest Adds support for custom fields and tags.
type PowerPanelRequest struct {
- Site BriefSiteRequest `json:"site"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _PowerPanelRequest PowerPanelRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest {
+func NewPowerPanelRequest(site DeviceWithConfigContextRequestSite, name string) *PowerPanelRequest {
this := PowerPanelRequest{}
this.Site = site
this.Name = name
@@ -52,9 +52,9 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest {
}
// GetSite returns the Site field value
-func (o *PowerPanelRequest) GetSite() BriefSiteRequest {
+func (o *PowerPanelRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -63,7 +63,7 @@ func (o *PowerPanelRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *PowerPanelRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -71,15 +71,14 @@ func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) {
+func (o *PowerPanelRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPanelRequest) GetLocation() BriefLocationRequest {
+func (o *PowerPanelRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -88,7 +87,7 @@ func (o *PowerPanelRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *PowerPanelRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -104,10 +103,11 @@ func (o *PowerPanelRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *PowerPanelRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PowerPanelRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -142,7 +142,6 @@ func (o *PowerPanelRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PowerPanelRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -272,7 +271,7 @@ func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PowerPanelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -317,32 +316,31 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -407,5 +405,3 @@ func (v *NullablePowerPanelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port.go b/model_power_port.go
index dd7888011..e7d2778d9 100644
--- a/model_power_port.go
+++ b/model_power_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerPort type satisfies the MappedNullable interface at compile time
@@ -21,37 +21,37 @@ var _ MappedNullable = &PowerPort{}
// PowerPort Adds support for custom fields and tags.
type PowerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerPortType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerPortType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
- ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"`
+ ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"`
+ ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
+ AdditionalProperties map[string]interface{}
}
type _PowerPort PowerPort
@@ -105,7 +105,6 @@ func (o *PowerPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerPort) GetUrl() string {
if o == nil {
@@ -130,7 +129,6 @@ func (o *PowerPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *PowerPort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -187,7 +185,6 @@ func (o *PowerPort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *PowerPort) GetDevice() BriefDevice {
if o == nil {
@@ -212,7 +209,6 @@ func (o *PowerPort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerPort) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -245,6 +241,7 @@ func (o *PowerPort) HasModule() bool {
func (o *PowerPort) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PowerPort) SetModuleNil() {
o.Module.Set(nil)
@@ -279,7 +276,6 @@ func (o *PowerPort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerPort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -344,6 +340,7 @@ func (o *PowerPort) HasType() bool {
func (o *PowerPort) SetType(v PowerPortType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPort) SetTypeNil() {
o.Type.Set(nil)
@@ -386,6 +383,7 @@ func (o *PowerPort) HasMaximumDraw() bool {
func (o *PowerPort) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPort) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -428,6 +426,7 @@ func (o *PowerPort) HasAllocatedDraw() bool {
func (o *PowerPort) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPort) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -534,6 +533,7 @@ func (o *PowerPort) HasCable() bool {
func (o *PowerPort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *PowerPort) SetCableNil() {
o.Cable.Set(nil)
@@ -600,7 +600,6 @@ func (o *PowerPort) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerPort) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -633,6 +632,7 @@ func (o *PowerPort) HasLinkPeersType() bool {
func (o *PowerPort) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *PowerPort) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -708,6 +708,7 @@ func (o *PowerPort) HasConnectedEndpointsType() bool {
func (o *PowerPort) SetConnectedEndpointsType(v string) {
o.ConnectedEndpointsType.Set(&v)
}
+
// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil
func (o *PowerPort) SetConnectedEndpointsTypeNil() {
o.ConnectedEndpointsType.Set(nil)
@@ -742,7 +743,6 @@ func (o *PowerPort) SetConnectedEndpointsReachable(v bool) {
o.ConnectedEndpointsReachable = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *PowerPort) GetTags() []NestedTag {
if o == nil || IsNil(o.Tags) {
@@ -839,6 +839,7 @@ func (o *PowerPort) HasCreated() bool {
func (o *PowerPort) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerPort) SetCreatedNil() {
o.Created.Set(nil)
@@ -881,6 +882,7 @@ func (o *PowerPort) HasLastUpdated() bool {
func (o *PowerPort) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerPort) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -915,9 +917,8 @@ func (o *PowerPort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o PowerPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1010,32 +1011,31 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1118,5 +1118,3 @@ func (v *NullablePowerPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port_request.go b/model_power_port_request.go
index 7a1e178e9..22721ec9e 100644
--- a/model_power_port_request.go
+++ b/model_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ var _ MappedNullable = &PowerPortRequest{}
// PowerPortRequest Adds support for custom fields and tags.
type PowerPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,7 +44,7 @@ type _PowerPortRequest PowerPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest {
+func NewPowerPortRequest(device BriefInterfaceRequestDevice, name string) *PowerPortRequest {
this := PowerPortRequest{}
this.Device = device
this.Name = name
@@ -60,9 +60,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest {
}
// GetDevice returns the Device field value
-func (o *PowerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *PowerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -71,7 +71,7 @@ func (o *PowerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *PowerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -79,15 +79,14 @@ func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *PowerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPortRequest) GetModule() BriefModuleRequest {
+func (o *PowerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -96,7 +95,7 @@ func (o *PowerPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *PowerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *PowerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *PowerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *PowerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *PowerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -150,7 +150,6 @@ func (o *PowerPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -215,6 +214,7 @@ func (o *PowerPortRequest) HasType() bool {
func (o *PowerPortRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -257,6 +257,7 @@ func (o *PowerPortRequest) HasMaximumDraw() bool {
func (o *PowerPortRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPortRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -299,6 +300,7 @@ func (o *PowerPortRequest) HasAllocatedDraw() bool {
func (o *PowerPortRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPortRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -438,7 +440,7 @@ func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PowerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -495,32 +497,31 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -589,5 +590,3 @@ func (v *NullablePowerPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port_template.go b/model_power_port_template.go
index 09828069f..bd0baf6b0 100644
--- a/model_power_port_template.go
+++ b/model_power_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &PowerPortTemplate{}
// PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PowerPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerPortType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerPortType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
- AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *PowerPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *PowerPortTemplate) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *PowerPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *PowerPortTemplate) GetDisplay() string {
if o == nil {
@@ -138,7 +136,6 @@ func (o *PowerPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -171,6 +168,7 @@ func (o *PowerPortTemplate) HasDeviceType() bool {
func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PowerPortTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -213,6 +211,7 @@ func (o *PowerPortTemplate) HasModuleType() bool {
func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PowerPortTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -247,7 +246,6 @@ func (o *PowerPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerPortTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -312,6 +310,7 @@ func (o *PowerPortTemplate) HasType() bool {
func (o *PowerPortTemplate) SetType(v PowerPortType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPortTemplate) SetTypeNil() {
o.Type.Set(nil)
@@ -354,6 +353,7 @@ func (o *PowerPortTemplate) HasMaximumDraw() bool {
func (o *PowerPortTemplate) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPortTemplate) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -396,6 +396,7 @@ func (o *PowerPortTemplate) HasAllocatedDraw() bool {
func (o *PowerPortTemplate) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPortTemplate) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -470,6 +471,7 @@ func (o *PowerPortTemplate) HasCreated() bool {
func (o *PowerPortTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerPortTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -512,6 +514,7 @@ func (o *PowerPortTemplate) HasLastUpdated() bool {
func (o *PowerPortTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerPortTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -523,7 +526,7 @@ func (o *PowerPortTemplate) UnsetLastUpdated() {
}
func (o PowerPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -584,32 +587,31 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -680,5 +682,3 @@ func (v *NullablePowerPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go
index d4ce4a17e..feb88be46 100644
--- a/model_power_port_template_request.go
+++ b/model_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &PowerPortTemplateRequest{}
// PowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PowerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
- AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *PowerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -67,7 +67,7 @@ func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -83,10 +83,11 @@ func (o *PowerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *PowerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PowerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -98,9 +99,9 @@ func (o *PowerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *PowerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -109,7 +110,7 @@ func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -125,10 +126,11 @@ func (o *PowerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *PowerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PowerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -163,7 +165,6 @@ func (o *PowerPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *PowerPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -228,6 +229,7 @@ func (o *PowerPortTemplateRequest) HasType() bool {
func (o *PowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -270,6 +272,7 @@ func (o *PowerPortTemplateRequest) HasMaximumDraw() bool {
func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPortTemplateRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -312,6 +315,7 @@ func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool {
func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -355,7 +359,7 @@ func (o *PowerPortTemplateRequest) SetDescription(v string) {
}
func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -404,32 +408,31 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -495,5 +498,3 @@ func (v *NullablePowerPortTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port_type.go b/model_power_port_type.go
index 8dc8f0835..e3bc0e365 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PowerPortType{}
// PowerPortType struct for PowerPortType
type PowerPortType struct {
- Value *PowerPortTypeValue `json:"value,omitempty"`
- Label *PowerPortTypeLabel `json:"label,omitempty"`
+ Value *PowerPortTypeValue `json:"value,omitempty"`
+ Label *PowerPortTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) {
}
func (o PowerPortType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go
index 75b638995..d8c7867a6 100644
--- a/model_power_port_type_label.go
+++ b/model_power_port_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,110 +20,110 @@ type PowerPortTypeLabel string
// List of PowerPort_type_label
const (
- POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6"
- POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8"
- POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14"
- POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16"
- POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20"
- POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22"
- POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H"
- POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H"
- POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H"
- POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H"
- POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H"
- POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H"
- POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H"
- POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H"
- POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H"
- POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H"
- POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H"
- POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H"
- POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1"
- POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)"
- POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)"
- POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P"
- POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P"
- POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P"
- POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P"
- POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P"
- POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P"
- POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P"
- POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P"
- POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P"
- POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P"
- POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P"
- POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P"
- POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P"
- POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P"
- POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P"
- POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P"
- POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P"
- POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P"
- POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P"
- POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P"
- POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P"
- POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P"
- POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P"
- POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P"
- POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P"
- POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P"
- POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P"
- POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P"
- POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P"
- POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P"
- POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P"
- POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P"
- POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P"
- POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P"
- POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P"
- POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P"
- POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P"
- POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P"
- POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P"
- POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P"
- POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P"
- POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P"
- POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C"
- POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C"
- POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C"
- POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C"
- POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C"
- POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C"
- POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)"
- POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)"
- POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)"
- POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)"
- POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)"
- POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H"
- POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I"
- POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J"
- POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K"
- POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)"
- POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)"
- POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N"
- POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O"
- POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A"
- POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B"
- POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C"
- POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A"
- POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B"
- POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A"
- POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B"
- POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB"
- POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B"
- POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B"
- POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2"
- POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2"
- POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4"
- POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal"
- POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid"
- POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)"
- POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)"
- POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1"
+ POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6"
+ POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8"
+ POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14"
+ POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16"
+ POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20"
+ POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22"
+ POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H"
+ POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H"
+ POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H"
+ POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H"
+ POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H"
+ POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H"
+ POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H"
+ POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H"
+ POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H"
+ POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H"
+ POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H"
+ POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H"
+ POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1"
+ POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)"
+ POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)"
+ POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P"
+ POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P"
+ POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P"
+ POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P"
+ POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P"
+ POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P"
+ POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P"
+ POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P"
+ POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P"
+ POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P"
+ POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P"
+ POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P"
+ POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P"
+ POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P"
+ POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P"
+ POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P"
+ POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P"
+ POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P"
+ POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P"
+ POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P"
+ POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P"
+ POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P"
+ POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P"
+ POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P"
+ POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P"
+ POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P"
+ POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P"
+ POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P"
+ POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P"
+ POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P"
+ POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P"
+ POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P"
+ POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P"
+ POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P"
+ POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P"
+ POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P"
+ POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P"
+ POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P"
+ POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P"
+ POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P"
+ POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P"
+ POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P"
+ POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C"
+ POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C"
+ POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C"
+ POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C"
+ POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C"
+ POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C"
+ POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)"
+ POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)"
+ POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)"
+ POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)"
+ POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)"
+ POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H"
+ POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I"
+ POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J"
+ POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K"
+ POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)"
+ POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)"
+ POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N"
+ POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O"
+ POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A"
+ POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B"
+ POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C"
+ POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A"
+ POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B"
+ POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A"
+ POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B"
+ POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB"
+ POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B"
+ POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B"
+ POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2"
+ POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2"
+ POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4"
+ POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal"
+ POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid"
+ POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)"
+ POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)"
+ POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1"
POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerPortTypeLabel = "Neutrik powerCON TRUE1 TOP"
- POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower"
- POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired"
- POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other"
+ POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower"
+ POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired"
+ POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other"
)
// All allowed values of PowerPortTypeLabel enum
@@ -312,4 +312,3 @@ func (v *NullablePowerPortTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_power_port_type_value.go b/model_power_port_type_value.go
index 874aa77f3..4c5b1f21c 100644
--- a/model_power_port_type_value.go
+++ b/model_power_port_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,111 +20,111 @@ type PowerPortTypeValue string
// List of PowerPort_type_value
const (
- POWERPORTTYPEVALUE_IEC_60320_C6 PowerPortTypeValue = "iec-60320-c6"
- POWERPORTTYPEVALUE_IEC_60320_C8 PowerPortTypeValue = "iec-60320-c8"
- POWERPORTTYPEVALUE_IEC_60320_C14 PowerPortTypeValue = "iec-60320-c14"
- POWERPORTTYPEVALUE_IEC_60320_C16 PowerPortTypeValue = "iec-60320-c16"
- POWERPORTTYPEVALUE_IEC_60320_C20 PowerPortTypeValue = "iec-60320-c20"
- POWERPORTTYPEVALUE_IEC_60320_C22 PowerPortTypeValue = "iec-60320-c22"
- POWERPORTTYPEVALUE_IEC_60309_P_N_E_4H PowerPortTypeValue = "iec-60309-p-n-e-4h"
- POWERPORTTYPEVALUE_IEC_60309_P_N_E_6H PowerPortTypeValue = "iec-60309-p-n-e-6h"
- POWERPORTTYPEVALUE_IEC_60309_P_N_E_9H PowerPortTypeValue = "iec-60309-p-n-e-9h"
- POWERPORTTYPEVALUE_IEC_60309_2P_E_4H PowerPortTypeValue = "iec-60309-2p-e-4h"
- POWERPORTTYPEVALUE_IEC_60309_2P_E_6H PowerPortTypeValue = "iec-60309-2p-e-6h"
- POWERPORTTYPEVALUE_IEC_60309_2P_E_9H PowerPortTypeValue = "iec-60309-2p-e-9h"
- POWERPORTTYPEVALUE_IEC_60309_3P_E_4H PowerPortTypeValue = "iec-60309-3p-e-4h"
- POWERPORTTYPEVALUE_IEC_60309_3P_E_6H PowerPortTypeValue = "iec-60309-3p-e-6h"
- POWERPORTTYPEVALUE_IEC_60309_3P_E_9H PowerPortTypeValue = "iec-60309-3p-e-9h"
- POWERPORTTYPEVALUE_IEC_60309_3P_N_E_4H PowerPortTypeValue = "iec-60309-3p-n-e-4h"
- POWERPORTTYPEVALUE_IEC_60309_3P_N_E_6H PowerPortTypeValue = "iec-60309-3p-n-e-6h"
- POWERPORTTYPEVALUE_IEC_60309_3P_N_E_9H PowerPortTypeValue = "iec-60309-3p-n-e-9h"
- POWERPORTTYPEVALUE_IEC_60906_1 PowerPortTypeValue = "iec-60906-1"
- POWERPORTTYPEVALUE_NBR_14136_10A PowerPortTypeValue = "nbr-14136-10a"
- POWERPORTTYPEVALUE_NBR_14136_20A PowerPortTypeValue = "nbr-14136-20a"
- POWERPORTTYPEVALUE_NEMA_1_15P PowerPortTypeValue = "nema-1-15p"
- POWERPORTTYPEVALUE_NEMA_5_15P PowerPortTypeValue = "nema-5-15p"
- POWERPORTTYPEVALUE_NEMA_5_20P PowerPortTypeValue = "nema-5-20p"
- POWERPORTTYPEVALUE_NEMA_5_30P PowerPortTypeValue = "nema-5-30p"
- POWERPORTTYPEVALUE_NEMA_5_50P PowerPortTypeValue = "nema-5-50p"
- POWERPORTTYPEVALUE_NEMA_6_15P PowerPortTypeValue = "nema-6-15p"
- POWERPORTTYPEVALUE_NEMA_6_20P PowerPortTypeValue = "nema-6-20p"
- POWERPORTTYPEVALUE_NEMA_6_30P PowerPortTypeValue = "nema-6-30p"
- POWERPORTTYPEVALUE_NEMA_6_50P PowerPortTypeValue = "nema-6-50p"
- POWERPORTTYPEVALUE_NEMA_10_30P PowerPortTypeValue = "nema-10-30p"
- POWERPORTTYPEVALUE_NEMA_10_50P PowerPortTypeValue = "nema-10-50p"
- POWERPORTTYPEVALUE_NEMA_14_20P PowerPortTypeValue = "nema-14-20p"
- POWERPORTTYPEVALUE_NEMA_14_30P PowerPortTypeValue = "nema-14-30p"
- POWERPORTTYPEVALUE_NEMA_14_50P PowerPortTypeValue = "nema-14-50p"
- POWERPORTTYPEVALUE_NEMA_14_60P PowerPortTypeValue = "nema-14-60p"
- POWERPORTTYPEVALUE_NEMA_15_15P PowerPortTypeValue = "nema-15-15p"
- POWERPORTTYPEVALUE_NEMA_15_20P PowerPortTypeValue = "nema-15-20p"
- POWERPORTTYPEVALUE_NEMA_15_30P PowerPortTypeValue = "nema-15-30p"
- POWERPORTTYPEVALUE_NEMA_15_50P PowerPortTypeValue = "nema-15-50p"
- POWERPORTTYPEVALUE_NEMA_15_60P PowerPortTypeValue = "nema-15-60p"
- POWERPORTTYPEVALUE_NEMA_L1_15P PowerPortTypeValue = "nema-l1-15p"
- POWERPORTTYPEVALUE_NEMA_L5_15P PowerPortTypeValue = "nema-l5-15p"
- POWERPORTTYPEVALUE_NEMA_L5_20P PowerPortTypeValue = "nema-l5-20p"
- POWERPORTTYPEVALUE_NEMA_L5_30P PowerPortTypeValue = "nema-l5-30p"
- POWERPORTTYPEVALUE_NEMA_L5_50P PowerPortTypeValue = "nema-l5-50p"
- POWERPORTTYPEVALUE_NEMA_L6_15P PowerPortTypeValue = "nema-l6-15p"
- POWERPORTTYPEVALUE_NEMA_L6_20P PowerPortTypeValue = "nema-l6-20p"
- POWERPORTTYPEVALUE_NEMA_L6_30P PowerPortTypeValue = "nema-l6-30p"
- POWERPORTTYPEVALUE_NEMA_L6_50P PowerPortTypeValue = "nema-l6-50p"
- POWERPORTTYPEVALUE_NEMA_L10_30P PowerPortTypeValue = "nema-l10-30p"
- POWERPORTTYPEVALUE_NEMA_L14_20P PowerPortTypeValue = "nema-l14-20p"
- POWERPORTTYPEVALUE_NEMA_L14_30P PowerPortTypeValue = "nema-l14-30p"
- POWERPORTTYPEVALUE_NEMA_L14_50P PowerPortTypeValue = "nema-l14-50p"
- POWERPORTTYPEVALUE_NEMA_L14_60P PowerPortTypeValue = "nema-l14-60p"
- POWERPORTTYPEVALUE_NEMA_L15_20P PowerPortTypeValue = "nema-l15-20p"
- POWERPORTTYPEVALUE_NEMA_L15_30P PowerPortTypeValue = "nema-l15-30p"
- POWERPORTTYPEVALUE_NEMA_L15_50P PowerPortTypeValue = "nema-l15-50p"
- POWERPORTTYPEVALUE_NEMA_L15_60P PowerPortTypeValue = "nema-l15-60p"
- POWERPORTTYPEVALUE_NEMA_L21_20P PowerPortTypeValue = "nema-l21-20p"
- POWERPORTTYPEVALUE_NEMA_L21_30P PowerPortTypeValue = "nema-l21-30p"
- POWERPORTTYPEVALUE_NEMA_L22_20P PowerPortTypeValue = "nema-l22-20p"
- POWERPORTTYPEVALUE_NEMA_L22_30P PowerPortTypeValue = "nema-l22-30p"
- POWERPORTTYPEVALUE_CS6361C PowerPortTypeValue = "cs6361c"
- POWERPORTTYPEVALUE_CS6365C PowerPortTypeValue = "cs6365c"
- POWERPORTTYPEVALUE_CS8165C PowerPortTypeValue = "cs8165c"
- POWERPORTTYPEVALUE_CS8265C PowerPortTypeValue = "cs8265c"
- POWERPORTTYPEVALUE_CS8365C PowerPortTypeValue = "cs8365c"
- POWERPORTTYPEVALUE_CS8465C PowerPortTypeValue = "cs8465c"
- POWERPORTTYPEVALUE_ITA_C PowerPortTypeValue = "ita-c"
- POWERPORTTYPEVALUE_ITA_E PowerPortTypeValue = "ita-e"
- POWERPORTTYPEVALUE_ITA_F PowerPortTypeValue = "ita-f"
- POWERPORTTYPEVALUE_ITA_EF PowerPortTypeValue = "ita-ef"
- POWERPORTTYPEVALUE_ITA_G PowerPortTypeValue = "ita-g"
- POWERPORTTYPEVALUE_ITA_H PowerPortTypeValue = "ita-h"
- POWERPORTTYPEVALUE_ITA_I PowerPortTypeValue = "ita-i"
- POWERPORTTYPEVALUE_ITA_J PowerPortTypeValue = "ita-j"
- POWERPORTTYPEVALUE_ITA_K PowerPortTypeValue = "ita-k"
- POWERPORTTYPEVALUE_ITA_L PowerPortTypeValue = "ita-l"
- POWERPORTTYPEVALUE_ITA_M PowerPortTypeValue = "ita-m"
- POWERPORTTYPEVALUE_ITA_N PowerPortTypeValue = "ita-n"
- POWERPORTTYPEVALUE_ITA_O PowerPortTypeValue = "ita-o"
- POWERPORTTYPEVALUE_USB_A PowerPortTypeValue = "usb-a"
- POWERPORTTYPEVALUE_USB_B PowerPortTypeValue = "usb-b"
- POWERPORTTYPEVALUE_USB_C PowerPortTypeValue = "usb-c"
- POWERPORTTYPEVALUE_USB_MINI_A PowerPortTypeValue = "usb-mini-a"
- POWERPORTTYPEVALUE_USB_MINI_B PowerPortTypeValue = "usb-mini-b"
- POWERPORTTYPEVALUE_USB_MICRO_A PowerPortTypeValue = "usb-micro-a"
- POWERPORTTYPEVALUE_USB_MICRO_B PowerPortTypeValue = "usb-micro-b"
- POWERPORTTYPEVALUE_USB_MICRO_AB PowerPortTypeValue = "usb-micro-ab"
- POWERPORTTYPEVALUE_USB_3_B PowerPortTypeValue = "usb-3-b"
- POWERPORTTYPEVALUE_USB_3_MICRO_B PowerPortTypeValue = "usb-3-micro-b"
- POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerPortTypeValue = "molex-micro-fit-1x2"
- POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerPortTypeValue = "molex-micro-fit-2x2"
- POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerPortTypeValue = "molex-micro-fit-2x4"
- POWERPORTTYPEVALUE_DC_TERMINAL PowerPortTypeValue = "dc-terminal"
- POWERPORTTYPEVALUE_SAF_D_GRID PowerPortTypeValue = "saf-d-grid"
- POWERPORTTYPEVALUE_NEUTRIK_POWERCON_20 PowerPortTypeValue = "neutrik-powercon-20"
- POWERPORTTYPEVALUE_NEUTRIK_POWERCON_32 PowerPortTypeValue = "neutrik-powercon-32"
- POWERPORTTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerPortTypeValue = "neutrik-powercon-true1"
+ POWERPORTTYPEVALUE_IEC_60320_C6 PowerPortTypeValue = "iec-60320-c6"
+ POWERPORTTYPEVALUE_IEC_60320_C8 PowerPortTypeValue = "iec-60320-c8"
+ POWERPORTTYPEVALUE_IEC_60320_C14 PowerPortTypeValue = "iec-60320-c14"
+ POWERPORTTYPEVALUE_IEC_60320_C16 PowerPortTypeValue = "iec-60320-c16"
+ POWERPORTTYPEVALUE_IEC_60320_C20 PowerPortTypeValue = "iec-60320-c20"
+ POWERPORTTYPEVALUE_IEC_60320_C22 PowerPortTypeValue = "iec-60320-c22"
+ POWERPORTTYPEVALUE_IEC_60309_P_N_E_4H PowerPortTypeValue = "iec-60309-p-n-e-4h"
+ POWERPORTTYPEVALUE_IEC_60309_P_N_E_6H PowerPortTypeValue = "iec-60309-p-n-e-6h"
+ POWERPORTTYPEVALUE_IEC_60309_P_N_E_9H PowerPortTypeValue = "iec-60309-p-n-e-9h"
+ POWERPORTTYPEVALUE_IEC_60309_2P_E_4H PowerPortTypeValue = "iec-60309-2p-e-4h"
+ POWERPORTTYPEVALUE_IEC_60309_2P_E_6H PowerPortTypeValue = "iec-60309-2p-e-6h"
+ POWERPORTTYPEVALUE_IEC_60309_2P_E_9H PowerPortTypeValue = "iec-60309-2p-e-9h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_E_4H PowerPortTypeValue = "iec-60309-3p-e-4h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_E_6H PowerPortTypeValue = "iec-60309-3p-e-6h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_E_9H PowerPortTypeValue = "iec-60309-3p-e-9h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_N_E_4H PowerPortTypeValue = "iec-60309-3p-n-e-4h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_N_E_6H PowerPortTypeValue = "iec-60309-3p-n-e-6h"
+ POWERPORTTYPEVALUE_IEC_60309_3P_N_E_9H PowerPortTypeValue = "iec-60309-3p-n-e-9h"
+ POWERPORTTYPEVALUE_IEC_60906_1 PowerPortTypeValue = "iec-60906-1"
+ POWERPORTTYPEVALUE_NBR_14136_10A PowerPortTypeValue = "nbr-14136-10a"
+ POWERPORTTYPEVALUE_NBR_14136_20A PowerPortTypeValue = "nbr-14136-20a"
+ POWERPORTTYPEVALUE_NEMA_1_15P PowerPortTypeValue = "nema-1-15p"
+ POWERPORTTYPEVALUE_NEMA_5_15P PowerPortTypeValue = "nema-5-15p"
+ POWERPORTTYPEVALUE_NEMA_5_20P PowerPortTypeValue = "nema-5-20p"
+ POWERPORTTYPEVALUE_NEMA_5_30P PowerPortTypeValue = "nema-5-30p"
+ POWERPORTTYPEVALUE_NEMA_5_50P PowerPortTypeValue = "nema-5-50p"
+ POWERPORTTYPEVALUE_NEMA_6_15P PowerPortTypeValue = "nema-6-15p"
+ POWERPORTTYPEVALUE_NEMA_6_20P PowerPortTypeValue = "nema-6-20p"
+ POWERPORTTYPEVALUE_NEMA_6_30P PowerPortTypeValue = "nema-6-30p"
+ POWERPORTTYPEVALUE_NEMA_6_50P PowerPortTypeValue = "nema-6-50p"
+ POWERPORTTYPEVALUE_NEMA_10_30P PowerPortTypeValue = "nema-10-30p"
+ POWERPORTTYPEVALUE_NEMA_10_50P PowerPortTypeValue = "nema-10-50p"
+ POWERPORTTYPEVALUE_NEMA_14_20P PowerPortTypeValue = "nema-14-20p"
+ POWERPORTTYPEVALUE_NEMA_14_30P PowerPortTypeValue = "nema-14-30p"
+ POWERPORTTYPEVALUE_NEMA_14_50P PowerPortTypeValue = "nema-14-50p"
+ POWERPORTTYPEVALUE_NEMA_14_60P PowerPortTypeValue = "nema-14-60p"
+ POWERPORTTYPEVALUE_NEMA_15_15P PowerPortTypeValue = "nema-15-15p"
+ POWERPORTTYPEVALUE_NEMA_15_20P PowerPortTypeValue = "nema-15-20p"
+ POWERPORTTYPEVALUE_NEMA_15_30P PowerPortTypeValue = "nema-15-30p"
+ POWERPORTTYPEVALUE_NEMA_15_50P PowerPortTypeValue = "nema-15-50p"
+ POWERPORTTYPEVALUE_NEMA_15_60P PowerPortTypeValue = "nema-15-60p"
+ POWERPORTTYPEVALUE_NEMA_L1_15P PowerPortTypeValue = "nema-l1-15p"
+ POWERPORTTYPEVALUE_NEMA_L5_15P PowerPortTypeValue = "nema-l5-15p"
+ POWERPORTTYPEVALUE_NEMA_L5_20P PowerPortTypeValue = "nema-l5-20p"
+ POWERPORTTYPEVALUE_NEMA_L5_30P PowerPortTypeValue = "nema-l5-30p"
+ POWERPORTTYPEVALUE_NEMA_L5_50P PowerPortTypeValue = "nema-l5-50p"
+ POWERPORTTYPEVALUE_NEMA_L6_15P PowerPortTypeValue = "nema-l6-15p"
+ POWERPORTTYPEVALUE_NEMA_L6_20P PowerPortTypeValue = "nema-l6-20p"
+ POWERPORTTYPEVALUE_NEMA_L6_30P PowerPortTypeValue = "nema-l6-30p"
+ POWERPORTTYPEVALUE_NEMA_L6_50P PowerPortTypeValue = "nema-l6-50p"
+ POWERPORTTYPEVALUE_NEMA_L10_30P PowerPortTypeValue = "nema-l10-30p"
+ POWERPORTTYPEVALUE_NEMA_L14_20P PowerPortTypeValue = "nema-l14-20p"
+ POWERPORTTYPEVALUE_NEMA_L14_30P PowerPortTypeValue = "nema-l14-30p"
+ POWERPORTTYPEVALUE_NEMA_L14_50P PowerPortTypeValue = "nema-l14-50p"
+ POWERPORTTYPEVALUE_NEMA_L14_60P PowerPortTypeValue = "nema-l14-60p"
+ POWERPORTTYPEVALUE_NEMA_L15_20P PowerPortTypeValue = "nema-l15-20p"
+ POWERPORTTYPEVALUE_NEMA_L15_30P PowerPortTypeValue = "nema-l15-30p"
+ POWERPORTTYPEVALUE_NEMA_L15_50P PowerPortTypeValue = "nema-l15-50p"
+ POWERPORTTYPEVALUE_NEMA_L15_60P PowerPortTypeValue = "nema-l15-60p"
+ POWERPORTTYPEVALUE_NEMA_L21_20P PowerPortTypeValue = "nema-l21-20p"
+ POWERPORTTYPEVALUE_NEMA_L21_30P PowerPortTypeValue = "nema-l21-30p"
+ POWERPORTTYPEVALUE_NEMA_L22_20P PowerPortTypeValue = "nema-l22-20p"
+ POWERPORTTYPEVALUE_NEMA_L22_30P PowerPortTypeValue = "nema-l22-30p"
+ POWERPORTTYPEVALUE_CS6361C PowerPortTypeValue = "cs6361c"
+ POWERPORTTYPEVALUE_CS6365C PowerPortTypeValue = "cs6365c"
+ POWERPORTTYPEVALUE_CS8165C PowerPortTypeValue = "cs8165c"
+ POWERPORTTYPEVALUE_CS8265C PowerPortTypeValue = "cs8265c"
+ POWERPORTTYPEVALUE_CS8365C PowerPortTypeValue = "cs8365c"
+ POWERPORTTYPEVALUE_CS8465C PowerPortTypeValue = "cs8465c"
+ POWERPORTTYPEVALUE_ITA_C PowerPortTypeValue = "ita-c"
+ POWERPORTTYPEVALUE_ITA_E PowerPortTypeValue = "ita-e"
+ POWERPORTTYPEVALUE_ITA_F PowerPortTypeValue = "ita-f"
+ POWERPORTTYPEVALUE_ITA_EF PowerPortTypeValue = "ita-ef"
+ POWERPORTTYPEVALUE_ITA_G PowerPortTypeValue = "ita-g"
+ POWERPORTTYPEVALUE_ITA_H PowerPortTypeValue = "ita-h"
+ POWERPORTTYPEVALUE_ITA_I PowerPortTypeValue = "ita-i"
+ POWERPORTTYPEVALUE_ITA_J PowerPortTypeValue = "ita-j"
+ POWERPORTTYPEVALUE_ITA_K PowerPortTypeValue = "ita-k"
+ POWERPORTTYPEVALUE_ITA_L PowerPortTypeValue = "ita-l"
+ POWERPORTTYPEVALUE_ITA_M PowerPortTypeValue = "ita-m"
+ POWERPORTTYPEVALUE_ITA_N PowerPortTypeValue = "ita-n"
+ POWERPORTTYPEVALUE_ITA_O PowerPortTypeValue = "ita-o"
+ POWERPORTTYPEVALUE_USB_A PowerPortTypeValue = "usb-a"
+ POWERPORTTYPEVALUE_USB_B PowerPortTypeValue = "usb-b"
+ POWERPORTTYPEVALUE_USB_C PowerPortTypeValue = "usb-c"
+ POWERPORTTYPEVALUE_USB_MINI_A PowerPortTypeValue = "usb-mini-a"
+ POWERPORTTYPEVALUE_USB_MINI_B PowerPortTypeValue = "usb-mini-b"
+ POWERPORTTYPEVALUE_USB_MICRO_A PowerPortTypeValue = "usb-micro-a"
+ POWERPORTTYPEVALUE_USB_MICRO_B PowerPortTypeValue = "usb-micro-b"
+ POWERPORTTYPEVALUE_USB_MICRO_AB PowerPortTypeValue = "usb-micro-ab"
+ POWERPORTTYPEVALUE_USB_3_B PowerPortTypeValue = "usb-3-b"
+ POWERPORTTYPEVALUE_USB_3_MICRO_B PowerPortTypeValue = "usb-3-micro-b"
+ POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerPortTypeValue = "molex-micro-fit-1x2"
+ POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerPortTypeValue = "molex-micro-fit-2x2"
+ POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerPortTypeValue = "molex-micro-fit-2x4"
+ POWERPORTTYPEVALUE_DC_TERMINAL PowerPortTypeValue = "dc-terminal"
+ POWERPORTTYPEVALUE_SAF_D_GRID PowerPortTypeValue = "saf-d-grid"
+ POWERPORTTYPEVALUE_NEUTRIK_POWERCON_20 PowerPortTypeValue = "neutrik-powercon-20"
+ POWERPORTTYPEVALUE_NEUTRIK_POWERCON_32 PowerPortTypeValue = "neutrik-powercon-32"
+ POWERPORTTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerPortTypeValue = "neutrik-powercon-true1"
POWERPORTTYPEVALUE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortTypeValue = "neutrik-powercon-true1-top"
- POWERPORTTYPEVALUE_UBIQUITI_SMARTPOWER PowerPortTypeValue = "ubiquiti-smartpower"
- POWERPORTTYPEVALUE_HARDWIRED PowerPortTypeValue = "hardwired"
- POWERPORTTYPEVALUE_OTHER PowerPortTypeValue = "other"
- POWERPORTTYPEVALUE_EMPTY PowerPortTypeValue = ""
+ POWERPORTTYPEVALUE_UBIQUITI_SMARTPOWER PowerPortTypeValue = "ubiquiti-smartpower"
+ POWERPORTTYPEVALUE_HARDWIRED PowerPortTypeValue = "hardwired"
+ POWERPORTTYPEVALUE_OTHER PowerPortTypeValue = "other"
+ POWERPORTTYPEVALUE_EMPTY PowerPortTypeValue = ""
)
// All allowed values of PowerPortTypeValue enum
@@ -314,4 +314,3 @@ func (v *NullablePowerPortTypeValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_prefix.go b/model_prefix.go
index e138c9dec..f344466cb 100644
--- a/model_prefix.go
+++ b/model_prefix.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Prefix type satisfies the MappedNullable interface at compile time
@@ -21,32 +21,32 @@ var _ MappedNullable = &Prefix{}
// Prefix Adds support for custom fields and tags.
type Prefix struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- Prefix string `json:"prefix"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Scope interface{} `json:"scope,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Vlan NullableBriefVLAN `json:"vlan,omitempty"`
- Status *PrefixStatus `json:"status,omitempty"`
- Role NullableBriefRole `json:"role,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Family AggregateFamily `json:"family"`
+ Prefix string `json:"prefix"`
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Scope interface{} `json:"scope,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Vlan NullableBriefVLAN `json:"vlan,omitempty"`
+ Status *PrefixStatus `json:"status,omitempty"`
+ Role NullableBriefRole `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Children int32 `json:"children"`
- Depth int32 `json:"_depth"`
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Children int32 `json:"children"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -100,7 +100,6 @@ func (o *Prefix) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Prefix) GetUrl() string {
if o == nil {
@@ -125,7 +124,6 @@ func (o *Prefix) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Prefix) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -182,7 +180,6 @@ func (o *Prefix) SetDisplay(v string) {
o.Display = v
}
-
// GetFamily returns the Family field value
func (o *Prefix) GetFamily() AggregateFamily {
if o == nil {
@@ -207,7 +204,6 @@ func (o *Prefix) SetFamily(v AggregateFamily) {
o.Family = v
}
-
// GetPrefix returns the Prefix field value
func (o *Prefix) GetPrefix() string {
if o == nil {
@@ -232,7 +228,6 @@ func (o *Prefix) SetPrefix(v string) {
o.Prefix = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Prefix) GetVrf() BriefVRF {
if o == nil || IsNil(o.Vrf.Get()) {
@@ -265,6 +260,7 @@ func (o *Prefix) HasVrf() bool {
func (o *Prefix) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *Prefix) SetVrfNil() {
o.Vrf.Set(nil)
@@ -307,6 +303,7 @@ func (o *Prefix) HasScopeType() bool {
func (o *Prefix) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *Prefix) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -349,6 +346,7 @@ func (o *Prefix) HasScopeId() bool {
func (o *Prefix) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *Prefix) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -424,6 +422,7 @@ func (o *Prefix) HasTenant() bool {
func (o *Prefix) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Prefix) SetTenantNil() {
o.Tenant.Set(nil)
@@ -466,6 +465,7 @@ func (o *Prefix) HasVlan() bool {
func (o *Prefix) SetVlan(v BriefVLAN) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *Prefix) SetVlanNil() {
o.Vlan.Set(nil)
@@ -540,6 +540,7 @@ func (o *Prefix) HasRole() bool {
func (o *Prefix) SetRole(v BriefRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *Prefix) SetRoleNil() {
o.Role.Set(nil)
@@ -774,6 +775,7 @@ func (o *Prefix) HasCreated() bool {
func (o *Prefix) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Prefix) SetCreatedNil() {
o.Created.Set(nil)
@@ -816,6 +818,7 @@ func (o *Prefix) HasLastUpdated() bool {
func (o *Prefix) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Prefix) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -850,7 +853,6 @@ func (o *Prefix) SetChildren(v int32) {
o.Children = v
}
-
// GetDepth returns the Depth field value
func (o *Prefix) GetDepth() int32 {
if o == nil {
@@ -875,9 +877,8 @@ func (o *Prefix) SetDepth(v int32) {
o.Depth = v
}
-
func (o Prefix) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -968,32 +969,31 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1075,5 +1075,3 @@ func (v *NullablePrefix) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_prefix_request.go b/model_prefix_request.go
index a26534dd9..731bd2091 100644
--- a/model_prefix_request.go
+++ b/model_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ var _ MappedNullable = &PrefixRequest{}
// PrefixRequest Adds support for custom fields and tags.
type PrefixRequest struct {
- Prefix string `json:"prefix"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- Status *PrefixStatusValue `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
+ Prefix string `json:"prefix"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ Status *PrefixStatusValue `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,11 +83,10 @@ func (o *PrefixRequest) SetPrefix(v string) {
o.Prefix = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetVrf() BriefVRFRequest {
+func (o *PrefixRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -96,7 +95,7 @@ func (o *PrefixRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *PrefixRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *PrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *PrefixRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *PrefixRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *PrefixRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -158,6 +158,7 @@ func (o *PrefixRequest) HasScopeType() bool {
func (o *PrefixRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *PrefixRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -200,6 +201,7 @@ func (o *PrefixRequest) HasScopeId() bool {
func (o *PrefixRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *PrefixRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -211,9 +213,9 @@ func (o *PrefixRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetTenant() BriefTenantRequest {
+func (o *PrefixRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -222,7 +224,7 @@ func (o *PrefixRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *PrefixRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -238,10 +240,11 @@ func (o *PrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *PrefixRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *PrefixRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PrefixRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -253,9 +256,9 @@ func (o *PrefixRequest) UnsetTenant() {
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetVlan() BriefVLANRequest {
+func (o *PrefixRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -264,7 +267,7 @@ func (o *PrefixRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *PrefixRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -280,10 +283,11 @@ func (o *PrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *PrefixRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *PrefixRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *PrefixRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -327,9 +331,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetRole() BriefRoleRequest {
+func (o *PrefixRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -338,7 +342,7 @@ func (o *PrefixRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *PrefixRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -354,10 +358,11 @@ func (o *PrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *PrefixRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *PrefixRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *PrefixRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -561,7 +566,7 @@ func (o *PrefixRequest) SetCustomFields(v map[string]interface{}) {
}
func (o PrefixRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -628,32 +633,31 @@ func (o *PrefixRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -725,5 +729,3 @@ func (v *NullablePrefixRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_prefix_status.go b/model_prefix_status.go
index f69d81751..a62f7cef3 100644
--- a/model_prefix_status.go
+++ b/model_prefix_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PrefixStatus{}
// PrefixStatus struct for PrefixStatus
type PrefixStatus struct {
- Value *PrefixStatusValue `json:"value,omitempty"`
- Label *PrefixStatusLabel `json:"label,omitempty"`
+ Value *PrefixStatusValue `json:"value,omitempty"`
+ Label *PrefixStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *PrefixStatus) SetLabel(v PrefixStatusLabel) {
}
func (o PrefixStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullablePrefixStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go
index 112e8e3a6..700068040 100644
--- a/model_prefix_status_label.go
+++ b/model_prefix_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PrefixStatusLabel string
// List of Prefix_status_label
const (
- PREFIXSTATUSLABEL_CONTAINER PrefixStatusLabel = "Container"
- PREFIXSTATUSLABEL_ACTIVE PrefixStatusLabel = "Active"
- PREFIXSTATUSLABEL_RESERVED PrefixStatusLabel = "Reserved"
+ PREFIXSTATUSLABEL_CONTAINER PrefixStatusLabel = "Container"
+ PREFIXSTATUSLABEL_ACTIVE PrefixStatusLabel = "Active"
+ PREFIXSTATUSLABEL_RESERVED PrefixStatusLabel = "Reserved"
PREFIXSTATUSLABEL_DEPRECATED PrefixStatusLabel = "Deprecated"
)
@@ -112,4 +112,3 @@ func (v *NullablePrefixStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go
index 58ccbec9a..7b4a8f1c9 100644
--- a/model_prefix_status_value.go
+++ b/model_prefix_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type PrefixStatusValue string
// List of Prefix_status_value
const (
- PREFIXSTATUSVALUE_CONTAINER PrefixStatusValue = "container"
- PREFIXSTATUSVALUE_ACTIVE PrefixStatusValue = "active"
- PREFIXSTATUSVALUE_RESERVED PrefixStatusValue = "reserved"
+ PREFIXSTATUSVALUE_CONTAINER PrefixStatusValue = "container"
+ PREFIXSTATUSVALUE_ACTIVE PrefixStatusValue = "active"
+ PREFIXSTATUSVALUE_RESERVED PrefixStatusValue = "reserved"
PREFIXSTATUSVALUE_DEPRECATED PrefixStatusValue = "deprecated"
)
@@ -112,4 +112,3 @@ 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 d5560e319..969e8163a 100644
--- a/model_provider.go
+++ b/model_provider.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Provider type satisfies the MappedNullable interface at compile time
@@ -21,22 +21,22 @@ var _ MappedNullable = &Provider{}
// Provider Adds support for custom fields and tags.
type Provider struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Accounts []NestedProviderAccount `json:"accounts,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []ASN `json:"asns,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Accounts []NestedProviderAccount `json:"accounts,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []ASN `json:"asns,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *Provider) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Provider) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *Provider) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Provider) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +168,6 @@ func (o *Provider) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Provider) GetName() string {
if o == nil {
@@ -195,7 +192,6 @@ func (o *Provider) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Provider) GetSlug() string {
if o == nil {
@@ -220,7 +216,6 @@ func (o *Provider) SetSlug(v string) {
o.Slug = v
}
-
// GetAccounts returns the Accounts field value if set, zero value otherwise.
func (o *Provider) GetAccounts() []NestedProviderAccount {
if o == nil || IsNil(o.Accounts) {
@@ -445,6 +440,7 @@ func (o *Provider) HasCreated() bool {
func (o *Provider) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Provider) SetCreatedNil() {
o.Created.Set(nil)
@@ -487,6 +483,7 @@ func (o *Provider) HasLastUpdated() bool {
func (o *Provider) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Provider) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -530,7 +527,7 @@ func (o *Provider) SetCircuitCount(v int64) {
}
func (o Provider) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -596,32 +593,31 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -694,5 +690,3 @@ func (v *NullableProvider) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_provider_account.go b/model_provider_account.go
index b47c8d550..96626348e 100644
--- a/model_provider_account.go
+++ b/model_provider_account.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ProviderAccount type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ProviderAccount{}
// ProviderAccount Adds support for custom fields and tags.
type ProviderAccount struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Provider BriefProvider `json:"provider"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Provider BriefProvider `json:"provider"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *ProviderAccount) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ProviderAccount) GetUrl() string {
if o == nil {
@@ -114,7 +113,6 @@ func (o *ProviderAccount) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ProviderAccount) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +169,6 @@ func (o *ProviderAccount) SetDisplay(v string) {
o.Display = v
}
-
// GetProvider returns the Provider field value
func (o *ProviderAccount) GetProvider() BriefProvider {
if o == nil {
@@ -196,7 +193,6 @@ func (o *ProviderAccount) SetProvider(v BriefProvider) {
o.Provider = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *ProviderAccount) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -253,7 +249,6 @@ func (o *ProviderAccount) SetAccount(v string) {
o.Account = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ProviderAccount) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -414,6 +409,7 @@ func (o *ProviderAccount) HasCreated() bool {
func (o *ProviderAccount) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ProviderAccount) SetCreatedNil() {
o.Created.Set(nil)
@@ -456,6 +452,7 @@ func (o *ProviderAccount) HasLastUpdated() bool {
func (o *ProviderAccount) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ProviderAccount) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -467,7 +464,7 @@ func (o *ProviderAccount) UnsetLastUpdated() {
}
func (o ProviderAccount) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -527,32 +524,31 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -623,5 +619,3 @@ func (v *NullableProviderAccount) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_provider_account_request.go b/model_provider_account_request.go
index de56bb93e..aa10bf89e 100644
--- a/model_provider_account_request.go
+++ b/model_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &ProviderAccountRequest{}
// ProviderAccountRequest Adds support for custom fields and tags.
type ProviderAccountRequest struct {
- Provider BriefProviderRequest `json:"provider"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Provider BriefCircuitRequestProvider `json:"provider"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _ProviderAccountRequest ProviderAccountRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest {
+func NewProviderAccountRequest(provider BriefCircuitRequestProvider, account string) *ProviderAccountRequest {
this := ProviderAccountRequest{}
this.Provider = provider
var name string = ""
@@ -56,9 +56,9 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest {
}
// GetProvider returns the Provider field value
-func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest {
+func (o *ProviderAccountRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
@@ -67,7 +67,7 @@ func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *ProviderAccountRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil {
return nil, false
}
@@ -75,11 +75,10 @@ func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) {
}
// SetProvider sets field value
-func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) {
+func (o *ProviderAccountRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = v
}
-
// GetName returns the Name field value if set, zero value otherwise.
func (o *ProviderAccountRequest) GetName() string {
if o == nil || IsNil(o.Name) {
@@ -136,7 +135,6 @@ func (o *ProviderAccountRequest) SetAccount(v string) {
o.Account = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ProviderAccountRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -266,7 +264,7 @@ func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -311,32 +309,31 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -401,5 +398,3 @@ func (v *NullableProviderAccountRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_provider_network.go b/model_provider_network.go
index 363b98b54..6ce3b81fd 100644
--- a/model_provider_network.go
+++ b/model_provider_network.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ProviderNetwork{}
// ProviderNetwork Adds support for custom fields and tags.
type ProviderNetwork struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Provider BriefProvider `json:"provider"`
- Name string `json:"name"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Provider BriefProvider `json:"provider"`
+ Name string `json:"name"`
+ ServiceId *string `json:"service_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *ProviderNetwork) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ProviderNetwork) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *ProviderNetwork) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ProviderNetwork) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *ProviderNetwork) SetDisplay(v string) {
o.Display = v
}
-
// GetProvider returns the Provider field value
func (o *ProviderNetwork) GetProvider() BriefProvider {
if o == nil {
@@ -192,7 +189,6 @@ func (o *ProviderNetwork) SetProvider(v BriefProvider) {
o.Provider = v
}
-
// GetName returns the Name field value
func (o *ProviderNetwork) GetName() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *ProviderNetwork) SetName(v string) {
o.Name = v
}
-
// GetServiceId returns the ServiceId field value if set, zero value otherwise.
func (o *ProviderNetwork) GetServiceId() string {
if o == nil || IsNil(o.ServiceId) {
@@ -410,6 +405,7 @@ func (o *ProviderNetwork) HasCreated() bool {
func (o *ProviderNetwork) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ProviderNetwork) SetCreatedNil() {
o.Created.Set(nil)
@@ -452,6 +448,7 @@ func (o *ProviderNetwork) HasLastUpdated() bool {
func (o *ProviderNetwork) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ProviderNetwork) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -463,7 +460,7 @@ func (o *ProviderNetwork) UnsetLastUpdated() {
}
func (o ProviderNetwork) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -523,32 +520,31 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -619,5 +615,3 @@ func (v *NullableProviderNetwork) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_provider_network_request.go b/model_provider_network_request.go
index a0ed86e82..5e4c2fe43 100644
--- a/model_provider_network_request.go
+++ b/model_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &ProviderNetworkRequest{}
// ProviderNetworkRequest Adds support for custom fields and tags.
type ProviderNetworkRequest struct {
- Provider BriefProviderRequest `json:"provider"`
- Name string `json:"name"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Provider BriefCircuitRequestProvider `json:"provider"`
+ Name string `json:"name"`
+ ServiceId *string `json:"service_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _ProviderNetworkRequest ProviderNetworkRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest {
+func NewProviderNetworkRequest(provider BriefCircuitRequestProvider, name string) *ProviderNetworkRequest {
this := ProviderNetworkRequest{}
this.Provider = provider
this.Name = name
@@ -52,9 +52,9 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest {
}
// GetProvider returns the Provider field value
-func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest {
+func (o *ProviderNetworkRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
@@ -63,7 +63,7 @@ func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *ProviderNetworkRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil {
return nil, false
}
@@ -71,11 +71,10 @@ func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) {
}
// SetProvider sets field value
-func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) {
+func (o *ProviderNetworkRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = v
}
-
// GetName returns the Name field value
func (o *ProviderNetworkRequest) GetName() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *ProviderNetworkRequest) SetName(v string) {
o.Name = v
}
-
// GetServiceId returns the ServiceId field value if set, zero value otherwise.
func (o *ProviderNetworkRequest) GetServiceId() string {
if o == nil || IsNil(o.ServiceId) {
@@ -262,7 +260,7 @@ func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -307,32 +305,31 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -397,5 +394,3 @@ func (v *NullableProviderNetworkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_provider_request.go b/model_provider_request.go
index 9f91a6027..7f97370b7 100644
--- a/model_provider_request.go
+++ b/model_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,14 +21,14 @@ var _ MappedNullable = &ProviderRequest{}
// ProviderRequest Adds support for custom fields and tags.
type ProviderRequest struct {
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Accounts []int32 `json:"accounts,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Accounts []int32 `json:"accounts,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []int32 `json:"asns,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *ProviderRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *ProviderRequest) GetSlug() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *ProviderRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetAccounts returns the Accounts field value if set, zero value otherwise.
func (o *ProviderRequest) GetAccounts() []int32 {
if o == nil || IsNil(o.Accounts) {
@@ -296,7 +294,7 @@ func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ProviderRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -344,32 +342,31 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -435,5 +432,3 @@ func (v *NullableProviderRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_q_in_q_role.go b/model_q_in_q_role.go
index ab599a6fe..17436c759 100644
--- a/model_q_in_q_role.go
+++ b/model_q_in_q_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -110,4 +110,3 @@ func (v *NullableQInQRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack.go b/model_rack.go
index bf623abaa..78a4bda5f 100644
--- a/model_rack.go
+++ b/model_rack.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Rack type satisfies the MappedNullable interface at compile time
@@ -21,49 +21,51 @@ var _ MappedNullable = &Rack{}
// Rack Adds support for custom fields and tags.
type Rack struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- FacilityId NullableString `json:"facility_id,omitempty"`
- Site BriefSite `json:"site"`
- Location NullableBriefLocation `json:"location,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Status *RackStatus `json:"status,omitempty"`
- Role NullableBriefRackRole `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ FacilityId NullableString `json:"facility_id,omitempty"`
+ Site BriefSite `json:"site"`
+ Location NullableBriefLocation `json:"location,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Status *RackStatus `json:"status,omitempty"`
+ Role NullableBriefRackRole `json:"role,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- RackType NullableBriefRackType `json:"rack_type,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ RackType NullableBriefRackType `json:"rack_type,omitempty"`
FormFactor NullableRackFormFactor `json:"form_factor,omitempty"`
- Width *RackWidth `json:"width,omitempty"`
+ Width *RackWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
- StartingUnit *int32 `json:"starting_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ StartingUnit *int32 `json:"starting_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
// Units are numbered top-to-bottom
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
+ // Outer dimension of rack (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Airflow *RackAirflow `json:"airflow,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Airflow *RackAirflow `json:"airflow,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ PowerfeedCount *int64 `json:"powerfeed_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -115,7 +117,6 @@ func (o *Rack) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Rack) GetUrl() string {
if o == nil {
@@ -140,7 +141,6 @@ func (o *Rack) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Rack) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -197,7 +197,6 @@ func (o *Rack) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Rack) GetName() string {
if o == nil {
@@ -222,7 +221,6 @@ func (o *Rack) SetName(v string) {
o.Name = v
}
-
// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Rack) GetFacilityId() string {
if o == nil || IsNil(o.FacilityId.Get()) {
@@ -255,6 +253,7 @@ func (o *Rack) HasFacilityId() bool {
func (o *Rack) SetFacilityId(v string) {
o.FacilityId.Set(&v)
}
+
// SetFacilityIdNil sets the value for FacilityId to be an explicit nil
func (o *Rack) SetFacilityIdNil() {
o.FacilityId.Set(nil)
@@ -289,7 +288,6 @@ func (o *Rack) SetSite(v BriefSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Rack) GetLocation() BriefLocation {
if o == nil || IsNil(o.Location.Get()) {
@@ -322,6 +320,7 @@ func (o *Rack) HasLocation() bool {
func (o *Rack) SetLocation(v BriefLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *Rack) SetLocationNil() {
o.Location.Set(nil)
@@ -364,6 +363,7 @@ func (o *Rack) HasTenant() bool {
func (o *Rack) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Rack) SetTenantNil() {
o.Tenant.Set(nil)
@@ -438,6 +438,7 @@ func (o *Rack) HasRole() bool {
func (o *Rack) SetRole(v BriefRackRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *Rack) SetRoleNil() {
o.Role.Set(nil)
@@ -512,6 +513,7 @@ func (o *Rack) HasAssetTag() bool {
func (o *Rack) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *Rack) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -554,6 +556,7 @@ func (o *Rack) HasRackType() bool {
func (o *Rack) SetRackType(v BriefRackType) {
o.RackType.Set(&v)
}
+
// SetRackTypeNil sets the value for RackType to be an explicit nil
func (o *Rack) SetRackTypeNil() {
o.RackType.Set(nil)
@@ -596,6 +599,7 @@ func (o *Rack) HasFormFactor() bool {
func (o *Rack) SetFormFactor(v RackFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *Rack) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -734,6 +738,7 @@ func (o *Rack) HasWeight() bool {
func (o *Rack) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *Rack) SetWeightNil() {
o.Weight.Set(nil)
@@ -776,6 +781,7 @@ func (o *Rack) HasMaxWeight() bool {
func (o *Rack) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *Rack) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -818,6 +824,7 @@ func (o *Rack) HasWeightUnit() bool {
func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *Rack) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -892,6 +899,7 @@ func (o *Rack) HasOuterWidth() bool {
func (o *Rack) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *Rack) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -902,6 +910,49 @@ func (o *Rack) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *Rack) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *Rack) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *Rack) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *Rack) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *Rack) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *Rack) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Rack) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -934,6 +985,7 @@ func (o *Rack) HasOuterDepth() bool {
func (o *Rack) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *Rack) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -976,6 +1028,7 @@ func (o *Rack) HasOuterUnit() bool {
func (o *Rack) SetOuterUnit(v RackOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *Rack) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -1018,6 +1071,7 @@ func (o *Rack) HasMountingDepth() bool {
func (o *Rack) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *Rack) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -1220,6 +1274,7 @@ func (o *Rack) HasCreated() bool {
func (o *Rack) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Rack) SetCreatedNil() {
o.Created.Set(nil)
@@ -1262,6 +1317,7 @@ func (o *Rack) HasLastUpdated() bool {
func (o *Rack) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Rack) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1337,7 +1393,7 @@ func (o *Rack) SetPowerfeedCount(v int64) {
}
func (o Rack) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1405,6 +1461,9 @@ func (o Rack) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -1463,32 +1522,31 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1528,6 +1586,7 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "mounting_depth")
@@ -1581,5 +1640,3 @@ func (v *NullableRack) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_airflow.go b/model_rack_airflow.go
index cc998aa09..06afd3bd2 100644
--- a/model_rack_airflow.go
+++ b/model_rack_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackAirflow{}
// RackAirflow struct for RackAirflow
type RackAirflow struct {
- Value *RackAirflowValue `json:"value,omitempty"`
- Label *RackAirflowLabel `json:"label,omitempty"`
+ Value *RackAirflowValue `json:"value,omitempty"`
+ Label *RackAirflowLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackAirflow) SetLabel(v RackAirflowLabel) {
}
func (o RackAirflow) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackAirflow) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go
index cb252db57..a74b5b077 100644
--- a/model_rack_airflow_label.go
+++ b/model_rack_airflow_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableRackAirflowLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_airflow_value.go b/model_rack_airflow_value.go
index f2d0e2182..0295a1d3e 100644
--- a/model_rack_airflow_value.go
+++ b/model_rack_airflow_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ type RackAirflowValue string
const (
RACKAIRFLOWVALUE_FRONT_TO_REAR RackAirflowValue = "front-to-rear"
RACKAIRFLOWVALUE_REAR_TO_FRONT RackAirflowValue = "rear-to-front"
- RACKAIRFLOWVALUE_EMPTY RackAirflowValue = ""
+ RACKAIRFLOWVALUE_EMPTY RackAirflowValue = ""
)
// All allowed values of RackAirflowValue enum
@@ -110,4 +110,3 @@ func (v *NullableRackAirflowValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_face.go b/model_rack_face.go
index 7a292d3ae..5b4b6c3c7 100644
--- a/model_rack_face.go
+++ b/model_rack_face.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type RackFace string
// List of Rack_face
const (
RACKFACE_FRONT RackFace = "front"
- RACKFACE_REAR RackFace = "rear"
+ RACKFACE_REAR RackFace = "rear"
)
// All allowed values of RackFace enum
@@ -108,4 +108,3 @@ func (v *NullableRackFace) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_face_1.go b/model_rack_face_1.go
index e634c27d7..1af3f5395 100644
--- a/model_rack_face_1.go
+++ b/model_rack_face_1.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type RackFace1 string
// List of Rack_face_1
const (
RACKFACE1_FRONT RackFace1 = "front"
- RACKFACE1_REAR RackFace1 = "rear"
+ RACKFACE1_REAR RackFace1 = "rear"
RACKFACE1_EMPTY RackFace1 = ""
)
@@ -110,4 +110,3 @@ func (v *NullableRackFace1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go
index 3cbab44ce..a01a7e27c 100644
--- a/model_rack_form_factor.go
+++ b/model_rack_form_factor.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackFormFactor{}
// RackFormFactor struct for RackFormFactor
type RackFormFactor struct {
- Value *RackFormFactorValue `json:"value,omitempty"`
- Label *RackFormFactorLabel `json:"label,omitempty"`
+ Value *RackFormFactorValue `json:"value,omitempty"`
+ Label *RackFormFactorLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackFormFactor) SetLabel(v RackFormFactorLabel) {
}
func (o RackFormFactor) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackFormFactor) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go
index b0f76a22a..0fc5f0dae 100644
--- a/model_rack_form_factor_label.go
+++ b/model_rack_form_factor_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ type RackFormFactorLabel string
// List of Rack_form_factor_label
const (
- RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame"
- RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame"
- RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet"
- RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame"
- RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)"
- RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet"
+ RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame"
+ RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame"
+ RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet"
+ RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame"
+ RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)"
+ RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet"
RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET__VERTICAL RackFormFactorLabel = "Wall-mounted cabinet (vertical)"
)
@@ -118,4 +118,3 @@ func (v *NullableRackFormFactorLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_form_factor_value.go b/model_rack_form_factor_value.go
index db6895dd0..987866551 100644
--- a/model_rack_form_factor_value.go
+++ b/model_rack_form_factor_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ type RackFormFactorValue string
// List of Rack_form_factor_value
const (
- RACKFORMFACTORVALUE__2_POST_FRAME RackFormFactorValue = "2-post-frame"
- RACKFORMFACTORVALUE__4_POST_FRAME RackFormFactorValue = "4-post-frame"
- RACKFORMFACTORVALUE__4_POST_CABINET RackFormFactorValue = "4-post-cabinet"
- RACKFORMFACTORVALUE_WALL_FRAME RackFormFactorValue = "wall-frame"
- RACKFORMFACTORVALUE_WALL_FRAME_VERTICAL RackFormFactorValue = "wall-frame-vertical"
- RACKFORMFACTORVALUE_WALL_CABINET RackFormFactorValue = "wall-cabinet"
+ RACKFORMFACTORVALUE__2_POST_FRAME RackFormFactorValue = "2-post-frame"
+ RACKFORMFACTORVALUE__4_POST_FRAME RackFormFactorValue = "4-post-frame"
+ RACKFORMFACTORVALUE__4_POST_CABINET RackFormFactorValue = "4-post-cabinet"
+ RACKFORMFACTORVALUE_WALL_FRAME RackFormFactorValue = "wall-frame"
+ RACKFORMFACTORVALUE_WALL_FRAME_VERTICAL RackFormFactorValue = "wall-frame-vertical"
+ RACKFORMFACTORVALUE_WALL_CABINET RackFormFactorValue = "wall-cabinet"
RACKFORMFACTORVALUE_WALL_CABINET_VERTICAL RackFormFactorValue = "wall-cabinet-vertical"
- RACKFORMFACTORVALUE_EMPTY RackFormFactorValue = ""
+ RACKFORMFACTORVALUE_EMPTY RackFormFactorValue = ""
)
// All allowed values of RackFormFactorValue enum
@@ -120,4 +120,3 @@ func (v *NullableRackFormFactorValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go
index bde0a8360..8abf962cf 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackOuterUnit{}
// RackOuterUnit struct for RackOuterUnit
type RackOuterUnit struct {
- Value *RackOuterUnitValue `json:"value,omitempty"`
- Label *RackOuterUnitLabel `json:"label,omitempty"`
+ Value *RackOuterUnitValue `json:"value,omitempty"`
+ Label *RackOuterUnitLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) {
}
func (o RackOuterUnit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go
index cb6b7893a..4f7f09edb 100644
--- a/model_rack_outer_unit_label.go
+++ b/model_rack_outer_unit_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type RackOuterUnitLabel string
// List of Rack_outer_unit_label
const (
RACKOUTERUNITLABEL_MILLIMETERS RackOuterUnitLabel = "Millimeters"
- RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches"
+ RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches"
)
// All allowed values of RackOuterUnitLabel enum
@@ -108,4 +108,3 @@ func (v *NullableRackOuterUnitLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_outer_unit_value.go b/model_rack_outer_unit_value.go
index 015099093..8ac33e1c7 100644
--- a/model_rack_outer_unit_value.go
+++ b/model_rack_outer_unit_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type RackOuterUnitValue string
// List of Rack_outer_unit_value
const (
- RACKOUTERUNITVALUE_MM RackOuterUnitValue = "mm"
- RACKOUTERUNITVALUE_IN RackOuterUnitValue = "in"
+ RACKOUTERUNITVALUE_MM RackOuterUnitValue = "mm"
+ RACKOUTERUNITVALUE_IN RackOuterUnitValue = "in"
RACKOUTERUNITVALUE_EMPTY RackOuterUnitValue = ""
)
@@ -110,4 +110,3 @@ func (v *NullableRackOuterUnitValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_rack_request.go b/model_rack_request.go
index 852db2d8a..2c275db15 100644
--- a/model_rack_request.go
+++ b/model_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,41 +20,43 @@ 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 BriefSiteRequest `json:"site"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- Role NullableBriefRackRoleRequest `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Name string `json:"name"`
+ FacilityId NullableString `json:"facility_id,omitempty"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
+ Role NullablePatchedWritableRackRequestRole `json:"role,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ RackType NullablePatchedWritableRackRequestRackType `json:"rack_type,omitempty"`
FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"`
- Width *RackWidthValue `json:"width,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"`
+ StartingUnit *int32 `json:"starting_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit 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 (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Airflow *RackAirflowValue `json:"airflow,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Airflow *RackAirflowValue `json:"airflow,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -64,7 +66,7 @@ type _RackRequest RackRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewRackRequest(name string, site BriefSiteRequest) *RackRequest {
+func NewRackRequest(name string, site DeviceWithConfigContextRequestSite) *RackRequest {
this := RackRequest{}
this.Name = name
this.Site = site
@@ -103,7 +105,6 @@ func (o *RackRequest) SetName(v string) {
o.Name = v
}
-
// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackRequest) GetFacilityId() string {
if o == nil || IsNil(o.FacilityId.Get()) {
@@ -136,6 +137,7 @@ func (o *RackRequest) HasFacilityId() bool {
func (o *RackRequest) SetFacilityId(v string) {
o.FacilityId.Set(&v)
}
+
// SetFacilityIdNil sets the value for FacilityId to be an explicit nil
func (o *RackRequest) SetFacilityIdNil() {
o.FacilityId.Set(nil)
@@ -147,9 +149,9 @@ func (o *RackRequest) UnsetFacilityId() {
}
// GetSite returns the Site field value
-func (o *RackRequest) GetSite() BriefSiteRequest {
+func (o *RackRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -158,7 +160,7 @@ func (o *RackRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *RackRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -166,15 +168,14 @@ func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *RackRequest) SetSite(v BriefSiteRequest) {
+func (o *RackRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetLocation() BriefLocationRequest {
+func (o *RackRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -183,7 +184,7 @@ func (o *RackRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *RackRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -199,10 +200,11 @@ func (o *RackRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *RackRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *RackRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *RackRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -214,9 +216,9 @@ func (o *RackRequest) UnsetLocation() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetTenant() BriefTenantRequest {
+func (o *RackRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -225,7 +227,7 @@ func (o *RackRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *RackRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -241,10 +243,11 @@ func (o *RackRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *RackRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *RackRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *RackRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -288,9 +291,9 @@ func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetRole() BriefRackRoleRequest {
+func (o *RackRequest) GetRole() PatchedWritableRackRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRackRoleRequest
+ var ret PatchedWritableRackRequestRole
return ret
}
return *o.Role.Get()
@@ -299,7 +302,7 @@ func (o *RackRequest) GetRole() BriefRackRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) {
+func (o *RackRequest) GetRoleOk() (*PatchedWritableRackRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -315,10 +318,11 @@ func (o *RackRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field.
-func (o *RackRequest) SetRole(v BriefRackRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableRackRequestRole and assigns it to the Role field.
+func (o *RackRequest) SetRole(v PatchedWritableRackRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *RackRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -393,6 +397,7 @@ func (o *RackRequest) HasAssetTag() bool {
func (o *RackRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *RackRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -404,9 +409,9 @@ func (o *RackRequest) UnsetAssetTag() {
}
// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetRackType() BriefRackTypeRequest {
+func (o *RackRequest) GetRackType() PatchedWritableRackRequestRackType {
if o == nil || IsNil(o.RackType.Get()) {
- var ret BriefRackTypeRequest
+ var ret PatchedWritableRackRequestRackType
return ret
}
return *o.RackType.Get()
@@ -415,7 +420,7 @@ func (o *RackRequest) GetRackType() BriefRackTypeRequest {
// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) {
+func (o *RackRequest) GetRackTypeOk() (*PatchedWritableRackRequestRackType, bool) {
if o == nil {
return nil, false
}
@@ -431,10 +436,11 @@ func (o *RackRequest) HasRackType() bool {
return false
}
-// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field.
-func (o *RackRequest) SetRackType(v BriefRackTypeRequest) {
+// SetRackType gets a reference to the given NullablePatchedWritableRackRequestRackType and assigns it to the RackType field.
+func (o *RackRequest) SetRackType(v PatchedWritableRackRequestRackType) {
o.RackType.Set(&v)
}
+
// SetRackTypeNil sets the value for RackType to be an explicit nil
func (o *RackRequest) SetRackTypeNil() {
o.RackType.Set(nil)
@@ -477,6 +483,7 @@ func (o *RackRequest) HasFormFactor() bool {
func (o *RackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *RackRequest) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -615,6 +622,7 @@ func (o *RackRequest) HasWeight() bool {
func (o *RackRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *RackRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -657,6 +665,7 @@ func (o *RackRequest) HasMaxWeight() bool {
func (o *RackRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *RackRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -699,6 +708,7 @@ func (o *RackRequest) HasWeightUnit() bool {
func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *RackRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -773,6 +783,7 @@ func (o *RackRequest) HasOuterWidth() bool {
func (o *RackRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *RackRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -783,6 +794,49 @@ func (o *RackRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *RackRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a 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) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *RackRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *RackRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *RackRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *RackRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -815,6 +869,7 @@ func (o *RackRequest) HasOuterDepth() bool {
func (o *RackRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *RackRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -857,6 +912,7 @@ func (o *RackRequest) HasOuterUnit() bool {
func (o *RackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *RackRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -899,6 +955,7 @@ func (o *RackRequest) HasMountingDepth() bool {
func (o *RackRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *RackRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -1070,7 +1127,7 @@ func (o *RackRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RackRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1132,6 +1189,9 @@ func (o RackRequest) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -1175,32 +1235,31 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1236,6 +1295,7 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "mounting_depth")
@@ -1285,5 +1345,3 @@ func (v *NullableRackRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_reservation.go b/model_rack_reservation.go
index 317891b6d..4716282e0 100644
--- a/model_rack_reservation.go
+++ b/model_rack_reservation.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RackReservation type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &RackReservation{}
// RackReservation Adds support for custom fields and tags.
type RackReservation struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Rack BriefRack `json:"rack"`
- Units []int32 `json:"units"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- User BriefUser `json:"user"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Description string `json:"description"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Rack BriefRack `json:"rack"`
+ Units []int32 `json:"units"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ User BriefUser `json:"user"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Description string `json:"description"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *RackReservation) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RackReservation) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *RackReservation) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RackReservation) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +168,6 @@ func (o *RackReservation) SetDisplay(v string) {
o.Display = v
}
-
// GetRack returns the Rack field value
func (o *RackReservation) GetRack() BriefRack {
if o == nil {
@@ -195,7 +192,6 @@ func (o *RackReservation) SetRack(v BriefRack) {
o.Rack = v
}
-
// GetUnits returns the Units field value
func (o *RackReservation) GetUnits() []int32 {
if o == nil {
@@ -220,7 +216,6 @@ func (o *RackReservation) SetUnits(v []int32) {
o.Units = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackReservation) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
@@ -253,6 +248,7 @@ func (o *RackReservation) HasCreated() bool {
func (o *RackReservation) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RackReservation) SetCreatedNil() {
o.Created.Set(nil)
@@ -295,6 +291,7 @@ func (o *RackReservation) HasLastUpdated() bool {
func (o *RackReservation) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RackReservation) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -329,7 +326,6 @@ func (o *RackReservation) SetUser(v BriefUser) {
o.User = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackReservation) GetTenant() BriefTenant {
if o == nil || IsNil(o.Tenant.Get()) {
@@ -362,6 +358,7 @@ func (o *RackReservation) HasTenant() bool {
func (o *RackReservation) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *RackReservation) SetTenantNil() {
o.Tenant.Set(nil)
@@ -396,7 +393,6 @@ func (o *RackReservation) SetDescription(v string) {
o.Description = v
}
-
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *RackReservation) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -494,7 +490,7 @@ func (o *RackReservation) SetCustomFields(v map[string]interface{}) {
}
func (o RackReservation) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -555,32 +551,31 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -652,5 +647,3 @@ func (v *NullableRackReservation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go
index cdc571333..016552ad1 100644
--- a/model_rack_reservation_request.go
+++ b/model_rack_reservation_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{}
// RackReservationRequest Adds support for custom fields and tags.
type RackReservationRequest struct {
- Rack BriefRackRequest `json:"rack"`
- Units []int32 `json:"units"`
- User BriefUserRequest `json:"user"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description string `json:"description"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Rack PatchedRackReservationRequestRack `json:"rack"`
+ Units []int32 `json:"units"`
+ User BookmarkRequestUser `json:"user"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description string `json:"description"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest {
+func NewRackReservationRequest(rack PatchedRackReservationRequestRack, units []int32, user BookmarkRequestUser, description string) *RackReservationRequest {
this := RackReservationRequest{}
this.Rack = rack
this.Units = units
@@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest {
}
// GetRack returns the Rack field value
-func (o *RackReservationRequest) GetRack() BriefRackRequest {
+func (o *RackReservationRequest) GetRack() PatchedRackReservationRequestRack {
if o == nil {
- var ret BriefRackRequest
+ var ret PatchedRackReservationRequestRack
return ret
}
@@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value
// and a boolean to check if the value has been set.
-func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *RackReservationRequest) GetRackOk() (*PatchedRackReservationRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -74,11 +74,10 @@ func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) {
}
// SetRack sets field value
-func (o *RackReservationRequest) SetRack(v BriefRackRequest) {
+func (o *RackReservationRequest) SetRack(v PatchedRackReservationRequestRack) {
o.Rack = v
}
-
// GetUnits returns the Units field value
func (o *RackReservationRequest) GetUnits() []int32 {
if o == nil {
@@ -103,11 +102,10 @@ func (o *RackReservationRequest) SetUnits(v []int32) {
o.Units = v
}
-
// GetUser returns the User field value
-func (o *RackReservationRequest) GetUser() BriefUserRequest {
+func (o *RackReservationRequest) GetUser() BookmarkRequestUser {
if o == nil {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
@@ -116,7 +114,7 @@ func (o *RackReservationRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *RackReservationRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil {
return nil, false
}
@@ -124,15 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) {
}
// SetUser sets field value
-func (o *RackReservationRequest) SetUser(v BriefUserRequest) {
+func (o *RackReservationRequest) SetUser(v BookmarkRequestUser) {
o.User = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackReservationRequest) GetTenant() BriefTenantRequest {
+func (o *RackReservationRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -141,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *RackReservationRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -157,10 +154,11 @@ func (o *RackReservationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *RackReservationRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *RackReservationRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -195,7 +193,6 @@ func (o *RackReservationRequest) SetDescription(v string) {
o.Description = v
}
-
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *RackReservationRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -293,7 +290,7 @@ func (o *RackReservationRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RackReservationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -339,32 +336,31 @@ func (o *RackReservationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -430,5 +426,3 @@ func (v *NullableRackReservationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_role.go b/model_rack_role.go
index 28b7fb574..04e1c45dc 100644
--- a/model_rack_role.go
+++ b/model_rack_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RackRole type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &RackRole{}
// RackRole Adds support for custom fields and tags.
type RackRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- RackCount *int64 `json:"rack_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ RackCount *int64 `json:"rack_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *RackRole) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RackRole) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *RackRole) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RackRole) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *RackRole) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *RackRole) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *RackRole) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RackRole) GetSlug() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *RackRole) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RackRole) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -378,6 +373,7 @@ func (o *RackRole) HasCreated() bool {
func (o *RackRole) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RackRole) SetCreatedNil() {
o.Created.Set(nil)
@@ -420,6 +416,7 @@ func (o *RackRole) HasLastUpdated() bool {
func (o *RackRole) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RackRole) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -463,7 +460,7 @@ func (o *RackRole) SetRackCount(v int64) {
}
func (o RackRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -523,32 +520,31 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -619,5 +615,3 @@ func (v *NullableRackRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_role_request.go b/model_rack_role_request.go
index 4c8029b55..9c6be0360 100644
--- a/model_rack_role_request.go
+++ b/model_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &RackRoleRequest{}
// RackRoleRequest Adds support for custom fields and tags.
type RackRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *RackRoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RackRoleRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *RackRoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RackRoleRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -229,7 +227,7 @@ func (o *RackRoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RackRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *RackRoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableRackRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_status.go b/model_rack_status.go
index 9e50ebd88..56369bc39 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackStatus{}
// RackStatus struct for RackStatus
type RackStatus struct {
- Value *PatchedWritableRackRequestStatus `json:"value,omitempty"`
- Label *RackStatusLabel `json:"label,omitempty"`
+ Value *PatchedWritableRackRequestStatus `json:"value,omitempty"`
+ Label *RackStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackStatus) SetLabel(v RackStatusLabel) {
}
func (o RackStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_status_label.go b/model_rack_status_label.go
index d8fef5766..7bb4e6cc0 100644
--- a/model_rack_status_label.go
+++ b/model_rack_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ 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_RESERVED RackStatusLabel = "Reserved"
+ RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available"
+ RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned"
+ RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active"
RACKSTATUSLABEL_DEPRECATED RackStatusLabel = "Deprecated"
)
@@ -114,4 +114,3 @@ 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 1277bd712..4ce115da6 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RackType type satisfies the MappedNullable interface at compile time
@@ -21,16 +21,16 @@ var _ MappedNullable = &RackType{}
// RackType Adds support for custom fields and tags.
type RackType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Manufacturer BriefManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- FormFactor NullableRackFormFactor `json:"form_factor,omitempty"`
- Width *RackWidth `json:"width,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Manufacturer BriefManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ FormFactor NullableRackFormFactor `json:"form_factor,omitempty"`
+ Width *RackWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
@@ -39,20 +39,22 @@ type RackType struct {
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
+ // Outer dimension of rack (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -105,7 +107,6 @@ func (o *RackType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RackType) GetUrl() string {
if o == nil {
@@ -130,7 +131,6 @@ func (o *RackType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RackType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -187,7 +187,6 @@ func (o *RackType) SetDisplay(v string) {
o.Display = v
}
-
// GetManufacturer returns the Manufacturer field value
func (o *RackType) GetManufacturer() BriefManufacturer {
if o == nil {
@@ -212,7 +211,6 @@ func (o *RackType) SetManufacturer(v BriefManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *RackType) GetModel() string {
if o == nil {
@@ -237,7 +235,6 @@ func (o *RackType) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *RackType) GetSlug() string {
if o == nil {
@@ -262,7 +259,6 @@ func (o *RackType) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *RackType) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -327,6 +323,7 @@ func (o *RackType) HasFormFactor() bool {
func (o *RackType) SetFormFactor(v RackFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *RackType) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -497,6 +494,7 @@ func (o *RackType) HasOuterWidth() bool {
func (o *RackType) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *RackType) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -507,6 +505,49 @@ func (o *RackType) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *RackType) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *RackType) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *RackType) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *RackType) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *RackType) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *RackType) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackType) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -539,6 +580,7 @@ func (o *RackType) HasOuterDepth() bool {
func (o *RackType) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *RackType) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -581,6 +623,7 @@ func (o *RackType) HasOuterUnit() bool {
func (o *RackType) SetOuterUnit(v RackOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *RackType) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -623,6 +666,7 @@ func (o *RackType) HasWeight() bool {
func (o *RackType) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *RackType) SetWeightNil() {
o.Weight.Set(nil)
@@ -665,6 +709,7 @@ func (o *RackType) HasMaxWeight() bool {
func (o *RackType) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *RackType) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -707,6 +752,7 @@ func (o *RackType) HasWeightUnit() bool {
func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *RackType) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -749,6 +795,7 @@ func (o *RackType) HasMountingDepth() bool {
func (o *RackType) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *RackType) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -887,6 +934,7 @@ func (o *RackType) HasCreated() bool {
func (o *RackType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RackType) SetCreatedNil() {
o.Created.Set(nil)
@@ -929,6 +977,7 @@ func (o *RackType) HasLastUpdated() bool {
func (o *RackType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RackType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -940,7 +989,7 @@ func (o *RackType) UnsetLastUpdated() {
}
func (o RackType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -979,6 +1028,9 @@ func (o RackType) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -1035,32 +1087,31 @@ func (o *RackType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1091,6 +1142,7 @@ func (o *RackType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "starting_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "weight")
@@ -1143,5 +1195,3 @@ func (v *NullableRackType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_type_request.go b/model_rack_type_request.go
index 64522eb01..48af04708 100644
--- a/model_rack_type_request.go
+++ b/model_rack_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &RackTypeRequest{}
// RackTypeRequest Adds support for custom fields and tags.
type RackTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"`
- Width *RackWidthValue `json:"width,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"`
+ Width *RackWidthValue `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
@@ -34,18 +34,20 @@ type RackTypeRequest struct {
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
+ // Outer dimension of rack (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,7 +57,7 @@ type _RackTypeRequest RackTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *RackTypeRequest {
+func NewRackTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string) *RackTypeRequest {
this := RackTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -72,9 +74,9 @@ func NewRackTypeRequestWithDefaults() *RackTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *RackTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -83,7 +85,7 @@ func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *RackTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -91,11 +93,10 @@ func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)
}
// SetManufacturer sets field value
-func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *RackTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *RackTypeRequest) GetModel() string {
if o == nil {
@@ -120,7 +121,6 @@ func (o *RackTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *RackTypeRequest) GetSlug() string {
if o == nil {
@@ -145,7 +145,6 @@ func (o *RackTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *RackTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -210,6 +209,7 @@ func (o *RackTypeRequest) HasFormFactor() bool {
func (o *RackTypeRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *RackTypeRequest) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -380,6 +380,7 @@ func (o *RackTypeRequest) HasOuterWidth() bool {
func (o *RackTypeRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *RackTypeRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -390,6 +391,49 @@ func (o *RackTypeRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *RackTypeRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *RackTypeRequest) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *RackTypeRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *RackTypeRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *RackTypeRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *RackTypeRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RackTypeRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -422,6 +466,7 @@ func (o *RackTypeRequest) HasOuterDepth() bool {
func (o *RackTypeRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *RackTypeRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -464,6 +509,7 @@ func (o *RackTypeRequest) HasOuterUnit() bool {
func (o *RackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *RackTypeRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -506,6 +552,7 @@ func (o *RackTypeRequest) HasWeight() bool {
func (o *RackTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *RackTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -548,6 +595,7 @@ func (o *RackTypeRequest) HasMaxWeight() bool {
func (o *RackTypeRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *RackTypeRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -590,6 +638,7 @@ func (o *RackTypeRequest) HasWeightUnit() bool {
func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *RackTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -632,6 +681,7 @@ func (o *RackTypeRequest) HasMountingDepth() bool {
func (o *RackTypeRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *RackTypeRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -739,7 +789,7 @@ func (o *RackTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RackTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -772,6 +822,9 @@ func (o RackTypeRequest) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -819,32 +872,31 @@ func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -871,6 +923,7 @@ func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "starting_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "weight")
@@ -921,5 +974,3 @@ func (v *NullableRackTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_unit.go b/model_rack_unit.go
index 4331ebd1a..ab92617a1 100644
--- a/model_rack_unit.go
+++ b/model_rack_unit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &RackUnit{}
// RackUnit A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database.
type RackUnit struct {
- Id float64 `json:"id"`
- Name string `json:"name"`
- Face RackUnitFace `json:"face"`
- Device BriefDevice `json:"device"`
- Occupied bool `json:"occupied"`
- Display string `json:"display"`
+ Id float64 `json:"id"`
+ Name string `json:"name"`
+ Face RackUnitFace `json:"face"`
+ Device BriefDevice `json:"device"`
+ Occupied bool `json:"occupied"`
+ Display string `json:"display"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ func (o *RackUnit) SetId(v float64) {
o.Id = v
}
-
// GetName returns the Name field value
func (o *RackUnit) GetName() string {
if o == nil {
@@ -103,7 +102,6 @@ func (o *RackUnit) SetName(v string) {
o.Name = v
}
-
// GetFace returns the Face field value
func (o *RackUnit) GetFace() RackUnitFace {
if o == nil {
@@ -128,7 +126,6 @@ func (o *RackUnit) SetFace(v RackUnitFace) {
o.Face = v
}
-
// GetDevice returns the Device field value
func (o *RackUnit) GetDevice() BriefDevice {
if o == nil {
@@ -153,7 +150,6 @@ func (o *RackUnit) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetOccupied returns the Occupied field value
func (o *RackUnit) GetOccupied() bool {
if o == nil {
@@ -178,7 +174,6 @@ func (o *RackUnit) SetOccupied(v bool) {
o.Occupied = v
}
-
// GetDisplay returns the Display field value
func (o *RackUnit) GetDisplay() string {
if o == nil {
@@ -203,9 +198,8 @@ func (o *RackUnit) SetDisplay(v string) {
o.Display = v
}
-
func (o RackUnit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -243,32 +237,31 @@ func (o *RackUnit) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -332,5 +325,3 @@ func (v *NullableRackUnit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go
index 119d8ccda..6a73e5834 100644
--- a/model_rack_unit_face.go
+++ b/model_rack_unit_face.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackUnitFace{}
// RackUnitFace struct for RackUnitFace
type RackUnitFace struct {
- Value *RackUnitFaceValue `json:"value,omitempty"`
- Label *DeviceFaceLabel `json:"label,omitempty"`
+ Value *RackUnitFaceValue `json:"value,omitempty"`
+ Label *DeviceFaceLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackUnitFace) SetLabel(v DeviceFaceLabel) {
}
func (o RackUnitFace) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackUnitFace) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go
index c0f34aec4..52419805d 100644
--- a/model_rack_unit_face_value.go
+++ b/model_rack_unit_face_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ type RackUnitFaceValue string
// List of RackUnit_face_value
const (
RACKUNITFACEVALUE_FRONT RackUnitFaceValue = "front"
- RACKUNITFACEVALUE_REAR RackUnitFaceValue = "rear"
+ RACKUNITFACEVALUE_REAR RackUnitFaceValue = "rear"
)
// All allowed values of RackUnitFaceValue enum
@@ -108,4 +108,3 @@ func (v *NullableRackUnitFaceValue) 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 22c6d3877..8aee287ab 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &RackWidth{}
// RackWidth struct for RackWidth
type RackWidth struct {
- Value *RackWidthValue `json:"value,omitempty"`
- Label *RackWidthLabel `json:"label,omitempty"`
+ Value *RackWidthValue `json:"value,omitempty"`
+ Label *RackWidthLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *RackWidth) SetLabel(v RackWidthLabel) {
}
func (o RackWidth) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableRackWidth) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rack_width_label.go b/model_rack_width_label.go
index 123147efd..06470d401 100644
--- a/model_rack_width_label.go
+++ b/model_rack_width_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -112,4 +112,3 @@ 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
index 105e342db..6da4c67fb 100644
--- a/model_rack_width_value.go
+++ b/model_rack_width_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -112,4 +112,3 @@ 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 fefa70895..bfccd3822 100644
--- a/model_rear_port.go
+++ b/model_rear_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RearPort type satisfies the MappedNullable interface at compile time
@@ -21,32 +21,32 @@ var _ MappedNullable = &RearPort{}
// RearPort Adds support for custom fields and tags.
type RearPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device BriefDevice `json:"device"`
- Module NullableBriefModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Device BriefDevice `json:"device"`
+ Module NullableBriefModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortType `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortType `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Number of front ports which may be mapped
- Positions *int32 `json:"positions,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableBriefCable `json:"cable,omitempty"`
- CableEnd *string `json:"cable_end,omitempty"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableBriefCable `json:"cable,omitempty"`
+ CableEnd *string `json:"cable_end,omitempty"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType NullableString `json:"link_peers_type,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- Occupied bool `json:"_occupied"`
+ LinkPeersType NullableString `json:"link_peers_type,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Occupied bool `json:"_occupied"`
AdditionalProperties map[string]interface{}
}
@@ -101,7 +101,6 @@ func (o *RearPort) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RearPort) GetUrl() string {
if o == nil {
@@ -126,7 +125,6 @@ func (o *RearPort) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RearPort) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -183,7 +181,6 @@ func (o *RearPort) SetDisplay(v string) {
o.Display = v
}
-
// GetDevice returns the Device field value
func (o *RearPort) GetDevice() BriefDevice {
if o == nil {
@@ -208,7 +205,6 @@ func (o *RearPort) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RearPort) GetModule() BriefModule {
if o == nil || IsNil(o.Module.Get()) {
@@ -241,6 +237,7 @@ func (o *RearPort) HasModule() bool {
func (o *RearPort) SetModule(v BriefModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *RearPort) SetModuleNil() {
o.Module.Set(nil)
@@ -275,7 +272,6 @@ func (o *RearPort) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *RearPort) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -332,7 +328,6 @@ func (o *RearPort) SetType(v FrontPortType) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RearPort) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -493,6 +488,7 @@ func (o *RearPort) HasCable() bool {
func (o *RearPort) SetCable(v BriefCable) {
o.Cable.Set(&v)
}
+
// SetCableNil sets the value for Cable to be an explicit nil
func (o *RearPort) SetCableNil() {
o.Cable.Set(nil)
@@ -559,7 +555,6 @@ func (o *RearPort) SetLinkPeers(v []interface{}) {
o.LinkPeers = v
}
-
// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RearPort) GetLinkPeersType() string {
if o == nil || IsNil(o.LinkPeersType.Get()) {
@@ -592,6 +587,7 @@ func (o *RearPort) HasLinkPeersType() bool {
func (o *RearPort) SetLinkPeersType(v string) {
o.LinkPeersType.Set(&v)
}
+
// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil
func (o *RearPort) SetLinkPeersTypeNil() {
o.LinkPeersType.Set(nil)
@@ -698,6 +694,7 @@ func (o *RearPort) HasCreated() bool {
func (o *RearPort) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RearPort) SetCreatedNil() {
o.Created.Set(nil)
@@ -740,6 +737,7 @@ func (o *RearPort) HasLastUpdated() bool {
func (o *RearPort) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RearPort) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -774,9 +772,8 @@ func (o *RearPort) SetOccupied(v bool) {
o.Occupied = v
}
-
func (o RearPort) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -860,32 +857,31 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -965,5 +961,3 @@ func (v *NullableRearPort) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rear_port_request.go b/model_rear_port_request.go
index 418c1b21d..81522e5d2 100644
--- a/model_rear_port_request.go
+++ b/model_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &RearPortRequest{}
// RearPortRequest Adds support for custom fields and tags.
type RearPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Number of front ports which may be mapped
- Positions *int32 `json:"positions,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest {
+func NewRearPortRequest(device BriefInterfaceRequestDevice, name string, type_ FrontPortTypeValue) *RearPortRequest {
this := RearPortRequest{}
this.Device = device
this.Name = name
@@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest {
}
// GetDevice returns the Device field value
-func (o *RearPortRequest) GetDevice() BriefDeviceRequest {
+func (o *RearPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *RearPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -79,15 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *RearPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RearPortRequest) GetModule() BriefModuleRequest {
+func (o *RearPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -96,7 +95,7 @@ func (o *RearPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *RearPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *RearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *RearPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *RearPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *RearPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -150,7 +150,6 @@ func (o *RearPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *RearPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -207,7 +206,6 @@ func (o *RearPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RearPortRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -401,7 +399,7 @@ func (o *RearPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RearPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -457,32 +455,31 @@ func (o *RearPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -551,5 +548,3 @@ func (v *NullableRearPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rear_port_template.go b/model_rear_port_template.go
index a21b05c20..653205ff8 100644
--- a/model_rear_port_template.go
+++ b/model_rear_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &RearPortTemplate{}
// RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type RearPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
DeviceType NullableBriefDeviceType `json:"device_type,omitempty"`
ModuleType NullableBriefModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortType `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortType `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *RearPortTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RearPortTemplate) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *RearPortTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *RearPortTemplate) GetDisplay() string {
if o == nil {
@@ -137,7 +135,6 @@ func (o *RearPortTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RearPortTemplate) GetDeviceType() BriefDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
@@ -170,6 +167,7 @@ func (o *RearPortTemplate) HasDeviceType() bool {
func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *RearPortTemplate) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -212,6 +210,7 @@ func (o *RearPortTemplate) HasModuleType() bool {
func (o *RearPortTemplate) SetModuleType(v BriefModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *RearPortTemplate) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -246,7 +245,6 @@ func (o *RearPortTemplate) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *RearPortTemplate) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -303,7 +301,6 @@ func (o *RearPortTemplate) SetType(v FrontPortType) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RearPortTemplate) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -432,6 +429,7 @@ func (o *RearPortTemplate) HasCreated() bool {
func (o *RearPortTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RearPortTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -474,6 +472,7 @@ func (o *RearPortTemplate) HasLastUpdated() bool {
func (o *RearPortTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RearPortTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -485,7 +484,7 @@ func (o *RearPortTemplate) UnsetLastUpdated() {
}
func (o RearPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -545,32 +544,31 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -641,5 +639,3 @@ func (v *NullableRearPortTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go
index fd0e895f4..89bd228d3 100644
--- a/model_rear_port_template_request.go
+++ b/model_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &RearPortTemplateRequest{}
// RearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type RearPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,9 +55,9 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *RearPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -66,7 +66,7 @@ func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -82,10 +82,11 @@ func (o *RearPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *RearPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *RearPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -97,9 +98,9 @@ func (o *RearPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *RearPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -108,7 +109,7 @@ func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *RearPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -124,10 +125,11 @@ func (o *RearPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *RearPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *RearPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -162,7 +164,6 @@ func (o *RearPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *RearPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -219,7 +220,6 @@ func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *RearPortTemplateRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -317,7 +317,7 @@ func (o *RearPortTemplateRequest) SetDescription(v string) {
}
func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -365,32 +365,31 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -456,5 +455,3 @@ func (v *NullableRearPortTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_region.go b/model_region.go
index 864787730..27b91ee1d 100644
--- a/model_region.go
+++ b/model_region.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Region type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,22 @@ var _ MappedNullable = &Region{}
// Region Extends PrimaryModelSerializer to include MPTT support.
type Region struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedRegion `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- SiteCount *int32 `json:"site_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedRegion `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ SiteCount *int32 `json:"site_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +89,6 @@ func (o *Region) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Region) GetUrl() string {
if o == nil {
@@ -113,7 +113,6 @@ func (o *Region) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Region) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +169,6 @@ func (o *Region) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Region) GetName() string {
if o == nil {
@@ -195,7 +193,6 @@ func (o *Region) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Region) GetSlug() string {
if o == nil {
@@ -220,7 +217,6 @@ func (o *Region) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Region) GetParent() NestedRegion {
if o == nil || IsNil(o.Parent.Get()) {
@@ -253,6 +249,7 @@ func (o *Region) HasParent() bool {
func (o *Region) SetParent(v NestedRegion) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *Region) SetParentNil() {
o.Parent.Set(nil)
@@ -391,6 +388,7 @@ func (o *Region) HasCreated() bool {
func (o *Region) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Region) SetCreatedNil() {
o.Created.Set(nil)
@@ -433,6 +431,7 @@ func (o *Region) HasLastUpdated() bool {
func (o *Region) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Region) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -507,6 +506,38 @@ func (o *Region) SetPrefixCount(v int64) {
o.PrefixCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *Region) 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 *Region) 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 *Region) 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 *Region) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *Region) GetDepth() int32 {
if o == nil {
@@ -531,9 +562,8 @@ func (o *Region) SetDepth(v int32) {
o.Depth = v
}
-
func (o Region) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -574,6 +604,9 @@ func (o Region) ToMap() (map[string]interface{}, error) {
if !IsNil(o.PrefixCount) {
toSerialize["prefix_count"] = o.PrefixCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -598,32 +631,31 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -654,6 +686,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "last_updated")
delete(additionalProperties, "site_count")
delete(additionalProperties, "prefix_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -696,5 +729,3 @@ func (v *NullableRegion) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_region_request.go b/model_region_request.go
index 69692ad99..f140464c5 100644
--- a/model_region_request.go
+++ b/model_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &RegionRequest{}
// RegionRequest Extends PrimaryModelSerializer to include MPTT support.
type RegionRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedRegionRequest `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedRegionRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *RegionRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RegionRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *RegionRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RegionRequest) GetParent() NestedRegionRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *RegionRequest) HasParent() bool {
func (o *RegionRequest) SetParent(v NestedRegionRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *RegionRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *RegionRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *RegionRequest) 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 *RegionRequest) 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 *RegionRequest) 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 *RegionRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o RegionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o RegionRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *RegionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *RegionRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableRegionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rir.go b/model_rir.go
index a77e4f53e..b401b1354 100644
--- a/model_rir.go
+++ b/model_rir.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RIR type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &RIR{}
// RIR Adds support for custom fields and tags.
type RIR struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// IP space managed by this RIR is considered private
- IsPrivate *bool `json:"is_private,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- AggregateCount *int64 `json:"aggregate_count,omitempty"`
+ IsPrivate *bool `json:"is_private,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ AggregateCount *int64 `json:"aggregate_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *RIR) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RIR) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *RIR) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RIR) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *RIR) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *RIR) GetName() string {
if o == nil {
@@ -193,7 +190,6 @@ func (o *RIR) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RIR) GetSlug() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *RIR) SetSlug(v string) {
o.Slug = v
}
-
// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise.
func (o *RIR) GetIsPrivate() bool {
if o == nil || IsNil(o.IsPrivate) {
@@ -379,6 +374,7 @@ func (o *RIR) HasCreated() bool {
func (o *RIR) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RIR) SetCreatedNil() {
o.Created.Set(nil)
@@ -421,6 +417,7 @@ func (o *RIR) HasLastUpdated() bool {
func (o *RIR) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RIR) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -464,7 +461,7 @@ func (o *RIR) SetAggregateCount(v int64) {
}
func (o RIR) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -524,32 +521,31 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -620,5 +616,3 @@ func (v *NullableRIR) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_rir_request.go b/model_rir_request.go
index a2021d543..2fa58ac21 100644
--- a/model_rir_request.go
+++ b/model_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,10 +23,10 @@ type RIRRequest struct {
Name string `json:"name"`
Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// IP space managed by this RIR is considered private
- IsPrivate *bool `json:"is_private,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IsPrivate *bool `json:"is_private,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *RIRRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RIRRequest) GetSlug() string {
if o == nil {
@@ -100,7 +99,6 @@ func (o *RIRRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise.
func (o *RIRRequest) GetIsPrivate() bool {
if o == nil || IsNil(o.IsPrivate) {
@@ -230,7 +228,7 @@ func (o *RIRRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RIRRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -272,32 +270,31 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -361,5 +358,3 @@ func (v *NullableRIRRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_role.go b/model_role.go
index 581147acb..036906c99 100644
--- a/model_role.go
+++ b/model_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Role type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &Role{}
// Role Adds support for custom fields and tags.
type Role struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *Role) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Role) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *Role) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Role) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *Role) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Role) GetName() string {
if o == nil {
@@ -193,7 +190,6 @@ func (o *Role) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Role) GetSlug() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *Role) SetSlug(v string) {
o.Slug = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *Role) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -379,6 +374,7 @@ func (o *Role) HasCreated() bool {
func (o *Role) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Role) SetCreatedNil() {
o.Created.Set(nil)
@@ -421,6 +417,7 @@ func (o *Role) HasLastUpdated() bool {
func (o *Role) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Role) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -496,7 +493,7 @@ func (o *Role) SetVlanCount(v int64) {
}
func (o Role) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -559,32 +556,31 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -656,5 +652,3 @@ func (v *NullableRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_role_request.go b/model_role_request.go
index c4dbc5683..eca9baa76 100644
--- a/model_role_request.go
+++ b/model_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &RoleRequest{}
// RoleRequest Adds support for custom fields and tags.
type RoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *RoleRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *RoleRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *RoleRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *RoleRequest) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
@@ -229,7 +227,7 @@ func (o *RoleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_route_target.go b/model_route_target.go
index 6f769e9f2..6f7f5603e 100644
--- a/model_route_target.go
+++ b/model_route_target.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the RouteTarget type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &RouteTarget{}
// RouteTarget Adds support for custom fields and tags.
type RouteTarget struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Route target value (formatted in accordance with RFC 4360)
- Name string `json:"name"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Name string `json:"name"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *RouteTarget) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *RouteTarget) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *RouteTarget) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *RouteTarget) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *RouteTarget) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *RouteTarget) GetName() string {
if o == nil {
@@ -191,7 +188,6 @@ func (o *RouteTarget) SetName(v string) {
o.Name = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RouteTarget) GetTenant() BriefTenant {
if o == nil || IsNil(o.Tenant.Get()) {
@@ -224,6 +220,7 @@ func (o *RouteTarget) HasTenant() bool {
func (o *RouteTarget) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *RouteTarget) SetTenantNil() {
o.Tenant.Set(nil)
@@ -394,6 +391,7 @@ func (o *RouteTarget) HasCreated() bool {
func (o *RouteTarget) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *RouteTarget) SetCreatedNil() {
o.Created.Set(nil)
@@ -436,6 +434,7 @@ func (o *RouteTarget) HasLastUpdated() bool {
func (o *RouteTarget) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *RouteTarget) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -447,7 +446,7 @@ func (o *RouteTarget) UnsetLastUpdated() {
}
func (o RouteTarget) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -505,32 +504,31 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -600,5 +598,3 @@ func (v *NullableRouteTarget) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_route_target_request.go b/model_route_target_request.go
index 7c879341a..21fb7a75e 100644
--- a/model_route_target_request.go
+++ b/model_route_target_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ var _ MappedNullable = &RouteTargetRequest{}
// RouteTargetRequest Adds support for custom fields and tags.
type RouteTargetRequest struct {
// Route target value (formatted in accordance with RFC 4360)
- Name string `json:"name"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,11 +74,10 @@ func (o *RouteTargetRequest) SetName(v string) {
o.Name = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RouteTargetRequest) GetTenant() BriefTenantRequest {
+func (o *RouteTargetRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -87,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *RouteTargetRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -103,10 +102,11 @@ func (o *RouteTargetRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *RouteTargetRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *RouteTargetRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -246,7 +246,7 @@ func (o *RouteTargetRequest) SetCustomFields(v map[string]interface{}) {
}
func (o RouteTargetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -289,32 +289,31 @@ func (o *RouteTargetRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -378,5 +377,3 @@ func (v *NullableRouteTargetRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_saved_filter.go b/model_saved_filter.go
index 62f2e4aab..593e1339c 100644
--- a/model_saved_filter.go
+++ b/model_saved_filter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the SavedFilter type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &SavedFilter{}
// SavedFilter Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SavedFilter struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters interface{} `json:"parameters"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ ObjectTypes []string `json:"object_types"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +89,6 @@ func (o *SavedFilter) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *SavedFilter) GetUrl() string {
if o == nil {
@@ -114,7 +113,6 @@ func (o *SavedFilter) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *SavedFilter) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +169,6 @@ func (o *SavedFilter) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectTypes returns the ObjectTypes field value
func (o *SavedFilter) GetObjectTypes() []string {
if o == nil {
@@ -196,7 +193,6 @@ func (o *SavedFilter) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *SavedFilter) GetName() string {
if o == nil {
@@ -221,7 +217,6 @@ func (o *SavedFilter) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *SavedFilter) GetSlug() string {
if o == nil {
@@ -246,7 +241,6 @@ func (o *SavedFilter) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *SavedFilter) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -311,6 +305,7 @@ func (o *SavedFilter) HasUser() bool {
func (o *SavedFilter) SetUser(v int32) {
o.User.Set(&v)
}
+
// SetUserNil sets the value for User to be an explicit nil
func (o *SavedFilter) SetUserNil() {
o.User.Set(nil)
@@ -443,7 +438,6 @@ func (o *SavedFilter) SetParameters(v interface{}) {
o.Parameters = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SavedFilter) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
@@ -476,6 +470,7 @@ func (o *SavedFilter) HasCreated() bool {
func (o *SavedFilter) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *SavedFilter) SetCreatedNil() {
o.Created.Set(nil)
@@ -518,6 +513,7 @@ func (o *SavedFilter) HasLastUpdated() bool {
func (o *SavedFilter) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *SavedFilter) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -529,7 +525,7 @@ func (o *SavedFilter) UnsetLastUpdated() {
}
func (o SavedFilter) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -595,32 +591,31 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -693,5 +688,3 @@ func (v *NullableSavedFilter) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go
index 56a8503fd..0c7054c2d 100644
--- a/model_saved_filter_request.go
+++ b/model_saved_filter_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &SavedFilterRequest{}
// SavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SavedFilterRequest struct {
- ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- User NullableInt32 `json:"user,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- Shared *bool `json:"shared,omitempty"`
- Parameters interface{} `json:"parameters"`
+ ObjectTypes []string `json:"object_types"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ User NullableInt32 `json:"user,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Parameters interface{} `json:"parameters"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *SavedFilterRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *SavedFilterRequest) GetName() string {
if o == nil {
@@ -104,7 +103,6 @@ func (o *SavedFilterRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *SavedFilterRequest) GetSlug() string {
if o == nil {
@@ -129,7 +127,6 @@ func (o *SavedFilterRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *SavedFilterRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -194,6 +191,7 @@ func (o *SavedFilterRequest) HasUser() bool {
func (o *SavedFilterRequest) SetUser(v int32) {
o.User.Set(&v)
}
+
// SetUserNil sets the value for User to be an explicit nil
func (o *SavedFilterRequest) SetUserNil() {
o.User.Set(nil)
@@ -326,9 +324,8 @@ func (o *SavedFilterRequest) SetParameters(v interface{}) {
o.Parameters = v
}
-
func (o SavedFilterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -379,32 +376,31 @@ func (o *SavedFilterRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -471,5 +467,3 @@ func (v *NullableSavedFilterRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go
index c86253f1e..0ff9071f1 100644
--- a/model_schema_retrieve_format_parameter.go
+++ b/model_schema_retrieve_format_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableSchemaRetrieveFormatParameter) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go
index 0b06eaf80..e8dbc0f93 100644
--- a/model_schema_retrieve_lang_parameter.go
+++ b/model_schema_retrieve_lang_parameter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -134,4 +134,3 @@ func (v *NullableSchemaRetrieveLangParameter) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_script.go b/model_script.go
index b408f3675..24cf34c18 100644
--- a/model_script.go
+++ b/model_script.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &Script{}
// Script Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Script struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Module int32 `json:"module"`
- Name string `json:"name"`
- Description NullableString `json:"description,omitempty"`
- Vars interface{} `json:"vars,omitempty"`
- Result BriefJob `json:"result"`
- Display string `json:"display"`
- IsExecutable bool `json:"is_executable"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Module int32 `json:"module"`
+ Name string `json:"name"`
+ Description NullableString `json:"description,omitempty"`
+ Vars interface{} `json:"vars,omitempty"`
+ Result BriefJob `json:"result"`
+ Display string `json:"display"`
+ IsExecutable bool `json:"is_executable"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *Script) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Script) GetUrl() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *Script) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Script) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -165,7 +163,6 @@ func (o *Script) SetModule(v int32) {
o.Module = v
}
-
// GetName returns the Name field value
func (o *Script) GetName() string {
if o == nil {
@@ -190,7 +187,6 @@ func (o *Script) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Script) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
@@ -223,6 +219,7 @@ func (o *Script) HasDescription() bool {
func (o *Script) SetDescription(v string) {
o.Description.Set(&v)
}
+
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *Script) SetDescriptionNil() {
o.Description.Set(nil)
@@ -290,7 +287,6 @@ func (o *Script) SetResult(v BriefJob) {
o.Result = v
}
-
// GetDisplay returns the Display field value
func (o *Script) GetDisplay() string {
if o == nil {
@@ -315,7 +311,6 @@ func (o *Script) SetDisplay(v string) {
o.Display = v
}
-
// GetIsExecutable returns the IsExecutable field value
func (o *Script) GetIsExecutable() bool {
if o == nil {
@@ -340,9 +335,8 @@ func (o *Script) SetIsExecutable(v bool) {
o.IsExecutable = v
}
-
func (o Script) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -391,32 +385,31 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -484,5 +477,3 @@ func (v *NullableScript) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_script_input_request.go b/model_script_input_request.go
index 9fab29251..8222b3858 100644
--- a/model_script_input_request.go
+++ b/model_script_input_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ScriptInputRequest type satisfies the MappedNullable interface at compile time
@@ -21,10 +21,10 @@ var _ MappedNullable = &ScriptInputRequest{}
// ScriptInputRequest struct for ScriptInputRequest
type ScriptInputRequest struct {
- Data interface{} `json:"data"`
- Commit bool `json:"commit"`
- ScheduleAt NullableTime `json:"schedule_at,omitempty"`
- Interval NullableInt32 `json:"interval,omitempty"`
+ Data interface{} `json:"data"`
+ Commit bool `json:"commit"`
+ ScheduleAt NullableTime `json:"schedule_at,omitempty"`
+ Interval NullableInt32 `json:"interval,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *ScriptInputRequest) SetData(v interface{}) {
o.Data = v
}
-
// GetCommit returns the Commit field value
func (o *ScriptInputRequest) GetCommit() bool {
if o == nil {
@@ -100,7 +99,6 @@ func (o *ScriptInputRequest) SetCommit(v bool) {
o.Commit = v
}
-
// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ScriptInputRequest) GetScheduleAt() time.Time {
if o == nil || IsNil(o.ScheduleAt.Get()) {
@@ -133,6 +131,7 @@ func (o *ScriptInputRequest) HasScheduleAt() bool {
func (o *ScriptInputRequest) SetScheduleAt(v time.Time) {
o.ScheduleAt.Set(&v)
}
+
// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil
func (o *ScriptInputRequest) SetScheduleAtNil() {
o.ScheduleAt.Set(nil)
@@ -175,6 +174,7 @@ func (o *ScriptInputRequest) HasInterval() bool {
func (o *ScriptInputRequest) SetInterval(v int32) {
o.Interval.Set(&v)
}
+
// SetIntervalNil sets the value for Interval to be an explicit nil
func (o *ScriptInputRequest) SetIntervalNil() {
o.Interval.Set(nil)
@@ -186,7 +186,7 @@ func (o *ScriptInputRequest) UnsetInterval() {
}
func (o ScriptInputRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -224,32 +224,31 @@ func (o *ScriptInputRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -311,5 +310,3 @@ func (v *NullableScriptInputRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_service.go b/model_service.go
index 3ce90e4e7..485c8ceeb 100644
--- a/model_service.go
+++ b/model_service.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Service type satisfies the MappedNullable interface at compile time
@@ -21,22 +21,23 @@ var _ MappedNullable = &Service{}
// Service Adds support for custom fields and tags.
type Service struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Device NullableBriefDevice `json:"device,omitempty"`
- VirtualMachine NullableBriefVirtualMachine `json:"virtual_machine,omitempty"`
- Name string `json:"name"`
- Protocol *ServiceProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports"`
- Ipaddresses []IPAddress `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ ParentObjectType string `json:"parent_object_type"`
+ ParentObjectId int64 `json:"parent_object_id"`
+ Parent interface{} `json:"parent,omitempty"`
+ Name string `json:"name"`
+ Protocol *ServiceProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
+ Ipaddresses []IPAddress `json:"ipaddresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,11 +47,13 @@ type _Service Service
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewService(id int32, url string, display string, name string, ports []int32) *Service {
+func NewService(id int32, url string, display string, parentObjectType string, parentObjectId int64, name string, ports []int32) *Service {
this := Service{}
this.Id = id
this.Url = url
this.Display = display
+ this.ParentObjectType = parentObjectType
+ this.ParentObjectId = parentObjectId
this.Name = name
this.Ports = ports
return &this
@@ -88,7 +91,6 @@ func (o *Service) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Service) GetUrl() string {
if o == nil {
@@ -113,7 +115,6 @@ func (o *Service) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Service) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,89 +171,85 @@ func (o *Service) SetDisplay(v string) {
o.Display = v
}
-
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Service) GetDevice() BriefDevice {
- if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDevice
+// GetParentObjectType returns the ParentObjectType field value
+func (o *Service) GetParentObjectType() string {
+ if o == nil {
+ var ret string
return ret
}
- return *o.Device.Get()
+
+ return o.ParentObjectType
}
-// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
+// GetParentObjectTypeOk returns a tuple with the ParentObjectType 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 *Service) GetDeviceOk() (*BriefDevice, bool) {
+func (o *Service) GetParentObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
+ return &o.ParentObjectType, true
}
-// HasDevice returns a boolean if a field has been set.
-func (o *Service) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
- return true
+// SetParentObjectType sets field value
+func (o *Service) SetParentObjectType(v string) {
+ o.ParentObjectType = v
+}
+
+// GetParentObjectId returns the ParentObjectId field value
+func (o *Service) GetParentObjectId() int64 {
+ if o == nil {
+ var ret int64
+ return ret
}
- return false
+ return o.ParentObjectId
}
-// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field.
-func (o *Service) SetDevice(v BriefDevice) {
- o.Device.Set(&v)
-}
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *Service) SetDeviceNil() {
- o.Device.Set(nil)
+// GetParentObjectIdOk returns a tuple with the ParentObjectId field value
+// and a boolean to check if the value has been set.
+func (o *Service) GetParentObjectIdOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ParentObjectId, true
}
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *Service) UnsetDevice() {
- o.Device.Unset()
+// SetParentObjectId sets field value
+func (o *Service) SetParentObjectId(v int64) {
+ o.ParentObjectId = v
}
-// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Service) GetVirtualMachine() BriefVirtualMachine {
- if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret BriefVirtualMachine
+// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *Service) GetParent() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
- return *o.VirtualMachine.Get()
+ return o.Parent
}
-// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) {
- if o == nil {
+func (o *Service) GetParentOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Parent) {
return nil, false
}
- return o.VirtualMachine.Get(), o.VirtualMachine.IsSet()
+ return &o.Parent, true
}
-// HasVirtualMachine returns a boolean if a field has been set.
-func (o *Service) HasVirtualMachine() bool {
- if o != nil && o.VirtualMachine.IsSet() {
+// HasParent returns a boolean if a field has been set.
+func (o *Service) HasParent() bool {
+ if o != nil && !IsNil(o.Parent) {
return true
}
return false
}
-// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field.
-func (o *Service) SetVirtualMachine(v BriefVirtualMachine) {
- o.VirtualMachine.Set(&v)
-}
-// SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil
-func (o *Service) SetVirtualMachineNil() {
- o.VirtualMachine.Set(nil)
-}
-
-// UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil
-func (o *Service) UnsetVirtualMachine() {
- o.VirtualMachine.Unset()
+// SetParent gets a reference to the given interface{} and assigns it to the Parent field.
+func (o *Service) SetParent(v interface{}) {
+ o.Parent = v
}
// GetName returns the Name field value
@@ -279,7 +276,6 @@ func (o *Service) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *Service) GetProtocol() ServiceProtocol {
if o == nil || IsNil(o.Protocol) {
@@ -336,7 +332,6 @@ func (o *Service) SetPorts(v []int32) {
o.Ports = v
}
-
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
func (o *Service) GetIpaddresses() []IPAddress {
if o == nil || IsNil(o.Ipaddresses) {
@@ -529,6 +524,7 @@ func (o *Service) HasCreated() bool {
func (o *Service) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Service) SetCreatedNil() {
o.Created.Set(nil)
@@ -571,6 +567,7 @@ func (o *Service) HasLastUpdated() bool {
func (o *Service) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Service) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -582,7 +579,7 @@ func (o *Service) UnsetLastUpdated() {
}
func (o Service) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -597,11 +594,10 @@ func (o Service) ToMap() (map[string]interface{}, error) {
toSerialize["display_url"] = o.DisplayUrl
}
toSerialize["display"] = o.Display
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
- }
- if o.VirtualMachine.IsSet() {
- toSerialize["virtual_machine"] = o.VirtualMachine.Get()
+ toSerialize["parent_object_type"] = o.ParentObjectType
+ toSerialize["parent_object_id"] = o.ParentObjectId
+ if o.Parent != nil {
+ toSerialize["parent"] = o.Parent
}
toSerialize["name"] = o.Name
if !IsNil(o.Protocol) {
@@ -645,38 +641,39 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
+ "parent_object_type",
+ "parent_object_id",
"name",
"ports",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -697,8 +694,9 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display_url")
delete(additionalProperties, "display")
- delete(additionalProperties, "device")
- delete(additionalProperties, "virtual_machine")
+ delete(additionalProperties, "parent_object_type")
+ delete(additionalProperties, "parent_object_id")
+ delete(additionalProperties, "parent")
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "ports")
@@ -750,5 +748,3 @@ func (v *NullableService) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_service_protocol.go b/model_service_protocol.go
index 5a2605237..7ca8083b2 100644
--- a/model_service_protocol.go
+++ b/model_service_protocol.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &ServiceProtocol{}
// ServiceProtocol struct for ServiceProtocol
type ServiceProtocol struct {
- Value *PatchedWritableServiceRequestProtocol `json:"value,omitempty"`
- Label *ServiceProtocolLabel `json:"label,omitempty"`
+ Value *PatchedWritableServiceRequestProtocol `json:"value,omitempty"`
+ Label *ServiceProtocolLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *ServiceProtocol) SetLabel(v ServiceProtocolLabel) {
}
func (o ServiceProtocol) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableServiceProtocol) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go
index a6a8dc538..e087f2aad 100644
--- a/model_service_protocol_label.go
+++ b/model_service_protocol_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type ServiceProtocolLabel string
// List of Service_protocol_label
const (
- SERVICEPROTOCOLLABEL_TCP ServiceProtocolLabel = "TCP"
- SERVICEPROTOCOLLABEL_UDP ServiceProtocolLabel = "UDP"
+ SERVICEPROTOCOLLABEL_TCP ServiceProtocolLabel = "TCP"
+ SERVICEPROTOCOLLABEL_UDP ServiceProtocolLabel = "UDP"
SERVICEPROTOCOLLABEL_SCTP ServiceProtocolLabel = "SCTP"
)
@@ -110,4 +110,3 @@ 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 840964f29..28d6db14c 100644
--- a/model_service_request.go
+++ b/model_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &ServiceRequest{}
// ServiceRequest Adds support for custom fields and tags.
type ServiceRequest struct {
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"`
- Name string `json:"name"`
- Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports"`
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ParentObjectType string `json:"parent_object_type"`
+ ParentObjectId int64 `json:"parent_object_id"`
+ Name string `json:"name"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
+ Ipaddresses []int32 `json:"ipaddresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,8 +39,10 @@ type _ServiceRequest ServiceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewServiceRequest(name string, ports []int32) *ServiceRequest {
+func NewServiceRequest(parentObjectType string, parentObjectId int64, name string, ports []int32) *ServiceRequest {
this := ServiceRequest{}
+ this.ParentObjectType = parentObjectType
+ this.ParentObjectId = parentObjectId
this.Name = name
this.Ports = ports
return &this
@@ -54,88 +56,52 @@ func NewServiceRequestWithDefaults() *ServiceRequest {
return &this
}
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ServiceRequest) GetDevice() BriefDeviceRequest {
- if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+// GetParentObjectType returns the ParentObjectType field value
+func (o *ServiceRequest) GetParentObjectType() string {
+ if o == nil {
+ var ret string
return ret
}
- return *o.Device.Get()
+
+ return o.ParentObjectType
}
-// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
+// GetParentObjectTypeOk returns a tuple with the ParentObjectType 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 *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *ServiceRequest) GetParentObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
-}
-
-// HasDevice returns a boolean if a field has been set.
-func (o *ServiceRequest) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) {
- o.Device.Set(&v)
-}
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *ServiceRequest) SetDeviceNil() {
- o.Device.Set(nil)
+ return &o.ParentObjectType, true
}
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *ServiceRequest) UnsetDevice() {
- o.Device.Unset()
+// SetParentObjectType sets field value
+func (o *ServiceRequest) SetParentObjectType(v string) {
+ o.ParentObjectType = v
}
-// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
- if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret BriefVirtualMachineRequest
+// GetParentObjectId returns the ParentObjectId field value
+func (o *ServiceRequest) GetParentObjectId() int64 {
+ if o == nil {
+ var ret int64
return ret
}
- return *o.VirtualMachine.Get()
+
+ return o.ParentObjectId
}
-// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
+// GetParentObjectIdOk returns a tuple with the ParentObjectId 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 *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *ServiceRequest) GetParentObjectIdOk() (*int64, bool) {
if o == nil {
return nil, false
}
- return o.VirtualMachine.Get(), o.VirtualMachine.IsSet()
-}
-
-// HasVirtualMachine returns a boolean if a field has been set.
-func (o *ServiceRequest) HasVirtualMachine() bool {
- if o != nil && o.VirtualMachine.IsSet() {
- return true
- }
-
- return false
+ return &o.ParentObjectId, true
}
-// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
- o.VirtualMachine.Set(&v)
-}
-// SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil
-func (o *ServiceRequest) SetVirtualMachineNil() {
- o.VirtualMachine.Set(nil)
-}
-
-// UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil
-func (o *ServiceRequest) UnsetVirtualMachine() {
- o.VirtualMachine.Unset()
+// SetParentObjectId sets field value
+func (o *ServiceRequest) SetParentObjectId(v int64) {
+ o.ParentObjectId = v
}
// GetName returns the Name field value
@@ -162,7 +128,6 @@ func (o *ServiceRequest) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *ServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
@@ -219,7 +184,6 @@ func (o *ServiceRequest) SetPorts(v []int32) {
o.Ports = v
}
-
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
func (o *ServiceRequest) GetIpaddresses() []int32 {
if o == nil || IsNil(o.Ipaddresses) {
@@ -381,7 +345,7 @@ func (o *ServiceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ServiceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -390,12 +354,8 @@ func (o ServiceRequest) MarshalJSON() ([]byte, error) {
func (o ServiceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
- }
- if o.VirtualMachine.IsSet() {
- toSerialize["virtual_machine"] = o.VirtualMachine.Get()
- }
+ toSerialize["parent_object_type"] = o.ParentObjectType
+ toSerialize["parent_object_id"] = o.ParentObjectId
toSerialize["name"] = o.Name
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
@@ -429,38 +389,39 @@ func (o *ServiceRequest) UnmarshalJSON(data []byte) (err error) {
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
+ "parent_object_type",
+ "parent_object_id",
"name",
"ports",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -477,8 +438,8 @@ func (o *ServiceRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- delete(additionalProperties, "virtual_machine")
+ delete(additionalProperties, "parent_object_type")
+ delete(additionalProperties, "parent_object_id")
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "ports")
@@ -528,5 +489,3 @@ func (v *NullableServiceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_service_template.go b/model_service_template.go
index 8b9b26d60..2dee980dc 100644
--- a/model_service_template.go
+++ b/model_service_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the ServiceTemplate type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &ServiceTemplate{}
// ServiceTemplate Adds support for custom fields and tags.
type ServiceTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Protocol *ServiceProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Protocol *ServiceProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *ServiceTemplate) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *ServiceTemplate) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *ServiceTemplate) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *ServiceTemplate) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *ServiceTemplate) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *ServiceTemplate) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *ServiceTemplate) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *ServiceTemplate) GetProtocol() ServiceProtocol {
if o == nil || IsNil(o.Protocol) {
@@ -249,7 +245,6 @@ func (o *ServiceTemplate) SetPorts(v []int32) {
o.Ports = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceTemplate) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -410,6 +405,7 @@ func (o *ServiceTemplate) HasCreated() bool {
func (o *ServiceTemplate) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *ServiceTemplate) SetCreatedNil() {
o.Created.Set(nil)
@@ -452,6 +448,7 @@ func (o *ServiceTemplate) HasLastUpdated() bool {
func (o *ServiceTemplate) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *ServiceTemplate) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -463,7 +460,7 @@ func (o *ServiceTemplate) UnsetLastUpdated() {
}
func (o ServiceTemplate) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -523,32 +520,31 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -619,5 +615,3 @@ func (v *NullableServiceTemplate) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_service_template_request.go b/model_service_template_request.go
index 60c239189..efeea02dc 100644
--- a/model_service_template_request.go
+++ b/model_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &ServiceTemplateRequest{}
// ServiceTemplateRequest Adds support for custom fields and tags.
type ServiceTemplateRequest struct {
- Name string `json:"name"`
- Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
- Ports []int32 `json:"ports"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *ServiceTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *ServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil || IsNil(o.Protocol) {
@@ -132,7 +131,6 @@ func (o *ServiceTemplateRequest) SetPorts(v []int32) {
o.Ports = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -262,7 +260,7 @@ func (o *ServiceTemplateRequest) SetCustomFields(v map[string]interface{}) {
}
func (o ServiceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -307,32 +305,31 @@ func (o *ServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -397,5 +394,3 @@ func (v *NullableServiceTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_site.go b/model_site.go
index 2e2ba8c31..0c34f8b20 100644
--- a/model_site.go
+++ b/model_site.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Site type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &Site{}
// Site Adds support for custom fields and tags.
type Site struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Status *LocationStatus `json:"status,omitempty"`
- Region NullableBriefRegion `json:"region,omitempty"`
- Group NullableBriefSiteGroup `json:"group,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Status *LocationStatus `json:"status,omitempty"`
+ Region NullableBriefRegion `json:"region,omitempty"`
+ Group NullableBriefSiteGroup `json:"group,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- TimeZone NullableString `json:"time_zone,omitempty"`
- Description *string `json:"description,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ TimeZone NullableString `json:"time_zone,omitempty"`
+ Description *string `json:"description,omitempty"`
// Physical location of the building
PhysicalAddress *string `json:"physical_address,omitempty"`
// If different from the physical address
@@ -43,19 +43,19 @@ type Site struct {
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []ASN `json:"asns,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- RackCount *int64 `json:"rack_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []ASN `json:"asns,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ RackCount *int64 `json:"rack_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -107,7 +107,6 @@ func (o *Site) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Site) GetUrl() string {
if o == nil {
@@ -132,7 +131,6 @@ func (o *Site) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Site) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -189,7 +187,6 @@ func (o *Site) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Site) GetName() string {
if o == nil {
@@ -214,7 +211,6 @@ func (o *Site) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Site) GetSlug() string {
if o == nil {
@@ -239,7 +235,6 @@ func (o *Site) SetSlug(v string) {
o.Slug = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Site) GetStatus() LocationStatus {
if o == nil || IsNil(o.Status) {
@@ -304,6 +299,7 @@ func (o *Site) HasRegion() bool {
func (o *Site) SetRegion(v BriefRegion) {
o.Region.Set(&v)
}
+
// SetRegionNil sets the value for Region to be an explicit nil
func (o *Site) SetRegionNil() {
o.Region.Set(nil)
@@ -346,6 +342,7 @@ func (o *Site) HasGroup() bool {
func (o *Site) SetGroup(v BriefSiteGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *Site) SetGroupNil() {
o.Group.Set(nil)
@@ -388,6 +385,7 @@ func (o *Site) HasTenant() bool {
func (o *Site) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Site) SetTenantNil() {
o.Tenant.Set(nil)
@@ -462,6 +460,7 @@ func (o *Site) HasTimeZone() bool {
func (o *Site) SetTimeZone(v string) {
o.TimeZone.Set(&v)
}
+
// SetTimeZoneNil sets the value for TimeZone to be an explicit nil
func (o *Site) SetTimeZoneNil() {
o.TimeZone.Set(nil)
@@ -600,6 +599,7 @@ func (o *Site) HasLatitude() bool {
func (o *Site) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *Site) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -642,6 +642,7 @@ func (o *Site) HasLongitude() bool {
func (o *Site) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *Site) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -812,6 +813,7 @@ func (o *Site) HasCreated() bool {
func (o *Site) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Site) SetCreatedNil() {
o.Created.Set(nil)
@@ -854,6 +856,7 @@ func (o *Site) HasLastUpdated() bool {
func (o *Site) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Site) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1057,7 +1060,7 @@ func (o *Site) SetVlanCount(v int64) {
}
func (o Site) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1165,32 +1168,31 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1277,5 +1279,3 @@ func (v *NullableSite) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_site_group.go b/model_site_group.go
index 6e01ad3d1..aa74df428 100644
--- a/model_site_group.go
+++ b/model_site_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the SiteGroup type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,22 @@ var _ MappedNullable = &SiteGroup{}
// SiteGroup Extends PrimaryModelSerializer to include MPTT support.
type SiteGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedSiteGroup `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- SiteCount *int32 `json:"site_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedSiteGroup `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ SiteCount *int32 `json:"site_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +89,6 @@ func (o *SiteGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *SiteGroup) GetUrl() string {
if o == nil {
@@ -113,7 +113,6 @@ func (o *SiteGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *SiteGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +169,6 @@ func (o *SiteGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *SiteGroup) GetName() string {
if o == nil {
@@ -195,7 +193,6 @@ func (o *SiteGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *SiteGroup) GetSlug() string {
if o == nil {
@@ -220,7 +217,6 @@ func (o *SiteGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SiteGroup) GetParent() NestedSiteGroup {
if o == nil || IsNil(o.Parent.Get()) {
@@ -253,6 +249,7 @@ func (o *SiteGroup) HasParent() bool {
func (o *SiteGroup) SetParent(v NestedSiteGroup) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *SiteGroup) SetParentNil() {
o.Parent.Set(nil)
@@ -391,6 +388,7 @@ func (o *SiteGroup) HasCreated() bool {
func (o *SiteGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *SiteGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -433,6 +431,7 @@ func (o *SiteGroup) HasLastUpdated() bool {
func (o *SiteGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *SiteGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -507,6 +506,38 @@ func (o *SiteGroup) SetPrefixCount(v int64) {
o.PrefixCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *SiteGroup) 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 *SiteGroup) 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 *SiteGroup) 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 *SiteGroup) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *SiteGroup) GetDepth() int32 {
if o == nil {
@@ -531,9 +562,8 @@ func (o *SiteGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o SiteGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -574,6 +604,9 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) {
if !IsNil(o.PrefixCount) {
toSerialize["prefix_count"] = o.PrefixCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -598,32 +631,31 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -654,6 +686,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "last_updated")
delete(additionalProperties, "site_count")
delete(additionalProperties, "prefix_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -696,5 +729,3 @@ func (v *NullableSiteGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_site_group_request.go b/model_site_group_request.go
index 0054873b6..36acf66a3 100644
--- a/model_site_group_request.go
+++ b/model_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &SiteGroupRequest{}
// SiteGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type SiteGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedSiteGroupRequest `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedSiteGroupRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *SiteGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *SiteGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *SiteGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SiteGroupRequest) GetParent() NestedSiteGroupRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *SiteGroupRequest) HasParent() bool {
func (o *SiteGroupRequest) SetParent(v NestedSiteGroupRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *SiteGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *SiteGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *SiteGroupRequest) 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 *SiteGroupRequest) 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 *SiteGroupRequest) 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 *SiteGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o SiteGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o SiteGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *SiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *SiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableSiteGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_site_request.go b/model_site_request.go
index 737af1160..531076ce7 100644
--- a/model_site_request.go
+++ b/model_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,16 +21,16 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Region NullableBriefRegionRequest `json:"region,omitempty"`
- Group NullableBriefSiteGroupRequest `json:"group,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Region NullablePatchedWritableSiteRequestRegion `json:"region,omitempty"`
+ Group NullablePatchedWritableSiteRequestGroup `json:"group,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- TimeZone NullableString `json:"time_zone,omitempty"`
- Description *string `json:"description,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ TimeZone NullableString `json:"time_zone,omitempty"`
+ Description *string `json:"description,omitempty"`
// Physical location of the building
PhysicalAddress *string `json:"physical_address,omitempty"`
// If different from the physical address
@@ -38,11 +38,11 @@ type SiteRequest struct {
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []int32 `json:"asns,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *SiteRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *SiteRequest) GetSlug() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *SiteRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *SiteRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
@@ -150,9 +148,9 @@ func (o *SiteRequest) SetStatus(v LocationStatusValue) {
}
// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *SiteRequest) GetRegion() BriefRegionRequest {
+func (o *SiteRequest) GetRegion() PatchedWritableSiteRequestRegion {
if o == nil || IsNil(o.Region.Get()) {
- var ret BriefRegionRequest
+ var ret PatchedWritableSiteRequestRegion
return ret
}
return *o.Region.Get()
@@ -161,7 +159,7 @@ func (o *SiteRequest) GetRegion() BriefRegionRequest {
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) {
+func (o *SiteRequest) GetRegionOk() (*PatchedWritableSiteRequestRegion, bool) {
if o == nil {
return nil, false
}
@@ -177,10 +175,11 @@ func (o *SiteRequest) HasRegion() bool {
return false
}
-// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field.
-func (o *SiteRequest) SetRegion(v BriefRegionRequest) {
+// SetRegion gets a reference to the given NullablePatchedWritableSiteRequestRegion and assigns it to the Region field.
+func (o *SiteRequest) SetRegion(v PatchedWritableSiteRequestRegion) {
o.Region.Set(&v)
}
+
// SetRegionNil sets the value for Region to be an explicit nil
func (o *SiteRequest) SetRegionNil() {
o.Region.Set(nil)
@@ -192,9 +191,9 @@ func (o *SiteRequest) UnsetRegion() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *SiteRequest) GetGroup() BriefSiteGroupRequest {
+func (o *SiteRequest) GetGroup() PatchedWritableSiteRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefSiteGroupRequest
+ var ret PatchedWritableSiteRequestGroup
return ret
}
return *o.Group.Get()
@@ -203,7 +202,7 @@ func (o *SiteRequest) GetGroup() BriefSiteGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) {
+func (o *SiteRequest) GetGroupOk() (*PatchedWritableSiteRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -219,10 +218,11 @@ func (o *SiteRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field.
-func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableSiteRequestGroup and assigns it to the Group field.
+func (o *SiteRequest) SetGroup(v PatchedWritableSiteRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *SiteRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -234,9 +234,9 @@ func (o *SiteRequest) UnsetGroup() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *SiteRequest) GetTenant() BriefTenantRequest {
+func (o *SiteRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -245,7 +245,7 @@ func (o *SiteRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *SiteRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -261,10 +261,11 @@ func (o *SiteRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *SiteRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *SiteRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *SiteRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -339,6 +340,7 @@ func (o *SiteRequest) HasTimeZone() bool {
func (o *SiteRequest) SetTimeZone(v string) {
o.TimeZone.Set(&v)
}
+
// SetTimeZoneNil sets the value for TimeZone to be an explicit nil
func (o *SiteRequest) SetTimeZoneNil() {
o.TimeZone.Set(nil)
@@ -477,6 +479,7 @@ func (o *SiteRequest) HasLatitude() bool {
func (o *SiteRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *SiteRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -519,6 +522,7 @@ func (o *SiteRequest) HasLongitude() bool {
func (o *SiteRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *SiteRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -658,7 +662,7 @@ func (o *SiteRequest) SetCustomFields(v map[string]interface{}) {
}
func (o SiteRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -733,32 +737,31 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -833,5 +836,3 @@ func (v *NullableSiteRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_subscription.go b/model_subscription.go
index 5745eefa2..fff0e1941 100644
--- a/model_subscription.go
+++ b/model_subscription.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Subscription type satisfies the MappedNullable interface at compile time
@@ -21,14 +21,14 @@ var _ MappedNullable = &Subscription{}
// Subscription Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Subscription struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Object interface{} `json:"object,omitempty"`
- User BriefUser `json:"user"`
- Created *time.Time `json:"created,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Object interface{} `json:"object,omitempty"`
+ User BriefUser `json:"user"`
+ Created *time.Time `json:"created,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ func (o *Subscription) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Subscription) GetUrl() string {
if o == nil {
@@ -106,7 +105,6 @@ func (o *Subscription) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *Subscription) GetDisplay() string {
if o == nil {
@@ -131,7 +129,6 @@ func (o *Subscription) SetDisplay(v string) {
o.Display = v
}
-
// GetObjectType returns the ObjectType field value
func (o *Subscription) GetObjectType() string {
if o == nil {
@@ -156,7 +153,6 @@ func (o *Subscription) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *Subscription) GetObjectId() int64 {
if o == nil {
@@ -181,7 +177,6 @@ func (o *Subscription) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Subscription) GetObject() interface{} {
if o == nil {
@@ -239,7 +234,6 @@ func (o *Subscription) SetUser(v BriefUser) {
o.User = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Subscription) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -273,7 +267,7 @@ func (o *Subscription) SetCreated(v time.Time) {
}
func (o Subscription) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -317,32 +311,31 @@ func (o *Subscription) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -408,5 +401,3 @@ func (v *NullableSubscription) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_subscription_request.go b/model_subscription_request.go
index 145193771..506233035 100644
--- a/model_subscription_request.go
+++ b/model_subscription_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &SubscriptionRequest{}
// SubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SubscriptionRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- User BriefUserRequest `json:"user"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ User BookmarkRequestUser `json:"user"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +32,7 @@ type _SubscriptionRequest SubscriptionRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest) *SubscriptionRequest {
+func NewSubscriptionRequest(objectType string, objectId int64, user BookmarkRequestUser) *SubscriptionRequest {
this := SubscriptionRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -72,7 +72,6 @@ func (o *SubscriptionRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *SubscriptionRequest) GetObjectId() int64 {
if o == nil {
@@ -97,11 +96,10 @@ func (o *SubscriptionRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetUser returns the User field value
-func (o *SubscriptionRequest) GetUser() BriefUserRequest {
+func (o *SubscriptionRequest) GetUser() BookmarkRequestUser {
if o == nil {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
@@ -110,7 +108,7 @@ func (o *SubscriptionRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *SubscriptionRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil {
return nil, false
}
@@ -118,13 +116,12 @@ func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) {
}
// SetUser sets field value
-func (o *SubscriptionRequest) SetUser(v BriefUserRequest) {
+func (o *SubscriptionRequest) SetUser(v BookmarkRequestUser) {
o.User = v
}
-
func (o SubscriptionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -156,32 +153,31 @@ func (o *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -242,5 +238,3 @@ func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_table_config.go b/model_table_config.go
new file mode 100644
index 000000000..8470497ff
--- /dev/null
+++ b/model_table_config.go
@@ -0,0 +1,724 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+ "time"
+)
+
+// checks if the TableConfig type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TableConfig{}
+
+// TableConfig Extends the built-in ModelSerializer to enforce calling full_clean() on a 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 TableConfig struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ Table string `json:"table"`
+ Name string `json:"name"`
+ 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"`
+ Columns []string `json:"columns"`
+ Ordering []string `json:"ordering,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TableConfig TableConfig
+
+// NewTableConfig instantiates a new TableConfig object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTableConfig(id int32, url string, display string, objectType string, table string, name string, columns []string) *TableConfig {
+ this := TableConfig{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.ObjectType = objectType
+ this.Table = table
+ this.Name = name
+ this.Columns = columns
+ return &this
+}
+
+// NewTableConfigWithDefaults instantiates a new TableConfig object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTableConfigWithDefaults() *TableConfig {
+ this := TableConfig{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *TableConfig) 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 *TableConfig) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *TableConfig) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *TableConfig) 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 *TableConfig) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *TableConfig) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
+func (o *TableConfig) GetDisplayUrl() string {
+ if o == nil || IsNil(o.DisplayUrl) {
+ var ret string
+ return ret
+ }
+ return *o.DisplayUrl
+}
+
+// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetDisplayUrlOk() (*string, bool) {
+ if o == nil || IsNil(o.DisplayUrl) {
+ return nil, false
+ }
+ return o.DisplayUrl, true
+}
+
+// HasDisplayUrl returns a boolean if a field has been set.
+func (o *TableConfig) HasDisplayUrl() bool {
+ if o != nil && !IsNil(o.DisplayUrl) {
+ return true
+ }
+
+ return false
+}
+
+// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field.
+func (o *TableConfig) SetDisplayUrl(v string) {
+ o.DisplayUrl = &v
+}
+
+// GetDisplay returns the Display field value
+func (o *TableConfig) 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 *TableConfig) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *TableConfig) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetObjectType returns the ObjectType field value
+func (o *TableConfig) GetObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ObjectType
+}
+
+// GetObjectTypeOk returns a tuple with the ObjectType field value
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObjectType, true
+}
+
+// SetObjectType sets field value
+func (o *TableConfig) SetObjectType(v string) {
+ o.ObjectType = v
+}
+
+// GetTable returns the Table field value
+func (o *TableConfig) GetTable() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Table
+}
+
+// GetTableOk returns a tuple with the Table field value
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetTableOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Table, true
+}
+
+// SetTable sets field value
+func (o *TableConfig) SetTable(v string) {
+ o.Table = v
+}
+
+// GetName returns the Name field value
+func (o *TableConfig) 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 *TableConfig) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *TableConfig) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *TableConfig) 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 *TableConfig) 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 *TableConfig) 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 *TableConfig) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfig) GetUser() int32 {
+ if o == nil || IsNil(o.User.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.User.Get()
+}
+
+// GetUserOk returns a tuple with the User field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfig) GetUserOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.User.Get(), o.User.IsSet()
+}
+
+// HasUser returns a boolean if a field has been set.
+func (o *TableConfig) HasUser() bool {
+ if o != nil && o.User.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetUser gets a reference to the given NullableInt32 and assigns it to the User field.
+func (o *TableConfig) SetUser(v int32) {
+ o.User.Set(&v)
+}
+
+// SetUserNil sets the value for User to be an explicit nil
+func (o *TableConfig) SetUserNil() {
+ o.User.Set(nil)
+}
+
+// UnsetUser ensures that no value is present for User, not even an explicit nil
+func (o *TableConfig) UnsetUser() {
+ o.User.Unset()
+}
+
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *TableConfig) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *TableConfig) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *TableConfig) SetWeight(v int32) {
+ o.Weight = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *TableConfig) 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 *TableConfig) 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 *TableConfig) 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 *TableConfig) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetShared returns the Shared field value if set, zero value otherwise.
+func (o *TableConfig) GetShared() bool {
+ if o == nil || IsNil(o.Shared) {
+ var ret bool
+ return ret
+ }
+ return *o.Shared
+}
+
+// GetSharedOk returns a tuple with the Shared field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetSharedOk() (*bool, bool) {
+ if o == nil || IsNil(o.Shared) {
+ return nil, false
+ }
+ return o.Shared, true
+}
+
+// HasShared returns a boolean if a field has been set.
+func (o *TableConfig) HasShared() bool {
+ if o != nil && !IsNil(o.Shared) {
+ return true
+ }
+
+ return false
+}
+
+// SetShared gets a reference to the given bool and assigns it to the Shared field.
+func (o *TableConfig) SetShared(v bool) {
+ o.Shared = &v
+}
+
+// GetColumns returns the Columns field value
+func (o *TableConfig) GetColumns() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Columns
+}
+
+// GetColumnsOk returns a tuple with the Columns field value
+// and a boolean to check if the value has been set.
+func (o *TableConfig) GetColumnsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Columns, true
+}
+
+// SetColumns sets field value
+func (o *TableConfig) SetColumns(v []string) {
+ o.Columns = v
+}
+
+// GetOrdering returns the Ordering field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfig) GetOrdering() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Ordering
+}
+
+// GetOrderingOk returns a tuple with the Ordering field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfig) GetOrderingOk() ([]string, bool) {
+ if o == nil || IsNil(o.Ordering) {
+ return nil, false
+ }
+ return o.Ordering, true
+}
+
+// HasOrdering returns a boolean if a field has been set.
+func (o *TableConfig) HasOrdering() bool {
+ if o != nil && !IsNil(o.Ordering) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrdering gets a reference to the given []string and assigns it to the Ordering field.
+func (o *TableConfig) SetOrdering(v []string) {
+ o.Ordering = v
+}
+
+// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfig) GetCreated() time.Time {
+ if o == nil || IsNil(o.Created.Get()) {
+ var ret time.Time
+ return ret
+ }
+ return *o.Created.Get()
+}
+
+// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfig) GetCreatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Created.Get(), o.Created.IsSet()
+}
+
+// HasCreated returns a boolean if a field has been set.
+func (o *TableConfig) HasCreated() bool {
+ if o != nil && o.Created.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetCreated gets a reference to the given NullableTime and assigns it to the Created field.
+func (o *TableConfig) SetCreated(v time.Time) {
+ o.Created.Set(&v)
+}
+
+// SetCreatedNil sets the value for Created to be an explicit nil
+func (o *TableConfig) SetCreatedNil() {
+ o.Created.Set(nil)
+}
+
+// UnsetCreated ensures that no value is present for Created, not even an explicit nil
+func (o *TableConfig) UnsetCreated() {
+ o.Created.Unset()
+}
+
+// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfig) GetLastUpdated() time.Time {
+ if o == nil || IsNil(o.LastUpdated.Get()) {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastUpdated.Get()
+}
+
+// GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfig) GetLastUpdatedOk() (*time.Time, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.LastUpdated.Get(), o.LastUpdated.IsSet()
+}
+
+// HasLastUpdated returns a boolean if a field has been set.
+func (o *TableConfig) HasLastUpdated() bool {
+ if o != nil && o.LastUpdated.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field.
+func (o *TableConfig) SetLastUpdated(v time.Time) {
+ o.LastUpdated.Set(&v)
+}
+
+// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
+func (o *TableConfig) SetLastUpdatedNil() {
+ o.LastUpdated.Set(nil)
+}
+
+// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
+func (o *TableConfig) UnsetLastUpdated() {
+ o.LastUpdated.Unset()
+}
+
+func (o TableConfig) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TableConfig) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ if !IsNil(o.DisplayUrl) {
+ toSerialize["display_url"] = o.DisplayUrl
+ }
+ toSerialize["display"] = o.Display
+ toSerialize["object_type"] = o.ObjectType
+ toSerialize["table"] = o.Table
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.User.IsSet() {
+ toSerialize["user"] = o.User.Get()
+ }
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if !IsNil(o.Shared) {
+ toSerialize["shared"] = o.Shared
+ }
+ toSerialize["columns"] = o.Columns
+ if o.Ordering != nil {
+ toSerialize["ordering"] = o.Ordering
+ }
+ if o.Created.IsSet() {
+ toSerialize["created"] = o.Created.Get()
+ }
+ if o.LastUpdated.IsSet() {
+ toSerialize["last_updated"] = o.LastUpdated.Get()
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TableConfig) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a 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",
+ "table",
+ "name",
+ "columns",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varTableConfig := _TableConfig{}
+
+ err = json.Unmarshal(data, &varTableConfig)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TableConfig(varTableConfig)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display_url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "object_type")
+ delete(additionalProperties, "table")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "user")
+ delete(additionalProperties, "weight")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "shared")
+ delete(additionalProperties, "columns")
+ delete(additionalProperties, "ordering")
+ delete(additionalProperties, "created")
+ delete(additionalProperties, "last_updated")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTableConfig struct {
+ value *TableConfig
+ isSet bool
+}
+
+func (v NullableTableConfig) Get() *TableConfig {
+ return v.value
+}
+
+func (v *NullableTableConfig) Set(val *TableConfig) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTableConfig) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTableConfig) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTableConfig(val *TableConfig) *NullableTableConfig {
+ return &NullableTableConfig{value: val, isSet: true}
+}
+
+func (v NullableTableConfig) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTableConfig) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_table_config_request.go b/model_table_config_request.go
new file mode 100644
index 000000000..a5247124e
--- /dev/null
+++ b/model_table_config_request.go
@@ -0,0 +1,503 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TableConfigRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TableConfigRequest{}
+
+// TableConfigRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a 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 TableConfigRequest struct {
+ ObjectType string `json:"object_type"`
+ Table string `json:"table"`
+ Name string `json:"name"`
+ 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"`
+ Columns []string `json:"columns"`
+ Ordering []string `json:"ordering,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TableConfigRequest TableConfigRequest
+
+// NewTableConfigRequest instantiates a new TableConfigRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTableConfigRequest(objectType string, table string, name string, columns []string) *TableConfigRequest {
+ this := TableConfigRequest{}
+ this.ObjectType = objectType
+ this.Table = table
+ this.Name = name
+ this.Columns = columns
+ return &this
+}
+
+// NewTableConfigRequestWithDefaults instantiates a new TableConfigRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTableConfigRequestWithDefaults() *TableConfigRequest {
+ this := TableConfigRequest{}
+ return &this
+}
+
+// GetObjectType returns the ObjectType field value
+func (o *TableConfigRequest) GetObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ObjectType
+}
+
+// GetObjectTypeOk returns a tuple with the ObjectType field value
+// and a boolean to check if the value has been set.
+func (o *TableConfigRequest) GetObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObjectType, true
+}
+
+// SetObjectType sets field value
+func (o *TableConfigRequest) SetObjectType(v string) {
+ o.ObjectType = v
+}
+
+// GetTable returns the Table field value
+func (o *TableConfigRequest) GetTable() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Table
+}
+
+// GetTableOk returns a tuple with the Table field value
+// and a boolean to check if the value has been set.
+func (o *TableConfigRequest) GetTableOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Table, true
+}
+
+// SetTable sets field value
+func (o *TableConfigRequest) SetTable(v string) {
+ o.Table = v
+}
+
+// GetName returns the Name field value
+func (o *TableConfigRequest) 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 *TableConfigRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *TableConfigRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *TableConfigRequest) 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 *TableConfigRequest) 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 *TableConfigRequest) 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 *TableConfigRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfigRequest) GetUser() int32 {
+ if o == nil || IsNil(o.User.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.User.Get()
+}
+
+// GetUserOk returns a tuple with the User field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfigRequest) GetUserOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.User.Get(), o.User.IsSet()
+}
+
+// HasUser returns a boolean if a field has been set.
+func (o *TableConfigRequest) HasUser() bool {
+ if o != nil && o.User.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetUser gets a reference to the given NullableInt32 and assigns it to the User field.
+func (o *TableConfigRequest) SetUser(v int32) {
+ o.User.Set(&v)
+}
+
+// SetUserNil sets the value for User to be an explicit nil
+func (o *TableConfigRequest) SetUserNil() {
+ o.User.Set(nil)
+}
+
+// UnsetUser ensures that no value is present for User, not even an explicit nil
+func (o *TableConfigRequest) UnsetUser() {
+ o.User.Unset()
+}
+
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *TableConfigRequest) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TableConfigRequest) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *TableConfigRequest) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *TableConfigRequest) SetWeight(v int32) {
+ o.Weight = &v
+}
+
+// GetEnabled returns the Enabled field value if set, zero value otherwise.
+func (o *TableConfigRequest) 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 *TableConfigRequest) 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 *TableConfigRequest) 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 *TableConfigRequest) SetEnabled(v bool) {
+ o.Enabled = &v
+}
+
+// GetShared returns the Shared field value if set, zero value otherwise.
+func (o *TableConfigRequest) GetShared() bool {
+ if o == nil || IsNil(o.Shared) {
+ var ret bool
+ return ret
+ }
+ return *o.Shared
+}
+
+// GetSharedOk returns a tuple with the Shared field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TableConfigRequest) GetSharedOk() (*bool, bool) {
+ if o == nil || IsNil(o.Shared) {
+ return nil, false
+ }
+ return o.Shared, true
+}
+
+// HasShared returns a boolean if a field has been set.
+func (o *TableConfigRequest) HasShared() bool {
+ if o != nil && !IsNil(o.Shared) {
+ return true
+ }
+
+ return false
+}
+
+// SetShared gets a reference to the given bool and assigns it to the Shared field.
+func (o *TableConfigRequest) SetShared(v bool) {
+ o.Shared = &v
+}
+
+// GetColumns returns the Columns field value
+func (o *TableConfigRequest) GetColumns() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Columns
+}
+
+// GetColumnsOk returns a tuple with the Columns field value
+// and a boolean to check if the value has been set.
+func (o *TableConfigRequest) GetColumnsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Columns, true
+}
+
+// SetColumns sets field value
+func (o *TableConfigRequest) SetColumns(v []string) {
+ o.Columns = v
+}
+
+// GetOrdering returns the Ordering field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *TableConfigRequest) GetOrdering() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+ return o.Ordering
+}
+
+// GetOrderingOk returns a tuple with the Ordering field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TableConfigRequest) GetOrderingOk() ([]string, bool) {
+ if o == nil || IsNil(o.Ordering) {
+ return nil, false
+ }
+ return o.Ordering, true
+}
+
+// HasOrdering returns a boolean if a field has been set.
+func (o *TableConfigRequest) HasOrdering() bool {
+ if o != nil && !IsNil(o.Ordering) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrdering gets a reference to the given []string and assigns it to the Ordering field.
+func (o *TableConfigRequest) SetOrdering(v []string) {
+ o.Ordering = v
+}
+
+func (o TableConfigRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TableConfigRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["object_type"] = o.ObjectType
+ toSerialize["table"] = o.Table
+ toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if o.User.IsSet() {
+ toSerialize["user"] = o.User.Get()
+ }
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
+ if !IsNil(o.Enabled) {
+ toSerialize["enabled"] = o.Enabled
+ }
+ if !IsNil(o.Shared) {
+ toSerialize["shared"] = o.Shared
+ }
+ toSerialize["columns"] = o.Columns
+ if o.Ordering != nil {
+ toSerialize["ordering"] = o.Ordering
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TableConfigRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the 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",
+ "table",
+ "name",
+ "columns",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varTableConfigRequest := _TableConfigRequest{}
+
+ err = json.Unmarshal(data, &varTableConfigRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TableConfigRequest(varTableConfigRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "object_type")
+ delete(additionalProperties, "table")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "user")
+ delete(additionalProperties, "weight")
+ delete(additionalProperties, "enabled")
+ delete(additionalProperties, "shared")
+ delete(additionalProperties, "columns")
+ delete(additionalProperties, "ordering")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTableConfigRequest struct {
+ value *TableConfigRequest
+ isSet bool
+}
+
+func (v NullableTableConfigRequest) Get() *TableConfigRequest {
+ return v.value
+}
+
+func (v *NullableTableConfigRequest) Set(val *TableConfigRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTableConfigRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTableConfigRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTableConfigRequest(val *TableConfigRequest) *NullableTableConfigRequest {
+ return &NullableTableConfigRequest{value: val, isSet: true}
+}
+
+func (v NullableTableConfigRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTableConfigRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tag.go b/model_tag.go
index c52d946ad..7c6244c6f 100644
--- a/model_tag.go
+++ b/model_tag.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Tag type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,19 @@ var _ MappedNullable = &Tag{}
// Tag Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Tag struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- ObjectTypes []string `json:"object_types,omitempty"`
- TaggedItems int64 `json:"tagged_items"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
+ TaggedItems *int64 `json:"tagged_items,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -42,14 +43,13 @@ type _Tag Tag
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64) *Tag {
+func NewTag(id int32, url string, display string, name string, slug string) *Tag {
this := Tag{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.TaggedItems = taggedItems
return &this
}
@@ -85,7 +85,6 @@ func (o *Tag) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Tag) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *Tag) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Tag) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *Tag) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Tag) GetName() string {
if o == nil {
@@ -192,7 +189,6 @@ func (o *Tag) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Tag) GetSlug() string {
if o == nil {
@@ -217,7 +213,6 @@ func (o *Tag) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *Tag) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -282,6 +277,38 @@ func (o *Tag) SetDescription(v string) {
o.Description = &v
}
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *Tag) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Tag) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *Tag) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *Tag) SetWeight(v int32) {
+ o.Weight = &v
+}
+
// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
func (o *Tag) GetObjectTypes() []string {
if o == nil || IsNil(o.ObjectTypes) {
@@ -314,30 +341,37 @@ func (o *Tag) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-// GetTaggedItems returns the TaggedItems field value
+// GetTaggedItems returns the TaggedItems field value if set, zero value otherwise.
func (o *Tag) GetTaggedItems() int64 {
- if o == nil {
+ if o == nil || IsNil(o.TaggedItems) {
var ret int64
return ret
}
-
- return o.TaggedItems
+ return *o.TaggedItems
}
-// GetTaggedItemsOk returns a tuple with the TaggedItems field value
+// GetTaggedItemsOk returns a tuple with the TaggedItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Tag) GetTaggedItemsOk() (*int64, bool) {
- if o == nil {
+ if o == nil || IsNil(o.TaggedItems) {
return nil, false
}
- return &o.TaggedItems, true
+ return o.TaggedItems, true
}
-// SetTaggedItems sets field value
-func (o *Tag) SetTaggedItems(v int64) {
- o.TaggedItems = v
+// HasTaggedItems returns a boolean if a field has been set.
+func (o *Tag) HasTaggedItems() bool {
+ if o != nil && !IsNil(o.TaggedItems) {
+ return true
+ }
+
+ return false
}
+// SetTaggedItems gets a reference to the given int64 and assigns it to the TaggedItems field.
+func (o *Tag) SetTaggedItems(v int64) {
+ o.TaggedItems = &v
+}
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Tag) GetCreated() time.Time {
@@ -371,6 +405,7 @@ func (o *Tag) HasCreated() bool {
func (o *Tag) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Tag) SetCreatedNil() {
o.Created.Set(nil)
@@ -413,6 +448,7 @@ func (o *Tag) HasLastUpdated() bool {
func (o *Tag) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Tag) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -424,7 +460,7 @@ func (o *Tag) UnsetLastUpdated() {
}
func (o Tag) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -447,10 +483,15 @@ func (o Tag) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
if !IsNil(o.ObjectTypes) {
toSerialize["object_types"] = o.ObjectTypes
}
- toSerialize["tagged_items"] = o.TaggedItems
+ if !IsNil(o.TaggedItems) {
+ toSerialize["tagged_items"] = o.TaggedItems
+ }
if o.Created.IsSet() {
toSerialize["created"] = o.Created.Get()
}
@@ -479,32 +520,31 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -529,6 +569,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
delete(additionalProperties, "description")
+ delete(additionalProperties, "weight")
delete(additionalProperties, "object_types")
delete(additionalProperties, "tagged_items")
delete(additionalProperties, "created")
@@ -574,5 +615,3 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tag_request.go b/model_tag_request.go
index 2edbce45d..d66b45f29 100644
--- a/model_tag_request.go
+++ b/model_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,12 @@ var _ MappedNullable = &TagRequest{}
// TagRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type TagRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- ObjectTypes []string `json:"object_types,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Weight *int32 `json:"weight,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +74,6 @@ func (o *TagRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TagRequest) GetSlug() string {
if o == nil {
@@ -98,7 +98,6 @@ func (o *TagRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *TagRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -163,6 +162,38 @@ func (o *TagRequest) SetDescription(v string) {
o.Description = &v
}
+// GetWeight returns the Weight field value if set, zero value otherwise.
+func (o *TagRequest) GetWeight() int32 {
+ if o == nil || IsNil(o.Weight) {
+ var ret int32
+ return ret
+ }
+ return *o.Weight
+}
+
+// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TagRequest) GetWeightOk() (*int32, bool) {
+ if o == nil || IsNil(o.Weight) {
+ return nil, false
+ }
+ return o.Weight, true
+}
+
+// HasWeight returns a boolean if a field has been set.
+func (o *TagRequest) HasWeight() bool {
+ if o != nil && !IsNil(o.Weight) {
+ return true
+ }
+
+ return false
+}
+
+// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
+func (o *TagRequest) SetWeight(v int32) {
+ o.Weight = &v
+}
+
// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
func (o *TagRequest) GetObjectTypes() []string {
if o == nil || IsNil(o.ObjectTypes) {
@@ -196,7 +227,7 @@ func (o *TagRequest) SetObjectTypes(v []string) {
}
func (o TagRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -213,6 +244,9 @@ func (o TagRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if !IsNil(o.Weight) {
+ toSerialize["weight"] = o.Weight
+ }
if !IsNil(o.ObjectTypes) {
toSerialize["object_types"] = o.ObjectTypes
}
@@ -235,32 +269,31 @@ func (o *TagRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -281,6 +314,7 @@ func (o *TagRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "slug")
delete(additionalProperties, "color")
delete(additionalProperties, "description")
+ delete(additionalProperties, "weight")
delete(additionalProperties, "object_types")
o.AdditionalProperties = additionalProperties
}
@@ -323,5 +357,3 @@ func (v *NullableTagRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tagged_item.go b/model_tagged_item.go
new file mode 100644
index 000000000..f9e8c129b
--- /dev/null
+++ b/model_tagged_item.go
@@ -0,0 +1,360 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the TaggedItem type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TaggedItem{}
+
+// TaggedItem struct for TaggedItem
+type TaggedItem struct {
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectType string `json:"object_type"`
+ ObjectId int32 `json:"object_id"`
+ Object interface{} `json:"object"`
+ Tag BriefTag `json:"tag"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _TaggedItem TaggedItem
+
+// NewTaggedItem instantiates a new TaggedItem object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTaggedItem(id int32, url string, display string, objectType string, objectId int32, object interface{}, tag BriefTag) *TaggedItem {
+ this := TaggedItem{}
+ this.Id = id
+ this.Url = url
+ this.Display = display
+ this.ObjectType = objectType
+ this.ObjectId = objectId
+ this.Object = object
+ this.Tag = tag
+ return &this
+}
+
+// NewTaggedItemWithDefaults instantiates a new TaggedItem object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTaggedItemWithDefaults() *TaggedItem {
+ this := TaggedItem{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *TaggedItem) 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 *TaggedItem) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *TaggedItem) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *TaggedItem) 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 *TaggedItem) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *TaggedItem) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetDisplay returns the Display field value
+func (o *TaggedItem) 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 *TaggedItem) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *TaggedItem) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetObjectType returns the ObjectType field value
+func (o *TaggedItem) GetObjectType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ObjectType
+}
+
+// GetObjectTypeOk returns a tuple with the ObjectType field value
+// and a boolean to check if the value has been set.
+func (o *TaggedItem) GetObjectTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObjectType, true
+}
+
+// SetObjectType sets field value
+func (o *TaggedItem) SetObjectType(v string) {
+ o.ObjectType = v
+}
+
+// GetObjectId returns the ObjectId field value
+func (o *TaggedItem) GetObjectId() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.ObjectId
+}
+
+// GetObjectIdOk returns a tuple with the ObjectId field value
+// and a boolean to check if the value has been set.
+func (o *TaggedItem) GetObjectIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ObjectId, true
+}
+
+// SetObjectId sets field value
+func (o *TaggedItem) SetObjectId(v int32) {
+ o.ObjectId = v
+}
+
+// GetObject returns the Object field value
+// If the value is explicit nil, the zero value for interface{} will be returned
+func (o *TaggedItem) GetObject() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+
+ return o.Object
+}
+
+// GetObjectOk returns a tuple with the Object field value
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *TaggedItem) GetObjectOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Object) {
+ return nil, false
+ }
+ return &o.Object, true
+}
+
+// SetObject sets field value
+func (o *TaggedItem) SetObject(v interface{}) {
+ o.Object = v
+}
+
+// GetTag returns the Tag field value
+func (o *TaggedItem) GetTag() BriefTag {
+ if o == nil {
+ var ret BriefTag
+ return ret
+ }
+
+ return o.Tag
+}
+
+// GetTagOk returns a tuple with the Tag field value
+// and a boolean to check if the value has been set.
+func (o *TaggedItem) GetTagOk() (*BriefTag, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Tag, true
+}
+
+// SetTag sets field value
+func (o *TaggedItem) SetTag(v BriefTag) {
+ o.Tag = v
+}
+
+func (o TaggedItem) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TaggedItem) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["display"] = o.Display
+ toSerialize["object_type"] = o.ObjectType
+ toSerialize["object_id"] = o.ObjectId
+ if o.Object != nil {
+ toSerialize["object"] = o.Object
+ }
+ toSerialize["tag"] = o.Tag
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *TaggedItem) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a 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",
+ "tag",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varTaggedItem := _TaggedItem{}
+
+ err = json.Unmarshal(data, &varTaggedItem)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TaggedItem(varTaggedItem)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "object_type")
+ delete(additionalProperties, "object_id")
+ delete(additionalProperties, "object")
+ delete(additionalProperties, "tag")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableTaggedItem struct {
+ value *TaggedItem
+ isSet bool
+}
+
+func (v NullableTaggedItem) Get() *TaggedItem {
+ return v.value
+}
+
+func (v *NullableTaggedItem) Set(val *TaggedItem) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTaggedItem) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTaggedItem) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTaggedItem(val *TaggedItem) *NullableTaggedItem {
+ return &NullableTaggedItem{value: val, isSet: true}
+}
+
+func (v NullableTaggedItem) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTaggedItem) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_tenant.go b/model_tenant.go
index 5a1492070..d6f112e2a 100644
--- a/model_tenant.go
+++ b/model_tenant.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Tenant type satisfies the MappedNullable interface at compile time
@@ -21,29 +21,29 @@ var _ MappedNullable = &Tenant{}
// Tenant Adds support for custom fields and tags.
type Tenant struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Group NullableBriefTenantGroup `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CircuitCount *int64 `json:"circuit_count,omitempty"`
- DeviceCount *int64 `json:"device_count,omitempty"`
- IpaddressCount *int64 `json:"ipaddress_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
- RackCount *int64 `json:"rack_count,omitempty"`
- SiteCount *int64 `json:"site_count,omitempty"`
- VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
- VrfCount *int64 `json:"vrf_count,omitempty"`
- ClusterCount *int64 `json:"cluster_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Group NullableBriefTenantGroup `json:"group,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CircuitCount *int64 `json:"circuit_count,omitempty"`
+ DeviceCount *int64 `json:"device_count,omitempty"`
+ IpaddressCount *int64 `json:"ipaddress_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
+ RackCount *int64 `json:"rack_count,omitempty"`
+ SiteCount *int64 `json:"site_count,omitempty"`
+ VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
+ VrfCount *int64 `json:"vrf_count,omitempty"`
+ ClusterCount *int64 `json:"cluster_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -95,7 +95,6 @@ func (o *Tenant) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Tenant) GetUrl() string {
if o == nil {
@@ -120,7 +119,6 @@ func (o *Tenant) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Tenant) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -177,7 +175,6 @@ func (o *Tenant) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Tenant) GetName() string {
if o == nil {
@@ -202,7 +199,6 @@ func (o *Tenant) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *Tenant) GetSlug() string {
if o == nil {
@@ -227,7 +223,6 @@ func (o *Tenant) SetSlug(v string) {
o.Slug = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Tenant) GetGroup() BriefTenantGroup {
if o == nil || IsNil(o.Group.Get()) {
@@ -260,6 +255,7 @@ func (o *Tenant) HasGroup() bool {
func (o *Tenant) SetGroup(v BriefTenantGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *Tenant) SetGroupNil() {
o.Group.Set(nil)
@@ -430,6 +426,7 @@ func (o *Tenant) HasCreated() bool {
func (o *Tenant) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Tenant) SetCreatedNil() {
o.Created.Set(nil)
@@ -472,6 +469,7 @@ func (o *Tenant) HasLastUpdated() bool {
func (o *Tenant) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Tenant) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -803,7 +801,7 @@ func (o *Tenant) SetClusterCount(v int64) {
}
func (o Tenant) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -893,32 +891,31 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -999,5 +996,3 @@ func (v *NullableTenant) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tenant_group.go b/model_tenant_group.go
index b3da465a9..05b6789d4 100644
--- a/model_tenant_group.go
+++ b/model_tenant_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TenantGroup type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,21 @@ var _ MappedNullable = &TenantGroup{}
// TenantGroup Extends PrimaryModelSerializer to include MPTT support.
type TenantGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedTenantGroup `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- TenantCount *int32 `json:"tenant_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedTenantGroup `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ TenantCount *int32 `json:"tenant_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +88,6 @@ func (o *TenantGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *TenantGroup) GetUrl() string {
if o == nil {
@@ -112,7 +112,6 @@ func (o *TenantGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *TenantGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +168,6 @@ func (o *TenantGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *TenantGroup) GetName() string {
if o == nil {
@@ -194,7 +192,6 @@ func (o *TenantGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TenantGroup) GetSlug() string {
if o == nil {
@@ -219,7 +216,6 @@ func (o *TenantGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TenantGroup) GetParent() NestedTenantGroup {
if o == nil || IsNil(o.Parent.Get()) {
@@ -252,6 +248,7 @@ func (o *TenantGroup) HasParent() bool {
func (o *TenantGroup) SetParent(v NestedTenantGroup) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *TenantGroup) SetParentNil() {
o.Parent.Set(nil)
@@ -390,6 +387,7 @@ func (o *TenantGroup) HasCreated() bool {
func (o *TenantGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *TenantGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -432,6 +430,7 @@ func (o *TenantGroup) HasLastUpdated() bool {
func (o *TenantGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *TenantGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -474,6 +473,38 @@ func (o *TenantGroup) SetTenantCount(v int32) {
o.TenantCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *TenantGroup) 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 *TenantGroup) 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 *TenantGroup) 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 *TenantGroup) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *TenantGroup) GetDepth() int32 {
if o == nil {
@@ -498,9 +529,8 @@ func (o *TenantGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o TenantGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -538,6 +568,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) {
if !IsNil(o.TenantCount) {
toSerialize["tenant_count"] = o.TenantCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -562,32 +595,31 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -617,6 +649,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
delete(additionalProperties, "tenant_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -659,5 +692,3 @@ func (v *NullableTenantGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go
index b68ff7a5a..fe6406b43 100644
--- a/model_tenant_group_request.go
+++ b/model_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &TenantGroupRequest{}
// TenantGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type TenantGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedTenantGroupRequest `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedTenantGroupRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *TenantGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TenantGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *TenantGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TenantGroupRequest) GetParent() NestedTenantGroupRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *TenantGroupRequest) HasParent() bool {
func (o *TenantGroupRequest) SetParent(v NestedTenantGroupRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *TenantGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *TenantGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *TenantGroupRequest) 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 *TenantGroupRequest) 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 *TenantGroupRequest) 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 *TenantGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o TenantGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o TenantGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *TenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *TenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableTenantGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tenant_request.go b/model_tenant_request.go
index c541fb6f4..286f83bd7 100644
--- a/model_tenant_request.go
+++ b/model_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &TenantRequest{}
// TenantRequest Adds support for custom fields and tags.
type TenantRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Group NullableBriefTenantGroupRequest `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Group NullablePatchedTenantRequestGroup `json:"group,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *TenantRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TenantRequest) GetSlug() string {
if o == nil {
@@ -100,11 +99,10 @@ func (o *TenantRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TenantRequest) GetGroup() BriefTenantGroupRequest {
+func (o *TenantRequest) GetGroup() PatchedTenantRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefTenantGroupRequest
+ var ret PatchedTenantRequestGroup
return ret
}
return *o.Group.Get()
@@ -113,7 +111,7 @@ func (o *TenantRequest) GetGroup() BriefTenantGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) {
+func (o *TenantRequest) GetGroupOk() (*PatchedTenantRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -129,10 +127,11 @@ func (o *TenantRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field.
-func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedTenantRequestGroup and assigns it to the Group field.
+func (o *TenantRequest) SetGroup(v PatchedTenantRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *TenantRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -272,7 +271,7 @@ func (o *TenantRequest) SetCustomFields(v map[string]interface{}) {
}
func (o TenantRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -317,32 +316,31 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -407,5 +405,3 @@ func (v *NullableTenantRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_termination_side.go b/model_termination_side.go
index 5196a0035..a61b84ac9 100644
--- a/model_termination_side.go
+++ b/model_termination_side.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableTerminationSide) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_termination_side_1.go b/model_termination_side_1.go
index a8f17964a..c338b1057 100644
--- a/model_termination_side_1.go
+++ b/model_termination_side_1.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableTerminationSide1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_token.go b/model_token.go
index 44f56aabc..cfa8deeb4 100644
--- a/model_token.go
+++ b/model_token.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Token type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,17 @@ var _ MappedNullable = &Token{}
// Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Token struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- User BriefUser `json:"user"`
- Created *time.Time `json:"created,omitempty"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed NullableTime `json:"last_used,omitempty"`
- Key *string `json:"key,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ User BriefUser `json:"user"`
+ Created *time.Time `json:"created,omitempty"`
+ Expires NullableTime `json:"expires,omitempty"`
+ LastUsed NullableTime `json:"last_used,omitempty"`
// Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
+ WriteEnabled *bool `json:"write_enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +82,6 @@ func (o *Token) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Token) GetUrl() string {
if o == nil {
@@ -108,7 +106,6 @@ func (o *Token) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Token) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -165,7 +162,6 @@ func (o *Token) SetDisplay(v string) {
o.Display = v
}
-
// GetUser returns the User field value
func (o *Token) GetUser() BriefUser {
if o == nil {
@@ -190,7 +186,6 @@ func (o *Token) SetUser(v BriefUser) {
o.User = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Token) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -255,6 +250,7 @@ func (o *Token) HasExpires() bool {
func (o *Token) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
+
// SetExpiresNil sets the value for Expires to be an explicit nil
func (o *Token) SetExpiresNil() {
o.Expires.Set(nil)
@@ -297,6 +293,7 @@ func (o *Token) HasLastUsed() bool {
func (o *Token) SetLastUsed(v time.Time) {
o.LastUsed.Set(&v)
}
+
// SetLastUsedNil sets the value for LastUsed to be an explicit nil
func (o *Token) SetLastUsedNil() {
o.LastUsed.Set(nil)
@@ -307,38 +304,6 @@ func (o *Token) UnsetLastUsed() {
o.LastUsed.Unset()
}
-// GetKey returns the Key field value if set, zero value otherwise.
-func (o *Token) GetKey() string {
- if o == nil || IsNil(o.Key) {
- var ret string
- return ret
- }
- return *o.Key
-}
-
-// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *Token) GetKeyOk() (*string, bool) {
- if o == nil || IsNil(o.Key) {
- return nil, false
- }
- return o.Key, true
-}
-
-// HasKey returns a boolean if a field has been set.
-func (o *Token) HasKey() bool {
- if o != nil && !IsNil(o.Key) {
- return true
- }
-
- return false
-}
-
-// SetKey gets a reference to the given string and assigns it to the Key field.
-func (o *Token) SetKey(v string) {
- o.Key = &v
-}
-
// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise.
func (o *Token) GetWriteEnabled() bool {
if o == nil || IsNil(o.WriteEnabled) {
@@ -404,7 +369,7 @@ func (o *Token) SetDescription(v string) {
}
func (o Token) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -429,9 +394,6 @@ func (o Token) ToMap() (map[string]interface{}, error) {
if o.LastUsed.IsSet() {
toSerialize["last_used"] = o.LastUsed.Get()
}
- if !IsNil(o.Key) {
- toSerialize["key"] = o.Key
- }
if !IsNil(o.WriteEnabled) {
toSerialize["write_enabled"] = o.WriteEnabled
}
@@ -459,32 +421,31 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -509,7 +470,6 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "created")
delete(additionalProperties, "expires")
delete(additionalProperties, "last_used")
- delete(additionalProperties, "key")
delete(additionalProperties, "write_enabled")
delete(additionalProperties, "description")
o.AdditionalProperties = additionalProperties
@@ -553,5 +513,3 @@ func (v *NullableToken) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_token_provision.go b/model_token_provision.go
index a3c69cff1..2162b2dec 100644
--- a/model_token_provision.go
+++ b/model_token_provision.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TokenProvision type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &TokenProvision{}
// TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type TokenProvision struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- User BriefUser `json:"user"`
- Created *time.Time `json:"created,omitempty"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed time.Time `json:"last_used"`
- Key string `json:"key"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ User BriefUser `json:"user"`
+ Created *time.Time `json:"created,omitempty"`
+ Expires NullableTime `json:"expires,omitempty"`
+ LastUsed time.Time `json:"last_used"`
+ Key string `json:"key"`
// Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
+ WriteEnabled *bool `json:"write_enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *TokenProvision) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *TokenProvision) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *TokenProvision) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *TokenProvision) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *TokenProvision) SetDisplay(v string) {
o.Display = v
}
-
// GetUser returns the User field value
func (o *TokenProvision) GetUser() BriefUser {
if o == nil {
@@ -192,7 +189,6 @@ func (o *TokenProvision) SetUser(v BriefUser) {
o.User = v
}
-
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *TokenProvision) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
@@ -257,6 +253,7 @@ func (o *TokenProvision) HasExpires() bool {
func (o *TokenProvision) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
+
// SetExpiresNil sets the value for Expires to be an explicit nil
func (o *TokenProvision) SetExpiresNil() {
o.Expires.Set(nil)
@@ -291,7 +288,6 @@ func (o *TokenProvision) SetLastUsed(v time.Time) {
o.LastUsed = v
}
-
// GetKey returns the Key field value
func (o *TokenProvision) GetKey() string {
if o == nil {
@@ -316,7 +312,6 @@ func (o *TokenProvision) SetKey(v string) {
o.Key = v
}
-
// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise.
func (o *TokenProvision) GetWriteEnabled() bool {
if o == nil || IsNil(o.WriteEnabled) {
@@ -382,7 +377,7 @@ func (o *TokenProvision) SetDescription(v string) {
}
func (o TokenProvision) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -435,32 +430,31 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -529,5 +523,3 @@ func (v *NullableTokenProvision) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_token_provision_request.go b/model_token_provision_request.go
index bc9ff4dde..aca452c7e 100644
--- a/model_token_provision_request.go
+++ b/model_token_provision_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TokenProvisionRequest type satisfies the MappedNullable interface at compile time
@@ -23,10 +23,10 @@ var _ MappedNullable = &TokenProvisionRequest{}
type TokenProvisionRequest struct {
Expires NullableTime `json:"expires,omitempty"`
// Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Username string `json:"username"`
- Password string `json:"password"`
+ WriteEnabled *bool `json:"write_enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Username string `json:"username"`
+ Password string `json:"password"`
AdditionalProperties map[string]interface{}
}
@@ -83,6 +83,7 @@ func (o *TokenProvisionRequest) HasExpires() bool {
func (o *TokenProvisionRequest) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
+
// SetExpiresNil sets the value for Expires to be an explicit nil
func (o *TokenProvisionRequest) SetExpiresNil() {
o.Expires.Set(nil)
@@ -181,7 +182,6 @@ func (o *TokenProvisionRequest) SetUsername(v string) {
o.Username = v
}
-
// GetPassword returns the Password field value
func (o *TokenProvisionRequest) GetPassword() string {
if o == nil {
@@ -206,9 +206,8 @@ func (o *TokenProvisionRequest) SetPassword(v string) {
o.Password = v
}
-
func (o TokenProvisionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -247,32 +246,31 @@ func (o *TokenProvisionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -335,5 +333,3 @@ func (v *NullableTokenProvisionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_token_request.go b/model_token_request.go
index 540719faf..1ddb543d1 100644
--- a/model_token_request.go
+++ b/model_token_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TokenRequest type satisfies the MappedNullable interface at compile time
@@ -21,13 +21,13 @@ var _ MappedNullable = &TokenRequest{}
// TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type TokenRequest struct {
- User BriefUserRequest `json:"user"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed NullableTime `json:"last_used,omitempty"`
- Key *string `json:"key,omitempty"`
+ User BookmarkRequestUser `json:"user"`
+ Expires NullableTime `json:"expires,omitempty"`
+ LastUsed NullableTime `json:"last_used,omitempty"`
+ Key *string `json:"key,omitempty"`
// Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
+ WriteEnabled *bool `json:"write_enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _TokenRequest TokenRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewTokenRequest(user BriefUserRequest) *TokenRequest {
+func NewTokenRequest(user BookmarkRequestUser) *TokenRequest {
this := TokenRequest{}
this.User = user
return &this
@@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest {
}
// GetUser returns the User field value
-func (o *TokenRequest) GetUser() BriefUserRequest {
+func (o *TokenRequest) GetUser() BookmarkRequestUser {
if o == nil {
- var ret BriefUserRequest
+ var ret BookmarkRequestUser
return ret
}
@@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() BriefUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) {
+func (o *TokenRequest) GetUserOk() (*BookmarkRequestUser, bool) {
if o == nil {
return nil, false
}
@@ -71,11 +71,10 @@ func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) {
}
// SetUser sets field value
-func (o *TokenRequest) SetUser(v BriefUserRequest) {
+func (o *TokenRequest) SetUser(v BookmarkRequestUser) {
o.User = v
}
-
// GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TokenRequest) GetExpires() time.Time {
if o == nil || IsNil(o.Expires.Get()) {
@@ -108,6 +107,7 @@ func (o *TokenRequest) HasExpires() bool {
func (o *TokenRequest) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
+
// SetExpiresNil sets the value for Expires to be an explicit nil
func (o *TokenRequest) SetExpiresNil() {
o.Expires.Set(nil)
@@ -150,6 +150,7 @@ func (o *TokenRequest) HasLastUsed() bool {
func (o *TokenRequest) SetLastUsed(v time.Time) {
o.LastUsed.Set(&v)
}
+
// SetLastUsedNil sets the value for LastUsed to be an explicit nil
func (o *TokenRequest) SetLastUsedNil() {
o.LastUsed.Set(nil)
@@ -257,7 +258,7 @@ func (o *TokenRequest) SetDescription(v string) {
}
func (o TokenRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -300,32 +301,31 @@ func (o *TokenRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -389,5 +389,3 @@ func (v *NullableTokenRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel.go b/model_tunnel.go
index 7d2db25f7..83108a41f 100644
--- a/model_tunnel.go
+++ b/model_tunnel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Tunnel type satisfies the MappedNullable interface at compile time
@@ -21,24 +21,24 @@ var _ MappedNullable = &Tunnel{}
// Tunnel Adds support for custom fields and tags.
type Tunnel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Status TunnelStatus `json:"status"`
- Group NullableBriefTunnelGroup `json:"group,omitempty"`
- Encapsulation TunnelEncapsulation `json:"encapsulation"`
- IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- TerminationsCount *int64 `json:"terminations_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Status TunnelStatus `json:"status"`
+ Group NullableBriefTunnelGroup `json:"group,omitempty"`
+ Encapsulation TunnelEncapsulation `json:"encapsulation"`
+ IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ TerminationsCount *int64 `json:"terminations_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *Tunnel) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Tunnel) GetUrl() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *Tunnel) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Tunnel) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -173,7 +171,6 @@ func (o *Tunnel) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Tunnel) GetName() string {
if o == nil {
@@ -198,7 +195,6 @@ func (o *Tunnel) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value
func (o *Tunnel) GetStatus() TunnelStatus {
if o == nil {
@@ -223,7 +219,6 @@ func (o *Tunnel) SetStatus(v TunnelStatus) {
o.Status = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Tunnel) GetGroup() BriefTunnelGroup {
if o == nil || IsNil(o.Group.Get()) {
@@ -256,6 +251,7 @@ func (o *Tunnel) HasGroup() bool {
func (o *Tunnel) SetGroup(v BriefTunnelGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *Tunnel) SetGroupNil() {
o.Group.Set(nil)
@@ -290,7 +286,6 @@ func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) {
o.Encapsulation = v
}
-
// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile {
if o == nil || IsNil(o.IpsecProfile.Get()) {
@@ -323,6 +318,7 @@ func (o *Tunnel) HasIpsecProfile() bool {
func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) {
o.IpsecProfile.Set(&v)
}
+
// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
func (o *Tunnel) SetIpsecProfileNil() {
o.IpsecProfile.Set(nil)
@@ -365,6 +361,7 @@ func (o *Tunnel) HasTenant() bool {
func (o *Tunnel) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Tunnel) SetTenantNil() {
o.Tenant.Set(nil)
@@ -407,6 +404,7 @@ func (o *Tunnel) HasTunnelId() bool {
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)
@@ -577,6 +575,7 @@ func (o *Tunnel) HasCreated() bool {
func (o *Tunnel) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Tunnel) SetCreatedNil() {
o.Created.Set(nil)
@@ -619,6 +618,7 @@ func (o *Tunnel) HasLastUpdated() bool {
func (o *Tunnel) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Tunnel) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -662,7 +662,7 @@ func (o *Tunnel) SetTerminationsCount(v int64) {
}
func (o Tunnel) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -736,32 +736,31 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -837,5 +836,3 @@ 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
index 3e08ef7c5..0d987d5f8 100644
--- a/model_tunnel_encapsulation.go
+++ b/model_tunnel_encapsulation.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelEncapsulation{}
// TunnelEncapsulation struct for TunnelEncapsulation
type TunnelEncapsulation struct {
- Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"`
- Label *TunnelEncapsulationLabel `json:"label,omitempty"`
+ Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"`
+ Label *TunnelEncapsulationLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel) {
}
func (o TunnelEncapsulation) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ 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
index b82bb71dc..4b14660f1 100644
--- a/model_tunnel_encapsulation_label.go
+++ b/model_tunnel_encapsulation_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ type TunnelEncapsulationLabel string
// List of Tunnel_encapsulation_label
const (
TUNNELENCAPSULATIONLABEL_I_PSEC___TRANSPORT TunnelEncapsulationLabel = "IPsec - Transport"
- TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel"
- TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP"
- TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE"
- TUNNELENCAPSULATIONLABEL_WIRE_GUARD TunnelEncapsulationLabel = "WireGuard"
- TUNNELENCAPSULATIONLABEL_OPEN_VPN TunnelEncapsulationLabel = "OpenVPN"
- TUNNELENCAPSULATIONLABEL_L2_TP TunnelEncapsulationLabel = "L2TP"
- TUNNELENCAPSULATIONLABEL_PPTP TunnelEncapsulationLabel = "PPTP"
+ TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel"
+ TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP"
+ TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE"
+ TUNNELENCAPSULATIONLABEL_WIRE_GUARD TunnelEncapsulationLabel = "WireGuard"
+ TUNNELENCAPSULATIONLABEL_OPEN_VPN TunnelEncapsulationLabel = "OpenVPN"
+ TUNNELENCAPSULATIONLABEL_L2_TP TunnelEncapsulationLabel = "L2TP"
+ TUNNELENCAPSULATIONLABEL_PPTP TunnelEncapsulationLabel = "PPTP"
)
// All allowed values of TunnelEncapsulationLabel enum
@@ -120,4 +120,3 @@ func (v *NullableTunnelEncapsulationLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_tunnel_group.go b/model_tunnel_group.go
index 30ff59da7..ed5f4effc 100644
--- a/model_tunnel_group.go
+++ b/model_tunnel_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TunnelGroup type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &TunnelGroup{}
// TunnelGroup Adds support for custom fields and tags.
type TunnelGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- TunnelCount *int64 `json:"tunnel_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ TunnelCount *int64 `json:"tunnel_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *TunnelGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *TunnelGroup) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *TunnelGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *TunnelGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *TunnelGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *TunnelGroup) GetName() string {
if o == nil {
@@ -191,7 +188,6 @@ func (o *TunnelGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TunnelGroup) GetSlug() string {
if o == nil {
@@ -216,7 +212,6 @@ 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) {
@@ -345,6 +340,7 @@ func (o *TunnelGroup) HasCreated() bool {
func (o *TunnelGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *TunnelGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -387,6 +383,7 @@ func (o *TunnelGroup) HasLastUpdated() bool {
func (o *TunnelGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *TunnelGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -430,7 +427,7 @@ func (o *TunnelGroup) SetTunnelCount(v int64) {
}
func (o TunnelGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -487,32 +484,31 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -582,5 +578,3 @@ func (v *NullableTunnelGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go
index 948737275..b5311dfb4 100644
--- a/model_tunnel_group_request.go
+++ b/model_tunnel_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelGroupRequest{}
// TunnelGroupRequest Adds support for custom fields and tags.
type TunnelGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -73,7 +73,6 @@ func (o *TunnelGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *TunnelGroupRequest) GetSlug() string {
if o == nil {
@@ -98,7 +97,6 @@ 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) {
@@ -196,7 +194,7 @@ func (o *TunnelGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o TunnelGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -235,32 +233,31 @@ func (o *TunnelGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -323,5 +320,3 @@ func (v *NullableTunnelGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel_request.go b/model_tunnel_request.go
index 64c770c4a..9a30f3825 100644
--- a/model_tunnel_request.go
+++ b/model_tunnel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &TunnelRequest{}
// TunnelRequest Adds support for custom fields and tags.
type TunnelRequest struct {
- Name string `json:"name"`
- Status PatchedWritableTunnelRequestStatus `json:"status"`
- Group NullableBriefTunnelGroupRequest `json:"group,omitempty"`
- Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
- IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Status PatchedWritableTunnelRequestStatus `json:"status"`
+ Group NullablePatchedWritableTunnelRequestGroup `json:"group,omitempty"`
+ Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
+ IpsecProfile NullablePatchedWritableTunnelRequestIpsecProfile `json:"ipsec_profile,omitempty"`
+ Tenant NullableASNRangeRequestTenant `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{}
}
@@ -80,7 +80,6 @@ func (o *TunnelRequest) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value
func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus {
if o == nil {
@@ -105,11 +104,10 @@ func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) {
o.Status = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest {
+func (o *TunnelRequest) GetGroup() PatchedWritableTunnelRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefTunnelGroupRequest
+ var ret PatchedWritableTunnelRequestGroup
return ret
}
return *o.Group.Get()
@@ -118,7 +116,7 @@ func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) {
+func (o *TunnelRequest) GetGroupOk() (*PatchedWritableTunnelRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -134,10 +132,11 @@ func (o *TunnelRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field.
-func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableTunnelRequestGroup and assigns it to the Group field.
+func (o *TunnelRequest) SetGroup(v PatchedWritableTunnelRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *TunnelRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -172,11 +171,10 @@ func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsula
o.Encapsulation = v
}
-
// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest {
+func (o *TunnelRequest) GetIpsecProfile() PatchedWritableTunnelRequestIpsecProfile {
if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret BriefIPSecProfileRequest
+ var ret PatchedWritableTunnelRequestIpsecProfile
return ret
}
return *o.IpsecProfile.Get()
@@ -185,7 +183,7 @@ func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest {
// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) {
+func (o *TunnelRequest) GetIpsecProfileOk() (*PatchedWritableTunnelRequestIpsecProfile, bool) {
if o == nil {
return nil, false
}
@@ -201,10 +199,11 @@ func (o *TunnelRequest) HasIpsecProfile() bool {
return false
}
-// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field.
-func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) {
+// SetIpsecProfile gets a reference to the given NullablePatchedWritableTunnelRequestIpsecProfile and assigns it to the IpsecProfile field.
+func (o *TunnelRequest) SetIpsecProfile(v PatchedWritableTunnelRequestIpsecProfile) {
o.IpsecProfile.Set(&v)
}
+
// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
func (o *TunnelRequest) SetIpsecProfileNil() {
o.IpsecProfile.Set(nil)
@@ -216,9 +215,9 @@ func (o *TunnelRequest) UnsetIpsecProfile() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TunnelRequest) GetTenant() BriefTenantRequest {
+func (o *TunnelRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -227,7 +226,7 @@ func (o *TunnelRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *TunnelRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -243,10 +242,11 @@ func (o *TunnelRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *TunnelRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *TunnelRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *TunnelRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -289,6 +289,7 @@ func (o *TunnelRequest) HasTunnelId() bool {
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)
@@ -428,7 +429,7 @@ func (o *TunnelRequest) SetCustomFields(v map[string]interface{}) {
}
func (o TunnelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -484,32 +485,31 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -578,5 +578,3 @@ 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
index 79cee57ae..c74100430 100644
--- a/model_tunnel_status.go
+++ b/model_tunnel_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelStatus{}
// TunnelStatus struct for TunnelStatus
type TunnelStatus struct {
- Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"`
- Label *TunnelStatusLabel `json:"label,omitempty"`
+ Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"`
+ Label *TunnelStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *TunnelStatus) SetLabel(v TunnelStatusLabel) {
}
func (o TunnelStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ 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
index 83a9b9cd9..f0db92084 100644
--- a/model_tunnel_status_label.go
+++ b/model_tunnel_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type TunnelStatusLabel string
// List of Tunnel_status_label
const (
- TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned"
- TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active"
+ TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned"
+ TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active"
TUNNELSTATUSLABEL_DISABLED TunnelStatusLabel = "Disabled"
)
@@ -110,4 +110,3 @@ func (v *NullableTunnelStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go
index 479cde576..c09633d67 100644
--- a/model_tunnel_termination.go
+++ b/model_tunnel_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the TunnelTermination type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,20 @@ var _ MappedNullable = &TunnelTermination{}
// TunnelTermination Adds support for custom fields and tags.
type TunnelTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Tunnel BriefTunnel `json:"tunnel"`
- Role TunnelTerminationRole `json:"role"`
- TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- Termination interface{} `json:"termination,omitempty"`
- OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Tunnel BriefTunnel `json:"tunnel"`
+ Role TunnelTerminationRole `json:"role"`
+ TerminationType string `json:"termination_type"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ Termination interface{} `json:"termination,omitempty"`
+ OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *TunnelTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *TunnelTermination) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *TunnelTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *TunnelTermination) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +167,6 @@ func (o *TunnelTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetTunnel returns the Tunnel field value
func (o *TunnelTermination) GetTunnel() BriefTunnel {
if o == nil {
@@ -194,7 +191,6 @@ func (o *TunnelTermination) SetTunnel(v BriefTunnel) {
o.Tunnel = v
}
-
// GetRole returns the Role field value
func (o *TunnelTermination) GetRole() TunnelTerminationRole {
if o == nil {
@@ -219,7 +215,6 @@ func (o *TunnelTermination) SetRole(v TunnelTerminationRole) {
o.Role = v
}
-
// GetTerminationType returns the TerminationType field value
func (o *TunnelTermination) GetTerminationType() string {
if o == nil {
@@ -244,7 +239,6 @@ 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()) {
@@ -277,6 +271,7 @@ func (o *TunnelTermination) HasTerminationId() bool {
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)
@@ -352,6 +347,7 @@ func (o *TunnelTermination) HasOutsideIp() bool {
func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) {
o.OutsideIp.Set(&v)
}
+
// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
func (o *TunnelTermination) SetOutsideIpNil() {
o.OutsideIp.Set(nil)
@@ -458,6 +454,7 @@ func (o *TunnelTermination) HasCreated() bool {
func (o *TunnelTermination) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *TunnelTermination) SetCreatedNil() {
o.Created.Set(nil)
@@ -500,6 +497,7 @@ func (o *TunnelTermination) HasLastUpdated() bool {
func (o *TunnelTermination) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *TunnelTermination) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -511,7 +509,7 @@ func (o *TunnelTermination) UnsetLastUpdated() {
}
func (o TunnelTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -573,32 +571,31 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -670,5 +667,3 @@ func (v *NullableTunnelTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go
index 6359a5795..9fbdca4f1 100644
--- a/model_tunnel_termination_request.go
+++ b/model_tunnel_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &TunnelTerminationRequest{}
// TunnelTerminationRequest Adds support for custom fields and tags.
type TunnelTerminationRequest struct {
- Tunnel BriefTunnelRequest `json:"tunnel"`
- Role PatchedWritableTunnelTerminationRequestRole `json:"role"`
- TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tunnel PatchedWritableTunnelTerminationRequestTunnel `json:"tunnel"`
+ Role PatchedWritableTunnelTerminationRequestRole `json:"role"`
+ TerminationType string `json:"termination_type"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ OutsideIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"outside_ip,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _TunnelTerminationRequest TunnelTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string) *TunnelTerminationRequest {
+func NewTunnelTerminationRequest(tunnel PatchedWritableTunnelTerminationRequestTunnel, role PatchedWritableTunnelTerminationRequestRole, terminationType string) *TunnelTerminationRequest {
this := TunnelTerminationRequest{}
this.Tunnel = tunnel
this.Role = role
@@ -53,9 +53,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest {
}
// GetTunnel returns the Tunnel field value
-func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest {
+func (o *TunnelTerminationRequest) GetTunnel() PatchedWritableTunnelTerminationRequestTunnel {
if o == nil {
- var ret BriefTunnelRequest
+ var ret PatchedWritableTunnelTerminationRequestTunnel
return ret
}
@@ -64,7 +64,7 @@ func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest {
// GetTunnelOk returns a tuple with the Tunnel field value
// and a boolean to check if the value has been set.
-func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) {
+func (o *TunnelTerminationRequest) GetTunnelOk() (*PatchedWritableTunnelTerminationRequestTunnel, bool) {
if o == nil {
return nil, false
}
@@ -72,11 +72,10 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) {
}
// SetTunnel sets field value
-func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) {
+func (o *TunnelTerminationRequest) SetTunnel(v PatchedWritableTunnelTerminationRequestTunnel) {
o.Tunnel = v
}
-
// GetRole returns the Role field value
func (o *TunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
if o == nil {
@@ -101,7 +100,6 @@ func (o *TunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationReq
o.Role = v
}
-
// GetTerminationType returns the TerminationType field value
func (o *TunnelTerminationRequest) GetTerminationType() string {
if o == nil {
@@ -126,7 +124,6 @@ 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()) {
@@ -159,6 +156,7 @@ func (o *TunnelTerminationRequest) HasTerminationId() bool {
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)
@@ -170,9 +168,9 @@ func (o *TunnelTerminationRequest) UnsetTerminationId() {
}
// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest {
+func (o *TunnelTerminationRequest) GetOutsideIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OutsideIp.Get()
@@ -181,7 +179,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest {
// 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() (*BriefIPAddressRequest, bool) {
+func (o *TunnelTerminationRequest) GetOutsideIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -197,10 +195,11 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field.
-func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) {
+// SetOutsideIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OutsideIp field.
+func (o *TunnelTerminationRequest) SetOutsideIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OutsideIp.Set(&v)
}
+
// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
func (o *TunnelTerminationRequest) SetOutsideIpNil() {
o.OutsideIp.Set(nil)
@@ -276,7 +275,7 @@ func (o *TunnelTerminationRequest) SetCustomFields(v map[string]interface{}) {
}
func (o TunnelTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -320,32 +319,31 @@ func (o *TunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -410,5 +408,3 @@ func (v *NullableTunnelTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go
index 29312fa90..c9f2eca4d 100644
--- a/model_tunnel_termination_role.go
+++ b/model_tunnel_termination_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelTerminationRole{}
// TunnelTerminationRole struct for TunnelTerminationRole
type TunnelTerminationRole struct {
- Value *PatchedWritableTunnelTerminationRequestRole `json:"value,omitempty"`
- Label *TunnelTerminationRoleLabel `json:"label,omitempty"`
+ Value *PatchedWritableTunnelTerminationRequestRole `json:"value,omitempty"`
+ Label *TunnelTerminationRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *TunnelTerminationRole) SetLabel(v TunnelTerminationRoleLabel) {
}
func (o TunnelTerminationRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableTunnelTerminationRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go
index 64c880530..56d9cccb8 100644
--- a/model_tunnel_termination_role_label.go
+++ b/model_tunnel_termination_role_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ type TunnelTerminationRoleLabel string
// List of TunnelTermination_role_label
const (
- TUNNELTERMINATIONROLELABEL_PEER TunnelTerminationRoleLabel = "Peer"
- TUNNELTERMINATIONROLELABEL_HUB TunnelTerminationRoleLabel = "Hub"
+ TUNNELTERMINATIONROLELABEL_PEER TunnelTerminationRoleLabel = "Peer"
+ TUNNELTERMINATIONROLELABEL_HUB TunnelTerminationRoleLabel = "Hub"
TUNNELTERMINATIONROLELABEL_SPOKE TunnelTerminationRoleLabel = "Spoke"
)
@@ -110,4 +110,3 @@ 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 cba872de9..5d1c8dbbf 100644
--- a/model_user.go
+++ b/model_user.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the User type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &User{}
// User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type User struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
+ Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
FirstName *string `json:"first_name,omitempty"`
- LastName *string `json:"last_name,omitempty"`
- Email *string `json:"email,omitempty"`
+ LastName *string `json:"last_name,omitempty"`
+ Email *string `json:"email,omitempty"`
// Designates whether the user can log into this admin site.
IsStaff *bool `json:"is_staff,omitempty"`
// Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
- IsActive *bool `json:"is_active,omitempty"`
- DateJoined *time.Time `json:"date_joined,omitempty"`
- LastLogin NullableTime `json:"last_login,omitempty"`
- Groups []Group `json:"groups,omitempty"`
- Permissions []ObjectPermission `json:"permissions,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ DateJoined *time.Time `json:"date_joined,omitempty"`
+ LastLogin NullableTime `json:"last_login,omitempty"`
+ Groups []Group `json:"groups,omitempty"`
+ Permissions []ObjectPermission `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,7 +88,6 @@ func (o *User) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *User) GetUrl() string {
if o == nil {
@@ -113,7 +112,6 @@ func (o *User) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *User) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -170,7 +168,6 @@ func (o *User) SetDisplay(v string) {
o.Display = v
}
-
// GetUsername returns the Username field value
func (o *User) GetUsername() string {
if o == nil {
@@ -195,7 +192,6 @@ func (o *User) SetUsername(v string) {
o.Username = v
}
-
// GetFirstName returns the FirstName field value if set, zero value otherwise.
func (o *User) GetFirstName() string {
if o == nil || IsNil(o.FirstName) {
@@ -420,6 +416,7 @@ func (o *User) HasLastLogin() bool {
func (o *User) SetLastLogin(v time.Time) {
o.LastLogin.Set(&v)
}
+
// SetLastLoginNil sets the value for LastLogin to be an explicit nil
func (o *User) SetLastLoginNil() {
o.LastLogin.Set(nil)
@@ -495,7 +492,7 @@ func (o *User) SetPermissions(v []ObjectPermission) {
}
func (o User) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -559,32 +556,31 @@ func (o *User) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -656,5 +652,3 @@ func (v *NullableUser) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_user_request.go b/model_user_request.go
index 45b6c1d09..bff35b64d 100644
--- a/model_user_request.go
+++ b/model_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the UserRequest type satisfies the MappedNullable interface at compile time
@@ -22,19 +22,19 @@ var _ MappedNullable = &UserRequest{}
// UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type UserRequest struct {
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
- Password string `json:"password"`
+ Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"`
+ Password string `json:"password"`
FirstName *string `json:"first_name,omitempty"`
- LastName *string `json:"last_name,omitempty"`
- Email *string `json:"email,omitempty"`
+ LastName *string `json:"last_name,omitempty"`
+ Email *string `json:"email,omitempty"`
// Designates whether the user can log into this admin site.
IsStaff *bool `json:"is_staff,omitempty"`
// Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
- IsActive *bool `json:"is_active,omitempty"`
- DateJoined *time.Time `json:"date_joined,omitempty"`
- LastLogin NullableTime `json:"last_login,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Permissions []int32 `json:"permissions,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ DateJoined *time.Time `json:"date_joined,omitempty"`
+ LastLogin NullableTime `json:"last_login,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Permissions []int32 `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *UserRequest) SetUsername(v string) {
o.Username = v
}
-
// GetPassword returns the Password field value
func (o *UserRequest) GetPassword() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *UserRequest) SetPassword(v string) {
o.Password = v
}
-
// GetFirstName returns the FirstName field value if set, zero value otherwise.
func (o *UserRequest) GetFirstName() string {
if o == nil || IsNil(o.FirstName) {
@@ -333,6 +331,7 @@ func (o *UserRequest) HasLastLogin() bool {
func (o *UserRequest) SetLastLogin(v time.Time) {
o.LastLogin.Set(&v)
}
+
// SetLastLoginNil sets the value for LastLogin to be an explicit nil
func (o *UserRequest) SetLastLoginNil() {
o.LastLogin.Set(nil)
@@ -408,7 +407,7 @@ func (o *UserRequest) SetPermissions(v []int32) {
}
func (o UserRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -465,32 +464,31 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -559,5 +557,3 @@ func (v *NullableUserRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go
index 504ee49e4..596e17542 100644
--- a/model_virtual_chassis.go
+++ b/model_virtual_chassis.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualChassis type satisfies the MappedNullable interface at compile time
@@ -21,21 +21,21 @@ var _ MappedNullable = &VirtualChassis{}
// VirtualChassis Adds support for custom fields and tags.
type VirtualChassis struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Domain *string `json:"domain,omitempty"`
- Master NullableNestedDevice `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- MemberCount *int32 `json:"member_count,omitempty"`
- Members []NestedDevice `json:"members"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Domain *string `json:"domain,omitempty"`
+ Master NullableNestedDevice `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ MemberCount *int32 `json:"member_count,omitempty"`
+ Members []NestedDevice `json:"members"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *VirtualChassis) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualChassis) GetUrl() string {
if o == nil {
@@ -112,7 +111,6 @@ func (o *VirtualChassis) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualChassis) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +167,6 @@ func (o *VirtualChassis) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VirtualChassis) GetName() string {
if o == nil {
@@ -194,7 +191,6 @@ func (o *VirtualChassis) SetName(v string) {
o.Name = v
}
-
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *VirtualChassis) GetDomain() string {
if o == nil || IsNil(o.Domain) {
@@ -259,6 +255,7 @@ func (o *VirtualChassis) HasMaster() bool {
func (o *VirtualChassis) SetMaster(v NestedDevice) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *VirtualChassis) SetMasterNil() {
o.Master.Set(nil)
@@ -429,6 +426,7 @@ func (o *VirtualChassis) HasCreated() bool {
func (o *VirtualChassis) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualChassis) SetCreatedNil() {
o.Created.Set(nil)
@@ -471,6 +469,7 @@ func (o *VirtualChassis) HasLastUpdated() bool {
func (o *VirtualChassis) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualChassis) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -537,9 +536,8 @@ func (o *VirtualChassis) SetMembers(v []NestedDevice) {
o.Members = v
}
-
func (o VirtualChassis) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -605,32 +603,31 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -703,5 +700,3 @@ func (v *NullableVirtualChassis) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go
index 12637efef..ccd55c5b0 100644
--- a/model_virtual_chassis_request.go
+++ b/model_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &VirtualChassisRequest{}
// VirtualChassisRequest Adds support for custom fields and tags.
type VirtualChassisRequest struct {
- Name string `json:"name"`
- Domain *string `json:"domain,omitempty"`
- Master NullableNestedDeviceRequest `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Domain *string `json:"domain,omitempty"`
+ Master NullableNestedDeviceRequest `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *VirtualChassisRequest) SetName(v string) {
o.Name = v
}
-
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *VirtualChassisRequest) GetDomain() string {
if o == nil || IsNil(o.Domain) {
@@ -139,6 +138,7 @@ func (o *VirtualChassisRequest) HasMaster() bool {
func (o *VirtualChassisRequest) SetMaster(v NestedDeviceRequest) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *VirtualChassisRequest) SetMasterNil() {
o.Master.Set(nil)
@@ -278,7 +278,7 @@ func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -324,32 +324,31 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -414,5 +413,3 @@ func (v *NullableVirtualChassisRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit.go b/model_virtual_circuit.go
index 1e2cf8f5d..82777d5bc 100644
--- a/model_virtual_circuit.go
+++ b/model_virtual_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualCircuit type satisfies the MappedNullable interface at compile time
@@ -21,23 +21,23 @@ var _ MappedNullable = &VirtualCircuit{}
// VirtualCircuit Adds support for custom fields and tags.
type VirtualCircuit struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
+ Display string `json:"display"`
// Unique circuit ID
- Cid string `json:"cid"`
- ProviderNetwork BriefProviderNetwork `json:"provider_network"`
- ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"`
- Type BriefVirtualCircuitType `json:"type"`
- Status *CircuitStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Cid string `json:"cid"`
+ ProviderNetwork BriefProviderNetwork `json:"provider_network"`
+ ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"`
+ Type BriefVirtualCircuitType `json:"type"`
+ Status *CircuitStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -90,7 +90,6 @@ func (o *VirtualCircuit) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualCircuit) GetUrl() string {
if o == nil {
@@ -115,7 +114,6 @@ func (o *VirtualCircuit) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualCircuit) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -172,7 +170,6 @@ func (o *VirtualCircuit) SetDisplay(v string) {
o.Display = v
}
-
// GetCid returns the Cid field value
func (o *VirtualCircuit) GetCid() string {
if o == nil {
@@ -197,7 +194,6 @@ func (o *VirtualCircuit) SetCid(v string) {
o.Cid = v
}
-
// GetProviderNetwork returns the ProviderNetwork field value
func (o *VirtualCircuit) GetProviderNetwork() BriefProviderNetwork {
if o == nil {
@@ -222,7 +218,6 @@ func (o *VirtualCircuit) SetProviderNetwork(v BriefProviderNetwork) {
o.ProviderNetwork = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VirtualCircuit) GetProviderAccount() BriefProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
@@ -255,6 +250,7 @@ func (o *VirtualCircuit) HasProviderAccount() bool {
func (o *VirtualCircuit) SetProviderAccount(v BriefProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *VirtualCircuit) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -289,7 +285,6 @@ func (o *VirtualCircuit) SetType(v BriefVirtualCircuitType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *VirtualCircuit) GetStatus() CircuitStatus {
if o == nil || IsNil(o.Status) {
@@ -354,6 +349,7 @@ func (o *VirtualCircuit) HasTenant() bool {
func (o *VirtualCircuit) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualCircuit) SetTenantNil() {
o.Tenant.Set(nil)
@@ -524,6 +520,7 @@ func (o *VirtualCircuit) HasCreated() bool {
func (o *VirtualCircuit) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualCircuit) SetCreatedNil() {
o.Created.Set(nil)
@@ -566,6 +563,7 @@ func (o *VirtualCircuit) HasLastUpdated() bool {
func (o *VirtualCircuit) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualCircuit) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -577,7 +575,7 @@ func (o *VirtualCircuit) UnsetLastUpdated() {
}
func (o VirtualCircuit) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -645,32 +643,31 @@ func (o *VirtualCircuit) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -744,5 +741,3 @@ func (v *NullableVirtualCircuit) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit_request.go b/model_virtual_circuit_request.go
index 7a3794fe4..f5bf237c1 100644
--- a/model_virtual_circuit_request.go
+++ b/model_virtual_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,16 +21,16 @@ var _ MappedNullable = &VirtualCircuitRequest{}
// VirtualCircuitRequest Adds support for custom fields and tags.
type VirtualCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type BriefVirtualCircuitTypeRequest `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Cid string `json:"cid"`
+ ProviderNetwork BriefVirtualCircuitRequestProviderNetwork `json:"provider_network"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type PatchedWritableVirtualCircuitRequestType `json:"type"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _VirtualCircuitRequest VirtualCircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest) *VirtualCircuitRequest {
+func NewVirtualCircuitRequest(cid string, providerNetwork BriefVirtualCircuitRequestProviderNetwork, type_ PatchedWritableVirtualCircuitRequestType) *VirtualCircuitRequest {
this := VirtualCircuitRequest{}
this.Cid = cid
this.ProviderNetwork = providerNetwork
@@ -80,11 +80,10 @@ func (o *VirtualCircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProviderNetwork returns the ProviderNetwork field value
-func (o *VirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest {
+func (o *VirtualCircuitRequest) GetProviderNetwork() BriefVirtualCircuitRequestProviderNetwork {
if o == nil {
- var ret BriefProviderNetworkRequest
+ var ret BriefVirtualCircuitRequestProviderNetwork
return ret
}
@@ -93,7 +92,7 @@ func (o *VirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value
// and a boolean to check if the value has been set.
-func (o *VirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) {
+func (o *VirtualCircuitRequest) GetProviderNetworkOk() (*BriefVirtualCircuitRequestProviderNetwork, bool) {
if o == nil {
return nil, false
}
@@ -101,15 +100,14 @@ func (o *VirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkReq
}
// SetProviderNetwork sets field value
-func (o *VirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) {
+func (o *VirtualCircuitRequest) SetProviderNetwork(v BriefVirtualCircuitRequestProviderNetwork) {
o.ProviderNetwork = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *VirtualCircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -118,7 +116,7 @@ func (o *VirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *VirtualCircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -134,10 +132,11 @@ func (o *VirtualCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *VirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *VirtualCircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *VirtualCircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -149,9 +148,9 @@ func (o *VirtualCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value
-func (o *VirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest {
+func (o *VirtualCircuitRequest) GetType() PatchedWritableVirtualCircuitRequestType {
if o == nil {
- var ret BriefVirtualCircuitTypeRequest
+ var ret PatchedWritableVirtualCircuitRequestType
return ret
}
@@ -160,7 +159,7 @@ func (o *VirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *VirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) {
+func (o *VirtualCircuitRequest) GetTypeOk() (*PatchedWritableVirtualCircuitRequestType, bool) {
if o == nil {
return nil, false
}
@@ -168,11 +167,10 @@ func (o *VirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bo
}
// SetType sets field value
-func (o *VirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) {
+func (o *VirtualCircuitRequest) SetType(v PatchedWritableVirtualCircuitRequestType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *VirtualCircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
@@ -206,9 +204,9 @@ func (o *VirtualCircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualCircuitRequest) GetTenant() BriefTenantRequest {
+func (o *VirtualCircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -217,7 +215,7 @@ func (o *VirtualCircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *VirtualCircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +231,11 @@ func (o *VirtualCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *VirtualCircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VirtualCircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualCircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -376,7 +375,7 @@ func (o *VirtualCircuitRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VirtualCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -429,32 +428,31 @@ func (o *VirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -522,5 +520,3 @@ func (v *NullableVirtualCircuitRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit_termination.go b/model_virtual_circuit_termination.go
index 9a6b0ca43..2b238798c 100644
--- a/model_virtual_circuit_termination.go
+++ b/model_virtual_circuit_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualCircuitTermination type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &VirtualCircuitTermination{}
// VirtualCircuitTermination Adds support for custom fields and tags.
type VirtualCircuitTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- VirtualCircuit BriefVirtualCircuit `json:"virtual_circuit"`
- Role *TunnelTerminationRole `json:"role,omitempty"`
- Interface BriefInterface `json:"interface"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ VirtualCircuit BriefVirtualCircuit `json:"virtual_circuit"`
+ Role *TunnelTerminationRole `json:"role,omitempty"`
+ Interface BriefInterface `json:"interface"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -84,7 +84,6 @@ func (o *VirtualCircuitTermination) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualCircuitTermination) GetUrl() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *VirtualCircuitTermination) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualCircuitTermination) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -166,7 +164,6 @@ func (o *VirtualCircuitTermination) SetDisplay(v string) {
o.Display = v
}
-
// GetVirtualCircuit returns the VirtualCircuit field value
func (o *VirtualCircuitTermination) GetVirtualCircuit() BriefVirtualCircuit {
if o == nil {
@@ -191,7 +188,6 @@ func (o *VirtualCircuitTermination) SetVirtualCircuit(v BriefVirtualCircuit) {
o.VirtualCircuit = v
}
-
// GetRole returns the Role field value if set, zero value otherwise.
func (o *VirtualCircuitTermination) GetRole() TunnelTerminationRole {
if o == nil || IsNil(o.Role) {
@@ -248,7 +244,6 @@ func (o *VirtualCircuitTermination) SetInterface(v BriefInterface) {
o.Interface = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VirtualCircuitTermination) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -377,6 +372,7 @@ func (o *VirtualCircuitTermination) HasCreated() bool {
func (o *VirtualCircuitTermination) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualCircuitTermination) SetCreatedNil() {
o.Created.Set(nil)
@@ -419,6 +415,7 @@ func (o *VirtualCircuitTermination) HasLastUpdated() bool {
func (o *VirtualCircuitTermination) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualCircuitTermination) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -430,7 +427,7 @@ func (o *VirtualCircuitTermination) UnsetLastUpdated() {
}
func (o VirtualCircuitTermination) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -487,32 +484,31 @@ func (o *VirtualCircuitTermination) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -582,5 +578,3 @@ func (v *NullableVirtualCircuitTermination) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit_termination_request.go b/model_virtual_circuit_termination_request.go
index 9b85dcf21..6786252a9 100644
--- a/model_virtual_circuit_termination_request.go
+++ b/model_virtual_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualCircuitTerminationRequest{}
// VirtualCircuitTerminationRequest Adds support for custom fields and tags.
type VirtualCircuitTerminationRequest struct {
- VirtualCircuit BriefVirtualCircuitRequest `json:"virtual_circuit"`
- Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
- Interface BriefInterfaceRequest `json:"interface"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualCircuit PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit `json:"virtual_circuit"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ Interface PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -35,7 +35,7 @@ type _VirtualCircuitTerminationRequest VirtualCircuitTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest) *VirtualCircuitTerminationRequest {
+func NewVirtualCircuitTerminationRequest(virtualCircuit PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit, interface_ PatchedWritableVirtualCircuitTerminationRequestInterface) *VirtualCircuitTerminationRequest {
this := VirtualCircuitTerminationRequest{}
this.VirtualCircuit = virtualCircuit
this.Interface = interface_
@@ -51,9 +51,9 @@ func NewVirtualCircuitTerminationRequestWithDefaults() *VirtualCircuitTerminatio
}
// GetVirtualCircuit returns the VirtualCircuit field value
-func (o *VirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest {
+func (o *VirtualCircuitTerminationRequest) GetVirtualCircuit() PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
if o == nil {
- var ret BriefVirtualCircuitRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
return ret
}
@@ -62,7 +62,7 @@ func (o *VirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircu
// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value
// and a boolean to check if the value has been set.
-func (o *VirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) {
+func (o *VirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *VirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualC
}
// SetVirtualCircuit sets field value
-func (o *VirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) {
+func (o *VirtualCircuitTerminationRequest) SetVirtualCircuit(v PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) {
o.VirtualCircuit = v
}
-
// GetRole returns the Role field value if set, zero value otherwise.
func (o *VirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
if o == nil || IsNil(o.Role) {
@@ -108,9 +107,9 @@ func (o *VirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTermin
}
// GetInterface returns the Interface field value
-func (o *VirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest {
+func (o *VirtualCircuitTerminationRequest) GetInterface() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -119,7 +118,7 @@ func (o *VirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest
// GetInterfaceOk returns a tuple with the Interface field value
// and a boolean to check if the value has been set.
-func (o *VirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) {
+func (o *VirtualCircuitTerminationRequest) GetInterfaceOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -127,11 +126,10 @@ func (o *VirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequ
}
// SetInterface sets field value
-func (o *VirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) {
+func (o *VirtualCircuitTerminationRequest) SetInterface(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.Interface = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VirtualCircuitTerminationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -229,7 +227,7 @@ func (o *VirtualCircuitTerminationRequest) SetCustomFields(v map[string]interfac
}
func (o VirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *VirtualCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableVirtualCircuitTerminationRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit_type.go b/model_virtual_circuit_type.go
index e5f1f7b9f..c734dd4cf 100644
--- a/model_virtual_circuit_type.go
+++ b/model_virtual_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualCircuitType type satisfies the MappedNullable interface at compile time
@@ -21,19 +21,19 @@ var _ MappedNullable = &VirtualCircuitType{}
// VirtualCircuitType Adds support for custom fields and tags.
type VirtualCircuitType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- VirtualCircuitCount int64 `json:"virtual_circuit_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ VirtualCircuitCount int64 `json:"virtual_circuit_count"`
AdditionalProperties map[string]interface{}
}
@@ -86,7 +86,6 @@ func (o *VirtualCircuitType) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualCircuitType) GetUrl() string {
if o == nil {
@@ -111,7 +110,6 @@ func (o *VirtualCircuitType) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualCircuitType) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -168,7 +166,6 @@ func (o *VirtualCircuitType) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VirtualCircuitType) GetName() string {
if o == nil {
@@ -193,7 +190,6 @@ func (o *VirtualCircuitType) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *VirtualCircuitType) GetSlug() string {
if o == nil {
@@ -218,7 +214,6 @@ func (o *VirtualCircuitType) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *VirtualCircuitType) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -379,6 +374,7 @@ func (o *VirtualCircuitType) HasCreated() bool {
func (o *VirtualCircuitType) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualCircuitType) SetCreatedNil() {
o.Created.Set(nil)
@@ -421,6 +417,7 @@ func (o *VirtualCircuitType) HasLastUpdated() bool {
func (o *VirtualCircuitType) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualCircuitType) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -455,9 +452,8 @@ func (o *VirtualCircuitType) SetVirtualCircuitCount(v int64) {
o.VirtualCircuitCount = v
}
-
func (o VirtualCircuitType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -516,32 +512,31 @@ func (o *VirtualCircuitType) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -612,5 +607,3 @@ func (v *NullableVirtualCircuitType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_circuit_type_request.go b/model_virtual_circuit_type_request.go
index 81a9bc600..aeab735a3 100644
--- a/model_virtual_circuit_type_request.go
+++ b/model_virtual_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualCircuitTypeRequest{}
// VirtualCircuitTypeRequest Adds support for custom fields and tags.
type VirtualCircuitTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *VirtualCircuitTypeRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *VirtualCircuitTypeRequest) GetSlug() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *VirtualCircuitTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *VirtualCircuitTypeRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -229,7 +227,7 @@ func (o *VirtualCircuitTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *VirtualCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableVirtualCircuitTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go
index 29492e159..268adfe09 100644
--- a/model_virtual_device_context.go
+++ b/model_virtual_device_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualDeviceContext type satisfies the MappedNullable interface at compile time
@@ -21,25 +21,25 @@ var _ MappedNullable = &VirtualDeviceContext{}
// VirtualDeviceContext Adds support for custom fields and tags.
type VirtualDeviceContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Device BriefDevice `json:"device"`
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
- PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
- Status VirtualDeviceContextStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- InterfaceCount *int64 `json:"interface_count,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Device BriefDevice `json:"device"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
+ PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
+ Status VirtualDeviceContextStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ InterfaceCount *int64 `json:"interface_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -92,7 +92,6 @@ func (o *VirtualDeviceContext) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualDeviceContext) GetUrl() string {
if o == nil {
@@ -117,7 +116,6 @@ func (o *VirtualDeviceContext) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualDeviceContext) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -174,7 +172,6 @@ func (o *VirtualDeviceContext) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VirtualDeviceContext) GetName() string {
if o == nil {
@@ -199,7 +196,6 @@ func (o *VirtualDeviceContext) SetName(v string) {
o.Name = v
}
-
// GetDevice returns the Device field value
func (o *VirtualDeviceContext) GetDevice() BriefDevice {
if o == nil {
@@ -224,7 +220,6 @@ func (o *VirtualDeviceContext) SetDevice(v BriefDevice) {
o.Device = v
}
-
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VirtualDeviceContext) GetIdentifier() int32 {
if o == nil || IsNil(o.Identifier.Get()) {
@@ -257,6 +252,7 @@ func (o *VirtualDeviceContext) HasIdentifier() bool {
func (o *VirtualDeviceContext) SetIdentifier(v int32) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *VirtualDeviceContext) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -299,6 +295,7 @@ func (o *VirtualDeviceContext) HasTenant() bool {
func (o *VirtualDeviceContext) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualDeviceContext) SetTenantNil() {
o.Tenant.Set(nil)
@@ -341,6 +338,7 @@ func (o *VirtualDeviceContext) HasPrimaryIp() bool {
func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) {
o.PrimaryIp.Set(&v)
}
+
// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil
func (o *VirtualDeviceContext) SetPrimaryIpNil() {
o.PrimaryIp.Set(nil)
@@ -383,6 +381,7 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool {
func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *VirtualDeviceContext) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -425,6 +424,7 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool {
func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *VirtualDeviceContext) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -459,7 +459,6 @@ func (o *VirtualDeviceContext) SetStatus(v VirtualDeviceContextStatus) {
o.Status = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VirtualDeviceContext) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -620,6 +619,7 @@ func (o *VirtualDeviceContext) HasCreated() bool {
func (o *VirtualDeviceContext) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualDeviceContext) SetCreatedNil() {
o.Created.Set(nil)
@@ -662,6 +662,7 @@ func (o *VirtualDeviceContext) HasLastUpdated() bool {
func (o *VirtualDeviceContext) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualDeviceContext) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -705,7 +706,7 @@ func (o *VirtualDeviceContext) SetInterfaceCount(v int64) {
}
func (o VirtualDeviceContext) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -782,32 +783,31 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -884,5 +884,3 @@ func (v *NullableVirtualDeviceContext) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go
index 820906b12..90d87cb22 100644
--- a/model_virtual_device_context_request.go
+++ b/model_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &VirtualDeviceContextRequest{}
// VirtualDeviceContextRequest Adds support for custom fields and tags.
type VirtualDeviceContextRequest struct {
- Name string `json:"name"`
- Device BriefDeviceRequest `json:"device"`
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest {
+func NewVirtualDeviceContextRequest(name string, device BriefInterfaceRequestDevice, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest {
this := VirtualDeviceContextRequest{}
this.Name = name
this.Device = device
@@ -80,11 +80,10 @@ func (o *VirtualDeviceContextRequest) SetName(v string) {
o.Name = v
}
-
// GetDevice returns the Device field value
-func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest {
+func (o *VirtualDeviceContextRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -93,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -101,11 +100,10 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)
}
// SetDevice sets field value
-func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) {
+func (o *VirtualDeviceContextRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VirtualDeviceContextRequest) GetIdentifier() int32 {
if o == nil || IsNil(o.Identifier.Get()) {
@@ -138,6 +136,7 @@ func (o *VirtualDeviceContextRequest) HasIdentifier() bool {
func (o *VirtualDeviceContextRequest) SetIdentifier(v int32) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *VirtualDeviceContextRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -149,9 +148,9 @@ func (o *VirtualDeviceContextRequest) UnsetIdentifier() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest {
+func (o *VirtualDeviceContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -160,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -176,10 +175,11 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VirtualDeviceContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualDeviceContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -218,10 +218,11 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *VirtualDeviceContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -233,9 +234,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -244,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -260,10 +261,11 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *VirtualDeviceContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -298,7 +300,6 @@ func (o *VirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceCo
o.Status = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VirtualDeviceContextRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -428,7 +429,7 @@ func (o *VirtualDeviceContextRequest) SetCustomFields(v map[string]interface{})
}
func (o VirtualDeviceContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -484,32 +485,31 @@ func (o *VirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -578,5 +578,3 @@ func (v *NullableVirtualDeviceContextRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go
index 362e528e4..9e5828a63 100644
--- a/model_virtual_device_context_status.go
+++ b/model_virtual_device_context_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &VirtualDeviceContextStatus{}
// VirtualDeviceContextStatus struct for VirtualDeviceContextStatus
type VirtualDeviceContextStatus struct {
- Value *PatchedWritableVirtualDeviceContextRequestStatus `json:"value,omitempty"`
- Label *VirtualDeviceContextStatusLabel `json:"label,omitempty"`
+ Value *PatchedWritableVirtualDeviceContextRequestStatus `json:"value,omitempty"`
+ Label *VirtualDeviceContextStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *VirtualDeviceContextStatus) SetLabel(v VirtualDeviceContextStatusLabel)
}
func (o VirtualDeviceContextStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableVirtualDeviceContextStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go
index 82fb7dd38..8eac957be 100644
--- a/model_virtual_device_context_status_label.go
+++ b/model_virtual_device_context_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type VirtualDeviceContextStatusLabel string
// List of VirtualDeviceContext_status_label
const (
- VIRTUALDEVICECONTEXTSTATUSLABEL_ACTIVE VirtualDeviceContextStatusLabel = "Active"
+ VIRTUALDEVICECONTEXTSTATUSLABEL_ACTIVE VirtualDeviceContextStatusLabel = "Active"
VIRTUALDEVICECONTEXTSTATUSLABEL_PLANNED VirtualDeviceContextStatusLabel = "Planned"
VIRTUALDEVICECONTEXTSTATUSLABEL_OFFLINE VirtualDeviceContextStatusLabel = "Offline"
)
@@ -110,4 +110,3 @@ func (v *NullableVirtualDeviceContextStatusLabel) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_virtual_disk.go b/model_virtual_disk.go
index 528e3be7d..0b4ac08b4 100644
--- a/model_virtual_disk.go
+++ b/model_virtual_disk.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualDisk type satisfies the MappedNullable interface at compile time
@@ -21,18 +21,18 @@ var _ MappedNullable = &VirtualDisk{}
// VirtualDisk Adds support for custom fields and tags.
type VirtualDisk struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- VirtualMachine BriefVirtualMachine `json:"virtual_machine"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Size int32 `json:"size"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ VirtualMachine BriefVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Size int32 `json:"size"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -85,7 +85,6 @@ func (o *VirtualDisk) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualDisk) GetUrl() string {
if o == nil {
@@ -110,7 +109,6 @@ func (o *VirtualDisk) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualDisk) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -167,7 +165,6 @@ func (o *VirtualDisk) SetDisplay(v string) {
o.Display = v
}
-
// GetVirtualMachine returns the VirtualMachine field value
func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine {
if o == nil {
@@ -192,7 +189,6 @@ func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *VirtualDisk) GetName() string {
if o == nil {
@@ -217,7 +213,6 @@ 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) {
@@ -274,7 +269,6 @@ 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) {
@@ -371,6 +365,7 @@ func (o *VirtualDisk) HasCreated() bool {
func (o *VirtualDisk) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualDisk) SetCreatedNil() {
o.Created.Set(nil)
@@ -413,6 +408,7 @@ func (o *VirtualDisk) HasLastUpdated() bool {
func (o *VirtualDisk) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualDisk) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -424,7 +420,7 @@ func (o *VirtualDisk) UnsetLastUpdated() {
}
func (o VirtualDisk) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -480,32 +476,31 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -575,5 +570,3 @@ func (v *NullableVirtualDisk) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go
index ef81b8541..8f8c10e12 100644
--- a/model_virtual_disk_request.go
+++ b/model_virtual_disk_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{}
// VirtualDiskRequest Adds support for custom fields and tags.
type VirtualDiskRequest struct {
- VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Size int32 `json:"size"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualMachine PatchedVirtualDiskRequestVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Size int32 `json:"size"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest {
+func NewVirtualDiskRequest(virtualMachine PatchedVirtualDiskRequestVirtualMachine, name string, size int32) *VirtualDiskRequest {
this := VirtualDiskRequest{}
this.VirtualMachine = virtualMachine
this.Name = name
@@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest {
+func (o *VirtualDiskRequest) GetVirtualMachine() PatchedVirtualDiskRequestVirtualMachine {
if o == nil {
- var ret BriefVirtualMachineRequest
+ var ret PatchedVirtualDiskRequestVirtualMachine
return ret
}
@@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *VirtualDiskRequest) GetVirtualMachineOk() (*PatchedVirtualDiskRequestVirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -71,11 +71,10 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest,
}
// SetVirtualMachine sets field value
-func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
+func (o *VirtualDiskRequest) SetVirtualMachine(v PatchedVirtualDiskRequestVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *VirtualDiskRequest) GetName() string {
if o == nil {
@@ -100,7 +99,6 @@ 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) {
@@ -157,7 +155,6 @@ 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) {
@@ -223,7 +220,7 @@ func (o *VirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VirtualDiskRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -264,32 +261,31 @@ func (o *VirtualDiskRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -353,5 +349,3 @@ 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 5e4bf9a59..48624aa07 100644
--- a/model_virtual_machine_with_config_context.go
+++ b/model_virtual_machine_with_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VirtualMachineWithConfigContext type satisfies the MappedNullable interface at compile time
@@ -21,37 +21,37 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{}
// VirtualMachineWithConfigContext Adds support for custom fields and tags.
type VirtualMachineWithConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Status *InventoryItemStatus `json:"status,omitempty"`
- Site NullableBriefSite `json:"site,omitempty"`
- Cluster NullableBriefCluster `json:"cluster,omitempty"`
- Device NullableBriefDevice `json:"device,omitempty"`
- Serial *string `json:"serial,omitempty"`
- Role NullableBriefDeviceRole `json:"role,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Platform NullableBriefPlatform `json:"platform,omitempty"`
- PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
- PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Status *VirtualMachineWithConfigContextStatus `json:"status,omitempty"`
+ Site NullableBriefSite `json:"site,omitempty"`
+ Cluster NullableBriefCluster `json:"cluster,omitempty"`
+ Device NullableBriefDevice `json:"device,omitempty"`
+ Serial *string `json:"serial,omitempty"`
+ Role NullableBriefDeviceRole `json:"role,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Platform NullableBriefPlatform `json:"platform,omitempty"`
+ PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"`
+ PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"`
+ Vcpus NullableFloat64 `json:"vcpus,omitempty"`
+ Memory NullableInt32 `json:"memory,omitempty"`
+ Disk NullableInt32 `json:"disk,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- ConfigContext interface{} `json:"config_context,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- InterfaceCount *int32 `json:"interface_count,omitempty"`
- VirtualDiskCount int32 `json:"virtual_disk_count"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ConfigContext interface{} `json:"config_context,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ InterfaceCount *int32 `json:"interface_count,omitempty"`
+ VirtualDiskCount int32 `json:"virtual_disk_count"`
AdditionalProperties map[string]interface{}
}
@@ -103,7 +103,6 @@ func (o *VirtualMachineWithConfigContext) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VirtualMachineWithConfigContext) GetUrl() string {
if o == nil {
@@ -128,7 +127,6 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -185,7 +183,6 @@ func (o *VirtualMachineWithConfigContext) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VirtualMachineWithConfigContext) GetName() string {
if o == nil {
@@ -210,11 +207,10 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VirtualMachineWithConfigContext) GetStatus() InventoryItemStatus {
+func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus {
if o == nil || IsNil(o.Status) {
- var ret InventoryItemStatus
+ var ret VirtualMachineWithConfigContextStatus
return ret
}
return *o.Status
@@ -222,7 +218,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() InventoryItemStatus {
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *VirtualMachineWithConfigContext) GetStatusOk() (*InventoryItemStatus, bool) {
+func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -238,8 +234,8 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given InventoryItemStatus and assigns it to the Status field.
-func (o *VirtualMachineWithConfigContext) SetStatus(v InventoryItemStatus) {
+// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field.
+func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) {
o.Status = &v
}
@@ -275,6 +271,7 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool {
func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetSiteNil() {
o.Site.Set(nil)
@@ -317,6 +314,7 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool {
func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetClusterNil() {
o.Cluster.Set(nil)
@@ -359,6 +357,7 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool {
func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) {
o.Device.Set(&v)
}
+
// SetDeviceNil sets the value for Device to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetDeviceNil() {
o.Device.Set(nil)
@@ -433,6 +432,7 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool {
func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetRoleNil() {
o.Role.Set(nil)
@@ -475,6 +475,7 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool {
func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetTenantNil() {
o.Tenant.Set(nil)
@@ -517,6 +518,7 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool {
func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetPlatformNil() {
o.Platform.Set(nil)
@@ -559,6 +561,7 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp() bool {
func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) {
o.PrimaryIp.Set(&v)
}
+
// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetPrimaryIpNil() {
o.PrimaryIp.Set(nil)
@@ -601,6 +604,7 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool {
func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -643,6 +647,7 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool {
func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -685,6 +690,7 @@ func (o *VirtualMachineWithConfigContext) HasVcpus() bool {
func (o *VirtualMachineWithConfigContext) SetVcpus(v float64) {
o.Vcpus.Set(&v)
}
+
// SetVcpusNil sets the value for Vcpus to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetVcpusNil() {
o.Vcpus.Set(nil)
@@ -727,6 +733,7 @@ func (o *VirtualMachineWithConfigContext) HasMemory() bool {
func (o *VirtualMachineWithConfigContext) SetMemory(v int32) {
o.Memory.Set(&v)
}
+
// SetMemoryNil sets the value for Memory to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetMemoryNil() {
o.Memory.Set(nil)
@@ -769,6 +776,7 @@ func (o *VirtualMachineWithConfigContext) HasDisk() bool {
func (o *VirtualMachineWithConfigContext) SetDisk(v int32) {
o.Disk.Set(&v)
}
+
// SetDiskNil sets the value for Disk to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetDiskNil() {
o.Disk.Set(nil)
@@ -875,6 +883,7 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool {
func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1047,6 +1056,7 @@ func (o *VirtualMachineWithConfigContext) HasCreated() bool {
func (o *VirtualMachineWithConfigContext) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetCreatedNil() {
o.Created.Set(nil)
@@ -1089,6 +1099,7 @@ func (o *VirtualMachineWithConfigContext) HasLastUpdated() bool {
func (o *VirtualMachineWithConfigContext) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VirtualMachineWithConfigContext) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -1155,9 +1166,8 @@ func (o *VirtualMachineWithConfigContext) SetVirtualDiskCount(v int32) {
o.VirtualDiskCount = v
}
-
func (o VirtualMachineWithConfigContext) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1268,32 +1278,31 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1381,5 +1390,3 @@ func (v *NullableVirtualMachineWithConfigContext) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go
index 6b2dbd0a8..e09b3ca00 100644
--- a/model_virtual_machine_with_config_context_request.go
+++ b/model_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,27 +20,27 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{}
// VirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type VirtualMachineWithConfigContextRequest struct {
- Name string `json:"name"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- Serial *string `json:"serial,omitempty"`
- Role NullableBriefDeviceRoleRequest `json:"role,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritableVirtualMachineWithConfigContextRequestStatus `json:"status,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ Device NullableDeviceBayRequestInstalledDevice `json:"device,omitempty"`
+ Serial *string `json:"serial,omitempty"`
+ Role NullablePatchedWritableVirtualMachineWithConfigContextRequestRole `json:"role,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Vcpus NullableFloat64 `json:"vcpus,omitempty"`
+ Memory NullableInt32 `json:"memory,omitempty"`
+ Disk NullableInt32 `json:"disk,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,11 +88,10 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue {
+func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableVirtualMachineWithConfigContextRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret InventoryItemStatusValue
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestStatus
return ret
}
return *o.Status
@@ -100,7 +99,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatus
// 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() (*InventoryItemStatusValue, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableVirtualMachineWithConfigContextRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -116,15 +115,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field.
-func (o *VirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableVirtualMachineWithConfigContextRequestStatus and assigns it to the Status field.
+func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableVirtualMachineWithConfigContextRequestStatus) {
o.Status = &v
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -133,7 +132,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -149,10 +148,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *VirtualMachineWithConfigContextRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -164,9 +164,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -175,7 +175,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterReques
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -191,10 +191,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *VirtualMachineWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -206,9 +207,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetCluster() {
}
// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceBayRequestInstalledDevice {
if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+ var ret DeviceBayRequestInstalledDevice
return ret
}
return *o.Device.Get()
@@ -217,7 +218,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceBayRequestInstalledDevice, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +234,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given NullableDeviceBayRequestInstalledDevice and assigns it to the Device field.
+func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceBayRequestInstalledDevice) {
o.Device.Set(&v)
}
+
// SetDeviceNil sets the value for Device to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetDeviceNil() {
o.Device.Set(nil)
@@ -280,9 +282,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetRole() PatchedWritableVirtualMachineWithConfigContextRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefDeviceRoleRequest
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestRole
return ret
}
return *o.Role.Get()
@@ -291,7 +293,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleReques
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*PatchedWritableVirtualMachineWithConfigContextRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -307,10 +309,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field.
-func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableVirtualMachineWithConfigContextRequestRole and assigns it to the Role field.
+func (o *VirtualMachineWithConfigContextRequest) SetRole(v PatchedWritableVirtualMachineWithConfigContextRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -322,9 +325,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetRole() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -333,7 +336,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -349,10 +352,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VirtualMachineWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -364,9 +368,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -375,7 +379,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequ
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -391,10 +395,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -406,9 +411,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPlatform() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -417,7 +422,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressR
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -433,10 +438,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -448,9 +454,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -459,7 +465,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressR
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -475,10 +481,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -521,6 +528,7 @@ func (o *VirtualMachineWithConfigContextRequest) HasVcpus() bool {
func (o *VirtualMachineWithConfigContextRequest) SetVcpus(v float64) {
o.Vcpus.Set(&v)
}
+
// SetVcpusNil sets the value for Vcpus to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetVcpusNil() {
o.Vcpus.Set(nil)
@@ -563,6 +571,7 @@ func (o *VirtualMachineWithConfigContextRequest) HasMemory() bool {
func (o *VirtualMachineWithConfigContextRequest) SetMemory(v int32) {
o.Memory.Set(&v)
}
+
// SetMemoryNil sets the value for Memory to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetMemoryNil() {
o.Memory.Set(nil)
@@ -605,6 +614,7 @@ func (o *VirtualMachineWithConfigContextRequest) HasDisk() bool {
func (o *VirtualMachineWithConfigContextRequest) SetDisk(v int32) {
o.Disk.Set(&v)
}
+
// SetDiskNil sets the value for Disk to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetDiskNil() {
o.Disk.Set(nil)
@@ -680,9 +690,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -691,7 +701,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfig
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -707,10 +717,11 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -819,7 +830,7 @@ func (o *VirtualMachineWithConfigContextRequest) SetCustomFields(v map[string]in
}
func (o VirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -904,32 +915,31 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1007,5 +1017,3 @@ func (v *NullableVirtualMachineWithConfigContextRequest) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_virtual_machine_with_config_context_status.go b/model_virtual_machine_with_config_context_status.go
new file mode 100644
index 000000000..3d4ed033b
--- /dev/null
+++ b/model_virtual_machine_with_config_context_status.go
@@ -0,0 +1,190 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+)
+
+// checks if the VirtualMachineWithConfigContextStatus type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VirtualMachineWithConfigContextStatus{}
+
+// VirtualMachineWithConfigContextStatus struct for VirtualMachineWithConfigContextStatus
+type VirtualMachineWithConfigContextStatus struct {
+ Value *PatchedWritableVirtualMachineWithConfigContextRequestStatus `json:"value,omitempty"`
+ Label *VirtualMachineWithConfigContextStatusLabel `json:"label,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VirtualMachineWithConfigContextStatus VirtualMachineWithConfigContextStatus
+
+// NewVirtualMachineWithConfigContextStatus instantiates a new VirtualMachineWithConfigContextStatus object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewVirtualMachineWithConfigContextStatus() *VirtualMachineWithConfigContextStatus {
+ this := VirtualMachineWithConfigContextStatus{}
+ return &this
+}
+
+// NewVirtualMachineWithConfigContextStatusWithDefaults instantiates a new VirtualMachineWithConfigContextStatus object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVirtualMachineWithConfigContextStatusWithDefaults() *VirtualMachineWithConfigContextStatus {
+ this := VirtualMachineWithConfigContextStatus{}
+ return &this
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *VirtualMachineWithConfigContextStatus) GetValue() PatchedWritableVirtualMachineWithConfigContextRequestStatus {
+ if o == nil || IsNil(o.Value) {
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestStatus
+ return ret
+ }
+ return *o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VirtualMachineWithConfigContextStatus) GetValueOk() (*PatchedWritableVirtualMachineWithConfigContextRequestStatus, bool) {
+ if o == nil || IsNil(o.Value) {
+ return nil, false
+ }
+ return o.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (o *VirtualMachineWithConfigContextStatus) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given PatchedWritableVirtualMachineWithConfigContextRequestStatus and assigns it to the Value field.
+func (o *VirtualMachineWithConfigContextStatus) SetValue(v PatchedWritableVirtualMachineWithConfigContextRequestStatus) {
+ o.Value = &v
+}
+
+// GetLabel returns the Label field value if set, zero value otherwise.
+func (o *VirtualMachineWithConfigContextStatus) GetLabel() VirtualMachineWithConfigContextStatusLabel {
+ if o == nil || IsNil(o.Label) {
+ var ret VirtualMachineWithConfigContextStatusLabel
+ return ret
+ }
+ return *o.Label
+}
+
+// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VirtualMachineWithConfigContextStatus) GetLabelOk() (*VirtualMachineWithConfigContextStatusLabel, bool) {
+ if o == nil || IsNil(o.Label) {
+ return nil, false
+ }
+ return o.Label, true
+}
+
+// HasLabel returns a boolean if a field has been set.
+func (o *VirtualMachineWithConfigContextStatus) HasLabel() bool {
+ if o != nil && !IsNil(o.Label) {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel gets a reference to the given VirtualMachineWithConfigContextStatusLabel and assigns it to the Label field.
+func (o *VirtualMachineWithConfigContextStatus) SetLabel(v VirtualMachineWithConfigContextStatusLabel) {
+ o.Label = &v
+}
+
+func (o VirtualMachineWithConfigContextStatus) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o VirtualMachineWithConfigContextStatus) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Value) {
+ toSerialize["value"] = o.Value
+ }
+ if !IsNil(o.Label) {
+ toSerialize["label"] = o.Label
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *VirtualMachineWithConfigContextStatus) UnmarshalJSON(data []byte) (err error) {
+ varVirtualMachineWithConfigContextStatus := _VirtualMachineWithConfigContextStatus{}
+
+ err = json.Unmarshal(data, &varVirtualMachineWithConfigContextStatus)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VirtualMachineWithConfigContextStatus(varVirtualMachineWithConfigContextStatus)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "value")
+ delete(additionalProperties, "label")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableVirtualMachineWithConfigContextStatus struct {
+ value *VirtualMachineWithConfigContextStatus
+ isSet bool
+}
+
+func (v NullableVirtualMachineWithConfigContextStatus) Get() *VirtualMachineWithConfigContextStatus {
+ return v.value
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatus) Set(val *VirtualMachineWithConfigContextStatus) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualMachineWithConfigContextStatus) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatus) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualMachineWithConfigContextStatus(val *VirtualMachineWithConfigContextStatus) *NullableVirtualMachineWithConfigContextStatus {
+ return &NullableVirtualMachineWithConfigContextStatus{value: val, isSet: true}
+}
+
+func (v NullableVirtualMachineWithConfigContextStatus) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatus) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_virtual_machine_with_config_context_status_label.go b/model_virtual_machine_with_config_context_status_label.go
new file mode 100644
index 000000000..c312d93bc
--- /dev/null
+++ b/model_virtual_machine_with_config_context_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: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// VirtualMachineWithConfigContextStatusLabel the model 'VirtualMachineWithConfigContextStatusLabel'
+type VirtualMachineWithConfigContextStatusLabel string
+
+// List of VirtualMachineWithConfigContext_status_label
+const (
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_OFFLINE VirtualMachineWithConfigContextStatusLabel = "Offline"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_ACTIVE VirtualMachineWithConfigContextStatusLabel = "Active"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_PLANNED VirtualMachineWithConfigContextStatusLabel = "Planned"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_STAGED VirtualMachineWithConfigContextStatusLabel = "Staged"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_FAILED VirtualMachineWithConfigContextStatusLabel = "Failed"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_DECOMMISSIONING VirtualMachineWithConfigContextStatusLabel = "Decommissioning"
+ VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_PAUSED VirtualMachineWithConfigContextStatusLabel = "Paused"
+)
+
+// All allowed values of VirtualMachineWithConfigContextStatusLabel enum
+var AllowedVirtualMachineWithConfigContextStatusLabelEnumValues = []VirtualMachineWithConfigContextStatusLabel{
+ "Offline",
+ "Active",
+ "Planned",
+ "Staged",
+ "Failed",
+ "Decommissioning",
+ "Paused",
+}
+
+func (v *VirtualMachineWithConfigContextStatusLabel) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := VirtualMachineWithConfigContextStatusLabel(value)
+ for _, existing := range AllowedVirtualMachineWithConfigContextStatusLabelEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid VirtualMachineWithConfigContextStatusLabel", value)
+}
+
+// NewVirtualMachineWithConfigContextStatusLabelFromValue returns a pointer to a valid VirtualMachineWithConfigContextStatusLabel
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewVirtualMachineWithConfigContextStatusLabelFromValue(v string) (*VirtualMachineWithConfigContextStatusLabel, error) {
+ ev := VirtualMachineWithConfigContextStatusLabel(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for VirtualMachineWithConfigContextStatusLabel: valid values are %v", v, AllowedVirtualMachineWithConfigContextStatusLabelEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v VirtualMachineWithConfigContextStatusLabel) IsValid() bool {
+ for _, existing := range AllowedVirtualMachineWithConfigContextStatusLabelEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to VirtualMachineWithConfigContext_status_label value
+func (v VirtualMachineWithConfigContextStatusLabel) Ptr() *VirtualMachineWithConfigContextStatusLabel {
+ return &v
+}
+
+type NullableVirtualMachineWithConfigContextStatusLabel struct {
+ value *VirtualMachineWithConfigContextStatusLabel
+ isSet bool
+}
+
+func (v NullableVirtualMachineWithConfigContextStatusLabel) Get() *VirtualMachineWithConfigContextStatusLabel {
+ return v.value
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatusLabel) Set(val *VirtualMachineWithConfigContextStatusLabel) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualMachineWithConfigContextStatusLabel) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatusLabel) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualMachineWithConfigContextStatusLabel(val *VirtualMachineWithConfigContextStatusLabel) *NullableVirtualMachineWithConfigContextStatusLabel {
+ return &NullableVirtualMachineWithConfigContextStatusLabel{value: val, isSet: true}
+}
+
+func (v NullableVirtualMachineWithConfigContextStatusLabel) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualMachineWithConfigContextStatusLabel) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_vlan.go b/model_vlan.go
index af5f3ea19..99971a07a 100644
--- a/model_vlan.go
+++ b/model_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VLAN type satisfies the MappedNullable interface at compile time
@@ -21,28 +21,28 @@ var _ MappedNullable = &VLAN{}
// VLAN Adds support for custom fields and tags.
type VLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Site NullableBriefSite `json:"site,omitempty"`
- Group NullableBriefVLANGroup `json:"group,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Site NullableBriefSite `json:"site,omitempty"`
+ Group NullableBriefVLANGroup `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- Status *IPRangeStatus `json:"status,omitempty"`
- Role NullableBriefRole `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- QinqRole *VLANQinqRole `json:"qinq_role,omitempty"`
- QinqSvlan NullableNestedVLAN `json:"qinq_svlan,omitempty"`
- Comments *string `json:"comments,omitempty"`
- L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Status *IPRangeStatus `json:"status,omitempty"`
+ Role NullableBriefRole `json:"role,omitempty"`
+ Description *string `json:"description,omitempty"`
+ QinqRole *VLANQinqRole `json:"qinq_role,omitempty"`
+ QinqSvlan NullableNestedVLAN `json:"qinq_svlan,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -94,7 +94,6 @@ func (o *VLAN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VLAN) GetUrl() string {
if o == nil {
@@ -119,7 +118,6 @@ func (o *VLAN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VLAN) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -176,7 +174,6 @@ func (o *VLAN) SetDisplay(v string) {
o.Display = v
}
-
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VLAN) GetSite() BriefSite {
if o == nil || IsNil(o.Site.Get()) {
@@ -209,6 +206,7 @@ func (o *VLAN) HasSite() bool {
func (o *VLAN) SetSite(v BriefSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *VLAN) SetSiteNil() {
o.Site.Set(nil)
@@ -251,6 +249,7 @@ func (o *VLAN) HasGroup() bool {
func (o *VLAN) SetGroup(v BriefVLANGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *VLAN) SetGroupNil() {
o.Group.Set(nil)
@@ -285,7 +284,6 @@ func (o *VLAN) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *VLAN) GetName() string {
if o == nil {
@@ -310,7 +308,6 @@ func (o *VLAN) SetName(v string) {
o.Name = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VLAN) GetTenant() BriefTenant {
if o == nil || IsNil(o.Tenant.Get()) {
@@ -343,6 +340,7 @@ func (o *VLAN) HasTenant() bool {
func (o *VLAN) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VLAN) SetTenantNil() {
o.Tenant.Set(nil)
@@ -417,6 +415,7 @@ func (o *VLAN) HasRole() bool {
func (o *VLAN) SetRole(v BriefRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *VLAN) SetRoleNil() {
o.Role.Set(nil)
@@ -523,6 +522,7 @@ func (o *VLAN) HasQinqSvlan() bool {
func (o *VLAN) SetQinqSvlan(v NestedVLAN) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *VLAN) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -597,6 +597,7 @@ func (o *VLAN) HasL2vpnTermination() bool {
func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) {
o.L2vpnTermination.Set(&v)
}
+
// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil
func (o *VLAN) SetL2vpnTerminationNil() {
o.L2vpnTermination.Set(nil)
@@ -703,6 +704,7 @@ func (o *VLAN) HasCreated() bool {
func (o *VLAN) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VLAN) SetCreatedNil() {
o.Created.Set(nil)
@@ -745,6 +747,7 @@ func (o *VLAN) HasLastUpdated() bool {
func (o *VLAN) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VLAN) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -788,7 +791,7 @@ func (o *VLAN) SetPrefixCount(v int64) {
}
func (o VLAN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -872,32 +875,31 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -976,5 +978,3 @@ func (v *NullableVLAN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_group.go b/model_vlan_group.go
index 048fa656f..66bbbc91f 100644
--- a/model_vlan_group.go
+++ b/model_vlan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VLANGroup type satisfies the MappedNullable interface at compile time
@@ -21,22 +21,24 @@ var _ MappedNullable = &VLANGroup{}
// VLANGroup Adds support for custom fields and tags.
type VLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Scope interface{} `json:"scope,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- VlanCount *int64 `json:"vlan_count,omitempty"`
- Utilization string `json:"utilization"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Scope interface{} `json:"scope,omitempty"`
+ VidRanges [][][]int32 `json:"vid_ranges,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ VlanCount *int64 `json:"vlan_count,omitempty"`
+ Utilization string `json:"utilization"`
AdditionalProperties map[string]interface{}
}
@@ -89,7 +91,6 @@ func (o *VLANGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VLANGroup) GetUrl() string {
if o == nil {
@@ -114,7 +115,6 @@ func (o *VLANGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VLANGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -171,7 +171,6 @@ func (o *VLANGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VLANGroup) GetName() string {
if o == nil {
@@ -196,7 +195,6 @@ func (o *VLANGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *VLANGroup) GetSlug() string {
if o == nil {
@@ -221,7 +219,6 @@ func (o *VLANGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VLANGroup) GetScopeType() string {
if o == nil || IsNil(o.ScopeType.Get()) {
@@ -254,6 +251,7 @@ func (o *VLANGroup) HasScopeType() bool {
func (o *VLANGroup) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *VLANGroup) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -296,6 +294,7 @@ func (o *VLANGroup) HasScopeId() bool {
func (o *VLANGroup) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *VLANGroup) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -339,6 +338,81 @@ func (o *VLANGroup) SetScope(v interface{}) {
o.Scope = v
}
+// GetVidRanges returns the VidRanges field value if set, zero value otherwise.
+func (o *VLANGroup) GetVidRanges() [][][]int32 {
+ if o == nil || IsNil(o.VidRanges) {
+ var ret [][][]int32
+ return ret
+ }
+ return o.VidRanges
+}
+
+// GetVidRangesOk returns a tuple with the VidRanges field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VLANGroup) GetVidRangesOk() ([][][]int32, bool) {
+ if o == nil || IsNil(o.VidRanges) {
+ return nil, false
+ }
+ return o.VidRanges, true
+}
+
+// HasVidRanges returns a boolean if a field has been set.
+func (o *VLANGroup) HasVidRanges() bool {
+ if o != nil && !IsNil(o.VidRanges) {
+ return true
+ }
+
+ return false
+}
+
+// SetVidRanges gets a reference to the given [][][]int32 and assigns it to the VidRanges field.
+func (o *VLANGroup) SetVidRanges(v [][][]int32) {
+ o.VidRanges = v
+}
+
+// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *VLANGroup) GetTenant() BriefTenant {
+ if o == nil || IsNil(o.Tenant.Get()) {
+ var ret BriefTenant
+ return ret
+ }
+ return *o.Tenant.Get()
+}
+
+// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *VLANGroup) GetTenantOk() (*BriefTenant, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Tenant.Get(), o.Tenant.IsSet()
+}
+
+// HasTenant returns a boolean if a field has been set.
+func (o *VLANGroup) HasTenant() bool {
+ if o != nil && o.Tenant.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field.
+func (o *VLANGroup) SetTenant(v BriefTenant) {
+ o.Tenant.Set(&v)
+}
+
+// SetTenantNil sets the value for Tenant to be an explicit nil
+func (o *VLANGroup) SetTenantNil() {
+ o.Tenant.Set(nil)
+}
+
+// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+func (o *VLANGroup) UnsetTenant() {
+ o.Tenant.Unset()
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANGroup) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -467,6 +541,7 @@ func (o *VLANGroup) HasCreated() bool {
func (o *VLANGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VLANGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -509,6 +584,7 @@ func (o *VLANGroup) HasLastUpdated() bool {
func (o *VLANGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VLANGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -575,9 +651,8 @@ func (o *VLANGroup) SetUtilization(v string) {
o.Utilization = v
}
-
func (o VLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -603,6 +678,12 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) {
if o.Scope != nil {
toSerialize["scope"] = o.Scope
}
+ if !IsNil(o.VidRanges) {
+ toSerialize["vid_ranges"] = o.VidRanges
+ }
+ if o.Tenant.IsSet() {
+ toSerialize["tenant"] = o.Tenant.Get()
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -645,32 +726,31 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -696,6 +776,8 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "scope_type")
delete(additionalProperties, "scope_id")
delete(additionalProperties, "scope")
+ delete(additionalProperties, "vid_ranges")
+ delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -744,5 +826,3 @@ func (v *NullableVLANGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go
index a897cea00..05787b5ee 100644
--- a/model_vlan_group_request.go
+++ b/model_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,15 @@ var _ MappedNullable = &VLANGroupRequest{}
// VLANGroupRequest Adds support for custom fields and tags.
type VLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ VidRanges [][][]int32 `json:"vid_ranges,omitempty"`
+ Tenant NullableASNRangeRequestTenant `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{}
}
@@ -75,7 +77,6 @@ func (o *VLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *VLANGroupRequest) GetSlug() string {
if o == nil {
@@ -100,7 +101,6 @@ func (o *VLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VLANGroupRequest) GetScopeType() string {
if o == nil || IsNil(o.ScopeType.Get()) {
@@ -133,6 +133,7 @@ func (o *VLANGroupRequest) HasScopeType() bool {
func (o *VLANGroupRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *VLANGroupRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -175,6 +176,7 @@ func (o *VLANGroupRequest) HasScopeId() bool {
func (o *VLANGroupRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *VLANGroupRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -185,6 +187,81 @@ func (o *VLANGroupRequest) UnsetScopeId() {
o.ScopeId.Unset()
}
+// GetVidRanges returns the VidRanges field value if set, zero value otherwise.
+func (o *VLANGroupRequest) GetVidRanges() [][][]int32 {
+ if o == nil || IsNil(o.VidRanges) {
+ var ret [][][]int32
+ return ret
+ }
+ return o.VidRanges
+}
+
+// GetVidRangesOk returns a tuple with the VidRanges field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *VLANGroupRequest) GetVidRangesOk() ([][][]int32, bool) {
+ if o == nil || IsNil(o.VidRanges) {
+ return nil, false
+ }
+ return o.VidRanges, true
+}
+
+// HasVidRanges returns a boolean if a field has been set.
+func (o *VLANGroupRequest) HasVidRanges() bool {
+ if o != nil && !IsNil(o.VidRanges) {
+ return true
+ }
+
+ return false
+}
+
+// SetVidRanges gets a reference to the given [][][]int32 and assigns it to the VidRanges field.
+func (o *VLANGroupRequest) SetVidRanges(v [][][]int32) {
+ o.VidRanges = v
+}
+
+// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *VLANGroupRequest) GetTenant() ASNRangeRequestTenant {
+ if o == nil || IsNil(o.Tenant.Get()) {
+ var ret ASNRangeRequestTenant
+ 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 *VLANGroupRequest) GetTenantOk() (*ASNRangeRequestTenant, 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 *VLANGroupRequest) HasTenant() bool {
+ if o != nil && o.Tenant.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VLANGroupRequest) SetTenant(v ASNRangeRequestTenant) {
+ o.Tenant.Set(&v)
+}
+
+// SetTenantNil sets the value for Tenant to be an explicit nil
+func (o *VLANGroupRequest) SetTenantNil() {
+ o.Tenant.Set(nil)
+}
+
+// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+func (o *VLANGroupRequest) UnsetTenant() {
+ o.Tenant.Unset()
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANGroupRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -282,7 +359,7 @@ func (o *VLANGroupRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -299,6 +376,12 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) {
if o.ScopeId.IsSet() {
toSerialize["scope_id"] = o.ScopeId.Get()
}
+ if !IsNil(o.VidRanges) {
+ toSerialize["vid_ranges"] = o.VidRanges
+ }
+ if o.Tenant.IsSet() {
+ toSerialize["tenant"] = o.Tenant.Get()
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -327,32 +410,31 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -373,6 +455,8 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "slug")
delete(additionalProperties, "scope_type")
delete(additionalProperties, "scope_id")
+ delete(additionalProperties, "vid_ranges")
+ delete(additionalProperties, "tenant")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -417,5 +501,3 @@ func (v *NullableVLANGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_qinq_role.go b/model_vlan_qinq_role.go
index 8fc9b6b53..331589a10 100644
--- a/model_vlan_qinq_role.go
+++ b/model_vlan_qinq_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &VLANQinqRole{}
// VLANQinqRole struct for VLANQinqRole
type VLANQinqRole struct {
- Value *VLANQinqRoleValue `json:"value,omitempty"`
- Label *VLANQinqRoleLabel `json:"label,omitempty"`
+ Value *VLANQinqRoleValue `json:"value,omitempty"`
+ Label *VLANQinqRoleLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *VLANQinqRole) SetLabel(v VLANQinqRoleLabel) {
}
func (o VLANQinqRole) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableVLANQinqRole) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_qinq_role_label.go b/model_vlan_qinq_role_label.go
index 74b23aada..21f6fad8a 100644
--- a/model_vlan_qinq_role_label.go
+++ b/model_vlan_qinq_role_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ type VLANQinqRoleLabel string
// List of VLAN_qinq_role_label
const (
- VLANQINQROLELABEL_SERVICE VLANQinqRoleLabel = "Service"
+ VLANQINQROLELABEL_SERVICE VLANQinqRoleLabel = "Service"
VLANQINQROLELABEL_CUSTOMER VLANQinqRoleLabel = "Customer"
)
@@ -108,4 +108,3 @@ func (v *NullableVLANQinqRoleLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_vlan_qinq_role_value.go b/model_vlan_qinq_role_value.go
index 7e369ad6f..e3cd857df 100644
--- a/model_vlan_qinq_role_value.go
+++ b/model_vlan_qinq_role_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -108,4 +108,3 @@ func (v *NullableVLANQinqRoleValue) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_vlan_request.go b/model_vlan_request.go
index 328dc453a..14fd74ab4 100644
--- a/model_vlan_request.go
+++ b/model_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &VLANRequest{}
// VLANRequest Adds support for custom fields and tags.
type VLANRequest struct {
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Group NullableBriefVLANGroupRequest `json:"group,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Group NullablePatchedWritableVLANRequestGroup `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *IPRangeStatusValue `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- QinqRole *VLANQinqRoleValue `json:"qinq_role,omitempty"`
- QinqSvlan NullableNestedVLANRequest `json:"qinq_svlan,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *IPRangeStatusValue `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
+ Description *string `json:"description,omitempty"`
+ QinqRole *VLANQinqRoleValue `json:"qinq_role,omitempty"`
+ QinqSvlan NullableNestedVLANRequest `json:"qinq_svlan,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +59,9 @@ func NewVLANRequestWithDefaults() *VLANRequest {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VLANRequest) GetSite() BriefSiteRequest {
+func (o *VLANRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -70,7 +70,7 @@ func (o *VLANRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *VLANRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -86,10 +86,11 @@ func (o *VLANRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *VLANRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *VLANRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *VLANRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -101,9 +102,9 @@ func (o *VLANRequest) UnsetSite() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VLANRequest) GetGroup() BriefVLANGroupRequest {
+func (o *VLANRequest) GetGroup() PatchedWritableVLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefVLANGroupRequest
+ var ret PatchedWritableVLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -112,7 +113,7 @@ func (o *VLANRequest) GetGroup() BriefVLANGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) {
+func (o *VLANRequest) GetGroupOk() (*PatchedWritableVLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -128,10 +129,11 @@ func (o *VLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field.
-func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableVLANRequestGroup and assigns it to the Group field.
+func (o *VLANRequest) SetGroup(v PatchedWritableVLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *VLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -166,7 +168,6 @@ func (o *VLANRequest) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *VLANRequest) GetName() string {
if o == nil {
@@ -191,11 +192,10 @@ func (o *VLANRequest) SetName(v string) {
o.Name = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VLANRequest) GetTenant() BriefTenantRequest {
+func (o *VLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -204,7 +204,7 @@ func (o *VLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *VLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +220,11 @@ func (o *VLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *VLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -267,9 +268,9 @@ func (o *VLANRequest) SetStatus(v IPRangeStatusValue) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VLANRequest) GetRole() BriefRoleRequest {
+func (o *VLANRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -278,7 +279,7 @@ func (o *VLANRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *VLANRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -294,10 +295,11 @@ func (o *VLANRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *VLANRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *VLANRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *VLANRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -404,6 +406,7 @@ func (o *VLANRequest) HasQinqSvlan() bool {
func (o *VLANRequest) SetQinqSvlan(v NestedVLANRequest) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *VLANRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -511,7 +514,7 @@ func (o *VLANRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -574,32 +577,31 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -670,5 +672,3 @@ func (v *NullableVLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_translation_policy.go b/model_vlan_translation_policy.go
index 5e12cffe7..118167aab 100644
--- a/model_vlan_translation_policy.go
+++ b/model_vlan_translation_policy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &VLANTranslationPolicy{}
// VLANTranslationPolicy Adds support for custom fields and tags.
type VLANTranslationPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Rules []VLANTranslationRule `json:"rules"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Rules []VLANTranslationRule `json:"rules"`
AdditionalProperties map[string]interface{}
}
@@ -77,7 +77,6 @@ func (o *VLANTranslationPolicy) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VLANTranslationPolicy) GetUrl() string {
if o == nil {
@@ -102,7 +101,6 @@ func (o *VLANTranslationPolicy) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *VLANTranslationPolicy) GetDisplay() string {
if o == nil {
@@ -127,7 +125,6 @@ func (o *VLANTranslationPolicy) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VLANTranslationPolicy) GetName() string {
if o == nil {
@@ -152,7 +149,6 @@ func (o *VLANTranslationPolicy) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANTranslationPolicy) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -209,9 +205,8 @@ func (o *VLANTranslationPolicy) SetRules(v []VLANTranslationRule) {
o.Rules = v
}
-
func (o VLANTranslationPolicy) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -250,32 +245,31 @@ func (o *VLANTranslationPolicy) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -339,5 +333,3 @@ func (v *NullableVLANTranslationPolicy) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_translation_policy_request.go b/model_vlan_translation_policy_request.go
index 538f30a21..8ab32b9c8 100644
--- a/model_vlan_translation_policy_request.go
+++ b/model_vlan_translation_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &VLANTranslationPolicyRequest{}
// VLANTranslationPolicyRequest Adds support for custom fields and tags.
type VLANTranslationPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -69,7 +69,6 @@ func (o *VLANTranslationPolicyRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANTranslationPolicyRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -103,7 +102,7 @@ func (o *VLANTranslationPolicyRequest) SetDescription(v string) {
}
func (o VLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -134,32 +133,31 @@ func (o *VLANTranslationPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -219,5 +217,3 @@ func (v *NullableVLANTranslationPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_translation_rule.go b/model_vlan_translation_rule.go
index 216fb6e38..e9b99aed8 100644
--- a/model_vlan_translation_rule.go
+++ b/model_vlan_translation_rule.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &VLANTranslationRule{}
// VLANTranslationRule Adds support for custom fields and tags.
type VLANTranslationRule struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
Display string `json:"display"`
- Policy int32 `json:"policy"`
+ Policy int32 `json:"policy"`
// Numeric VLAN ID (1-4094)
LocalVid int32 `json:"local_vid"`
// Numeric VLAN ID (1-4094)
- RemoteVid int32 `json:"remote_vid"`
- Description *string `json:"description,omitempty"`
+ RemoteVid int32 `json:"remote_vid"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ func (o *VLANTranslationRule) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VLANTranslationRule) GetUrl() string {
if o == nil {
@@ -106,7 +105,6 @@ func (o *VLANTranslationRule) SetUrl(v string) {
o.Url = v
}
-
// GetDisplay returns the Display field value
func (o *VLANTranslationRule) GetDisplay() string {
if o == nil {
@@ -131,7 +129,6 @@ func (o *VLANTranslationRule) SetDisplay(v string) {
o.Display = v
}
-
// GetPolicy returns the Policy field value
func (o *VLANTranslationRule) GetPolicy() int32 {
if o == nil {
@@ -156,7 +153,6 @@ func (o *VLANTranslationRule) SetPolicy(v int32) {
o.Policy = v
}
-
// GetLocalVid returns the LocalVid field value
func (o *VLANTranslationRule) GetLocalVid() int32 {
if o == nil {
@@ -181,7 +177,6 @@ func (o *VLANTranslationRule) SetLocalVid(v int32) {
o.LocalVid = v
}
-
// GetRemoteVid returns the RemoteVid field value
func (o *VLANTranslationRule) GetRemoteVid() int32 {
if o == nil {
@@ -206,7 +201,6 @@ func (o *VLANTranslationRule) SetRemoteVid(v int32) {
o.RemoteVid = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANTranslationRule) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -240,7 +234,7 @@ func (o *VLANTranslationRule) SetDescription(v string) {
}
func (o VLANTranslationRule) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -281,32 +275,31 @@ func (o *VLANTranslationRule) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -371,5 +364,3 @@ func (v *NullableVLANTranslationRule) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vlan_translation_rule_request.go b/model_vlan_translation_rule_request.go
index b822a9cab..854bc255e 100644
--- a/model_vlan_translation_rule_request.go
+++ b/model_vlan_translation_rule_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,8 +24,8 @@ type VLANTranslationRuleRequest struct {
// Numeric VLAN ID (1-4094)
LocalVid int32 `json:"local_vid"`
// Numeric VLAN ID (1-4094)
- RemoteVid int32 `json:"remote_vid"`
- Description *string `json:"description,omitempty"`
+ RemoteVid int32 `json:"remote_vid"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -75,7 +75,6 @@ func (o *VLANTranslationRuleRequest) SetPolicy(v int32) {
o.Policy = v
}
-
// GetLocalVid returns the LocalVid field value
func (o *VLANTranslationRuleRequest) GetLocalVid() int32 {
if o == nil {
@@ -100,7 +99,6 @@ func (o *VLANTranslationRuleRequest) SetLocalVid(v int32) {
o.LocalVid = v
}
-
// GetRemoteVid returns the RemoteVid field value
func (o *VLANTranslationRuleRequest) GetRemoteVid() int32 {
if o == nil {
@@ -125,7 +123,6 @@ func (o *VLANTranslationRuleRequest) SetRemoteVid(v int32) {
o.RemoteVid = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VLANTranslationRuleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -159,7 +156,7 @@ func (o *VLANTranslationRuleRequest) SetDescription(v string) {
}
func (o VLANTranslationRuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -194,32 +191,31 @@ func (o *VLANTranslationRuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -281,5 +277,3 @@ func (v *NullableVLANTranslationRuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vm_interface.go b/model_vm_interface.go
index c164e5197..8cd9f4ec6 100644
--- a/model_vm_interface.go
+++ b/model_vm_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VMInterface type satisfies the MappedNullable interface at compile time
@@ -21,34 +21,34 @@ var _ MappedNullable = &VMInterface{}
// VMInterface Adds support for custom fields and tags.
type VMInterface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- VirtualMachine BriefVirtualMachine `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedVMInterface `json:"parent,omitempty"`
- Bridge NullableNestedVMInterface `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- PrimaryMacAddress NullableBriefMACAddress `json:"primary_mac_address,omitempty"`
- MacAddresses []BriefMACAddress `json:"mac_addresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *InterfaceMode `json:"mode,omitempty"`
- UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"`
- TaggedVlans []VLAN `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ VirtualMachine BriefVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableNestedVMInterface `json:"parent,omitempty"`
+ Bridge NullableNestedVMInterface `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ MacAddress NullableString `json:"mac_address,omitempty"`
+ PrimaryMacAddress NullableBriefMACAddress `json:"primary_mac_address,omitempty"`
+ MacAddresses []BriefMACAddress `json:"mac_addresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceMode `json:"mode,omitempty"`
+ UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"`
+ TaggedVlans []VLAN `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"`
VlanTranslationPolicy NullableBriefVLANTranslationPolicy `json:"vlan_translation_policy,omitempty"`
- Vrf NullableBriefVRF `json:"vrf,omitempty"`
- L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- CountIpaddresses int32 `json:"count_ipaddresses"`
- CountFhrpGroups int32 `json:"count_fhrp_groups"`
- AdditionalProperties map[string]interface{}
+ Vrf NullableBriefVRF `json:"vrf,omitempty"`
+ L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CountIpaddresses int32 `json:"count_ipaddresses"`
+ CountFhrpGroups int32 `json:"count_fhrp_groups"`
+ AdditionalProperties map[string]interface{}
}
type _VMInterface VMInterface
@@ -101,7 +101,6 @@ func (o *VMInterface) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VMInterface) GetUrl() string {
if o == nil {
@@ -126,7 +125,6 @@ func (o *VMInterface) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VMInterface) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -183,7 +181,6 @@ func (o *VMInterface) SetDisplay(v string) {
o.Display = v
}
-
// GetVirtualMachine returns the VirtualMachine field value
func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine {
if o == nil {
@@ -208,7 +205,6 @@ func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *VMInterface) GetName() string {
if o == nil {
@@ -233,7 +229,6 @@ func (o *VMInterface) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *VMInterface) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -298,6 +293,7 @@ func (o *VMInterface) HasParent() bool {
func (o *VMInterface) SetParent(v NestedVMInterface) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *VMInterface) SetParentNil() {
o.Parent.Set(nil)
@@ -340,6 +336,7 @@ func (o *VMInterface) HasBridge() bool {
func (o *VMInterface) SetBridge(v NestedVMInterface) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *VMInterface) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -382,6 +379,7 @@ func (o *VMInterface) HasMtu() bool {
func (o *VMInterface) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *VMInterface) SetMtuNil() {
o.Mtu.Set(nil)
@@ -424,6 +422,7 @@ func (o *VMInterface) HasMacAddress() bool {
func (o *VMInterface) SetMacAddress(v string) {
o.MacAddress.Set(&v)
}
+
// SetMacAddressNil sets the value for MacAddress to be an explicit nil
func (o *VMInterface) SetMacAddressNil() {
o.MacAddress.Set(nil)
@@ -466,6 +465,7 @@ func (o *VMInterface) HasPrimaryMacAddress() bool {
func (o *VMInterface) SetPrimaryMacAddress(v BriefMACAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *VMInterface) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -605,6 +605,7 @@ func (o *VMInterface) HasUntaggedVlan() bool {
func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *VMInterface) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -679,6 +680,7 @@ func (o *VMInterface) HasQinqSvlan() bool {
func (o *VMInterface) SetQinqSvlan(v BriefVLAN) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *VMInterface) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -721,6 +723,7 @@ func (o *VMInterface) HasVlanTranslationPolicy() bool {
func (o *VMInterface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *VMInterface) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -763,6 +766,7 @@ func (o *VMInterface) HasVrf() bool {
func (o *VMInterface) SetVrf(v BriefVRF) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *VMInterface) SetVrfNil() {
o.Vrf.Set(nil)
@@ -805,6 +809,7 @@ func (o *VMInterface) HasL2vpnTermination() bool {
func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) {
o.L2vpnTermination.Set(&v)
}
+
// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil
func (o *VMInterface) SetL2vpnTerminationNil() {
o.L2vpnTermination.Set(nil)
@@ -911,6 +916,7 @@ func (o *VMInterface) HasCreated() bool {
func (o *VMInterface) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VMInterface) SetCreatedNil() {
o.Created.Set(nil)
@@ -953,6 +959,7 @@ func (o *VMInterface) HasLastUpdated() bool {
func (o *VMInterface) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VMInterface) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -987,7 +994,6 @@ func (o *VMInterface) SetCountIpaddresses(v int32) {
o.CountIpaddresses = v
}
-
// GetCountFhrpGroups returns the CountFhrpGroups field value
func (o *VMInterface) GetCountFhrpGroups() int32 {
if o == nil {
@@ -1012,9 +1018,8 @@ func (o *VMInterface) SetCountFhrpGroups(v int32) {
o.CountFhrpGroups = v
}
-
func (o VMInterface) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1114,32 +1119,31 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1224,5 +1228,3 @@ func (v *NullableVMInterface) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go
index 00e63a954..be46deb9c 100644
--- a/model_vm_interface_request.go
+++ b/model_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,23 +20,23 @@ var _ MappedNullable = &VMInterfaceRequest{}
// VMInterfaceRequest Adds support for custom fields and tags.
type VMInterfaceRequest struct {
- VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"`
- Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *InterfaceModeValue `json:"mode,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
+ VirtualMachine PatchedVirtualDiskRequestVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"`
+ Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode *InterfaceModeValue `json:"mode,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
}
type _VMInterfaceRequest VMInterfaceRequest
@@ -45,7 +45,7 @@ type _VMInterfaceRequest VMInterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest {
+func NewVMInterfaceRequest(virtualMachine PatchedVirtualDiskRequestVirtualMachine, name string) *VMInterfaceRequest {
this := VMInterfaceRequest{}
this.VirtualMachine = virtualMachine
this.Name = name
@@ -61,9 +61,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
+func (o *VMInterfaceRequest) GetVirtualMachine() PatchedVirtualDiskRequestVirtualMachine {
if o == nil {
- var ret BriefVirtualMachineRequest
+ var ret PatchedVirtualDiskRequestVirtualMachine
return ret
}
@@ -72,7 +72,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *VMInterfaceRequest) GetVirtualMachineOk() (*PatchedVirtualDiskRequestVirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -80,11 +80,10 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest,
}
// SetVirtualMachine sets field value
-func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
+func (o *VMInterfaceRequest) SetVirtualMachine(v PatchedVirtualDiskRequestVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *VMInterfaceRequest) GetName() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *VMInterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *VMInterfaceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -174,6 +172,7 @@ func (o *VMInterfaceRequest) HasParent() bool {
func (o *VMInterfaceRequest) SetParent(v NestedVMInterfaceRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *VMInterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -216,6 +215,7 @@ func (o *VMInterfaceRequest) HasBridge() bool {
func (o *VMInterfaceRequest) SetBridge(v NestedVMInterfaceRequest) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *VMInterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -258,6 +258,7 @@ func (o *VMInterfaceRequest) HasMtu() bool {
func (o *VMInterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *VMInterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -269,9 +270,9 @@ func (o *VMInterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *VMInterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -280,7 +281,7 @@ func (o *VMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *VMInterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -296,10 +297,11 @@ func (o *VMInterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *VMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *VMInterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *VMInterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -375,9 +377,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *VMInterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -386,7 +388,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -402,10 +404,11 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *VMInterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *VMInterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -449,9 +452,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *VMInterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -460,7 +463,7 @@ func (o *VMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *VMInterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -476,10 +479,11 @@ func (o *VMInterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *VMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *VMInterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *VMInterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -491,9 +495,9 @@ func (o *VMInterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *VMInterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -502,7 +506,7 @@ func (o *VMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPoli
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *VMInterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -518,10 +522,11 @@ func (o *VMInterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *VMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *VMInterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *VMInterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -533,9 +538,9 @@ func (o *VMInterfaceRequest) UnsetVlanTranslationPolicy() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *VMInterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -544,7 +549,7 @@ func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *VMInterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -560,10 +565,11 @@ func (o *VMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *VMInterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *VMInterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -639,7 +645,7 @@ func (o *VMInterfaceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VMInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -711,32 +717,31 @@ func (o *VMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -810,5 +815,3 @@ func (v *NullableVMInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vrf.go b/model_vrf.go
index 667500a99..f1e024136 100644
--- a/model_vrf.go
+++ b/model_vrf.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the VRF type satisfies the MappedNullable interface at compile time
@@ -21,26 +21,26 @@ var _ MappedNullable = &VRF{}
// VRF Adds support for custom fields and tags.
type VRF struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Display string `json:"display"`
+ Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
Tenant NullableBriefTenant `json:"tenant,omitempty"`
// Prevent duplicate prefixes/IP addresses within this VRF
- EnforceUnique *bool `json:"enforce_unique,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ImportTargets []RouteTarget `json:"import_targets,omitempty"`
- ExportTargets []RouteTarget `json:"export_targets,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- IpaddressCount *int64 `json:"ipaddress_count,omitempty"`
- PrefixCount *int64 `json:"prefix_count,omitempty"`
+ EnforceUnique *bool `json:"enforce_unique,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ImportTargets []RouteTarget `json:"import_targets,omitempty"`
+ ExportTargets []RouteTarget `json:"export_targets,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ IpaddressCount *int64 `json:"ipaddress_count,omitempty"`
+ PrefixCount *int64 `json:"prefix_count,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *VRF) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *VRF) GetUrl() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *VRF) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *VRF) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -173,7 +171,6 @@ func (o *VRF) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *VRF) GetName() string {
if o == nil {
@@ -198,7 +195,6 @@ func (o *VRF) SetName(v string) {
o.Name = v
}
-
// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VRF) GetRd() string {
if o == nil || IsNil(o.Rd.Get()) {
@@ -231,6 +227,7 @@ func (o *VRF) HasRd() bool {
func (o *VRF) SetRd(v string) {
o.Rd.Set(&v)
}
+
// SetRdNil sets the value for Rd to be an explicit nil
func (o *VRF) SetRdNil() {
o.Rd.Set(nil)
@@ -273,6 +270,7 @@ func (o *VRF) HasTenant() bool {
func (o *VRF) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VRF) SetTenantNil() {
o.Tenant.Set(nil)
@@ -539,6 +537,7 @@ func (o *VRF) HasCreated() bool {
func (o *VRF) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *VRF) SetCreatedNil() {
o.Created.Set(nil)
@@ -581,6 +580,7 @@ func (o *VRF) HasLastUpdated() bool {
func (o *VRF) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *VRF) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -656,7 +656,7 @@ func (o *VRF) SetPrefixCount(v int64) {
}
func (o VRF) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -732,32 +732,31 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -833,5 +832,3 @@ func (v *NullableVRF) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_vrf_request.go b/model_vrf_request.go
index 43a637054..e91b8a9bc 100644
--- a/model_vrf_request.go
+++ b/model_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,16 +22,16 @@ var _ MappedNullable = &VRFRequest{}
type VRFRequest struct {
Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Prevent duplicate prefixes/IP addresses within this VRF
- EnforceUnique *bool `json:"enforce_unique,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ EnforceUnique *bool `json:"enforce_unique,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ImportTargets []int32 `json:"import_targets,omitempty"`
+ ExportTargets []int32 `json:"export_targets,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ func (o *VRFRequest) SetName(v string) {
o.Name = v
}
-
// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VRFRequest) GetRd() string {
if o == nil || IsNil(o.Rd.Get()) {
@@ -112,6 +111,7 @@ func (o *VRFRequest) HasRd() bool {
func (o *VRFRequest) SetRd(v string) {
o.Rd.Set(&v)
}
+
// SetRdNil sets the value for Rd to be an explicit nil
func (o *VRFRequest) SetRdNil() {
o.Rd.Set(nil)
@@ -123,9 +123,9 @@ func (o *VRFRequest) UnsetRd() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VRFRequest) GetTenant() BriefTenantRequest {
+func (o *VRFRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -134,7 +134,7 @@ func (o *VRFRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *VRFRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -150,10 +150,11 @@ func (o *VRFRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *VRFRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *VRFRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *VRFRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -389,7 +390,7 @@ func (o *VRFRequest) SetCustomFields(v map[string]interface{}) {
}
func (o VRFRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -444,32 +445,31 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -537,5 +537,3 @@ func (v *NullableVRFRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_webhook.go b/model_webhook.go
index 1b25c0c76..99c5da181 100644
--- a/model_webhook.go
+++ b/model_webhook.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the Webhook type satisfies the MappedNullable interface at compile time
@@ -21,14 +21,14 @@ var _ MappedNullable = &Webhook{}
// Webhook Adds support for custom fields and tags.
type Webhook struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl string `json:"payload_url"`
+ PayloadUrl string `json:"payload_url"`
HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
@@ -41,11 +41,11 @@ type Webhook struct {
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
- CaFilePath NullableString `json:"ca_file_path,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ CaFilePath NullableString `json:"ca_file_path,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -97,7 +97,6 @@ func (o *Webhook) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *Webhook) GetUrl() string {
if o == nil {
@@ -122,7 +121,6 @@ func (o *Webhook) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *Webhook) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -179,7 +177,6 @@ func (o *Webhook) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *Webhook) GetName() string {
if o == nil {
@@ -204,7 +201,6 @@ func (o *Webhook) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Webhook) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -261,7 +257,6 @@ func (o *Webhook) SetPayloadUrl(v string) {
o.PayloadUrl = v
}
-
// GetHttpMethod returns the HttpMethod field value if set, zero value otherwise.
func (o *Webhook) GetHttpMethod() PatchedWebhookRequestHttpMethod {
if o == nil || IsNil(o.HttpMethod) {
@@ -486,6 +481,7 @@ func (o *Webhook) HasCaFilePath() bool {
func (o *Webhook) SetCaFilePath(v string) {
o.CaFilePath.Set(&v)
}
+
// SetCaFilePathNil sets the value for CaFilePath to be an explicit nil
func (o *Webhook) SetCaFilePathNil() {
o.CaFilePath.Set(nil)
@@ -592,6 +588,7 @@ func (o *Webhook) HasCreated() bool {
func (o *Webhook) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Webhook) SetCreatedNil() {
o.Created.Set(nil)
@@ -634,6 +631,7 @@ func (o *Webhook) HasLastUpdated() bool {
func (o *Webhook) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Webhook) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -645,7 +643,7 @@ func (o *Webhook) UnsetLastUpdated() {
}
func (o Webhook) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -720,32 +718,31 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -821,5 +818,3 @@ func (v *NullableWebhook) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_webhook_request.go b/model_webhook_request.go
index 30f66b698..86d499b5c 100644
--- a/model_webhook_request.go
+++ b/model_webhook_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &WebhookRequest{}
// WebhookRequest Adds support for custom fields and tags.
type WebhookRequest struct {
- Name string `json:"name"`
+ Name string `json:"name"`
Description *string `json:"description,omitempty"`
// This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.
- PayloadUrl string `json:"payload_url"`
+ PayloadUrl string `json:"payload_url"`
HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"`
// The complete list of official content types is available here.
HttpContentType *string `json:"http_content_type,omitempty"`
@@ -36,9 +36,9 @@ type WebhookRequest struct {
// Enable SSL certificate verification. Disable with caution!
SslVerification *bool `json:"ssl_verification,omitempty"`
// The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.
- CaFilePath NullableString `json:"ca_file_path,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ CaFilePath NullableString `json:"ca_file_path,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +87,6 @@ func (o *WebhookRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WebhookRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -144,7 +143,6 @@ func (o *WebhookRequest) SetPayloadUrl(v string) {
o.PayloadUrl = v
}
-
// GetHttpMethod returns the HttpMethod field value if set, zero value otherwise.
func (o *WebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod {
if o == nil || IsNil(o.HttpMethod) {
@@ -369,6 +367,7 @@ func (o *WebhookRequest) HasCaFilePath() bool {
func (o *WebhookRequest) SetCaFilePath(v string) {
o.CaFilePath.Set(&v)
}
+
// SetCaFilePathNil sets the value for CaFilePath to be an explicit nil
func (o *WebhookRequest) SetCaFilePathNil() {
o.CaFilePath.Set(nil)
@@ -444,7 +443,7 @@ func (o *WebhookRequest) SetTags(v []NestedTagRequest) {
}
func (o WebhookRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -504,32 +503,31 @@ func (o *WebhookRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -599,5 +597,3 @@ func (v *NullableWebhookRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_channel.go b/model_wireless_channel.go
index 8426e9bf7..58b852091 100644
--- a/model_wireless_channel.go
+++ b/model_wireless_channel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,192 +20,192 @@ type WirelessChannel string
// List of Wireless_channel
const (
- WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22"
- WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22"
- WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22"
- WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22"
- WIRELESSCHANNEL__2_4G_5_2432_22 WirelessChannel = "2.4g-5-2432-22"
- WIRELESSCHANNEL__2_4G_6_2437_22 WirelessChannel = "2.4g-6-2437-22"
- WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22"
- WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22"
- WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22"
- WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22"
- WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22"
- WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22"
- WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22"
- WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20"
- WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40"
- WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20"
- WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40"
- WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20"
- WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80"
- WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20"
- WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40"
- WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20"
- WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160"
- WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20"
- WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40"
- WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20"
- WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80"
- WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20"
- WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40"
- WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20"
- WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20"
- WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40"
- WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20"
- WIRELESSCHANNEL__5G_106_5530_80 WirelessChannel = "5g-106-5530-80"
- WIRELESSCHANNEL__5G_108_5540_20 WirelessChannel = "5g-108-5540-20"
- WIRELESSCHANNEL__5G_110_5550_40 WirelessChannel = "5g-110-5550-40"
- WIRELESSCHANNEL__5G_112_5560_20 WirelessChannel = "5g-112-5560-20"
- WIRELESSCHANNEL__5G_114_5570_160 WirelessChannel = "5g-114-5570-160"
- WIRELESSCHANNEL__5G_116_5580_20 WirelessChannel = "5g-116-5580-20"
- WIRELESSCHANNEL__5G_118_5590_40 WirelessChannel = "5g-118-5590-40"
- WIRELESSCHANNEL__5G_120_5600_20 WirelessChannel = "5g-120-5600-20"
- WIRELESSCHANNEL__5G_122_5610_80 WirelessChannel = "5g-122-5610-80"
- WIRELESSCHANNEL__5G_124_5620_20 WirelessChannel = "5g-124-5620-20"
- WIRELESSCHANNEL__5G_126_5630_40 WirelessChannel = "5g-126-5630-40"
- WIRELESSCHANNEL__5G_128_5640_20 WirelessChannel = "5g-128-5640-20"
- WIRELESSCHANNEL__5G_132_5660_20 WirelessChannel = "5g-132-5660-20"
- WIRELESSCHANNEL__5G_134_5670_40 WirelessChannel = "5g-134-5670-40"
- WIRELESSCHANNEL__5G_136_5680_20 WirelessChannel = "5g-136-5680-20"
- WIRELESSCHANNEL__5G_138_5690_80 WirelessChannel = "5g-138-5690-80"
- WIRELESSCHANNEL__5G_140_5700_20 WirelessChannel = "5g-140-5700-20"
- WIRELESSCHANNEL__5G_142_5710_40 WirelessChannel = "5g-142-5710-40"
- WIRELESSCHANNEL__5G_144_5720_20 WirelessChannel = "5g-144-5720-20"
- WIRELESSCHANNEL__5G_149_5745_20 WirelessChannel = "5g-149-5745-20"
- WIRELESSCHANNEL__5G_151_5755_40 WirelessChannel = "5g-151-5755-40"
- WIRELESSCHANNEL__5G_153_5765_20 WirelessChannel = "5g-153-5765-20"
- WIRELESSCHANNEL__5G_155_5775_80 WirelessChannel = "5g-155-5775-80"
- WIRELESSCHANNEL__5G_157_5785_20 WirelessChannel = "5g-157-5785-20"
- WIRELESSCHANNEL__5G_159_5795_40 WirelessChannel = "5g-159-5795-40"
- WIRELESSCHANNEL__5G_161_5805_20 WirelessChannel = "5g-161-5805-20"
- WIRELESSCHANNEL__5G_163_5815_160 WirelessChannel = "5g-163-5815-160"
- WIRELESSCHANNEL__5G_165_5825_20 WirelessChannel = "5g-165-5825-20"
- WIRELESSCHANNEL__5G_167_5835_40 WirelessChannel = "5g-167-5835-40"
- WIRELESSCHANNEL__5G_169_5845_20 WirelessChannel = "5g-169-5845-20"
- WIRELESSCHANNEL__5G_171_5855_80 WirelessChannel = "5g-171-5855-80"
- WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20"
- WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40"
- WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20"
- WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20"
- WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40"
- WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20"
- WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80"
- WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20"
- WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40"
- WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20"
- WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160"
- WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20"
- WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40"
- WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20"
- WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80"
- WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20"
- WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40"
- WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20"
- WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320"
- WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20"
- WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40"
- WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20"
- WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80"
- WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20"
- WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40"
- WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20"
- WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160"
- WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20"
- WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40"
- WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20"
- WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80"
- WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20"
- WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40"
- WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20"
- WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20"
- WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40"
- WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20"
- WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80"
- WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20"
- WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40"
- WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20"
- WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160"
- WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20"
- WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40"
- WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20"
- WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80"
- WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20"
- WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40"
- WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20"
- WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320"
- WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20"
- WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40"
- WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20"
- WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80"
- WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20"
- WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40"
- WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20"
- WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160"
- WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20"
- WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40"
- WIRELESSCHANNEL__6G_117_6535_20 WirelessChannel = "6g-117-6535-20"
- WIRELESSCHANNEL__6G_119_6545_80 WirelessChannel = "6g-119-6545-80"
- WIRELESSCHANNEL__6G_121_6555_20 WirelessChannel = "6g-121-6555-20"
- WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40"
- WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20"
- WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20"
- WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40"
- WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20"
- WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80"
- WIRELESSCHANNEL__6G_137_6635_20 WirelessChannel = "6g-137-6635-20"
- WIRELESSCHANNEL__6G_139_6645_40 WirelessChannel = "6g-139-6645-40"
- WIRELESSCHANNEL__6G_141_6655_20 WirelessChannel = "6g-141-6655-20"
- WIRELESSCHANNEL__6G_143_6665_160 WirelessChannel = "6g-143-6665-160"
- WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20"
- WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40"
- WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20"
- WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80"
- WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20"
- WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40"
- WIRELESSCHANNEL__6G_157_6735_20 WirelessChannel = "6g-157-6735-20"
- WIRELESSCHANNEL__6G_159_6745_320 WirelessChannel = "6g-159-6745-320"
- WIRELESSCHANNEL__6G_161_6755_20 WirelessChannel = "6g-161-6755-20"
- WIRELESSCHANNEL__6G_163_6765_40 WirelessChannel = "6g-163-6765-40"
- WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20"
- WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80"
- WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20"
- WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40"
- WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20"
- WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160"
- WIRELESSCHANNEL__6G_177_6835_20 WirelessChannel = "6g-177-6835-20"
- WIRELESSCHANNEL__6G_179_6845_40 WirelessChannel = "6g-179-6845-40"
- WIRELESSCHANNEL__6G_181_6855_20 WirelessChannel = "6g-181-6855-20"
- WIRELESSCHANNEL__6G_183_6865_80 WirelessChannel = "6g-183-6865-80"
- WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20"
- WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40"
- WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20"
- WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20"
- WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40"
- WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20"
- WIRELESSCHANNEL__6G_199_6945_80 WirelessChannel = "6g-199-6945-80"
- WIRELESSCHANNEL__6G_201_6955_20 WirelessChannel = "6g-201-6955-20"
- WIRELESSCHANNEL__6G_203_6965_40 WirelessChannel = "6g-203-6965-40"
- WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20"
- WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160"
- WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20"
- WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40"
- WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20"
- WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80"
- WIRELESSCHANNEL__6G_217_7035_20 WirelessChannel = "6g-217-7035-20"
- WIRELESSCHANNEL__6G_219_7045_40 WirelessChannel = "6g-219-7045-40"
- WIRELESSCHANNEL__6G_221_7055_20 WirelessChannel = "6g-221-7055-20"
- WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20"
- WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40"
- WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20"
- WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20"
- WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160"
- WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160"
- WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160"
- WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160"
- WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160"
- WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160"
- WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320"
+ WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22"
+ WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22"
+ WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22"
+ WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22"
+ WIRELESSCHANNEL__2_4G_5_2432_22 WirelessChannel = "2.4g-5-2432-22"
+ WIRELESSCHANNEL__2_4G_6_2437_22 WirelessChannel = "2.4g-6-2437-22"
+ WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22"
+ WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22"
+ WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22"
+ WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22"
+ WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22"
+ WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22"
+ WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22"
+ WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20"
+ WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40"
+ WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20"
+ WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40"
+ WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20"
+ WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80"
+ WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20"
+ WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40"
+ WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20"
+ WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160"
+ WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20"
+ WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40"
+ WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20"
+ WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80"
+ WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20"
+ WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40"
+ WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20"
+ WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20"
+ WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40"
+ WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20"
+ WIRELESSCHANNEL__5G_106_5530_80 WirelessChannel = "5g-106-5530-80"
+ WIRELESSCHANNEL__5G_108_5540_20 WirelessChannel = "5g-108-5540-20"
+ WIRELESSCHANNEL__5G_110_5550_40 WirelessChannel = "5g-110-5550-40"
+ WIRELESSCHANNEL__5G_112_5560_20 WirelessChannel = "5g-112-5560-20"
+ WIRELESSCHANNEL__5G_114_5570_160 WirelessChannel = "5g-114-5570-160"
+ WIRELESSCHANNEL__5G_116_5580_20 WirelessChannel = "5g-116-5580-20"
+ WIRELESSCHANNEL__5G_118_5590_40 WirelessChannel = "5g-118-5590-40"
+ WIRELESSCHANNEL__5G_120_5600_20 WirelessChannel = "5g-120-5600-20"
+ WIRELESSCHANNEL__5G_122_5610_80 WirelessChannel = "5g-122-5610-80"
+ WIRELESSCHANNEL__5G_124_5620_20 WirelessChannel = "5g-124-5620-20"
+ WIRELESSCHANNEL__5G_126_5630_40 WirelessChannel = "5g-126-5630-40"
+ WIRELESSCHANNEL__5G_128_5640_20 WirelessChannel = "5g-128-5640-20"
+ WIRELESSCHANNEL__5G_132_5660_20 WirelessChannel = "5g-132-5660-20"
+ WIRELESSCHANNEL__5G_134_5670_40 WirelessChannel = "5g-134-5670-40"
+ WIRELESSCHANNEL__5G_136_5680_20 WirelessChannel = "5g-136-5680-20"
+ WIRELESSCHANNEL__5G_138_5690_80 WirelessChannel = "5g-138-5690-80"
+ WIRELESSCHANNEL__5G_140_5700_20 WirelessChannel = "5g-140-5700-20"
+ WIRELESSCHANNEL__5G_142_5710_40 WirelessChannel = "5g-142-5710-40"
+ WIRELESSCHANNEL__5G_144_5720_20 WirelessChannel = "5g-144-5720-20"
+ WIRELESSCHANNEL__5G_149_5745_20 WirelessChannel = "5g-149-5745-20"
+ WIRELESSCHANNEL__5G_151_5755_40 WirelessChannel = "5g-151-5755-40"
+ WIRELESSCHANNEL__5G_153_5765_20 WirelessChannel = "5g-153-5765-20"
+ WIRELESSCHANNEL__5G_155_5775_80 WirelessChannel = "5g-155-5775-80"
+ WIRELESSCHANNEL__5G_157_5785_20 WirelessChannel = "5g-157-5785-20"
+ WIRELESSCHANNEL__5G_159_5795_40 WirelessChannel = "5g-159-5795-40"
+ WIRELESSCHANNEL__5G_161_5805_20 WirelessChannel = "5g-161-5805-20"
+ WIRELESSCHANNEL__5G_163_5815_160 WirelessChannel = "5g-163-5815-160"
+ WIRELESSCHANNEL__5G_165_5825_20 WirelessChannel = "5g-165-5825-20"
+ WIRELESSCHANNEL__5G_167_5835_40 WirelessChannel = "5g-167-5835-40"
+ WIRELESSCHANNEL__5G_169_5845_20 WirelessChannel = "5g-169-5845-20"
+ WIRELESSCHANNEL__5G_171_5855_80 WirelessChannel = "5g-171-5855-80"
+ WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20"
+ WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40"
+ WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20"
+ WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20"
+ WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40"
+ WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20"
+ WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80"
+ WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20"
+ WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40"
+ WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20"
+ WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160"
+ WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20"
+ WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40"
+ WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20"
+ WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80"
+ WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20"
+ WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40"
+ WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20"
+ WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320"
+ WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20"
+ WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40"
+ WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20"
+ WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80"
+ WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20"
+ WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40"
+ WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20"
+ WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160"
+ WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20"
+ WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40"
+ WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20"
+ WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80"
+ WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20"
+ WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40"
+ WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20"
+ WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20"
+ WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40"
+ WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20"
+ WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80"
+ WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20"
+ WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40"
+ WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20"
+ WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160"
+ WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20"
+ WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40"
+ WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20"
+ WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80"
+ WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20"
+ WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40"
+ WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20"
+ WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320"
+ WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20"
+ WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40"
+ WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20"
+ WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80"
+ WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20"
+ WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40"
+ WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20"
+ WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160"
+ WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20"
+ WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40"
+ WIRELESSCHANNEL__6G_117_6535_20 WirelessChannel = "6g-117-6535-20"
+ WIRELESSCHANNEL__6G_119_6545_80 WirelessChannel = "6g-119-6545-80"
+ WIRELESSCHANNEL__6G_121_6555_20 WirelessChannel = "6g-121-6555-20"
+ WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40"
+ WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20"
+ WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20"
+ WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40"
+ WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20"
+ WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80"
+ WIRELESSCHANNEL__6G_137_6635_20 WirelessChannel = "6g-137-6635-20"
+ WIRELESSCHANNEL__6G_139_6645_40 WirelessChannel = "6g-139-6645-40"
+ WIRELESSCHANNEL__6G_141_6655_20 WirelessChannel = "6g-141-6655-20"
+ WIRELESSCHANNEL__6G_143_6665_160 WirelessChannel = "6g-143-6665-160"
+ WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20"
+ WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40"
+ WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20"
+ WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80"
+ WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20"
+ WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40"
+ WIRELESSCHANNEL__6G_157_6735_20 WirelessChannel = "6g-157-6735-20"
+ WIRELESSCHANNEL__6G_159_6745_320 WirelessChannel = "6g-159-6745-320"
+ WIRELESSCHANNEL__6G_161_6755_20 WirelessChannel = "6g-161-6755-20"
+ WIRELESSCHANNEL__6G_163_6765_40 WirelessChannel = "6g-163-6765-40"
+ WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20"
+ WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80"
+ WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20"
+ WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40"
+ WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20"
+ WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160"
+ WIRELESSCHANNEL__6G_177_6835_20 WirelessChannel = "6g-177-6835-20"
+ WIRELESSCHANNEL__6G_179_6845_40 WirelessChannel = "6g-179-6845-40"
+ WIRELESSCHANNEL__6G_181_6855_20 WirelessChannel = "6g-181-6855-20"
+ WIRELESSCHANNEL__6G_183_6865_80 WirelessChannel = "6g-183-6865-80"
+ WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20"
+ WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40"
+ WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20"
+ WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20"
+ WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40"
+ WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20"
+ WIRELESSCHANNEL__6G_199_6945_80 WirelessChannel = "6g-199-6945-80"
+ WIRELESSCHANNEL__6G_201_6955_20 WirelessChannel = "6g-201-6955-20"
+ WIRELESSCHANNEL__6G_203_6965_40 WirelessChannel = "6g-203-6965-40"
+ WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20"
+ WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160"
+ WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20"
+ WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40"
+ WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20"
+ WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80"
+ WIRELESSCHANNEL__6G_217_7035_20 WirelessChannel = "6g-217-7035-20"
+ WIRELESSCHANNEL__6G_219_7045_40 WirelessChannel = "6g-219-7045-40"
+ WIRELESSCHANNEL__6G_221_7055_20 WirelessChannel = "6g-221-7055-20"
+ WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20"
+ WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40"
+ WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20"
+ WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20"
+ WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160"
+ WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160"
+ WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160"
+ WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160"
+ WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160"
+ WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160"
+ WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320"
WIRELESSCHANNEL__60G_10_61560_4320 WirelessChannel = "60g-10-61560-4320"
WIRELESSCHANNEL__60G_11_63720_4320 WirelessChannel = "60g-11-63720-4320"
WIRELESSCHANNEL__60G_12_65880_4320 WirelessChannel = "60g-12-65880-4320"
@@ -217,7 +217,7 @@ const (
WIRELESSCHANNEL__60G_25_61560_6480 WirelessChannel = "60g-25-61560-6480"
WIRELESSCHANNEL__60G_26_63720_6480 WirelessChannel = "60g-26-63720-6480"
WIRELESSCHANNEL__60G_27_65880_6480 WirelessChannel = "60g-27-65880-6480"
- WIRELESSCHANNEL_EMPTY WirelessChannel = ""
+ WIRELESSCHANNEL_EMPTY WirelessChannel = ""
)
// All allowed values of WirelessChannel enum
@@ -500,4 +500,3 @@ 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 12c557381..96403875b 100644
--- a/model_wireless_lan.go
+++ b/model_wireless_lan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the WirelessLAN type satisfies the MappedNullable interface at compile time
@@ -21,27 +21,27 @@ var _ MappedNullable = &WirelessLAN{}
// WirelessLAN Adds support for custom fields and tags.
type WirelessLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableBriefWirelessLANGroup `json:"group,omitempty"`
- Status *WirelessLANStatus `json:"status,omitempty"`
- Vlan NullableBriefVLAN `json:"vlan,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Scope interface{} `json:"scope,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- AuthType *WirelessLANAuthType `json:"auth_type,omitempty"`
- AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Ssid string `json:"ssid"`
+ Description *string `json:"description,omitempty"`
+ Group NullableBriefWirelessLANGroup `json:"group,omitempty"`
+ Status *WirelessLANStatus `json:"status,omitempty"`
+ Vlan NullableBriefVLAN `json:"vlan,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Scope interface{} `json:"scope,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ AuthType *WirelessLANAuthType `json:"auth_type,omitempty"`
+ AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -92,7 +92,6 @@ func (o *WirelessLAN) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *WirelessLAN) GetUrl() string {
if o == nil {
@@ -117,7 +116,6 @@ func (o *WirelessLAN) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *WirelessLAN) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -174,7 +172,6 @@ func (o *WirelessLAN) SetDisplay(v string) {
o.Display = v
}
-
// GetSsid returns the Ssid field value
func (o *WirelessLAN) GetSsid() string {
if o == nil {
@@ -199,7 +196,6 @@ func (o *WirelessLAN) SetSsid(v string) {
o.Ssid = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WirelessLAN) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -264,6 +260,7 @@ func (o *WirelessLAN) HasGroup() bool {
func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WirelessLAN) SetGroupNil() {
o.Group.Set(nil)
@@ -338,6 +335,7 @@ func (o *WirelessLAN) HasVlan() bool {
func (o *WirelessLAN) SetVlan(v BriefVLAN) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *WirelessLAN) SetVlanNil() {
o.Vlan.Set(nil)
@@ -380,6 +378,7 @@ func (o *WirelessLAN) HasScopeType() bool {
func (o *WirelessLAN) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *WirelessLAN) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -422,6 +421,7 @@ func (o *WirelessLAN) HasScopeId() bool {
func (o *WirelessLAN) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *WirelessLAN) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -497,6 +497,7 @@ func (o *WirelessLAN) HasTenant() bool {
func (o *WirelessLAN) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WirelessLAN) SetTenantNil() {
o.Tenant.Set(nil)
@@ -731,6 +732,7 @@ func (o *WirelessLAN) HasCreated() bool {
func (o *WirelessLAN) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *WirelessLAN) SetCreatedNil() {
o.Created.Set(nil)
@@ -773,6 +775,7 @@ func (o *WirelessLAN) HasLastUpdated() bool {
func (o *WirelessLAN) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *WirelessLAN) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -784,7 +787,7 @@ func (o *WirelessLAN) UnsetLastUpdated() {
}
func (o WirelessLAN) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -869,32 +872,31 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -973,5 +975,3 @@ func (v *NullableWirelessLAN) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go
index 392a039f5..016019b7e 100644
--- a/model_wireless_lan_auth_cipher.go
+++ b/model_wireless_lan_auth_cipher.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANAuthCipher{}
// WirelessLANAuthCipher struct for WirelessLANAuthCipher
type WirelessLANAuthCipher struct {
- Value *WirelessLANAuthCipherValue `json:"value,omitempty"`
- Label *WirelessLANAuthCipherLabel `json:"label,omitempty"`
+ Value *WirelessLANAuthCipherValue `json:"value,omitempty"`
+ Label *WirelessLANAuthCipherLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *WirelessLANAuthCipher) SetLabel(v WirelessLANAuthCipherLabel) {
}
func (o WirelessLANAuthCipher) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableWirelessLANAuthCipher) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go
index 6917653e3..885fdfc42 100644
--- a/model_wireless_lan_auth_cipher_label.go
+++ b/model_wireless_lan_auth_cipher_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ type WirelessLANAuthCipherLabel string
const (
WIRELESSLANAUTHCIPHERLABEL_AUTO WirelessLANAuthCipherLabel = "Auto"
WIRELESSLANAUTHCIPHERLABEL_TKIP WirelessLANAuthCipherLabel = "TKIP"
- WIRELESSLANAUTHCIPHERLABEL_AES WirelessLANAuthCipherLabel = "AES"
+ WIRELESSLANAUTHCIPHERLABEL_AES WirelessLANAuthCipherLabel = "AES"
)
// All allowed values of WirelessLANAuthCipherLabel enum
@@ -110,4 +110,3 @@ func (v *NullableWirelessLANAuthCipherLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go
index d3a27add1..961c20ec3 100644
--- a/model_wireless_lan_auth_cipher_value.go
+++ b/model_wireless_lan_auth_cipher_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type WirelessLANAuthCipherValue string
// List of WirelessLAN_auth_cipher_value
const (
- WIRELESSLANAUTHCIPHERVALUE_AUTO WirelessLANAuthCipherValue = "auto"
- WIRELESSLANAUTHCIPHERVALUE_TKIP WirelessLANAuthCipherValue = "tkip"
- WIRELESSLANAUTHCIPHERVALUE_AES WirelessLANAuthCipherValue = "aes"
+ WIRELESSLANAUTHCIPHERVALUE_AUTO WirelessLANAuthCipherValue = "auto"
+ WIRELESSLANAUTHCIPHERVALUE_TKIP WirelessLANAuthCipherValue = "tkip"
+ WIRELESSLANAUTHCIPHERVALUE_AES WirelessLANAuthCipherValue = "aes"
WIRELESSLANAUTHCIPHERVALUE_EMPTY WirelessLANAuthCipherValue = ""
)
@@ -112,4 +112,3 @@ 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 75c8e85c1..6ae30bf06 100644
--- a/model_wireless_lan_auth_type.go
+++ b/model_wireless_lan_auth_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANAuthType{}
// WirelessLANAuthType struct for WirelessLANAuthType
type WirelessLANAuthType struct {
- Value *WirelessLANAuthTypeValue `json:"value,omitempty"`
- Label *WirelessLANAuthTypeLabel `json:"label,omitempty"`
+ Value *WirelessLANAuthTypeValue `json:"value,omitempty"`
+ Label *WirelessLANAuthTypeLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *WirelessLANAuthType) SetLabel(v WirelessLANAuthTypeLabel) {
}
func (o WirelessLANAuthType) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableWirelessLANAuthType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go
index 30a4678b5..c9ede66da 100644
--- a/model_wireless_lan_auth_type_label.go
+++ b/model_wireless_lan_auth_type_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ type WirelessLANAuthTypeLabel string
// List of WirelessLAN_auth_type_label
const (
- WIRELESSLANAUTHTYPELABEL_OPEN WirelessLANAuthTypeLabel = "Open"
- WIRELESSLANAUTHTYPELABEL_WEP WirelessLANAuthTypeLabel = "WEP"
+ WIRELESSLANAUTHTYPELABEL_OPEN WirelessLANAuthTypeLabel = "Open"
+ WIRELESSLANAUTHTYPELABEL_WEP WirelessLANAuthTypeLabel = "WEP"
WIRELESSLANAUTHTYPELABEL_WPA_PERSONAL__PSK WirelessLANAuthTypeLabel = "WPA Personal (PSK)"
- WIRELESSLANAUTHTYPELABEL_WPA_ENTERPRISE WirelessLANAuthTypeLabel = "WPA Enterprise"
+ WIRELESSLANAUTHTYPELABEL_WPA_ENTERPRISE WirelessLANAuthTypeLabel = "WPA Enterprise"
)
// All allowed values of WirelessLANAuthTypeLabel enum
@@ -112,4 +112,3 @@ func (v *NullableWirelessLANAuthTypeLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go
index 25d37fb5d..7468fb267 100644
--- a/model_wireless_lan_auth_type_value.go
+++ b/model_wireless_lan_auth_type_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type WirelessLANAuthTypeValue string
// List of WirelessLAN_auth_type_value
const (
- WIRELESSLANAUTHTYPEVALUE_OPEN WirelessLANAuthTypeValue = "open"
- WIRELESSLANAUTHTYPEVALUE_WEP WirelessLANAuthTypeValue = "wep"
- WIRELESSLANAUTHTYPEVALUE_WPA_PERSONAL WirelessLANAuthTypeValue = "wpa-personal"
+ WIRELESSLANAUTHTYPEVALUE_OPEN WirelessLANAuthTypeValue = "open"
+ WIRELESSLANAUTHTYPEVALUE_WEP WirelessLANAuthTypeValue = "wep"
+ WIRELESSLANAUTHTYPEVALUE_WPA_PERSONAL WirelessLANAuthTypeValue = "wpa-personal"
WIRELESSLANAUTHTYPEVALUE_WPA_ENTERPRISE WirelessLANAuthTypeValue = "wpa-enterprise"
- WIRELESSLANAUTHTYPEVALUE_EMPTY WirelessLANAuthTypeValue = ""
+ WIRELESSLANAUTHTYPEVALUE_EMPTY WirelessLANAuthTypeValue = ""
)
// All allowed values of WirelessLANAuthTypeValue enum
@@ -114,4 +114,3 @@ 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 5e7ae84e3..cb3601f4d 100644
--- a/model_wireless_lan_group.go
+++ b/model_wireless_lan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time
@@ -21,20 +21,21 @@ var _ MappedNullable = &WirelessLANGroup{}
// WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support.
type WirelessLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
- WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
+ WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -87,7 +88,6 @@ func (o *WirelessLANGroup) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *WirelessLANGroup) GetUrl() string {
if o == nil {
@@ -112,7 +112,6 @@ func (o *WirelessLANGroup) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *WirelessLANGroup) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -169,7 +168,6 @@ func (o *WirelessLANGroup) SetDisplay(v string) {
o.Display = v
}
-
// GetName returns the Name field value
func (o *WirelessLANGroup) GetName() string {
if o == nil {
@@ -194,7 +192,6 @@ func (o *WirelessLANGroup) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WirelessLANGroup) GetSlug() string {
if o == nil {
@@ -219,7 +216,6 @@ func (o *WirelessLANGroup) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup {
if o == nil || IsNil(o.Parent.Get()) {
@@ -252,6 +248,7 @@ func (o *WirelessLANGroup) HasParent() bool {
func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WirelessLANGroup) SetParentNil() {
o.Parent.Set(nil)
@@ -390,6 +387,7 @@ func (o *WirelessLANGroup) HasCreated() bool {
func (o *WirelessLANGroup) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *WirelessLANGroup) SetCreatedNil() {
o.Created.Set(nil)
@@ -432,6 +430,7 @@ func (o *WirelessLANGroup) HasLastUpdated() bool {
func (o *WirelessLANGroup) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *WirelessLANGroup) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -474,6 +473,38 @@ func (o *WirelessLANGroup) SetWirelesslanCount(v int32) {
o.WirelesslanCount = &v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) SetComments(v string) {
+ o.Comments = &v
+}
+
// GetDepth returns the Depth field value
func (o *WirelessLANGroup) GetDepth() int32 {
if o == nil {
@@ -498,9 +529,8 @@ func (o *WirelessLANGroup) SetDepth(v int32) {
o.Depth = v
}
-
func (o WirelessLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -538,6 +568,9 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) {
if !IsNil(o.WirelesslanCount) {
toSerialize["wirelesslan_count"] = o.WirelesslanCount
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -562,32 +595,31 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -617,6 +649,7 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
delete(additionalProperties, "wirelesslan_count")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "_depth")
o.AdditionalProperties = additionalProperties
}
@@ -659,5 +692,3 @@ func (v *NullableWirelessLANGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go
index b5b0f216c..6f0e16ce9 100644
--- a/model_wireless_lan_group_request.go
+++ b/model_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WirelessLANGroupRequest{}
// WirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type WirelessLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableNestedWirelessLANGroupRequest `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableNestedWirelessLANGroupRequest `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WirelessLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WirelessLANGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WirelessLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WirelessLANGroupRequest) GetParent() NestedWirelessLANGroupRequest {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WirelessLANGroupRequest) HasParent() bool {
func (o *WirelessLANGroupRequest) SetParent(v NestedWirelessLANGroupRequest) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WirelessLANGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WirelessLANGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WirelessLANGroupRequest) 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 *WirelessLANGroupRequest) 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 *WirelessLANGroupRequest) 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 *WirelessLANGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WirelessLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WirelessLANGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWirelessLANGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go
index 41ee62368..90513f017 100644
--- a/model_wireless_lan_request.go
+++ b/model_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WirelessLANRequest{}
// WirelessLANRequest Adds support for custom fields and tags.
type WirelessLANRequest struct {
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"`
- Status *WirelessLANStatusValue `json:"status,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"`
- AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Ssid string `json:"ssid"`
+ Description *string `json:"description,omitempty"`
+ Group NullablePatchedWritableWirelessLANRequestGroup `json:"group,omitempty"`
+ Status *WirelessLANStatusValue `json:"status,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `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{}
}
@@ -81,7 +81,6 @@ func (o *WirelessLANRequest) SetSsid(v string) {
o.Ssid = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WirelessLANRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -115,9 +114,9 @@ func (o *WirelessLANRequest) SetDescription(v string) {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest {
+func (o *WirelessLANRequest) GetGroup() PatchedWritableWirelessLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefWirelessLANGroupRequest
+ var ret PatchedWritableWirelessLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -126,7 +125,7 @@ func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) {
+func (o *WirelessLANRequest) GetGroupOk() (*PatchedWritableWirelessLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -142,10 +141,11 @@ func (o *WirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field.
-func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableWirelessLANRequestGroup and assigns it to the Group field.
+func (o *WirelessLANRequest) SetGroup(v PatchedWritableWirelessLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WirelessLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -189,9 +189,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) {
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLANRequest) GetVlan() BriefVLANRequest {
+func (o *WirelessLANRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -200,7 +200,7 @@ func (o *WirelessLANRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *WirelessLANRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -216,10 +216,11 @@ func (o *WirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *WirelessLANRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *WirelessLANRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -262,6 +263,7 @@ func (o *WirelessLANRequest) HasScopeType() bool {
func (o *WirelessLANRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *WirelessLANRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -304,6 +306,7 @@ func (o *WirelessLANRequest) HasScopeId() bool {
func (o *WirelessLANRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *WirelessLANRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -315,9 +318,9 @@ func (o *WirelessLANRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLANRequest) GetTenant() BriefTenantRequest {
+func (o *WirelessLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -326,7 +329,7 @@ func (o *WirelessLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WirelessLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -342,10 +345,11 @@ func (o *WirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WirelessLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WirelessLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -549,7 +553,7 @@ func (o *WirelessLANRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WirelessLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -616,32 +620,31 @@ func (o *WirelessLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -713,5 +716,3 @@ func (v *NullableWirelessLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go
index cc8ebcc04..a5197658e 100644
--- a/model_wireless_lan_status.go
+++ b/model_wireless_lan_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANStatus{}
// WirelessLANStatus struct for WirelessLANStatus
type WirelessLANStatus struct {
- Value *WirelessLANStatusValue `json:"value,omitempty"`
- Label *WirelessLANStatusLabel `json:"label,omitempty"`
+ Value *WirelessLANStatusValue `json:"value,omitempty"`
+ Label *WirelessLANStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -108,7 +108,7 @@ func (o *WirelessLANStatus) SetLabel(v WirelessLANStatusLabel) {
}
func (o WirelessLANStatus) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -188,5 +188,3 @@ func (v *NullableWirelessLANStatus) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go
index ae597b321..070025a43 100644
--- a/model_wireless_lan_status_label.go
+++ b/model_wireless_lan_status_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type WirelessLANStatusLabel string
// List of WirelessLAN_status_label
const (
- WIRELESSLANSTATUSLABEL_ACTIVE WirelessLANStatusLabel = "Active"
- WIRELESSLANSTATUSLABEL_RESERVED WirelessLANStatusLabel = "Reserved"
- WIRELESSLANSTATUSLABEL_DISABLED WirelessLANStatusLabel = "Disabled"
+ WIRELESSLANSTATUSLABEL_ACTIVE WirelessLANStatusLabel = "Active"
+ WIRELESSLANSTATUSLABEL_RESERVED WirelessLANStatusLabel = "Reserved"
+ WIRELESSLANSTATUSLABEL_DISABLED WirelessLANStatusLabel = "Disabled"
WIRELESSLANSTATUSLABEL_DEPRECATED WirelessLANStatusLabel = "Deprecated"
)
@@ -112,4 +112,3 @@ func (v *NullableWirelessLANStatusLabel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go
index b6d454329..e71f50dc1 100644
--- a/model_wireless_lan_status_value.go
+++ b/model_wireless_lan_status_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ type WirelessLANStatusValue string
// List of WirelessLAN_status_value
const (
- WIRELESSLANSTATUSVALUE_ACTIVE WirelessLANStatusValue = "active"
- WIRELESSLANSTATUSVALUE_RESERVED WirelessLANStatusValue = "reserved"
- WIRELESSLANSTATUSVALUE_DISABLED WirelessLANStatusValue = "disabled"
+ WIRELESSLANSTATUSVALUE_ACTIVE WirelessLANStatusValue = "active"
+ WIRELESSLANSTATUSVALUE_RESERVED WirelessLANStatusValue = "reserved"
+ WIRELESSLANSTATUSVALUE_DISABLED WirelessLANStatusValue = "disabled"
WIRELESSLANSTATUSVALUE_DEPRECATED WirelessLANStatusValue = "deprecated"
- WIRELESSLANSTATUSVALUE_EMPTY WirelessLANStatusValue = ""
+ WIRELESSLANSTATUSVALUE_EMPTY WirelessLANStatusValue = ""
)
// All allowed values of WirelessLANStatusValue enum
@@ -114,4 +114,3 @@ 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 c1caae969..6b5514d44 100644
--- a/model_wireless_link.go
+++ b/model_wireless_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "time"
"fmt"
+ "time"
)
// checks if the WirelessLink type satisfies the MappedNullable interface at compile time
@@ -21,26 +21,26 @@ var _ MappedNullable = &WirelessLink{}
// WirelessLink Adds support for custom fields and tags.
type WirelessLink struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- DisplayUrl *string `json:"display_url,omitempty"`
- Display string `json:"display"`
- InterfaceA BriefInterface `json:"interface_a"`
- InterfaceB BriefInterface `json:"interface_b"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatus `json:"status,omitempty"`
- Tenant NullableBriefTenant `json:"tenant,omitempty"`
- AuthType *WirelessLANAuthType `json:"auth_type,omitempty"`
- AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitDistanceUnit `json:"distance_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created,omitempty"`
- LastUpdated NullableTime `json:"last_updated,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ DisplayUrl *string `json:"display_url,omitempty"`
+ Display string `json:"display"`
+ InterfaceA BriefInterface `json:"interface_a"`
+ InterfaceB BriefInterface `json:"interface_b"`
+ Ssid *string `json:"ssid,omitempty"`
+ Status *CableStatus `json:"status,omitempty"`
+ Tenant NullableBriefTenant `json:"tenant,omitempty"`
+ AuthType *WirelessLANAuthType `json:"auth_type,omitempty"`
+ AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitDistanceUnit `json:"distance_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTag `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Created NullableTime `json:"created,omitempty"`
+ LastUpdated NullableTime `json:"last_updated,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -92,7 +92,6 @@ func (o *WirelessLink) SetId(v int32) {
o.Id = v
}
-
// GetUrl returns the Url field value
func (o *WirelessLink) GetUrl() string {
if o == nil {
@@ -117,7 +116,6 @@ func (o *WirelessLink) SetUrl(v string) {
o.Url = v
}
-
// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise.
func (o *WirelessLink) GetDisplayUrl() string {
if o == nil || IsNil(o.DisplayUrl) {
@@ -174,7 +172,6 @@ func (o *WirelessLink) SetDisplay(v string) {
o.Display = v
}
-
// GetInterfaceA returns the InterfaceA field value
func (o *WirelessLink) GetInterfaceA() BriefInterface {
if o == nil {
@@ -199,7 +196,6 @@ func (o *WirelessLink) SetInterfaceA(v BriefInterface) {
o.InterfaceA = v
}
-
// GetInterfaceB returns the InterfaceB field value
func (o *WirelessLink) GetInterfaceB() BriefInterface {
if o == nil {
@@ -224,7 +220,6 @@ func (o *WirelessLink) SetInterfaceB(v BriefInterface) {
o.InterfaceB = v
}
-
// GetSsid returns the Ssid field value if set, zero value otherwise.
func (o *WirelessLink) GetSsid() string {
if o == nil || IsNil(o.Ssid) {
@@ -321,6 +316,7 @@ func (o *WirelessLink) HasTenant() bool {
func (o *WirelessLink) SetTenant(v BriefTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WirelessLink) SetTenantNil() {
o.Tenant.Set(nil)
@@ -459,6 +455,7 @@ func (o *WirelessLink) HasDistance() bool {
func (o *WirelessLink) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *WirelessLink) SetDistanceNil() {
o.Distance.Set(nil)
@@ -501,6 +498,7 @@ func (o *WirelessLink) HasDistanceUnit() bool {
func (o *WirelessLink) SetDistanceUnit(v CircuitDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *WirelessLink) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -671,6 +669,7 @@ func (o *WirelessLink) HasCreated() bool {
func (o *WirelessLink) SetCreated(v time.Time) {
o.Created.Set(&v)
}
+
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *WirelessLink) SetCreatedNil() {
o.Created.Set(nil)
@@ -713,6 +712,7 @@ func (o *WirelessLink) HasLastUpdated() bool {
func (o *WirelessLink) SetLastUpdated(v time.Time) {
o.LastUpdated.Set(&v)
}
+
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *WirelessLink) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
@@ -724,7 +724,7 @@ func (o *WirelessLink) UnsetLastUpdated() {
}
func (o WirelessLink) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -805,32 +805,31 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -908,5 +907,3 @@ func (v *NullableWirelessLink) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go
index 2ad05a580..0172a6fed 100644
--- a/model_wireless_link_request.go
+++ b/model_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WirelessLinkRequest{}
// WirelessLinkRequest Adds support for custom fields and tags.
type WirelessLinkRequest struct {
- InterfaceA BriefInterfaceRequest `json:"interface_a"`
- InterfaceB BriefInterfaceRequest `json:"interface_b"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"`
- AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ InterfaceA PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_a"`
+ InterfaceB PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_b"`
+ Ssid *string `json:"ssid,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"`
+ AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +43,7 @@ type _WirelessLinkRequest WirelessLinkRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest {
+func NewWirelessLinkRequest(interfaceA PatchedWritableVirtualCircuitTerminationRequestInterface, interfaceB PatchedWritableVirtualCircuitTerminationRequestInterface) *WirelessLinkRequest {
this := WirelessLinkRequest{}
this.InterfaceA = interfaceA
this.InterfaceB = interfaceB
@@ -59,9 +59,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest {
}
// GetInterfaceA returns the InterfaceA field value
-func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest {
+func (o *WirelessLinkRequest) GetInterfaceA() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -70,7 +70,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest {
// GetInterfaceAOk returns a tuple with the InterfaceA field value
// and a boolean to check if the value has been set.
-func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) {
+func (o *WirelessLinkRequest) GetInterfaceAOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -78,15 +78,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) {
}
// SetInterfaceA sets field value
-func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) {
+func (o *WirelessLinkRequest) SetInterfaceA(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceA = v
}
-
// GetInterfaceB returns the InterfaceB field value
-func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest {
+func (o *WirelessLinkRequest) GetInterfaceB() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -95,7 +94,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest {
// GetInterfaceBOk returns a tuple with the InterfaceB field value
// and a boolean to check if the value has been set.
-func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) {
+func (o *WirelessLinkRequest) GetInterfaceBOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -103,11 +102,10 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) {
}
// SetInterfaceB sets field value
-func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) {
+func (o *WirelessLinkRequest) SetInterfaceB(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceB = v
}
-
// GetSsid returns the Ssid field value if set, zero value otherwise.
func (o *WirelessLinkRequest) GetSsid() string {
if o == nil || IsNil(o.Ssid) {
@@ -173,9 +171,9 @@ func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest {
+func (o *WirelessLinkRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -184,7 +182,7 @@ func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WirelessLinkRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -200,10 +198,11 @@ func (o *WirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WirelessLinkRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WirelessLinkRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -342,6 +341,7 @@ func (o *WirelessLinkRequest) HasDistance() bool {
func (o *WirelessLinkRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *WirelessLinkRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -384,6 +384,7 @@ func (o *WirelessLinkRequest) HasDistanceUnit() bool {
func (o *WirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *WirelessLinkRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -523,7 +524,7 @@ func (o *WirelessLinkRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WirelessLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -589,32 +590,31 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -686,5 +686,3 @@ func (v *NullableWirelessLinkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_wireless_role.go b/model_wireless_role.go
index 4c9a665c7..f2c140692 100644
--- a/model_wireless_role.go
+++ b/model_wireless_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ type WirelessRole string
// List of Wireless_role
const (
- WIRELESSROLE_AP WirelessRole = "ap"
+ WIRELESSROLE_AP WirelessRole = "ap"
WIRELESSROLE_STATION WirelessRole = "station"
- WIRELESSROLE_EMPTY WirelessRole = ""
+ WIRELESSROLE_EMPTY WirelessRole = ""
)
// All allowed values of WirelessRole enum
@@ -110,4 +110,3 @@ 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 b285a1809..096230ab4 100644
--- a/model_writable_aggregate_request.go
+++ b/model_writable_aggregate_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{}
// WritableAggregateRequest Adds support for custom fields and tags.
type WritableAggregateRequest struct {
- Prefix string `json:"prefix"`
- Rir BriefRIRRequest `json:"rir"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- DateAdded NullableString `json:"date_added,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Prefix string `json:"prefix"`
+ Rir ASNRangeRequestRir `json:"rir"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ DateAdded NullableString `json:"date_added,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest {
+func NewWritableAggregateRequest(prefix string, rir ASNRangeRequestRir) *WritableAggregateRequest {
this := WritableAggregateRequest{}
this.Prefix = prefix
this.Rir = rir
@@ -76,11 +76,10 @@ func (o *WritableAggregateRequest) SetPrefix(v string) {
o.Prefix = v
}
-
// GetRir returns the Rir field value
-func (o *WritableAggregateRequest) GetRir() BriefRIRRequest {
+func (o *WritableAggregateRequest) GetRir() ASNRangeRequestRir {
if o == nil {
- var ret BriefRIRRequest
+ var ret ASNRangeRequestRir
return ret
}
@@ -89,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() BriefRIRRequest {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) {
+func (o *WritableAggregateRequest) GetRirOk() (*ASNRangeRequestRir, bool) {
if o == nil {
return nil, false
}
@@ -97,15 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) {
}
// SetRir sets field value
-func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) {
+func (o *WritableAggregateRequest) SetRir(v ASNRangeRequestRir) {
o.Rir = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest {
+func (o *WritableAggregateRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -114,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableAggregateRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -130,10 +128,11 @@ func (o *WritableAggregateRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableAggregateRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableAggregateRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -176,6 +175,7 @@ func (o *WritableAggregateRequest) HasDateAdded() bool {
func (o *WritableAggregateRequest) SetDateAdded(v string) {
o.DateAdded.Set(&v)
}
+
// SetDateAddedNil sets the value for DateAdded to be an explicit nil
func (o *WritableAggregateRequest) SetDateAddedNil() {
o.DateAdded.Set(nil)
@@ -315,7 +315,7 @@ func (o *WritableAggregateRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableAggregateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -363,32 +363,31 @@ func (o *WritableAggregateRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -454,5 +453,3 @@ func (v *NullableWritableAggregateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go
index 640866f89..f8c78e42e 100644
--- a/model_writable_cable_request.go
+++ b/model_writable_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{}
// WritableCableRequest Adds support for custom fields and tags.
type WritableCableRequest struct {
- Type NullableCableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Type NullableCableType `json:"type,omitempty"`
+ ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
+ BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Length NullableFloat64 `json:"length,omitempty"`
+ LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -86,6 +86,7 @@ func (o *WritableCableRequest) HasType() bool {
func (o *WritableCableRequest) SetType(v CableType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritableCableRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -193,9 +194,9 @@ func (o *WritableCableRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCableRequest) GetTenant() BriefTenantRequest {
+func (o *WritableCableRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -204,7 +205,7 @@ func (o *WritableCableRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableCableRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +221,11 @@ func (o *WritableCableRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableCableRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableCableRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -330,6 +332,7 @@ func (o *WritableCableRequest) HasLength() bool {
func (o *WritableCableRequest) SetLength(v float64) {
o.Length.Set(&v)
}
+
// SetLengthNil sets the value for Length to be an explicit nil
func (o *WritableCableRequest) SetLengthNil() {
o.Length.Set(nil)
@@ -372,6 +375,7 @@ func (o *WritableCableRequest) HasLengthUnit() bool {
func (o *WritableCableRequest) SetLengthUnit(v CableRequestLengthUnit) {
o.LengthUnit.Set(&v)
}
+
// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
func (o *WritableCableRequest) SetLengthUnitNil() {
o.LengthUnit.Set(nil)
@@ -511,7 +515,7 @@ func (o *WritableCableRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableCableRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -635,5 +639,3 @@ func (v *NullableWritableCableRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go
index 59ab8bc31..f809357e0 100644
--- a/model_writable_circuit_group_assignment_request.go
+++ b/model_writable_circuit_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &WritableCircuitGroupAssignmentRequest{}
// WritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer.
type WritableCircuitGroupAssignmentRequest struct {
- Group BriefCircuitGroupRequest `json:"group"`
- MemberType string `json:"member_type"`
- MemberId int64 `json:"member_id"`
- Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Group BriefCircuitGroupAssignmentSerializerRequestGroup `json:"group"`
+ MemberType string `json:"member_type"`
+ MemberId int64 `json:"member_id"`
+ Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -34,7 +34,7 @@ type _WritableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentReques
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, memberType string, memberId int64) *WritableCircuitGroupAssignmentRequest {
+func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupAssignmentSerializerRequestGroup, memberType string, memberId int64) *WritableCircuitGroupAssignmentRequest {
this := WritableCircuitGroupAssignmentRequest{}
this.Group = group
this.MemberType = memberType
@@ -51,9 +51,9 @@ func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGrou
}
// GetGroup returns the Group field value
-func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest {
+func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupAssignmentSerializerRequestGroup {
if o == nil {
- var ret BriefCircuitGroupRequest
+ var ret BriefCircuitGroupAssignmentSerializerRequestGroup
return ret
}
@@ -62,7 +62,7 @@ func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequ
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) {
+func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupAssignmentSerializerRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroup
}
// SetGroup sets field value
-func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) {
+func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupAssignmentSerializerRequestGroup) {
o.Group = v
}
-
// GetMemberType returns the MemberType field value
func (o *WritableCircuitGroupAssignmentRequest) GetMemberType() string {
if o == nil {
@@ -99,7 +98,6 @@ func (o *WritableCircuitGroupAssignmentRequest) SetMemberType(v string) {
o.MemberType = v
}
-
// GetMemberId returns the MemberId field value
func (o *WritableCircuitGroupAssignmentRequest) GetMemberId() int64 {
if o == nil {
@@ -124,7 +122,6 @@ func (o *WritableCircuitGroupAssignmentRequest) SetMemberId(v int64) {
o.MemberId = v
}
-
// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableCircuitGroupAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority {
if o == nil || IsNil(o.Priority.Get()) {
@@ -157,6 +154,7 @@ func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool {
func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) {
o.Priority.Set(&v)
}
+
// SetPriorityNil sets the value for Priority to be an explicit nil
func (o *WritableCircuitGroupAssignmentRequest) SetPriorityNil() {
o.Priority.Set(nil)
@@ -200,7 +198,7 @@ func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) {
}
func (o WritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -238,32 +236,31 @@ func (o *WritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -326,5 +323,3 @@ func (v *NullableWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go
index 1c93e26ed..e10656d47 100644
--- a/model_writable_circuit_request.go
+++ b/model_writable_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,23 +21,23 @@ var _ MappedNullable = &WritableCircuitRequest{}
// WritableCircuitRequest Adds support for custom fields and tags.
type WritableCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- Provider BriefProviderRequest `json:"provider"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type BriefCircuitTypeRequest `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ Cid string `json:"cid"`
+ Provider BriefCircuitRequestProvider `json:"provider"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type CircuitRequestType `json:"type"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ InstallDate NullableString `json:"install_date,omitempty"`
+ TerminationDate NullableString `json:"termination_date,omitempty"`
// Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
+ CommitRate NullableInt32 `json:"commit_rate,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,7 +47,7 @@ type _WritableCircuitRequest WritableCircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest {
+func NewWritableCircuitRequest(cid string, provider BriefCircuitRequestProvider, type_ CircuitRequestType) *WritableCircuitRequest {
this := WritableCircuitRequest{}
this.Cid = cid
this.Provider = provider
@@ -87,11 +87,10 @@ func (o *WritableCircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProvider returns the Provider field value
-func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest {
+func (o *WritableCircuitRequest) GetProvider() BriefCircuitRequestProvider {
if o == nil {
- var ret BriefProviderRequest
+ var ret BriefCircuitRequestProvider
return ret
}
@@ -100,7 +99,7 @@ func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
+func (o *WritableCircuitRequest) GetProviderOk() (*BriefCircuitRequestProvider, bool) {
if o == nil {
return nil, false
}
@@ -108,15 +107,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) {
}
// SetProvider sets field value
-func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) {
+func (o *WritableCircuitRequest) SetProvider(v BriefCircuitRequestProvider) {
o.Provider = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *WritableCircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -125,7 +123,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountReques
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *WritableCircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -141,10 +139,11 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *WritableCircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *WritableCircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -156,9 +155,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value
-func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest {
+func (o *WritableCircuitRequest) GetType() CircuitRequestType {
if o == nil {
- var ret BriefCircuitTypeRequest
+ var ret CircuitRequestType
return ret
}
@@ -167,7 +166,7 @@ func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) {
+func (o *WritableCircuitRequest) GetTypeOk() (*CircuitRequestType, bool) {
if o == nil {
return nil, false
}
@@ -175,11 +174,10 @@ func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) {
}
// SetType sets field value
-func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) {
+func (o *WritableCircuitRequest) SetType(v CircuitRequestType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
@@ -213,9 +211,9 @@ func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest {
+func (o *WritableCircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -224,7 +222,7 @@ func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableCircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -240,10 +238,11 @@ func (o *WritableCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableCircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableCircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -286,6 +285,7 @@ func (o *WritableCircuitRequest) HasInstallDate() bool {
func (o *WritableCircuitRequest) SetInstallDate(v string) {
o.InstallDate.Set(&v)
}
+
// SetInstallDateNil sets the value for InstallDate to be an explicit nil
func (o *WritableCircuitRequest) SetInstallDateNil() {
o.InstallDate.Set(nil)
@@ -328,6 +328,7 @@ func (o *WritableCircuitRequest) HasTerminationDate() bool {
func (o *WritableCircuitRequest) SetTerminationDate(v string) {
o.TerminationDate.Set(&v)
}
+
// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
func (o *WritableCircuitRequest) SetTerminationDateNil() {
o.TerminationDate.Set(nil)
@@ -370,6 +371,7 @@ func (o *WritableCircuitRequest) HasCommitRate() bool {
func (o *WritableCircuitRequest) SetCommitRate(v int32) {
o.CommitRate.Set(&v)
}
+
// SetCommitRateNil sets the value for CommitRate to be an explicit nil
func (o *WritableCircuitRequest) SetCommitRateNil() {
o.CommitRate.Set(nil)
@@ -444,6 +446,7 @@ func (o *WritableCircuitRequest) HasDistance() bool {
func (o *WritableCircuitRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *WritableCircuitRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -486,6 +489,7 @@ func (o *WritableCircuitRequest) HasDistanceUnit() bool {
func (o *WritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *WritableCircuitRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -625,7 +629,7 @@ func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentS
}
func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -696,32 +700,31 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -795,5 +798,3 @@ func (v *NullableWritableCircuitRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go
index 73850c3af..f3c72bd1d 100644
--- a/model_writable_cluster_request.go
+++ b/model_writable_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableClusterRequest{}
// WritableClusterRequest Adds support for custom fields and tags.
type WritableClusterRequest struct {
- Name string `json:"name"`
- Type BriefClusterTypeRequest `json:"type"`
- Group NullableBriefClusterGroupRequest `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Type ClusterRequestType `json:"type"`
+ Group NullableClusterRequestGroup `json:"group,omitempty"`
+ Status *ClusterStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _WritableClusterRequest WritableClusterRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest {
+func NewWritableClusterRequest(name string, type_ ClusterRequestType) *WritableClusterRequest {
this := WritableClusterRequest{}
this.Name = name
this.Type = type_
@@ -79,11 +79,10 @@ func (o *WritableClusterRequest) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
-func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest {
+func (o *WritableClusterRequest) GetType() ClusterRequestType {
if o == nil {
- var ret BriefClusterTypeRequest
+ var ret ClusterRequestType
return ret
}
@@ -92,7 +91,7 @@ func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) {
+func (o *WritableClusterRequest) GetTypeOk() (*ClusterRequestType, bool) {
if o == nil {
return nil, false
}
@@ -100,15 +99,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) {
}
// SetType sets field value
-func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) {
+func (o *WritableClusterRequest) SetType(v ClusterRequestType) {
o.Type = v
}
-
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest {
+func (o *WritableClusterRequest) GetGroup() ClusterRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefClusterGroupRequest
+ var ret ClusterRequestGroup
return ret
}
return *o.Group.Get()
@@ -117,7 +115,7 @@ func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) {
+func (o *WritableClusterRequest) GetGroupOk() (*ClusterRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -133,10 +131,11 @@ func (o *WritableClusterRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field.
-func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) {
+// SetGroup gets a reference to the given NullableClusterRequestGroup and assigns it to the Group field.
+func (o *WritableClusterRequest) SetGroup(v ClusterRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WritableClusterRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -180,9 +179,9 @@ func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableClusterRequest) GetTenant() BriefTenantRequest {
+func (o *WritableClusterRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -191,7 +190,7 @@ func (o *WritableClusterRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableClusterRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -207,10 +206,11 @@ func (o *WritableClusterRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableClusterRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableClusterRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -253,6 +253,7 @@ func (o *WritableClusterRequest) HasScopeType() bool {
func (o *WritableClusterRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *WritableClusterRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -295,6 +296,7 @@ func (o *WritableClusterRequest) HasScopeId() bool {
func (o *WritableClusterRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *WritableClusterRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -434,7 +436,7 @@ func (o *WritableClusterRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableClusterRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -491,32 +493,31 @@ func (o *WritableClusterRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -585,5 +586,3 @@ func (v *NullableWritableClusterRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go
index 70644f8cd..20b87d045 100644
--- a/model_writable_console_port_request.go
+++ b/model_writable_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WritableConsolePortRequest{}
// WritableConsolePortRequest Adds support for custom fields and tags.
type WritableConsolePortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
- Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest {
+func NewWritableConsolePortRequest(device BriefInterfaceRequestDevice, name string) *WritableConsolePortRequest {
this := WritableConsolePortRequest{}
this.Device = device
this.Name = name
@@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest {
}
// GetDevice returns the Device field value
-func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableConsolePortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,15 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableConsolePortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest {
+func (o *WritableConsolePortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -93,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritableConsolePortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -109,10 +108,11 @@ func (o *WritableConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritableConsolePortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritableConsolePortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -147,7 +147,6 @@ func (o *WritableConsolePortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableConsolePortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -212,6 +211,7 @@ func (o *WritableConsolePortRequest) HasType() bool {
func (o *WritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritableConsolePortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -254,6 +254,7 @@ func (o *WritableConsolePortRequest) HasSpeed() bool {
func (o *WritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *WritableConsolePortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -393,7 +394,7 @@ func (o *WritableConsolePortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableConsolePortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -447,32 +448,31 @@ func (o *WritableConsolePortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -540,5 +540,3 @@ func (v *NullableWritableConsolePortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go
index 8b960b6c4..74d64d200 100644
--- a/model_writable_console_port_template_request.go
+++ b/model_writable_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{}
// WritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableConsolePortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableConsolePortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequ
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritableConsolePortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritableConsolePortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableConsolePortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequ
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritableConsolePortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritableConsolePortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -159,7 +161,6 @@ func (o *WritableConsolePortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableConsolePortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -224,6 +225,7 @@ func (o *WritableConsolePortTemplateRequest) HasType() bool {
func (o *WritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritableConsolePortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -267,7 +269,7 @@ func (o *WritableConsolePortTemplateRequest) SetDescription(v string) {
}
func (o WritableConsolePortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,32 +312,31 @@ func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -399,5 +400,3 @@ func (v *NullableWritableConsolePortTemplateRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go
index e4ad0949a..6abccad13 100644
--- a/model_writable_console_server_port_request.go
+++ b/model_writable_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{}
// WritableConsoleServerPortRequest Adds support for custom fields and tags.
type WritableConsoleServerPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
- Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"`
+ Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest {
+func NewWritableConsoleServerPortRequest(device BriefInterfaceRequestDevice, name string) *WritableConsoleServerPortRequest {
this := WritableConsoleServerPortRequest{}
this.Device = device
this.Name = name
@@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor
}
// GetDevice returns the Device field value
-func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableConsoleServerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,15 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, b
}
// SetDevice sets field value
-func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableConsoleServerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest {
+func (o *WritableConsoleServerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -93,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -109,10 +108,11 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritableConsoleServerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritableConsoleServerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -147,7 +147,6 @@ func (o *WritableConsoleServerPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableConsoleServerPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -212,6 +211,7 @@ func (o *WritableConsoleServerPortRequest) HasType() bool {
func (o *WritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritableConsoleServerPortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -254,6 +254,7 @@ func (o *WritableConsoleServerPortRequest) HasSpeed() bool {
func (o *WritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *WritableConsoleServerPortRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -393,7 +394,7 @@ func (o *WritableConsoleServerPortRequest) SetCustomFields(v map[string]interfac
}
func (o WritableConsoleServerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -447,32 +448,31 @@ func (o *WritableConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -540,5 +540,3 @@ func (v *NullableWritableConsoleServerPortRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go
index e2dbd582d..c35abb6c5 100644
--- a/model_writable_console_server_port_template_request.go
+++ b/model_writable_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{}
// WritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableConsoleServerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTy
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -79,10 +79,11 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -94,9 +95,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -105,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTy
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -121,10 +122,11 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritableConsoleServerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -159,7 +161,6 @@ func (o *WritableConsoleServerPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableConsoleServerPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -224,6 +225,7 @@ func (o *WritableConsoleServerPortTemplateRequest) HasType() bool {
func (o *WritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritableConsoleServerPortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -267,7 +269,7 @@ func (o *WritableConsoleServerPortTemplateRequest) SetDescription(v string) {
}
func (o WritableConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,32 +312,31 @@ func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (e
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -399,5 +400,3 @@ func (v *NullableWritableConsoleServerPortTemplateRequest) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go
index 2ed778ae1..982f9f1eb 100644
--- a/model_writable_contact_assignment_request.go
+++ b/model_writable_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{}
// WritableContactAssignmentRequest Adds support for custom fields and tags.
type WritableContactAssignmentRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- Contact BriefContactRequest `json:"contact"`
- Role NullableBriefContactRoleRequest `json:"role,omitempty"`
- Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ Contact ContactAssignmentRequestContact `json:"contact"`
+ Role NullableContactAssignmentRequestRole `json:"role,omitempty"`
+ Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _WritableContactAssignmentRequest WritableContactAssignmentRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest {
+func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactAssignmentRequestContact) *WritableContactAssignmentRequest {
this := WritableContactAssignmentRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -76,7 +76,6 @@ func (o *WritableContactAssignmentRequest) SetObjectType(v string) {
o.ObjectType = v
}
-
// GetObjectId returns the ObjectId field value
func (o *WritableContactAssignmentRequest) GetObjectId() int64 {
if o == nil {
@@ -101,11 +100,10 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) {
o.ObjectId = v
}
-
// GetContact returns the Contact field value
-func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest {
+func (o *WritableContactAssignmentRequest) GetContact() ContactAssignmentRequestContact {
if o == nil {
- var ret BriefContactRequest
+ var ret ContactAssignmentRequestContact
return ret
}
@@ -114,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest {
// GetContactOk returns a tuple with the Contact field value
// and a boolean to check if the value has been set.
-func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) {
+func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactAssignmentRequestContact, bool) {
if o == nil {
return nil, false
}
@@ -122,15 +120,14 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest,
}
// SetContact sets field value
-func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) {
+func (o *WritableContactAssignmentRequest) SetContact(v ContactAssignmentRequestContact) {
o.Contact = v
}
-
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest {
+func (o *WritableContactAssignmentRequest) GetRole() ContactAssignmentRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefContactRoleRequest
+ var ret ContactAssignmentRequestRole
return ret
}
return *o.Role.Get()
@@ -139,7 +136,7 @@ func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) {
+func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactAssignmentRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -155,10 +152,11 @@ func (o *WritableContactAssignmentRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field.
-func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) {
+// SetRole gets a reference to the given NullableContactAssignmentRequestRole and assigns it to the Role field.
+func (o *WritableContactAssignmentRequest) SetRole(v ContactAssignmentRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableContactAssignmentRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -201,6 +199,7 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool {
func (o *WritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) {
o.Priority.Set(&v)
}
+
// SetPriorityNil sets the value for Priority to be an explicit nil
func (o *WritableContactAssignmentRequest) SetPriorityNil() {
o.Priority.Set(nil)
@@ -276,7 +275,7 @@ func (o *WritableContactAssignmentRequest) SetCustomFields(v map[string]interfac
}
func (o WritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -320,32 +319,31 @@ func (o *WritableContactAssignmentRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -410,5 +408,3 @@ func (v *NullableWritableContactAssignmentRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go
index 37e8c6ef5..6da3d5730 100644
--- a/model_writable_contact_group_request.go
+++ b/model_writable_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WritableContactGroupRequest{}
// WritableContactGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableContactGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WritableContactGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableContactGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WritableContactGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableContactGroupRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WritableContactGroupRequest) HasParent() bool {
func (o *WritableContactGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableContactGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WritableContactGroupRequest) SetCustomFields(v map[string]interface{})
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableContactGroupRequest) 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 *WritableContactGroupRequest) 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 *WritableContactGroupRequest) 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 *WritableContactGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableContactGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WritableContactGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWritableContactGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go
index f18b2f5ff..aa3284669 100644
--- a/model_writable_custom_field_choice_set_request.go
+++ b/model_writable_custom_field_choice_set_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &WritableCustomFieldChoiceSetRequest{}
// WritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableCustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
- ExtraChoices [][]interface{} `json:"extra_choices"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"`
+ ExtraChoices [][]interface{} `json:"extra_choices"`
// Choices are automatically ordered alphabetically
- OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
+ OrderAlphabetically *bool `json:"order_alphabetically,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *WritableCustomFieldChoiceSetRequest) SetName(v string) {
o.Name = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableCustomFieldChoiceSetRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -139,6 +138,7 @@ func (o *WritableCustomFieldChoiceSetRequest) HasBaseChoices() bool {
func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) {
o.BaseChoices.Set(&v)
}
+
// SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil
func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoicesNil() {
o.BaseChoices.Set(nil)
@@ -173,7 +173,6 @@ func (o *WritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]interface{})
o.ExtraChoices = v
}
-
// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise.
func (o *WritableCustomFieldChoiceSetRequest) GetOrderAlphabetically() bool {
if o == nil || IsNil(o.OrderAlphabetically) {
@@ -207,7 +206,7 @@ func (o *WritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) {
}
func (o WritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -246,32 +245,31 @@ func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err er
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -334,5 +332,3 @@ func (v *NullableWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go
index e1480b759..452e78801 100644
--- a/model_writable_custom_field_request.go
+++ b/model_writable_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,25 +20,25 @@ var _ MappedNullable = &WritableCustomFieldRequest{}
// WritableCustomFieldRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableCustomFieldRequest struct {
- ObjectTypes []string `json:"object_types"`
- Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
- RelatedObjectType NullableString `json:"related_object_type,omitempty"`
+ ObjectTypes []string `json:"object_types"`
+ Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
+ RelatedObjectType NullableString `json:"related_object_type,omitempty"`
// Internal field name
Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
Label *string `json:"label,omitempty"`
// Custom fields within the same group will be displayed together
- GroupName *string `json:"group_name,omitempty"`
+ GroupName *string `json:"group_name,omitempty"`
Description *string `json:"description,omitempty"`
// This field is required when creating new objects or editing an existing object.
Required *bool `json:"required,omitempty"`
// The value of this field must be unique for the assigned object
Unique *bool `json:"unique,omitempty"`
// Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.
- SearchWeight *int32 `json:"search_weight,omitempty"`
- FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
- UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
- UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
+ SearchWeight *int32 `json:"search_weight,omitempty"`
+ FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"`
+ UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"`
+ UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"`
// Replicate this value when cloning objects
IsCloneable *bool `json:"is_cloneable,omitempty"`
// Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").
@@ -52,9 +52,9 @@ type WritableCustomFieldRequest struct {
// Maximum allowed value (for numeric fields)
ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"`
// Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$
will limit values to exactly three uppercase letters.
- ValidationRegex *string `json:"validation_regex,omitempty"`
- ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
- Comments *string `json:"comments,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldRequestChoiceSet `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -103,7 +103,6 @@ func (o *WritableCustomFieldRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetType returns the Type field value if set, zero value otherwise.
func (o *WritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType {
if o == nil || IsNil(o.Type) {
@@ -168,6 +167,7 @@ func (o *WritableCustomFieldRequest) HasRelatedObjectType() bool {
func (o *WritableCustomFieldRequest) SetRelatedObjectType(v string) {
o.RelatedObjectType.Set(&v)
}
+
// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
func (o *WritableCustomFieldRequest) SetRelatedObjectTypeNil() {
o.RelatedObjectType.Set(nil)
@@ -202,7 +202,6 @@ func (o *WritableCustomFieldRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableCustomFieldRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -653,6 +652,7 @@ func (o *WritableCustomFieldRequest) HasValidationMinimum() bool {
func (o *WritableCustomFieldRequest) SetValidationMinimum(v int64) {
o.ValidationMinimum.Set(&v)
}
+
// SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil
func (o *WritableCustomFieldRequest) SetValidationMinimumNil() {
o.ValidationMinimum.Set(nil)
@@ -695,6 +695,7 @@ func (o *WritableCustomFieldRequest) HasValidationMaximum() bool {
func (o *WritableCustomFieldRequest) SetValidationMaximum(v int64) {
o.ValidationMaximum.Set(&v)
}
+
// SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil
func (o *WritableCustomFieldRequest) SetValidationMaximumNil() {
o.ValidationMaximum.Set(nil)
@@ -738,9 +739,9 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v string) {
}
// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest {
+func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldRequestChoiceSet {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret BriefCustomFieldChoiceSetRequest
+ var ret CustomFieldRequestChoiceSet
return ret
}
return *o.ChoiceSet.Get()
@@ -749,7 +750,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetReq
// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) {
+func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldRequestChoiceSet, bool) {
if o == nil {
return nil, false
}
@@ -765,10 +766,11 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
-func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldRequestChoiceSet and assigns it to the ChoiceSet field.
+func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldRequestChoiceSet) {
o.ChoiceSet.Set(&v)
}
+
// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil
func (o *WritableCustomFieldRequest) SetChoiceSetNil() {
o.ChoiceSet.Set(nil)
@@ -812,7 +814,7 @@ func (o *WritableCustomFieldRequest) SetComments(v string) {
}
func (o WritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -902,32 +904,31 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1007,5 +1008,3 @@ func (v *NullableWritableCustomFieldRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go
index 9cf2ae86c..d850d8e48 100644
--- a/model_writable_data_source_request.go
+++ b/model_writable_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,17 @@ var _ MappedNullable = &WritableDataSourceRequest{}
// WritableDataSourceRequest Adds support for custom fields and tags.
type WritableDataSourceRequest struct {
- Name string `json:"name"`
- Type string `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- Parameters interface{} `json:"parameters,omitempty"`
+ Name string `json:"name"`
+ Type string `json:"type"`
+ SourceUrl string `json:"source_url"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Description *string `json:"description,omitempty"`
+ SyncInterval NullableDataSourceSyncInterval `json:"sync_interval,omitempty"`
+ Parameters interface{} `json:"parameters,omitempty"`
// Patterns (one per line) matching files to ignore when syncing
- IgnoreRules *string `json:"ignore_rules,omitempty"`
- Comments *string `json:"comments,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IgnoreRules *string `json:"ignore_rules,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +80,6 @@ func (o *WritableDataSourceRequest) SetName(v string) {
o.Name = v
}
-
// GetType returns the Type field value
func (o *WritableDataSourceRequest) GetType() string {
if o == nil {
@@ -104,7 +104,6 @@ func (o *WritableDataSourceRequest) SetType(v string) {
o.Type = v
}
-
// GetSourceUrl returns the SourceUrl field value
func (o *WritableDataSourceRequest) GetSourceUrl() string {
if o == nil {
@@ -129,7 +128,6 @@ func (o *WritableDataSourceRequest) SetSourceUrl(v string) {
o.SourceUrl = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *WritableDataSourceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -194,6 +192,49 @@ func (o *WritableDataSourceRequest) SetDescription(v string) {
o.Description = &v
}
+// GetSyncInterval returns the SyncInterval field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableDataSourceRequest) GetSyncInterval() DataSourceSyncInterval {
+ if o == nil || IsNil(o.SyncInterval.Get()) {
+ var ret DataSourceSyncInterval
+ return ret
+ }
+ return *o.SyncInterval.Get()
+}
+
+// GetSyncIntervalOk returns a tuple with the SyncInterval field value if set, nil otherwise
+// and a 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) GetSyncIntervalOk() (*DataSourceSyncInterval, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.SyncInterval.Get(), o.SyncInterval.IsSet()
+}
+
+// HasSyncInterval returns a boolean if a field has been set.
+func (o *WritableDataSourceRequest) HasSyncInterval() bool {
+ if o != nil && o.SyncInterval.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetSyncInterval gets a reference to the given NullableDataSourceSyncInterval and assigns it to the SyncInterval field.
+func (o *WritableDataSourceRequest) SetSyncInterval(v DataSourceSyncInterval) {
+ o.SyncInterval.Set(&v)
+}
+
+// SetSyncIntervalNil sets the value for SyncInterval to be an explicit nil
+func (o *WritableDataSourceRequest) SetSyncIntervalNil() {
+ o.SyncInterval.Set(nil)
+}
+
+// UnsetSyncInterval ensures that no value is present for SyncInterval, not even an explicit nil
+func (o *WritableDataSourceRequest) UnsetSyncInterval() {
+ o.SyncInterval.Unset()
+}
+
// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableDataSourceRequest) GetParameters() interface{} {
if o == nil {
@@ -324,7 +365,7 @@ func (o *WritableDataSourceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableDataSourceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -342,6 +383,9 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.SyncInterval.IsSet() {
+ toSerialize["sync_interval"] = o.SyncInterval.Get()
+ }
if o.Parameters != nil {
toSerialize["parameters"] = o.Parameters
}
@@ -374,32 +418,31 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -421,6 +464,7 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "source_url")
delete(additionalProperties, "enabled")
delete(additionalProperties, "description")
+ delete(additionalProperties, "sync_interval")
delete(additionalProperties, "parameters")
delete(additionalProperties, "ignore_rules")
delete(additionalProperties, "comments")
@@ -466,5 +510,3 @@ func (v *NullableWritableDataSourceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_device_role_request.go b/model_writable_device_role_request.go
new file mode 100644
index 000000000..6802631e3
--- /dev/null
+++ b/model_writable_device_role_request.go
@@ -0,0 +1,530 @@
+/*
+NetBox REST API
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+API version: 4.3.0-Docker-3.3.0 (4.3)
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package netbox
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// checks if the WritableDeviceRoleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WritableDeviceRoleRequest{}
+
+// WritableDeviceRoleRequest Extends PrimaryModelSerializer to include MPTT support.
+type WritableDeviceRoleRequest struct {
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ // Virtual machines may be assigned to this role
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _WritableDeviceRoleRequest WritableDeviceRoleRequest
+
+// NewWritableDeviceRoleRequest instantiates a new WritableDeviceRoleRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWritableDeviceRoleRequest(name string, slug string) *WritableDeviceRoleRequest {
+ this := WritableDeviceRoleRequest{}
+ this.Name = name
+ this.Slug = slug
+ return &this
+}
+
+// NewWritableDeviceRoleRequestWithDefaults instantiates a new WritableDeviceRoleRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWritableDeviceRoleRequestWithDefaults() *WritableDeviceRoleRequest {
+ this := WritableDeviceRoleRequest{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *WritableDeviceRoleRequest) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *WritableDeviceRoleRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetSlug returns the Slug field value
+func (o *WritableDeviceRoleRequest) GetSlug() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Slug
+}
+
+// GetSlugOk returns a tuple with the Slug field value
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetSlugOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Slug, true
+}
+
+// SetSlug sets field value
+func (o *WritableDeviceRoleRequest) SetSlug(v string) {
+ o.Slug = v
+}
+
+// GetColor returns the Color field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) GetColor() string {
+ if o == nil || IsNil(o.Color) {
+ var ret string
+ return ret
+ }
+ return *o.Color
+}
+
+// GetColorOk returns a tuple with the Color field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetColorOk() (*string, bool) {
+ if o == nil || IsNil(o.Color) {
+ return nil, false
+ }
+ return o.Color, true
+}
+
+// HasColor returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasColor() bool {
+ if o != nil && !IsNil(o.Color) {
+ return true
+ }
+
+ return false
+}
+
+// SetColor gets a reference to the given string and assigns it to the Color field.
+func (o *WritableDeviceRoleRequest) SetColor(v string) {
+ o.Color = &v
+}
+
+// GetVmRole returns the VmRole field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) GetVmRole() bool {
+ if o == nil || IsNil(o.VmRole) {
+ var ret bool
+ return ret
+ }
+ return *o.VmRole
+}
+
+// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
+ if o == nil || IsNil(o.VmRole) {
+ return nil, false
+ }
+ return o.VmRole, true
+}
+
+// HasVmRole returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasVmRole() bool {
+ if o != nil && !IsNil(o.VmRole) {
+ return true
+ }
+
+ return false
+}
+
+// SetVmRole gets a reference to the given bool and assigns it to the VmRole field.
+func (o *WritableDeviceRoleRequest) SetVmRole(v bool) {
+ o.VmRole = &v
+}
+
+// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableDeviceRoleRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
+ if o == nil || IsNil(o.ConfigTemplate.Get()) {
+ var ret DeviceRoleRequestConfigTemplate
+ return ret
+ }
+ return *o.ConfigTemplate.Get()
+}
+
+// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableDeviceRoleRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
+}
+
+// HasConfigTemplate returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasConfigTemplate() bool {
+ if o != nil && o.ConfigTemplate.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *WritableDeviceRoleRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
+ o.ConfigTemplate.Set(&v)
+}
+
+// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
+func (o *WritableDeviceRoleRequest) SetConfigTemplateNil() {
+ o.ConfigTemplate.Set(nil)
+}
+
+// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
+func (o *WritableDeviceRoleRequest) UnsetConfigTemplate() {
+ o.ConfigTemplate.Unset()
+}
+
+// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableDeviceRoleRequest) GetParent() int32 {
+ if o == nil || IsNil(o.Parent.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.Parent.Get()
+}
+
+// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableDeviceRoleRequest) GetParentOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Parent.Get(), o.Parent.IsSet()
+}
+
+// HasParent returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasParent() bool {
+ if o != nil && o.Parent.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field.
+func (o *WritableDeviceRoleRequest) SetParent(v int32) {
+ o.Parent.Set(&v)
+}
+
+// SetParentNil sets the value for Parent to be an explicit nil
+func (o *WritableDeviceRoleRequest) SetParentNil() {
+ o.Parent.Set(nil)
+}
+
+// UnsetParent ensures that no value is present for Parent, not even an explicit nil
+func (o *WritableDeviceRoleRequest) UnsetParent() {
+ o.Parent.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
+ var ret string
+ return ret
+ }
+ return *o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
+ return nil, false
+ }
+ return o.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasDescription() bool {
+ if o != nil && !IsNil(o.Description) {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription gets a reference to the given string and assigns it to the Description field.
+func (o *WritableDeviceRoleRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) GetTags() []NestedTagRequest {
+ if o == nil || IsNil(o.Tags) {
+ var ret []NestedTagRequest
+ return ret
+ }
+ return o.Tags
+}
+
+// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+ if o == nil || IsNil(o.Tags) {
+ return nil, false
+ }
+ return o.Tags, true
+}
+
+// HasTags returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasTags() bool {
+ if o != nil && !IsNil(o.Tags) {
+ return true
+ }
+
+ return false
+}
+
+// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
+func (o *WritableDeviceRoleRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) GetCustomFields() map[string]interface{} {
+ if o == nil || IsNil(o.CustomFields) {
+ var ret map[string]interface{}
+ return ret
+ }
+ return o.CustomFields
+}
+
+// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableDeviceRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+ if o == nil || IsNil(o.CustomFields) {
+ return map[string]interface{}{}, false
+ }
+ return o.CustomFields, true
+}
+
+// HasCustomFields returns a boolean if a field has been set.
+func (o *WritableDeviceRoleRequest) HasCustomFields() bool {
+ if o != nil && !IsNil(o.CustomFields) {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
+func (o *WritableDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
+ o.CustomFields = v
+}
+
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
+func (o WritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WritableDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["slug"] = o.Slug
+ if !IsNil(o.Color) {
+ toSerialize["color"] = o.Color
+ }
+ if !IsNil(o.VmRole) {
+ toSerialize["vm_role"] = o.VmRole
+ }
+ if o.ConfigTemplate.IsSet() {
+ toSerialize["config_template"] = o.ConfigTemplate.Get()
+ }
+ if o.Parent.IsSet() {
+ toSerialize["parent"] = o.Parent.Get()
+ }
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Tags) {
+ toSerialize["tags"] = o.Tags
+ }
+ if !IsNil(o.CustomFields) {
+ toSerialize["custom_fields"] = o.CustomFields
+ }
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *WritableDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "slug",
+ }
+
+ // defaultValueFuncMap captures the default values for required properties.
+ // These values are used when required properties are missing from the payload.
+ defaultValueFuncMap := map[string]func() interface{}{}
+ var defaultValueApplied bool
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err
+ }
+
+ for _, requiredProperty := range requiredProperties {
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ if _, ok := defaultValueFuncMap[requiredProperty]; ok {
+ allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
+ defaultValueApplied = true
+ }
+ }
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ if defaultValueApplied {
+ data, err = json.Marshal(allProperties)
+ if err != nil {
+ return err
+ }
+ }
+ varWritableDeviceRoleRequest := _WritableDeviceRoleRequest{}
+
+ err = json.Unmarshal(data, &varWritableDeviceRoleRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WritableDeviceRoleRequest(varWritableDeviceRoleRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "slug")
+ delete(additionalProperties, "color")
+ delete(additionalProperties, "vm_role")
+ delete(additionalProperties, "config_template")
+ delete(additionalProperties, "parent")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "tags")
+ delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableWritableDeviceRoleRequest struct {
+ value *WritableDeviceRoleRequest
+ isSet bool
+}
+
+func (v NullableWritableDeviceRoleRequest) Get() *WritableDeviceRoleRequest {
+ return v.value
+}
+
+func (v *NullableWritableDeviceRoleRequest) Set(val *WritableDeviceRoleRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWritableDeviceRoleRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWritableDeviceRoleRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWritableDeviceRoleRequest(val *WritableDeviceRoleRequest) *NullableWritableDeviceRoleRequest {
+ return &NullableWritableDeviceRoleRequest{value: val, isSet: true}
+}
+
+func (v NullableWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWritableDeviceRoleRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go
index bf586601b..1dbd2975d 100644
--- a/model_writable_device_type_request.go
+++ b/model_writable_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,8 +12,8 @@ package netbox
import (
"encoding/json"
- "os"
"fmt"
+ "os"
)
// checks if the WritableDeviceTypeRequest type satisfies the MappedNullable interface at compile time
@@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{}
// WritableDeviceTypeRequest Adds support for custom fields and tags.
type WritableDeviceTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ DefaultPlatform NullableDeviceTypeRequestDefaultPlatform `json:"default_platform,omitempty"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- UHeight *float64 `json:"u_height,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ UHeight *float64 `json:"u_height,omitempty"`
// Devices of this type are excluded when calculating rack utilization.
ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"`
// Device consumes both front and rear rack faces.
- IsFullDepth *bool `json:"is_full_depth,omitempty"`
- SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"`
- Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
- FrontImage **os.File `json:"front_image,omitempty"`
- RearImage **os.File `json:"rear_image,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ IsFullDepth *bool `json:"is_full_depth,omitempty"`
+ SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"`
+ Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ FrontImage **os.File `json:"front_image,omitempty"`
+ RearImage **os.File `json:"rear_image,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest {
+func NewWritableDeviceTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string) *WritableDeviceTypeRequest {
this := WritableDeviceTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *WritableDeviceTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -91,15 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerReque
}
// SetManufacturer sets field value
-func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest {
+func (o *WritableDeviceTypeRequest) GetDefaultPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.DefaultPlatform.Get()
@@ -108,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest {
// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -124,10 +123,11 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool {
return false
}
-// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field.
-func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) {
+// SetDefaultPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the DefaultPlatform field.
+func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v DeviceTypeRequestDefaultPlatform) {
o.DefaultPlatform.Set(&v)
}
+
// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
func (o *WritableDeviceTypeRequest) SetDefaultPlatformNil() {
o.DefaultPlatform.Set(nil)
@@ -162,7 +162,6 @@ func (o *WritableDeviceTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *WritableDeviceTypeRequest) GetSlug() string {
if o == nil {
@@ -187,7 +186,6 @@ func (o *WritableDeviceTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *WritableDeviceTypeRequest) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -348,6 +346,7 @@ func (o *WritableDeviceTypeRequest) HasSubdeviceRole() bool {
func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) {
o.SubdeviceRole.Set(&v)
}
+
// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil
func (o *WritableDeviceTypeRequest) SetSubdeviceRoleNil() {
o.SubdeviceRole.Set(nil)
@@ -390,6 +389,7 @@ func (o *WritableDeviceTypeRequest) HasAirflow() bool {
func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *WritableDeviceTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -432,6 +432,7 @@ func (o *WritableDeviceTypeRequest) HasWeight() bool {
func (o *WritableDeviceTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *WritableDeviceTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -474,6 +475,7 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool {
func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *WritableDeviceTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -677,7 +679,7 @@ func (o *WritableDeviceTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableDeviceTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -754,32 +756,31 @@ func (o *WritableDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -855,5 +856,3 @@ func (v *NullableWritableDeviceTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go
index e75700d85..6d9d4edcf 100644
--- a/model_writable_device_with_config_context_request.go
+++ b/model_writable_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,41 +20,41 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{}
// WritableDeviceWithConfigContextRequest Adds support for custom fields and tags.
type WritableDeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType BriefDeviceTypeRequest `json:"device_type"`
- Role BriefDeviceRoleRequest `json:"role"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceBayTemplateRequestDeviceType `json:"device_type"`
+ Role DeviceWithConfigContextRequestRole `json:"role"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site BriefSiteRequest `json:"site"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face NullableRackFace1 `json:"face,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Position NullableFloat64 `json:"position,omitempty"`
+ Face NullableRackFace1 `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Status *DeviceStatusValue `json:"status,omitempty"`
- Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Status *DeviceStatusValue `json:"status,omitempty"`
+ Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ OobIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"oob_ip,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ VirtualChassis NullableDeviceWithConfigContextRequestVirtualChassis `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 NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -64,7 +64,7 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *WritableDeviceWithConfigContextRequest {
+func NewWritableDeviceWithConfigContextRequest(deviceType DeviceBayTemplateRequestDeviceType, role DeviceWithConfigContextRequestRole, site DeviceWithConfigContextRequestSite) *WritableDeviceWithConfigContextRequest {
this := WritableDeviceWithConfigContextRequest{}
this.DeviceType = deviceType
this.Role = role
@@ -112,6 +112,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasName() bool {
func (o *WritableDeviceWithConfigContextRequest) SetName(v string) {
o.Name.Set(&v)
}
+
// SetNameNil sets the value for Name to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetNameNil() {
o.Name.Set(nil)
@@ -123,9 +124,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceBayTemplateRequestDeviceType {
if o == nil {
- var ret BriefDeviceTypeRequest
+ var ret DeviceBayTemplateRequestDeviceType
return ret
}
@@ -134,7 +135,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceType
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceBayTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -142,15 +143,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDevice
}
// SetDeviceType sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceBayTemplateRequestDeviceType) {
o.DeviceType = v
}
-
// GetRole returns the Role field value
-func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceWithConfigContextRequestRole {
if o == nil {
- var ret BriefDeviceRoleRequest
+ var ret DeviceWithConfigContextRequestRole
return ret
}
@@ -159,7 +159,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleReques
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceWithConfigContextRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -167,15 +167,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRe
}
// SetRole sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceWithConfigContextRequestRole) {
o.Role = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -184,7 +183,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -200,10 +199,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableDeviceWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -215,9 +215,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -226,7 +226,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequ
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -242,10 +242,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -320,6 +321,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasAssetTag() bool {
func (o *WritableDeviceWithConfigContextRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -331,9 +333,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -342,7 +344,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -350,15 +352,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest,
}
// SetSite sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+func (o *WritableDeviceWithConfigContextRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -367,7 +368,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequ
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -383,10 +384,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *WritableDeviceWithConfigContextRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -398,9 +400,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() {
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -409,7 +411,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -425,10 +427,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *WritableDeviceWithConfigContextRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -471,6 +474,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasPosition() bool {
func (o *WritableDeviceWithConfigContextRequest) SetPosition(v float64) {
o.Position.Set(&v)
}
+
// SetPositionNil sets the value for Position to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetPositionNil() {
o.Position.Set(nil)
@@ -513,6 +517,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasFace() bool {
func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace1) {
o.Face.Set(&v)
}
+
// SetFaceNil sets the value for Face to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetFaceNil() {
o.Face.Set(nil)
@@ -555,6 +560,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasLatitude() bool {
func (o *WritableDeviceWithConfigContextRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -597,6 +603,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasLongitude() bool {
func (o *WritableDeviceWithConfigContextRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -671,6 +678,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasAirflow() bool {
func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -682,9 +690,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAirflow() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -693,7 +701,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressR
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -709,10 +717,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -724,9 +733,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -735,7 +744,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressR
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -751,10 +760,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -766,9 +776,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() {
}
// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetOobIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OobIp.Get()
@@ -777,7 +787,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressReques
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -793,10 +803,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field.
-func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) {
+// SetOobIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OobIp field.
+func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OobIp.Set(&v)
}
+
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetOobIpNil() {
o.OobIp.Set(nil)
@@ -808,9 +819,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -819,7 +830,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterReques
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -835,10 +846,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *WritableDeviceWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -850,9 +862,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() {
}
// GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() DeviceWithConfigContextRequestVirtualChassis {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret BriefVirtualChassisRequest
+ var ret DeviceWithConfigContextRequestVirtualChassis
return ret
}
return *o.VirtualChassis.Get()
@@ -861,7 +873,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtua
// GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*DeviceWithConfigContextRequestVirtualChassis, bool) {
if o == nil {
return nil, false
}
@@ -877,10 +889,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field.
-func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) {
+// SetVirtualChassis gets a reference to the given NullableDeviceWithConfigContextRequestVirtualChassis and assigns it to the VirtualChassis field.
+func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v DeviceWithConfigContextRequestVirtualChassis) {
o.VirtualChassis.Set(&v)
}
+
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
@@ -923,6 +936,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasVcPosition() bool {
func (o *WritableDeviceWithConfigContextRequest) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
+
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetVcPositionNil() {
o.VcPosition.Set(nil)
@@ -965,6 +979,7 @@ func (o *WritableDeviceWithConfigContextRequest) HasVcPriority() bool {
func (o *WritableDeviceWithConfigContextRequest) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
+
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetVcPriorityNil() {
o.VcPriority.Set(nil)
@@ -1040,9 +1055,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -1051,7 +1066,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfig
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -1067,10 +1082,11 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -1179,7 +1195,7 @@ func (o *WritableDeviceWithConfigContextRequest) SetCustomFields(v map[string]in
}
func (o WritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1289,32 +1305,31 @@ func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1401,5 +1416,3 @@ func (v *NullableWritableDeviceWithConfigContextRequest) UnmarshalJSON(src []byt
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go
index 3a52ebc81..86096f026 100644
--- a/model_writable_event_rule_request.go
+++ b/model_writable_event_rule_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,18 +21,18 @@ var _ MappedNullable = &WritableEventRuleRequest{}
// WritableEventRuleRequest Adds support for custom fields and tags.
type WritableEventRuleRequest struct {
ObjectTypes []string `json:"object_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
// The types of event which will trigger this rule.
EventTypes []EventRuleEventTypesInner `json:"event_types"`
// A set of conditions which determine whether the event will be generated.
- Conditions interface{} `json:"conditions,omitempty"`
- ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
- ActionObjectType string `json:"action_object_type"`
- ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
- Description *string `json:"description,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Conditions interface{} `json:"conditions,omitempty"`
+ ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"`
+ ActionObjectType string `json:"action_object_type"`
+ ActionObjectId NullableInt64 `json:"action_object_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,7 +83,6 @@ func (o *WritableEventRuleRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-
// GetName returns the Name field value
func (o *WritableEventRuleRequest) GetName() string {
if o == nil {
@@ -108,7 +107,6 @@ func (o *WritableEventRuleRequest) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *WritableEventRuleRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -165,7 +163,6 @@ func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) {
o.EventTypes = v
}
-
// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableEventRuleRequest) GetConditions() interface{} {
if o == nil {
@@ -255,7 +252,6 @@ 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()) {
@@ -288,6 +284,7 @@ func (o *WritableEventRuleRequest) HasActionObjectId() bool {
func (o *WritableEventRuleRequest) SetActionObjectId(v int64) {
o.ActionObjectId.Set(&v)
}
+
// SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil
func (o *WritableEventRuleRequest) SetActionObjectIdNil() {
o.ActionObjectId.Set(nil)
@@ -395,7 +392,7 @@ func (o *WritableEventRuleRequest) SetTags(v []NestedTagRequest) {
}
func (o WritableEventRuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -450,32 +447,31 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -544,5 +540,3 @@ func (v *NullableWritableEventRuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go
index 5a6faee8b..b28b25bf6 100644
--- a/model_writable_front_port_request.go
+++ b/model_writable_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ var _ MappedNullable = &WritableFrontPortRequest{}
// WritableFrontPortRequest Adds support for custom fields and tags.
type WritableFrontPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort int32 `json:"rear_port"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort int32 `json:"rear_port"`
// Mapped position on corresponding rear port
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,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 BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest {
+func NewWritableFrontPortRequest(device BriefInterfaceRequestDevice, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest {
this := WritableFrontPortRequest{}
this.Device = device
this.Name = name
@@ -62,9 +62,9 @@ func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest {
}
// GetDevice returns the Device field value
-func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableFrontPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -73,7 +73,7 @@ func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -81,15 +81,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableFrontPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest {
+func (o *WritableFrontPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -98,7 +97,7 @@ func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritableFrontPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -114,10 +113,11 @@ func (o *WritableFrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritableFrontPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritableFrontPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -152,7 +152,6 @@ func (o *WritableFrontPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableFrontPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -209,7 +208,6 @@ func (o *WritableFrontPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *WritableFrontPortRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -266,7 +264,6 @@ func (o *WritableFrontPortRequest) SetRearPort(v int32) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *WritableFrontPortRequest) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -428,7 +425,7 @@ func (o *WritableFrontPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableFrontPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -486,32 +483,31 @@ func (o *WritableFrontPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -581,5 +577,3 @@ func (v *NullableWritableFrontPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go
index 86a88114e..3cb6e812b 100644
--- a/model_writable_front_port_template_request.go
+++ b/model_writable_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{}
// WritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableFrontPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- RearPort BriefRearPortTemplateRequest `json:"rear_port"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ RearPort FrontPortTemplateRequestRearPort `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_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest {
+func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort FrontPortTemplateRequestRearPort) *WritableFrontPortTemplateRequest {
this := WritableFrontPortTemplateRequest{}
this.Name = name
this.Type = type_
@@ -57,9 +57,9 @@ func NewWritableFrontPortTemplateRequestWithDefaults() *WritableFrontPortTemplat
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableFrontPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -68,7 +68,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -84,10 +84,11 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritableFrontPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritableFrontPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -99,9 +100,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableFrontPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -110,7 +111,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeReques
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -126,10 +127,11 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritableFrontPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritableFrontPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -164,7 +166,6 @@ func (o *WritableFrontPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableFrontPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -221,7 +222,6 @@ func (o *WritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *WritableFrontPortTemplateRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -255,9 +255,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value
-func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest {
+func (o *WritableFrontPortTemplateRequest) GetRearPort() FrontPortTemplateRequestRearPort {
if o == nil {
- var ret BriefRearPortTemplateRequest
+ var ret FrontPortTemplateRequestRearPort
return ret
}
@@ -266,7 +266,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRe
// GetRearPortOk returns a tuple with the RearPort field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) {
+func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*FrontPortTemplateRequestRearPort, bool) {
if o == nil {
return nil, false
}
@@ -274,11 +274,10 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTempla
}
// SetRearPort sets field value
-func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) {
+func (o *WritableFrontPortTemplateRequest) SetRearPort(v FrontPortTemplateRequestRearPort) {
o.RearPort = v
}
-
// GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise.
func (o *WritableFrontPortTemplateRequest) GetRearPortPosition() int32 {
if o == nil || IsNil(o.RearPortPosition) {
@@ -344,7 +343,7 @@ func (o *WritableFrontPortTemplateRequest) SetDescription(v string) {
}
func (o WritableFrontPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -394,32 +393,31 @@ func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -486,5 +484,3 @@ func (v *NullableWritableFrontPortTemplateRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go
index ef0e97a8b..1e26450f4 100644
--- a/model_writable_ike_policy_request.go
+++ b/model_writable_ike_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,15 @@ var _ MappedNullable = &WritableIKEPolicyRequest{}
// WritableIKEPolicyRequest Adds support for custom fields and tags.
type WritableIKEPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
- Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PresharedKey *string `json:"preshared_key,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
+ Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PresharedKey *string `json:"preshared_key,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ 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) {
@@ -173,6 +172,7 @@ func (o *WritableIKEPolicyRequest) HasMode() bool {
func (o *WritableIKEPolicyRequest) SetMode(v PatchedWritableIKEPolicyRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *WritableIKEPolicyRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -344,7 +344,7 @@ func (o *WritableIKEPolicyRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableIKEPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -396,32 +396,31 @@ func (o *WritableIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -488,5 +487,3 @@ func (v *NullableWritableIKEPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go
index bbcc1a42b..d63270422 100644
--- a/model_writable_ike_proposal_request.go
+++ b/model_writable_ike_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableIKEProposalRequest{}
// WritableIKEProposalRequest Adds support for custom fields and tags.
type WritableIKEProposalRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
- EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"`
+ EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"`
AuthenticationAlgorithm NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`
- Group PatchedWritableIKEProposalRequestGroup `json:"group"`
+ Group PatchedWritableIKEProposalRequestGroup `json:"group"`
// Security association lifetime (in seconds)
- SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ 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) {
@@ -138,7 +137,6 @@ func (o *WritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthen
o.AuthenticationMethod = v
}
-
// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value
func (o *WritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue {
if o == nil {
@@ -163,7 +161,6 @@ func (o *WritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncrypt
o.EncryptionAlgorithm = v
}
-
// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm {
if o == nil || IsNil(o.AuthenticationAlgorithm.Get()) {
@@ -196,6 +193,7 @@ func (o *WritableIKEProposalRequest) HasAuthenticationAlgorithm() bool {
func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) {
o.AuthenticationAlgorithm.Set(&v)
}
+
// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil
func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithmNil() {
o.AuthenticationAlgorithm.Set(nil)
@@ -230,7 +228,6 @@ func (o *WritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalReques
o.Group = v
}
-
// GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableIKEProposalRequest) GetSaLifetime() int32 {
if o == nil || IsNil(o.SaLifetime.Get()) {
@@ -263,6 +260,7 @@ func (o *WritableIKEProposalRequest) HasSaLifetime() bool {
func (o *WritableIKEProposalRequest) SetSaLifetime(v int32) {
o.SaLifetime.Set(&v)
}
+
// SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil
func (o *WritableIKEProposalRequest) SetSaLifetimeNil() {
o.SaLifetime.Set(nil)
@@ -370,7 +368,7 @@ func (o *WritableIKEProposalRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableIKEProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -422,32 +420,31 @@ func (o *WritableIKEProposalRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -515,5 +512,3 @@ 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 b74c6731f..c7fc593ea 100644
--- a/model_writable_interface_request.go
+++ b/model_writable_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,45 +20,45 @@ var _ MappedNullable = &WritableInterfaceRequest{}
// WritableInterfaceRequest Adds support for custom fields and tags.
type WritableInterfaceRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceTypeValue `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Lag NullableInt32 `json:"lag,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Speed NullableInt32 `json:"speed,omitempty"`
- Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
- Wwn NullableString `json:"wwn,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Lag NullableInt32 `json:"lag,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Speed NullableInt32 `json:"speed,omitempty"`
+ Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"`
+ Wwn NullableString `json:"wwn,omitempty"`
// This interface is used only for out-of-band management
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- RfRole NullableWirelessRole `json:"rf_role,omitempty"`
- RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"`
- PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ RfRole NullableWirelessRole `json:"rf_role,omitempty"`
+ RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
+ RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
+ TxPower NullableInt32 `json:"tx_power,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ WirelessLans []int32 `json:"wireless_lans,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -68,7 +68,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest {
+func NewWritableInterfaceRequest(device BriefInterfaceRequestDevice, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest {
this := WritableInterfaceRequest{}
this.Device = device
this.Name = name
@@ -85,9 +85,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest {
}
// GetDevice returns the Device field value
-func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableInterfaceRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -96,7 +96,7 @@ func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -104,11 +104,10 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableInterfaceRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetVdcs returns the Vdcs field value if set, zero value otherwise.
func (o *WritableInterfaceRequest) GetVdcs() []int32 {
if o == nil || IsNil(o.Vdcs) {
@@ -142,9 +141,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) {
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest {
+func (o *WritableInterfaceRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -153,7 +152,7 @@ func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritableInterfaceRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -169,10 +168,11 @@ func (o *WritableInterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritableInterfaceRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritableInterfaceRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -207,7 +207,6 @@ func (o *WritableInterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableInterfaceRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -264,7 +263,6 @@ func (o *WritableInterfaceRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *WritableInterfaceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -329,6 +327,7 @@ func (o *WritableInterfaceRequest) HasParent() bool {
func (o *WritableInterfaceRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableInterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -371,6 +370,7 @@ func (o *WritableInterfaceRequest) HasBridge() bool {
func (o *WritableInterfaceRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *WritableInterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -413,6 +413,7 @@ func (o *WritableInterfaceRequest) HasLag() bool {
func (o *WritableInterfaceRequest) SetLag(v int32) {
o.Lag.Set(&v)
}
+
// SetLagNil sets the value for Lag to be an explicit nil
func (o *WritableInterfaceRequest) SetLagNil() {
o.Lag.Set(nil)
@@ -455,6 +456,7 @@ func (o *WritableInterfaceRequest) HasMtu() bool {
func (o *WritableInterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *WritableInterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -466,9 +468,9 @@ func (o *WritableInterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *WritableInterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -477,7 +479,7 @@ func (o *WritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *WritableInterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -493,10 +495,11 @@ func (o *WritableInterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *WritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *WritableInterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *WritableInterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -539,6 +542,7 @@ func (o *WritableInterfaceRequest) HasSpeed() bool {
func (o *WritableInterfaceRequest) SetSpeed(v int32) {
o.Speed.Set(&v)
}
+
// SetSpeedNil sets the value for Speed to be an explicit nil
func (o *WritableInterfaceRequest) SetSpeedNil() {
o.Speed.Set(nil)
@@ -581,6 +585,7 @@ func (o *WritableInterfaceRequest) HasDuplex() bool {
func (o *WritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) {
o.Duplex.Set(&v)
}
+
// SetDuplexNil sets the value for Duplex to be an explicit nil
func (o *WritableInterfaceRequest) SetDuplexNil() {
o.Duplex.Set(nil)
@@ -623,6 +628,7 @@ func (o *WritableInterfaceRequest) HasWwn() bool {
func (o *WritableInterfaceRequest) SetWwn(v string) {
o.Wwn.Set(&v)
}
+
// SetWwnNil sets the value for Wwn to be an explicit nil
func (o *WritableInterfaceRequest) SetWwnNil() {
o.Wwn.Set(nil)
@@ -729,6 +735,7 @@ func (o *WritableInterfaceRequest) HasMode() bool {
func (o *WritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *WritableInterfaceRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -771,6 +778,7 @@ func (o *WritableInterfaceRequest) HasRfRole() bool {
func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *WritableInterfaceRequest) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -813,6 +821,7 @@ func (o *WritableInterfaceRequest) HasRfChannel() bool {
func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel) {
o.RfChannel.Set(&v)
}
+
// SetRfChannelNil sets the value for RfChannel to be an explicit nil
func (o *WritableInterfaceRequest) SetRfChannelNil() {
o.RfChannel.Set(nil)
@@ -855,6 +864,7 @@ func (o *WritableInterfaceRequest) HasPoeMode() bool {
func (o *WritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *WritableInterfaceRequest) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -897,6 +907,7 @@ func (o *WritableInterfaceRequest) HasPoeType() bool {
func (o *WritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *WritableInterfaceRequest) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -939,6 +950,7 @@ func (o *WritableInterfaceRequest) HasRfChannelFrequency() bool {
func (o *WritableInterfaceRequest) SetRfChannelFrequency(v float64) {
o.RfChannelFrequency.Set(&v)
}
+
// SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil
func (o *WritableInterfaceRequest) SetRfChannelFrequencyNil() {
o.RfChannelFrequency.Set(nil)
@@ -981,6 +993,7 @@ func (o *WritableInterfaceRequest) HasRfChannelWidth() bool {
func (o *WritableInterfaceRequest) SetRfChannelWidth(v float64) {
o.RfChannelWidth.Set(&v)
}
+
// SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil
func (o *WritableInterfaceRequest) SetRfChannelWidthNil() {
o.RfChannelWidth.Set(nil)
@@ -1023,6 +1036,7 @@ func (o *WritableInterfaceRequest) HasTxPower() bool {
func (o *WritableInterfaceRequest) SetTxPower(v int32) {
o.TxPower.Set(&v)
}
+
// SetTxPowerNil sets the value for TxPower to be an explicit nil
func (o *WritableInterfaceRequest) SetTxPowerNil() {
o.TxPower.Set(nil)
@@ -1034,9 +1048,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *WritableInterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -1045,7 +1059,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1061,10 +1075,11 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *WritableInterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *WritableInterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -1108,9 +1123,9 @@ func (o *WritableInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *WritableInterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -1119,7 +1134,7 @@ func (o *WritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *WritableInterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -1135,10 +1150,11 @@ func (o *WritableInterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *WritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *WritableInterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *WritableInterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -1150,9 +1166,9 @@ func (o *WritableInterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *WritableInterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -1161,7 +1177,7 @@ func (o *WritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslati
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *WritableInterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -1177,10 +1193,11 @@ func (o *WritableInterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *WritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *WritableInterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *WritableInterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -1256,9 +1273,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *WritableInterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -1267,7 +1284,7 @@ func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *WritableInterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -1283,10 +1300,11 @@ func (o *WritableInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *WritableInterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *WritableInterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -1362,7 +1380,7 @@ func (o *WritableInterfaceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1487,32 +1505,31 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1604,5 +1621,3 @@ func (v *NullableWritableInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go
index eef59b817..9d6bc5785 100644
--- a/model_writable_interface_template_request.go
+++ b/model_writable_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{}
// WritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableInterfaceTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type InterfaceTypeValue `json:"type"`
- Enabled *bool `json:"enabled,omitempty"`
- MgmtOnly *bool `json:"mgmt_only,omitempty"`
- Description *string `json:"description,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
- PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
- RfRole NullableWirelessRole `json:"rf_role,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type InterfaceTypeValue `json:"type"`
+ Enabled *bool `json:"enabled,omitempty"`
+ MgmtOnly *bool `json:"mgmt_only,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"`
+ PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"`
+ RfRole NullableWirelessRole `json:"rf_role,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableInterfaceTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeReques
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -86,10 +86,11 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritableInterfaceTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -101,9 +102,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableInterfaceTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -112,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeReques
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -128,10 +129,11 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritableInterfaceTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -166,7 +168,6 @@ func (o *WritableInterfaceTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableInterfaceTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -223,7 +224,6 @@ func (o *WritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue) {
o.Type = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *WritableInterfaceTemplateRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -352,6 +352,7 @@ func (o *WritableInterfaceTemplateRequest) HasBridge() bool {
func (o *WritableInterfaceTemplateRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -394,6 +395,7 @@ func (o *WritableInterfaceTemplateRequest) HasPoeMode() bool {
func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) {
o.PoeMode.Set(&v)
}
+
// SetPoeModeNil sets the value for PoeMode to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetPoeModeNil() {
o.PoeMode.Set(nil)
@@ -436,6 +438,7 @@ func (o *WritableInterfaceTemplateRequest) HasPoeType() bool {
func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) {
o.PoeType.Set(&v)
}
+
// SetPoeTypeNil sets the value for PoeType to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetPoeTypeNil() {
o.PoeType.Set(nil)
@@ -478,6 +481,7 @@ func (o *WritableInterfaceTemplateRequest) HasRfRole() bool {
func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) {
o.RfRole.Set(&v)
}
+
// SetRfRoleNil sets the value for RfRole to be an explicit nil
func (o *WritableInterfaceTemplateRequest) SetRfRoleNil() {
o.RfRole.Set(nil)
@@ -489,7 +493,7 @@ func (o *WritableInterfaceTemplateRequest) UnsetRfRole() {
}
func (o WritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -549,32 +553,31 @@ func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -644,5 +647,3 @@ func (v *NullableWritableInterfaceTemplateRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_inventory_item_request.go b/model_writable_inventory_item_request.go
index 5d92d6e4f..58fbbd961 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: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,26 +20,26 @@ var _ MappedNullable = &WritableInventoryItemRequest{}
// WritableInventoryItemRequest Adds support for custom fields and tags.
type WritableInventoryItemRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Role NullableInventoryItemRequestRole `json:"role,omitempty"`
+ Manufacturer NullableInventoryItemRequestManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this item
AssetTag NullableString `json:"asset_tag,omitempty"`
// This item was automatically discovered
- Discovered *bool `json:"discovered,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Discovered *bool `json:"discovered,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ComponentType NullableString `json:"component_type,omitempty"`
+ ComponentId NullableInt64 `json:"component_id,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,7 +49,7 @@ type _WritableInventoryItemRequest WritableInventoryItemRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableInventoryItemRequest(device BriefDeviceRequest, name string) *WritableInventoryItemRequest {
+func NewWritableInventoryItemRequest(device BriefInterfaceRequestDevice, name string) *WritableInventoryItemRequest {
this := WritableInventoryItemRequest{}
this.Device = device
this.Name = name
@@ -65,9 +65,9 @@ func NewWritableInventoryItemRequestWithDefaults() *WritableInventoryItemRequest
}
// GetDevice returns the Device field value
-func (o *WritableInventoryItemRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableInventoryItemRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -76,7 +76,7 @@ func (o *WritableInventoryItemRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableInventoryItemRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -84,11 +84,10 @@ func (o *WritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)
}
// SetDevice sets field value
-func (o *WritableInventoryItemRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableInventoryItemRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableInventoryItemRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -121,6 +120,7 @@ func (o *WritableInventoryItemRequest) HasParent() bool {
func (o *WritableInventoryItemRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableInventoryItemRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -155,7 +155,6 @@ func (o *WritableInventoryItemRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableInventoryItemRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -221,9 +220,9 @@ func (o *WritableInventoryItemRequest) SetStatus(v InventoryItemStatusValue) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest {
+func (o *WritableInventoryItemRequest) GetRole() InventoryItemRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefInventoryItemRoleRequest
+ var ret InventoryItemRequestRole
return ret
}
return *o.Role.Get()
@@ -232,7 +231,7 @@ func (o *WritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) {
+func (o *WritableInventoryItemRequest) GetRoleOk() (*InventoryItemRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -248,10 +247,11 @@ func (o *WritableInventoryItemRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field.
-func (o *WritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRequestRole and assigns it to the Role field.
+func (o *WritableInventoryItemRequest) SetRole(v InventoryItemRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableInventoryItemRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -263,9 +263,9 @@ func (o *WritableInventoryItemRequest) UnsetRole() {
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *WritableInventoryItemRequest) GetManufacturer() InventoryItemRequestManufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret BriefManufacturerRequest
+ var ret InventoryItemRequestManufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -274,7 +274,7 @@ func (o *WritableInventoryItemRequest) GetManufacturer() BriefManufacturerReques
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *WritableInventoryItemRequest) GetManufacturerOk() (*InventoryItemRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -290,10 +290,11 @@ func (o *WritableInventoryItemRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field.
-func (o *WritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableInventoryItemRequestManufacturer and assigns it to the Manufacturer field.
+func (o *WritableInventoryItemRequest) SetManufacturer(v InventoryItemRequestManufacturer) {
o.Manufacturer.Set(&v)
}
+
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
func (o *WritableInventoryItemRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
@@ -400,6 +401,7 @@ func (o *WritableInventoryItemRequest) HasAssetTag() bool {
func (o *WritableInventoryItemRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *WritableInventoryItemRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -506,6 +508,7 @@ func (o *WritableInventoryItemRequest) HasComponentType() bool {
func (o *WritableInventoryItemRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
+
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
func (o *WritableInventoryItemRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
@@ -548,6 +551,7 @@ func (o *WritableInventoryItemRequest) HasComponentId() bool {
func (o *WritableInventoryItemRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
+
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
func (o *WritableInventoryItemRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
@@ -623,7 +627,7 @@ func (o *WritableInventoryItemRequest) SetCustomFields(v map[string]interface{})
}
func (o WritableInventoryItemRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -695,32 +699,31 @@ func (o *WritableInventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -794,5 +797,3 @@ func (v *NullableWritableInventoryItemRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go
index af3155309..86562064f 100644
--- a/model_writable_ip_address_request.go
+++ b/model_writable_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ var _ MappedNullable = &WritableIPAddressRequest{}
// WritableIPAddressRequest Adds support for custom fields and tags.
type WritableIPAddressRequest struct {
- Address string `json:"address"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
- Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
+ Address string `json:"address"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"`
+ Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"`
+ AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
+ AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
// The IP for which this address is the \"outside\" IP
NatInside NullableInt32 `json:"nat_inside,omitempty"`
// Hostname or FQDN (not case-sensitive)
- DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -82,11 +82,10 @@ func (o *WritableIPAddressRequest) SetAddress(v string) {
o.Address = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest {
+func (o *WritableIPAddressRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -95,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *WritableIPAddressRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -111,10 +110,11 @@ func (o *WritableIPAddressRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *WritableIPAddressRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *WritableIPAddressRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest {
+func (o *WritableIPAddressRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableIPAddressRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -153,10 +153,11 @@ func (o *WritableIPAddressRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableIPAddressRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableIPAddressRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -231,6 +232,7 @@ func (o *WritableIPAddressRequest) HasRole() bool {
func (o *WritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableIPAddressRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -273,6 +275,7 @@ func (o *WritableIPAddressRequest) HasAssignedObjectType() bool {
func (o *WritableIPAddressRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType.Set(&v)
}
+
// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil
func (o *WritableIPAddressRequest) SetAssignedObjectTypeNil() {
o.AssignedObjectType.Set(nil)
@@ -315,6 +318,7 @@ func (o *WritableIPAddressRequest) HasAssignedObjectId() bool {
func (o *WritableIPAddressRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId.Set(&v)
}
+
// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil
func (o *WritableIPAddressRequest) SetAssignedObjectIdNil() {
o.AssignedObjectId.Set(nil)
@@ -357,6 +361,7 @@ func (o *WritableIPAddressRequest) HasNatInside() bool {
func (o *WritableIPAddressRequest) SetNatInside(v int32) {
o.NatInside.Set(&v)
}
+
// SetNatInsideNil sets the value for NatInside to be an explicit nil
func (o *WritableIPAddressRequest) SetNatInsideNil() {
o.NatInside.Set(nil)
@@ -528,7 +533,7 @@ func (o *WritableIPAddressRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableIPAddressRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -592,32 +597,31 @@ func (o *WritableIPAddressRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -688,5 +692,3 @@ func (v *NullableWritableIPAddressRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go
index 2b98d4ade..513a9cfdb 100644
--- a/model_writable_ip_range_request.go
+++ b/model_writable_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,20 @@ var _ MappedNullable = &WritableIPRangeRequest{}
// WritableIPRangeRequest Adds support for custom fields and tags.
type WritableIPRangeRequest struct {
- StartAddress string `json:"start_address"`
- EndAddress string `json:"end_address"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- // Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ StartAddress string `json:"start_address"`
+ EndAddress string `json:"end_address"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `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"`
+ // Prevent the creation of IP addresses within this range
+ MarkPopulated *bool `json:"mark_populated,omitempty"`
+ // Report space as 100% utilized
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -80,7 +82,6 @@ func (o *WritableIPRangeRequest) SetStartAddress(v string) {
o.StartAddress = v
}
-
// GetEndAddress returns the EndAddress field value
func (o *WritableIPRangeRequest) GetEndAddress() string {
if o == nil {
@@ -105,11 +106,10 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) {
o.EndAddress = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest {
+func (o *WritableIPRangeRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -118,7 +118,7 @@ func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *WritableIPRangeRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -134,10 +134,11 @@ func (o *WritableIPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *WritableIPRangeRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *WritableIPRangeRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -149,9 +150,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest {
+func (o *WritableIPRangeRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -160,7 +161,7 @@ func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableIPRangeRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -176,10 +177,11 @@ func (o *WritableIPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableIPRangeRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableIPRangeRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -223,9 +225,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest {
+func (o *WritableIPRangeRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -234,7 +236,7 @@ func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *WritableIPRangeRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -250,10 +252,11 @@ func (o *WritableIPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *WritableIPRangeRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableIPRangeRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -392,6 +395,38 @@ func (o *WritableIPRangeRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetMarkPopulated returns the MarkPopulated field value if set, zero value otherwise.
+func (o *WritableIPRangeRequest) GetMarkPopulated() bool {
+ if o == nil || IsNil(o.MarkPopulated) {
+ var ret bool
+ return ret
+ }
+ return *o.MarkPopulated
+}
+
+// GetMarkPopulatedOk returns a tuple with the MarkPopulated field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WritableIPRangeRequest) GetMarkPopulatedOk() (*bool, bool) {
+ if o == nil || IsNil(o.MarkPopulated) {
+ return nil, false
+ }
+ return o.MarkPopulated, true
+}
+
+// HasMarkPopulated returns a boolean if a field has been set.
+func (o *WritableIPRangeRequest) HasMarkPopulated() bool {
+ if o != nil && !IsNil(o.MarkPopulated) {
+ return true
+ }
+
+ return false
+}
+
+// SetMarkPopulated gets a reference to the given bool and assigns it to the MarkPopulated field.
+func (o *WritableIPRangeRequest) SetMarkPopulated(v bool) {
+ o.MarkPopulated = &v
+}
+
// GetMarkUtilized returns the MarkUtilized field value if set, zero value otherwise.
func (o *WritableIPRangeRequest) GetMarkUtilized() bool {
if o == nil || IsNil(o.MarkUtilized) {
@@ -425,7 +460,7 @@ func (o *WritableIPRangeRequest) SetMarkUtilized(v bool) {
}
func (o WritableIPRangeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -460,6 +495,9 @@ func (o WritableIPRangeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.MarkPopulated) {
+ toSerialize["mark_populated"] = o.MarkPopulated
+ }
if !IsNil(o.MarkUtilized) {
toSerialize["mark_utilized"] = o.MarkUtilized
}
@@ -482,32 +520,31 @@ func (o *WritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -534,6 +571,7 @@ func (o *WritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "mark_populated")
delete(additionalProperties, "mark_utilized")
o.AdditionalProperties = additionalProperties
}
@@ -576,5 +614,3 @@ func (v *NullableWritableIPRangeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go
index e67719e00..dc7ba554c 100644
--- a/model_writable_ip_sec_policy_request.go
+++ b/model_writable_ip_sec_policy_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableIPSecPolicyRequest{}
// WritableIPSecPolicyRequest Adds support for custom fields and tags.
type WritableIPSecPolicyRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
- PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Proposals []int32 `json:"proposals,omitempty"`
+ PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ 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) {
@@ -171,6 +170,7 @@ func (o *WritableIPSecPolicyRequest) HasPfsGroup() bool {
func (o *WritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) {
o.PfsGroup.Set(&v)
}
+
// SetPfsGroupNil sets the value for PfsGroup to be an explicit nil
func (o *WritableIPSecPolicyRequest) SetPfsGroupNil() {
o.PfsGroup.Set(nil)
@@ -278,7 +278,7 @@ func (o *WritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -324,32 +324,31 @@ func (o *WritableIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -414,5 +413,3 @@ func (v *NullableWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go
index 62d9c8a98..952e00330 100644
--- a/model_writable_ip_sec_profile_request.go
+++ b/model_writable_ip_sec_profile_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{}
// WritableIPSecProfileRequest Adds support for custom fields and tags.
type WritableIPSecProfileRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Mode IPSecProfileModeValue `json:"mode"`
- IkePolicy BriefIKEPolicyRequest `json:"ike_policy"`
- IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Mode IPSecProfileModeValue `json:"mode"`
+ IkePolicy IPSecProfileRequestIkePolicy `json:"ike_policy"`
+ IpsecPolicy IPSecProfileRequestIpsecPolicy `json:"ipsec_policy"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest {
+func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IPSecProfileRequestIkePolicy, ipsecPolicy IPSecProfileRequestIpsecPolicy) *WritableIPSecProfileRequest {
this := WritableIPSecProfileRequest{}
this.Name = name
this.Mode = mode
@@ -78,7 +78,6 @@ 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) {
@@ -135,11 +134,10 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
o.Mode = v
}
-
// GetIkePolicy returns the IkePolicy field value
-func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest {
+func (o *WritableIPSecProfileRequest) GetIkePolicy() IPSecProfileRequestIkePolicy {
if o == nil {
- var ret BriefIKEPolicyRequest
+ var ret IPSecProfileRequestIkePolicy
return ret
}
@@ -148,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest {
// GetIkePolicyOk returns a tuple with the IkePolicy field value
// and a boolean to check if the value has been set.
-func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) {
+func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IPSecProfileRequestIkePolicy, bool) {
if o == nil {
return nil, false
}
@@ -156,15 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest,
}
// SetIkePolicy sets field value
-func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) {
+func (o *WritableIPSecProfileRequest) SetIkePolicy(v IPSecProfileRequestIkePolicy) {
o.IkePolicy = v
}
-
// GetIpsecPolicy returns the IpsecPolicy field value
-func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest {
+func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecProfileRequestIpsecPolicy {
if o == nil {
- var ret BriefIPSecPolicyRequest
+ var ret IPSecProfileRequestIpsecPolicy
return ret
}
@@ -173,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest {
// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
// and a boolean to check if the value has been set.
-func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) {
+func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecProfileRequestIpsecPolicy, bool) {
if o == nil {
return nil, false
}
@@ -181,11 +178,10 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyReque
}
// SetIpsecPolicy sets field value
-func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) {
+func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecProfileRequestIpsecPolicy) {
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) {
@@ -283,7 +279,7 @@ func (o *WritableIPSecProfileRequest) SetCustomFields(v map[string]interface{})
}
func (o WritableIPSecProfileRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -329,32 +325,31 @@ func (o *WritableIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -420,5 +415,3 @@ func (v *NullableWritableIPSecProfileRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go
index 784b2b7b0..463f387f5 100644
--- a/model_writable_ip_sec_proposal_request.go
+++ b/model_writable_ip_sec_proposal_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableIPSecProposalRequest{}
// WritableIPSecProposalRequest Adds support for custom fields and tags.
type WritableIPSecProposalRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"`
AuthenticationAlgorithm NullableAuthentication `json:"authentication_algorithm,omitempty"`
// Security association lifetime (seconds)
SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"`
// Security association lifetime (in kilobytes)
- SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -78,7 +78,6 @@ 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) {
@@ -143,6 +142,7 @@ func (o *WritableIPSecProposalRequest) HasEncryptionAlgorithm() bool {
func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) {
o.EncryptionAlgorithm.Set(&v)
}
+
// SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil
func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithmNil() {
o.EncryptionAlgorithm.Set(nil)
@@ -185,6 +185,7 @@ func (o *WritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool {
func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) {
o.AuthenticationAlgorithm.Set(&v)
}
+
// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil
func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithmNil() {
o.AuthenticationAlgorithm.Set(nil)
@@ -227,6 +228,7 @@ func (o *WritableIPSecProposalRequest) HasSaLifetimeSeconds() bool {
func (o *WritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) {
o.SaLifetimeSeconds.Set(&v)
}
+
// SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil
func (o *WritableIPSecProposalRequest) SetSaLifetimeSecondsNil() {
o.SaLifetimeSeconds.Set(nil)
@@ -269,6 +271,7 @@ func (o *WritableIPSecProposalRequest) HasSaLifetimeData() bool {
func (o *WritableIPSecProposalRequest) SetSaLifetimeData(v int32) {
o.SaLifetimeData.Set(&v)
}
+
// SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil
func (o *WritableIPSecProposalRequest) SetSaLifetimeDataNil() {
o.SaLifetimeData.Set(nil)
@@ -376,7 +379,7 @@ func (o *WritableIPSecProposalRequest) SetCustomFields(v map[string]interface{})
}
func (o WritableIPSecProposalRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -428,32 +431,31 @@ func (o *WritableIPSecProposalRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -520,5 +522,3 @@ 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 334147566..023384e19 100644
--- a/model_writable_journal_entry_request.go
+++ b/model_writable_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableJournalEntryRequest{}
// WritableJournalEntryRequest Adds support for custom fields and tags.
type WritableJournalEntryRequest struct {
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- CreatedBy NullableInt32 `json:"created_by,omitempty"`
- Kind *JournalEntryKindValue `json:"kind,omitempty"`
- Comments string `json:"comments"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssignedObjectType string `json:"assigned_object_type"`
+ AssignedObjectId int64 `json:"assigned_object_id"`
+ CreatedBy NullableInt32 `json:"created_by,omitempty"`
+ Kind *JournalEntryKindValue `json:"kind,omitempty"`
+ Comments string `json:"comments"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *WritableJournalEntryRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType = v
}
-
// GetAssignedObjectId returns the AssignedObjectId field value
func (o *WritableJournalEntryRequest) GetAssignedObjectId() int64 {
if o == nil {
@@ -101,7 +100,6 @@ func (o *WritableJournalEntryRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId = v
}
-
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableJournalEntryRequest) GetCreatedBy() int32 {
if o == nil || IsNil(o.CreatedBy.Get()) {
@@ -134,6 +132,7 @@ func (o *WritableJournalEntryRequest) HasCreatedBy() bool {
func (o *WritableJournalEntryRequest) SetCreatedBy(v int32) {
o.CreatedBy.Set(&v)
}
+
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *WritableJournalEntryRequest) SetCreatedByNil() {
o.CreatedBy.Set(nil)
@@ -200,7 +199,6 @@ func (o *WritableJournalEntryRequest) SetComments(v string) {
o.Comments = v
}
-
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *WritableJournalEntryRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
@@ -266,7 +264,7 @@ func (o *WritableJournalEntryRequest) SetCustomFields(v map[string]interface{})
}
func (o WritableJournalEntryRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -310,32 +308,31 @@ func (o *WritableJournalEntryRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -400,5 +397,3 @@ func (v *NullableWritableJournalEntryRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go
index 75f197978..59968abd5 100644
--- a/model_writable_l2_vpn_request.go
+++ b/model_writable_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,18 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Type BriefL2VPNTypeValue `json:"type"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Type BriefL2VPNTypeValue `json:"type"`
+ Status *L2VPNStatusValue `json:"status,omitempty"`
+ ImportTargets []int32 `json:"import_targets,omitempty"`
+ ExportTargets []int32 `json:"export_targets,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,6 +89,7 @@ func (o *WritableL2VPNRequest) HasIdentifier() bool {
func (o *WritableL2VPNRequest) SetIdentifier(v int64) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *WritableL2VPNRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -122,7 +124,6 @@ func (o *WritableL2VPNRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableL2VPNRequest) GetSlug() string {
if o == nil {
@@ -147,7 +148,6 @@ func (o *WritableL2VPNRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetType returns the Type field value
func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue {
if o == nil {
@@ -172,6 +172,37 @@ func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) {
o.Type = v
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *WritableL2VPNRequest) GetStatus() L2VPNStatusValue {
+ if o == nil || IsNil(o.Status) {
+ var ret L2VPNStatusValue
+ 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 *WritableL2VPNRequest) GetStatusOk() (*L2VPNStatusValue, 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 *WritableL2VPNRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given L2VPNStatusValue and assigns it to the Status field.
+func (o *WritableL2VPNRequest) SetStatus(v L2VPNStatusValue) {
+ o.Status = &v
+}
// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
func (o *WritableL2VPNRequest) GetImportTargets() []int32 {
@@ -302,9 +333,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest {
+func (o *WritableL2VPNRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -313,7 +344,7 @@ func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableL2VPNRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -329,10 +360,11 @@ func (o *WritableL2VPNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableL2VPNRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableL2VPNRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -408,7 +440,7 @@ func (o *WritableL2VPNRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableL2VPNRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -423,6 +455,9 @@ func (o WritableL2VPNRequest) ToMap() (map[string]interface{}, error) {
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
toSerialize["type"] = o.Type
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.ImportTargets) {
toSerialize["import_targets"] = o.ImportTargets
}
@@ -464,32 +499,31 @@ func (o *WritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -510,6 +544,7 @@ func (o *WritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "import_targets")
delete(additionalProperties, "export_targets")
delete(additionalProperties, "description")
@@ -558,5 +593,3 @@ func (v *NullableWritableL2VPNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_location_request.go b/model_writable_location_request.go
index a61ecf4b0..a6c186ec8 100644
--- a/model_writable_location_request.go
+++ b/model_writable_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,18 @@ var _ MappedNullable = &WritableLocationRequest{}
// WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableLocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Site BriefSiteRequest `json:"site"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +41,7 @@ type _WritableLocationRequest WritableLocationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest) *WritableLocationRequest {
+func NewWritableLocationRequest(name string, slug string, site DeviceWithConfigContextRequestSite) *WritableLocationRequest {
this := WritableLocationRequest{}
this.Name = name
this.Slug = slug
@@ -80,7 +81,6 @@ func (o *WritableLocationRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableLocationRequest) GetSlug() string {
if o == nil {
@@ -105,11 +105,10 @@ func (o *WritableLocationRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetSite returns the Site field value
-func (o *WritableLocationRequest) GetSite() BriefSiteRequest {
+func (o *WritableLocationRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -118,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *WritableLocationRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -126,11 +125,10 @@ func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) {
+func (o *WritableLocationRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableLocationRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -163,6 +161,7 @@ func (o *WritableLocationRequest) HasParent() bool {
func (o *WritableLocationRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableLocationRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -206,9 +205,9 @@ func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableLocationRequest) GetTenant() BriefTenantRequest {
+func (o *WritableLocationRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -217,7 +216,7 @@ func (o *WritableLocationRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableLocationRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +232,11 @@ func (o *WritableLocationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableLocationRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableLocationRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -375,8 +375,40 @@ func (o *WritableLocationRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableLocationRequest) 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 *WritableLocationRequest) 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 *WritableLocationRequest) 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 *WritableLocationRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableLocationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -409,6 +441,9 @@ func (o WritableLocationRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -429,32 +464,31 @@ func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -481,6 +515,7 @@ func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -522,5 +557,3 @@ func (v *NullableWritableLocationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_module_request.go b/model_writable_module_request.go
index 32de0bdeb..96e538ed9 100644
--- a/model_writable_module_request.go
+++ b/model_writable_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableModuleRequest{}
// WritableModuleRequest Adds support for custom fields and tags.
type WritableModuleRequest struct {
- Device BriefDeviceRequest `json:"device"`
- ModuleBay int32 `json:"module_bay"`
- ModuleType BriefModuleTypeRequest `json:"module_type"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ ModuleBay int32 `json:"module_bay"`
+ ModuleType ModuleRequestModuleType `json:"module_type"`
+ Status *InventoryItemStatusValue `json:"status,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest {
+func NewWritableModuleRequest(device BriefInterfaceRequestDevice, moduleBay int32, moduleType ModuleRequestModuleType) *WritableModuleRequest {
this := WritableModuleRequest{}
this.Device = device
this.ModuleBay = moduleBay
@@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest {
}
// GetDevice returns the Device field value
-func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableModuleRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableModuleRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -76,11 +76,10 @@ func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableModuleRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModuleBay returns the ModuleBay field value
func (o *WritableModuleRequest) GetModuleBay() int32 {
if o == nil {
@@ -105,11 +104,10 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) {
o.ModuleBay = v
}
-
// GetModuleType returns the ModuleType field value
-func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableModuleRequest) GetModuleType() ModuleRequestModuleType {
if o == nil {
- var ret BriefModuleTypeRequest
+ var ret ModuleRequestModuleType
return ret
}
@@ -118,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest {
// GetModuleTypeOk returns a tuple with the ModuleType field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -126,11 +124,10 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool
}
// SetModuleType sets field value
-func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) {
+func (o *WritableModuleRequest) SetModuleType(v ModuleRequestModuleType) {
o.ModuleType = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *WritableModuleRequest) GetStatus() InventoryItemStatusValue {
if o == nil || IsNil(o.Status) {
@@ -227,6 +224,7 @@ func (o *WritableModuleRequest) HasAssetTag() bool {
func (o *WritableModuleRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *WritableModuleRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -366,7 +364,7 @@ func (o *WritableModuleRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableModuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -419,32 +417,31 @@ func (o *WritableModuleRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -512,5 +509,3 @@ func (v *NullableWritableModuleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go
index 9b3af5466..3390ac537 100644
--- a/model_writable_module_type_request.go
+++ b/model_writable_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,19 @@ var _ MappedNullable = &WritableModuleTypeRequest{}
// WritableModuleTypeRequest Adds support for custom fields and tags.
type WritableModuleTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
+ Profile NullableBriefModuleTypeRequestProfile `json:"profile,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ PartNumber *string `json:"part_number,omitempty"`
+ Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
+ WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Attributes interface{} `json:"attributes,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +42,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest {
+func NewWritableModuleTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string) *WritableModuleTypeRequest {
this := WritableModuleTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -55,10 +57,53 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest {
return &this
}
+// GetProfile returns the Profile field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableModuleTypeRequest) GetProfile() BriefModuleTypeRequestProfile {
+ if o == nil || IsNil(o.Profile.Get()) {
+ var ret BriefModuleTypeRequestProfile
+ return ret
+ }
+ return *o.Profile.Get()
+}
+
+// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableModuleTypeRequest) GetProfileOk() (*BriefModuleTypeRequestProfile, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Profile.Get(), o.Profile.IsSet()
+}
+
+// HasProfile returns a boolean if a field has been set.
+func (o *WritableModuleTypeRequest) HasProfile() bool {
+ if o != nil && o.Profile.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetProfile gets a reference to the given NullableBriefModuleTypeRequestProfile and assigns it to the Profile field.
+func (o *WritableModuleTypeRequest) SetProfile(v BriefModuleTypeRequestProfile) {
+ o.Profile.Set(&v)
+}
+
+// SetProfileNil sets the value for Profile to be an explicit nil
+func (o *WritableModuleTypeRequest) SetProfileNil() {
+ o.Profile.Set(nil)
+}
+
+// UnsetProfile ensures that no value is present for Profile, not even an explicit nil
+func (o *WritableModuleTypeRequest) UnsetProfile() {
+ o.Profile.Unset()
+}
+
// GetManufacturer returns the Manufacturer field value
-func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *WritableModuleTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -67,7 +112,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -75,11 +120,10 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerReque
}
// SetManufacturer sets field value
-func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *WritableModuleTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *WritableModuleTypeRequest) GetModel() string {
if o == nil {
@@ -104,7 +148,6 @@ func (o *WritableModuleTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetPartNumber returns the PartNumber field value if set, zero value otherwise.
func (o *WritableModuleTypeRequest) GetPartNumber() string {
if o == nil || IsNil(o.PartNumber) {
@@ -169,6 +212,7 @@ func (o *WritableModuleTypeRequest) HasAirflow() bool {
func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *WritableModuleTypeRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -211,6 +255,7 @@ func (o *WritableModuleTypeRequest) HasWeight() bool {
func (o *WritableModuleTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *WritableModuleTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -253,6 +298,7 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool {
func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *WritableModuleTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -295,6 +341,39 @@ func (o *WritableModuleTypeRequest) SetDescription(v string) {
o.Description = &v
}
+// GetAttributes returns the Attributes field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableModuleTypeRequest) GetAttributes() interface{} {
+ if o == nil {
+ var ret interface{}
+ return ret
+ }
+ return o.Attributes
+}
+
+// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableModuleTypeRequest) GetAttributesOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Attributes) {
+ return nil, false
+ }
+ return &o.Attributes, true
+}
+
+// HasAttributes returns a boolean if a field has been set.
+func (o *WritableModuleTypeRequest) HasAttributes() bool {
+ if o != nil && !IsNil(o.Attributes) {
+ return true
+ }
+
+ return false
+}
+
+// SetAttributes gets a reference to the given interface{} and assigns it to the Attributes field.
+func (o *WritableModuleTypeRequest) SetAttributes(v interface{}) {
+ o.Attributes = v
+}
+
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *WritableModuleTypeRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
@@ -392,7 +471,7 @@ func (o *WritableModuleTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableModuleTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -401,6 +480,9 @@ func (o WritableModuleTypeRequest) MarshalJSON() ([]byte, error) {
func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
+ if o.Profile.IsSet() {
+ toSerialize["profile"] = o.Profile.Get()
+ }
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
if !IsNil(o.PartNumber) {
@@ -418,6 +500,9 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
+ if o.Attributes != nil {
+ toSerialize["attributes"] = o.Attributes
+ }
if !IsNil(o.Comments) {
toSerialize["comments"] = o.Comments
}
@@ -446,32 +531,31 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -488,6 +572,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "profile")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
delete(additionalProperties, "part_number")
@@ -495,6 +580,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight")
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "description")
+ delete(additionalProperties, "attributes")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
@@ -539,5 +625,3 @@ func (v *NullableWritableModuleTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go
index f4e0d9f26..8d5b7b469 100644
--- a/model_writable_power_feed_request.go
+++ b/model_writable_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,24 +20,24 @@ var _ MappedNullable = &WritablePowerFeedRequest{}
// WritablePowerFeedRequest Adds support for custom fields and tags.
type WritablePowerFeedRequest struct {
- PowerPanel BriefPowerPanelRequest `json:"power_panel"`
- Rack NullableBriefRackRequest `json:"rack,omitempty"`
- Name string `json:"name"`
- Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
- Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
- Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
- Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ PowerPanel PatchedWritablePowerFeedRequestPowerPanel `json:"power_panel"`
+ Rack NullableDeviceWithConfigContextRequestRack `json:"rack,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
+ Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
+ Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"`
+ Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"`
+ Voltage *int32 `json:"voltage,omitempty"`
+ Amperage *int32 `json:"amperage,omitempty"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Description *string `json:"description,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest {
+func NewWritablePowerFeedRequest(powerPanel PatchedWritablePowerFeedRequestPowerPanel, name string) *WritablePowerFeedRequest {
this := WritablePowerFeedRequest{}
this.PowerPanel = powerPanel
this.Name = name
@@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest {
}
// GetPowerPanel returns the PowerPanel field value
-func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest {
+func (o *WritablePowerFeedRequest) GetPowerPanel() PatchedWritablePowerFeedRequestPowerPanel {
if o == nil {
- var ret BriefPowerPanelRequest
+ var ret PatchedWritablePowerFeedRequestPowerPanel
return ret
}
@@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest {
// GetPowerPanelOk returns a tuple with the PowerPanel field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) {
+func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PatchedWritablePowerFeedRequestPowerPanel, bool) {
if o == nil {
return nil, false
}
@@ -82,15 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, b
}
// SetPowerPanel sets field value
-func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) {
+func (o *WritablePowerFeedRequest) SetPowerPanel(v PatchedWritablePowerFeedRequestPowerPanel) {
o.PowerPanel = v
}
-
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest {
+func (o *WritablePowerFeedRequest) GetRack() DeviceWithConfigContextRequestRack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret BriefRackRequest
+ var ret DeviceWithConfigContextRequestRack
return ret
}
return *o.Rack.Get()
@@ -99,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest {
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) {
+func (o *WritablePowerFeedRequest) GetRackOk() (*DeviceWithConfigContextRequestRack, bool) {
if o == nil {
return nil, false
}
@@ -115,10 +114,11 @@ func (o *WritablePowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
-func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) {
+// SetRack gets a reference to the given NullableDeviceWithConfigContextRequestRack and assigns it to the Rack field.
+func (o *WritablePowerFeedRequest) SetRack(v DeviceWithConfigContextRequestRack) {
o.Rack.Set(&v)
}
+
// SetRackNil sets the value for Rack to be an explicit nil
func (o *WritablePowerFeedRequest) SetRackNil() {
o.Rack.Set(nil)
@@ -153,7 +153,6 @@ func (o *WritablePowerFeedRequest) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *WritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus {
if o == nil || IsNil(o.Status) {
@@ -443,9 +442,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest {
+func (o *WritablePowerFeedRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -454,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritablePowerFeedRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -470,10 +469,11 @@ func (o *WritablePowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritablePowerFeedRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritablePowerFeedRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -581,7 +581,7 @@ func (o *WritablePowerFeedRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritablePowerFeedRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -653,32 +653,31 @@ func (o *WritablePowerFeedRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -752,5 +751,3 @@ func (v *NullableWritablePowerFeedRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go
index 419597810..be0c49304 100644
--- a/model_writable_power_outlet_request.go
+++ b/model_writable_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,21 @@ var _ MappedNullable = &WritablePowerOutletRequest{}
// WritablePowerOutletRequest Adds support for custom fields and tags.
type WritablePowerOutletRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"`
- FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"`
+ Status *PatchedWritablePowerOutletRequestStatus `json:"status,omitempty"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ PowerPort NullablePatchedWritablePowerOutletRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +44,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest {
+func NewWritablePowerOutletRequest(device BriefInterfaceRequestDevice, name string) *WritablePowerOutletRequest {
this := WritablePowerOutletRequest{}
this.Device = device
this.Name = name
@@ -59,9 +60,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest {
}
// GetDevice returns the Device field value
-func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest {
+func (o *WritablePowerOutletRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -70,7 +71,7 @@ func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -78,15 +79,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritablePowerOutletRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest {
+func (o *WritablePowerOutletRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -95,7 +95,7 @@ func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritablePowerOutletRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -111,10 +111,11 @@ func (o *WritablePowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritablePowerOutletRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritablePowerOutletRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -149,7 +150,6 @@ func (o *WritablePowerOutletRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritablePowerOutletRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -214,6 +214,7 @@ func (o *WritablePowerOutletRequest) HasType() bool {
func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritablePowerOutletRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -224,6 +225,38 @@ func (o *WritablePowerOutletRequest) UnsetType() {
o.Type.Unset()
}
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *WritablePowerOutletRequest) GetStatus() PatchedWritablePowerOutletRequestStatus {
+ if o == nil || IsNil(o.Status) {
+ var ret PatchedWritablePowerOutletRequestStatus
+ 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 *WritablePowerOutletRequest) GetStatusOk() (*PatchedWritablePowerOutletRequestStatus, 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 *WritablePowerOutletRequest) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given PatchedWritablePowerOutletRequestStatus and assigns it to the Status field.
+func (o *WritablePowerOutletRequest) SetStatus(v PatchedWritablePowerOutletRequestStatus) {
+ o.Status = &v
+}
+
// GetColor returns the Color field value if set, zero value otherwise.
func (o *WritablePowerOutletRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -257,9 +290,9 @@ func (o *WritablePowerOutletRequest) SetColor(v string) {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest {
+func (o *WritablePowerOutletRequest) GetPowerPort() PatchedWritablePowerOutletRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortRequest
+ var ret PatchedWritablePowerOutletRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -268,7 +301,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest {
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) {
+func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PatchedWritablePowerOutletRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -284,10 +317,11 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field.
-func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletRequestPowerPort and assigns it to the PowerPort field.
+func (o *WritablePowerOutletRequest) SetPowerPort(v PatchedWritablePowerOutletRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *WritablePowerOutletRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -330,6 +364,7 @@ func (o *WritablePowerOutletRequest) HasFeedLeg() bool {
func (o *WritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *WritablePowerOutletRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -469,7 +504,7 @@ func (o *WritablePowerOutletRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritablePowerOutletRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -489,6 +524,9 @@ func (o WritablePowerOutletRequest) ToMap() (map[string]interface{}, error) {
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
if !IsNil(o.Color) {
toSerialize["color"] = o.Color
}
@@ -529,32 +567,31 @@ func (o *WritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -576,6 +613,7 @@ func (o *WritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "type")
+ delete(additionalProperties, "status")
delete(additionalProperties, "color")
delete(additionalProperties, "power_port")
delete(additionalProperties, "feed_leg")
@@ -624,5 +662,3 @@ func (v *NullableWritablePowerOutletRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go
index 7ce1ae954..1a3599469 100644
--- a/model_writable_power_outlet_template_request.go
+++ b/model_writable_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{}
// WritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritablePowerOutletTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
- PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"`
- FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"`
+ PowerPort NullablePatchedWritablePowerOutletTemplateRequestPowerPort `json:"power_port,omitempty"`
+ FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritablePowerOutletTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequ
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -81,10 +81,11 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritablePowerOutletTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -96,9 +97,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritablePowerOutletTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -107,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequ
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -123,10 +124,11 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritablePowerOutletTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -161,7 +163,6 @@ func (o *WritablePowerOutletTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritablePowerOutletTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -226,6 +227,7 @@ func (o *WritablePowerOutletTemplateRequest) HasType() bool {
func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritablePowerOutletTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -237,9 +239,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetType() {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest {
+func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PatchedWritablePowerOutletTemplateRequestPowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret BriefPowerPortTemplateRequest
+ var ret PatchedWritablePowerOutletTemplateRequestPowerPort
return ret
}
return *o.PowerPort.Get()
@@ -248,7 +250,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTempla
// GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PatchedWritablePowerOutletTemplateRequestPowerPort, bool) {
if o == nil {
return nil, false
}
@@ -264,10 +266,11 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field.
-func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) {
+// SetPowerPort gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestPowerPort and assigns it to the PowerPort field.
+func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PatchedWritablePowerOutletTemplateRequestPowerPort) {
o.PowerPort.Set(&v)
}
+
// SetPowerPortNil sets the value for PowerPort to be an explicit nil
func (o *WritablePowerOutletTemplateRequest) SetPowerPortNil() {
o.PowerPort.Set(nil)
@@ -310,6 +313,7 @@ func (o *WritablePowerOutletTemplateRequest) HasFeedLeg() bool {
func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) {
o.FeedLeg.Set(&v)
}
+
// SetFeedLegNil sets the value for FeedLeg to be an explicit nil
func (o *WritablePowerOutletTemplateRequest) SetFeedLegNil() {
o.FeedLeg.Set(nil)
@@ -353,7 +357,7 @@ func (o *WritablePowerOutletTemplateRequest) SetDescription(v string) {
}
func (o WritablePowerOutletTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -402,32 +406,31 @@ func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err err
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -493,5 +496,3 @@ func (v *NullableWritablePowerOutletTemplateRequest) UnmarshalJSON(src []byte) e
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go
index 3e078ae43..909bf60fb 100644
--- a/model_writable_power_port_request.go
+++ b/model_writable_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,21 @@ var _ MappedNullable = &WritablePowerPortRequest{}
// WritablePowerPortRequest Adds support for custom fields and tags.
type WritablePowerPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest {
+func NewWritablePowerPortRequest(device BriefInterfaceRequestDevice, name string) *WritablePowerPortRequest {
this := WritablePowerPortRequest{}
this.Device = device
this.Name = name
@@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest {
}
// GetDevice returns the Device field value
-func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest {
+func (o *WritablePowerPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -79,15 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritablePowerPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest {
+func (o *WritablePowerPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -96,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritablePowerPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *WritablePowerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritablePowerPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritablePowerPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -150,7 +150,6 @@ func (o *WritablePowerPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritablePowerPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -215,6 +214,7 @@ func (o *WritablePowerPortRequest) HasType() bool {
func (o *WritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritablePowerPortRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -257,6 +257,7 @@ func (o *WritablePowerPortRequest) HasMaximumDraw() bool {
func (o *WritablePowerPortRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *WritablePowerPortRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -299,6 +300,7 @@ func (o *WritablePowerPortRequest) HasAllocatedDraw() bool {
func (o *WritablePowerPortRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *WritablePowerPortRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -438,7 +440,7 @@ func (o *WritablePowerPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritablePowerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -495,32 +497,31 @@ func (o *WritablePowerPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -589,5 +590,3 @@ func (v *NullableWritablePowerPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go
index e2e30b2b3..745b27e3c 100644
--- a/model_writable_power_port_template_request.go
+++ b/model_writable_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{}
// WritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritablePowerPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"`
// Maximum power draw (watts)
MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"`
// Allocated power draw (watts)
- AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
- Description *string `json:"description,omitempty"`
+ AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritablePowerPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -83,10 +83,11 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritablePowerPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritablePowerPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -98,9 +99,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritablePowerPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -109,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeReques
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -125,10 +126,11 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritablePowerPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritablePowerPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -163,7 +165,6 @@ func (o *WritablePowerPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritablePowerPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -228,6 +229,7 @@ func (o *WritablePowerPortTemplateRequest) HasType() bool {
func (o *WritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) {
o.Type.Set(&v)
}
+
// SetTypeNil sets the value for Type to be an explicit nil
func (o *WritablePowerPortTemplateRequest) SetTypeNil() {
o.Type.Set(nil)
@@ -270,6 +272,7 @@ func (o *WritablePowerPortTemplateRequest) HasMaximumDraw() bool {
func (o *WritablePowerPortTemplateRequest) SetMaximumDraw(v int32) {
o.MaximumDraw.Set(&v)
}
+
// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *WritablePowerPortTemplateRequest) SetMaximumDrawNil() {
o.MaximumDraw.Set(nil)
@@ -312,6 +315,7 @@ func (o *WritablePowerPortTemplateRequest) HasAllocatedDraw() bool {
func (o *WritablePowerPortTemplateRequest) SetAllocatedDraw(v int32) {
o.AllocatedDraw.Set(&v)
}
+
// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *WritablePowerPortTemplateRequest) SetAllocatedDrawNil() {
o.AllocatedDraw.Set(nil)
@@ -355,7 +359,7 @@ func (o *WritablePowerPortTemplateRequest) SetDescription(v string) {
}
func (o WritablePowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -404,32 +408,31 @@ func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -495,5 +498,3 @@ func (v *NullableWritablePowerPortTemplateRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go
index 1b4515406..d12023147 100644
--- a/model_writable_prefix_request.go
+++ b/model_writable_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ var _ MappedNullable = &WritablePrefixRequest{}
// WritablePrefixRequest Adds support for custom fields and tags.
type WritablePrefixRequest struct {
- Prefix string `json:"prefix"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
+ Prefix string `json:"prefix"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
- MarkUtilized *bool `json:"mark_utilized,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkUtilized *bool `json:"mark_utilized,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -83,11 +83,10 @@ func (o *WritablePrefixRequest) SetPrefix(v string) {
o.Prefix = v
}
-
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest {
+func (o *WritablePrefixRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -96,7 +95,7 @@ func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *WritablePrefixRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *WritablePrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *WritablePrefixRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *WritablePrefixRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -158,6 +158,7 @@ func (o *WritablePrefixRequest) HasScopeType() bool {
func (o *WritablePrefixRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *WritablePrefixRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -200,6 +201,7 @@ func (o *WritablePrefixRequest) HasScopeId() bool {
func (o *WritablePrefixRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *WritablePrefixRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -211,9 +213,9 @@ func (o *WritablePrefixRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest {
+func (o *WritablePrefixRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -222,7 +224,7 @@ func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritablePrefixRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -238,10 +240,11 @@ func (o *WritablePrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritablePrefixRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritablePrefixRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -253,9 +256,9 @@ func (o *WritablePrefixRequest) UnsetTenant() {
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest {
+func (o *WritablePrefixRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -264,7 +267,7 @@ func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *WritablePrefixRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -280,10 +283,11 @@ func (o *WritablePrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *WritablePrefixRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *WritablePrefixRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -327,9 +331,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus)
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetRole() BriefRoleRequest {
+func (o *WritablePrefixRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -338,7 +342,7 @@ func (o *WritablePrefixRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *WritablePrefixRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -354,10 +358,11 @@ func (o *WritablePrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *WritablePrefixRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritablePrefixRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -561,7 +566,7 @@ func (o *WritablePrefixRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritablePrefixRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -628,32 +633,31 @@ func (o *WritablePrefixRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -725,5 +729,3 @@ func (v *NullableWritablePrefixRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go
index 8d68bb613..cf49cb71f 100644
--- a/model_writable_rack_request.go
+++ b/model_writable_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,41 +20,43 @@ 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 BriefSiteRequest `json:"site"`
- Location NullableBriefLocationRequest `json:"location,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- Role NullableBriefRackRoleRequest `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Name string `json:"name"`
+ FacilityId NullableString `json:"facility_id,omitempty"`
+ Site DeviceWithConfigContextRequestSite `json:"site"`
+ Location NullableDeviceWithConfigContextRequestLocation `json:"location,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
+ Role NullablePatchedWritableRackRequestRole `json:"role,omitempty"`
+ Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"`
+ AssetTag NullableString `json:"asset_tag,omitempty"`
+ RackType NullablePatchedWritableRackRequestRackType `json:"rack_type,omitempty"`
FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"`
- Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
- StartingUnit *int32 `json:"starting_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ StartingUnit *int32 `json:"starting_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ 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 (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -64,7 +66,7 @@ type _WritableRackRequest WritableRackRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest {
+func NewWritableRackRequest(name string, site DeviceWithConfigContextRequestSite) *WritableRackRequest {
this := WritableRackRequest{}
this.Name = name
this.Site = site
@@ -103,7 +105,6 @@ func (o *WritableRackRequest) SetName(v string) {
o.Name = v
}
-
// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableRackRequest) GetFacilityId() string {
if o == nil || IsNil(o.FacilityId.Get()) {
@@ -136,6 +137,7 @@ func (o *WritableRackRequest) HasFacilityId() bool {
func (o *WritableRackRequest) SetFacilityId(v string) {
o.FacilityId.Set(&v)
}
+
// SetFacilityIdNil sets the value for FacilityId to be an explicit nil
func (o *WritableRackRequest) SetFacilityIdNil() {
o.FacilityId.Set(nil)
@@ -147,9 +149,9 @@ func (o *WritableRackRequest) UnsetFacilityId() {
}
// GetSite returns the Site field value
-func (o *WritableRackRequest) GetSite() BriefSiteRequest {
+func (o *WritableRackRequest) GetSite() DeviceWithConfigContextRequestSite {
if o == nil {
- var ret BriefSiteRequest
+ var ret DeviceWithConfigContextRequestSite
return ret
}
@@ -158,7 +160,7 @@ func (o *WritableRackRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *WritableRackRequest) GetSiteOk() (*DeviceWithConfigContextRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -166,15 +168,14 @@ func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) {
}
// SetSite sets field value
-func (o *WritableRackRequest) SetSite(v BriefSiteRequest) {
+func (o *WritableRackRequest) SetSite(v DeviceWithConfigContextRequestSite) {
o.Site = v
}
-
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRackRequest) GetLocation() BriefLocationRequest {
+func (o *WritableRackRequest) GetLocation() DeviceWithConfigContextRequestLocation {
if o == nil || IsNil(o.Location.Get()) {
- var ret BriefLocationRequest
+ var ret DeviceWithConfigContextRequestLocation
return ret
}
return *o.Location.Get()
@@ -183,7 +184,7 @@ func (o *WritableRackRequest) GetLocation() BriefLocationRequest {
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) {
+func (o *WritableRackRequest) GetLocationOk() (*DeviceWithConfigContextRequestLocation, bool) {
if o == nil {
return nil, false
}
@@ -199,10 +200,11 @@ func (o *WritableRackRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
-func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) {
+// SetLocation gets a reference to the given NullableDeviceWithConfigContextRequestLocation and assigns it to the Location field.
+func (o *WritableRackRequest) SetLocation(v DeviceWithConfigContextRequestLocation) {
o.Location.Set(&v)
}
+
// SetLocationNil sets the value for Location to be an explicit nil
func (o *WritableRackRequest) SetLocationNil() {
o.Location.Set(nil)
@@ -214,9 +216,9 @@ func (o *WritableRackRequest) UnsetLocation() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRackRequest) GetTenant() BriefTenantRequest {
+func (o *WritableRackRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -225,7 +227,7 @@ func (o *WritableRackRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableRackRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -241,10 +243,11 @@ func (o *WritableRackRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableRackRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableRackRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -288,9 +291,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRackRequest) GetRole() BriefRackRoleRequest {
+func (o *WritableRackRequest) GetRole() PatchedWritableRackRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRackRoleRequest
+ var ret PatchedWritableRackRequestRole
return ret
}
return *o.Role.Get()
@@ -299,7 +302,7 @@ func (o *WritableRackRequest) GetRole() BriefRackRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) {
+func (o *WritableRackRequest) GetRoleOk() (*PatchedWritableRackRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -315,10 +318,11 @@ func (o *WritableRackRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field.
-func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableRackRequestRole and assigns it to the Role field.
+func (o *WritableRackRequest) SetRole(v PatchedWritableRackRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableRackRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -393,6 +397,7 @@ func (o *WritableRackRequest) HasAssetTag() bool {
func (o *WritableRackRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
+
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *WritableRackRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
@@ -404,9 +409,9 @@ func (o *WritableRackRequest) UnsetAssetTag() {
}
// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest {
+func (o *WritableRackRequest) GetRackType() PatchedWritableRackRequestRackType {
if o == nil || IsNil(o.RackType.Get()) {
- var ret BriefRackTypeRequest
+ var ret PatchedWritableRackRequestRackType
return ret
}
return *o.RackType.Get()
@@ -415,7 +420,7 @@ func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest {
// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) {
+func (o *WritableRackRequest) GetRackTypeOk() (*PatchedWritableRackRequestRackType, bool) {
if o == nil {
return nil, false
}
@@ -431,10 +436,11 @@ func (o *WritableRackRequest) HasRackType() bool {
return false
}
-// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field.
-func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) {
+// SetRackType gets a reference to the given NullablePatchedWritableRackRequestRackType and assigns it to the RackType field.
+func (o *WritableRackRequest) SetRackType(v PatchedWritableRackRequestRackType) {
o.RackType.Set(&v)
}
+
// SetRackTypeNil sets the value for RackType to be an explicit nil
func (o *WritableRackRequest) SetRackTypeNil() {
o.RackType.Set(nil)
@@ -477,6 +483,7 @@ func (o *WritableRackRequest) HasFormFactor() bool {
func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) {
o.FormFactor.Set(&v)
}
+
// SetFormFactorNil sets the value for FormFactor to be an explicit nil
func (o *WritableRackRequest) SetFormFactorNil() {
o.FormFactor.Set(nil)
@@ -615,6 +622,7 @@ func (o *WritableRackRequest) HasWeight() bool {
func (o *WritableRackRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *WritableRackRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -657,6 +665,7 @@ func (o *WritableRackRequest) HasMaxWeight() bool {
func (o *WritableRackRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *WritableRackRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -699,6 +708,7 @@ func (o *WritableRackRequest) HasWeightUnit() bool {
func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *WritableRackRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -773,6 +783,7 @@ func (o *WritableRackRequest) HasOuterWidth() bool {
func (o *WritableRackRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *WritableRackRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -783,6 +794,49 @@ func (o *WritableRackRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableRackRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableRackRequest) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *WritableRackRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *WritableRackRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *WritableRackRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *WritableRackRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableRackRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -815,6 +869,7 @@ func (o *WritableRackRequest) HasOuterDepth() bool {
func (o *WritableRackRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *WritableRackRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -857,6 +912,7 @@ func (o *WritableRackRequest) HasOuterUnit() bool {
func (o *WritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *WritableRackRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -899,6 +955,7 @@ func (o *WritableRackRequest) HasMountingDepth() bool {
func (o *WritableRackRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *WritableRackRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -941,6 +998,7 @@ func (o *WritableRackRequest) HasAirflow() bool {
func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) {
o.Airflow.Set(&v)
}
+
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *WritableRackRequest) SetAirflowNil() {
o.Airflow.Set(nil)
@@ -1080,7 +1138,7 @@ func (o *WritableRackRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableRackRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -1142,6 +1200,9 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -1185,32 +1246,31 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1246,6 +1306,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "weight_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "mounting_depth")
@@ -1295,5 +1356,3 @@ func (v *NullableWritableRackRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go
index a2845a8a3..0d4140880 100644
--- a/model_writable_rack_type_request.go
+++ b/model_writable_rack_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &WritableRackTypeRequest{}
// WritableRackTypeRequest Adds support for custom fields and tags.
type WritableRackTypeRequest struct {
- Manufacturer BriefManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Description *string `json:"description,omitempty"`
- FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"`
- Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
+ Manufacturer BriefDeviceTypeRequestManufacturer `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Description *string `json:"description,omitempty"`
+ FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"`
+ Width *PatchedWritableRackRequestWidth `json:"width,omitempty"`
// Height in rack units
UHeight *int32 `json:"u_height,omitempty"`
// Starting unit for rack
@@ -34,18 +34,20 @@ type WritableRackTypeRequest struct {
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
OuterWidth NullableInt32 `json:"outer_width,omitempty"`
+ // Outer dimension of rack (height)
+ OuterHeight NullableInt32 `json:"outer_height,omitempty"`
// Outer dimension of rack (depth)
- OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
- OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
+ OuterDepth NullableInt32 `json:"outer_depth,omitempty"`
+ OuterUnit NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"`
+ Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
- MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MountingDepth NullableInt32 `json:"mounting_depth,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,7 +57,7 @@ type _WritableRackTypeRequest WritableRackTypeRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor) *WritableRackTypeRequest {
+func NewWritableRackTypeRequest(manufacturer BriefDeviceTypeRequestManufacturer, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor) *WritableRackTypeRequest {
this := WritableRackTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -73,9 +75,9 @@ func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest {
+func (o *WritableRackTypeRequest) GetManufacturer() BriefDeviceTypeRequestManufacturer {
if o == nil {
- var ret BriefManufacturerRequest
+ var ret BriefDeviceTypeRequestManufacturer
return ret
}
@@ -84,7 +86,7 @@ func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) {
+func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefDeviceTypeRequestManufacturer, bool) {
if o == nil {
return nil, false
}
@@ -92,11 +94,10 @@ func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest
}
// SetManufacturer sets field value
-func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) {
+func (o *WritableRackTypeRequest) SetManufacturer(v BriefDeviceTypeRequestManufacturer) {
o.Manufacturer = v
}
-
// GetModel returns the Model field value
func (o *WritableRackTypeRequest) GetModel() string {
if o == nil {
@@ -121,7 +122,6 @@ func (o *WritableRackTypeRequest) SetModel(v string) {
o.Model = v
}
-
// GetSlug returns the Slug field value
func (o *WritableRackTypeRequest) GetSlug() string {
if o == nil {
@@ -146,7 +146,6 @@ func (o *WritableRackTypeRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableRackTypeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -203,7 +202,6 @@ func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequest
o.FormFactor = v
}
-
// GetWidth returns the Width field value if set, zero value otherwise.
func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth {
if o == nil || IsNil(o.Width) {
@@ -364,6 +362,7 @@ func (o *WritableRackTypeRequest) HasOuterWidth() bool {
func (o *WritableRackTypeRequest) SetOuterWidth(v int32) {
o.OuterWidth.Set(&v)
}
+
// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil
func (o *WritableRackTypeRequest) SetOuterWidthNil() {
o.OuterWidth.Set(nil)
@@ -374,6 +373,49 @@ func (o *WritableRackTypeRequest) UnsetOuterWidth() {
o.OuterWidth.Unset()
}
+// GetOuterHeight returns the OuterHeight field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableRackTypeRequest) GetOuterHeight() int32 {
+ if o == nil || IsNil(o.OuterHeight.Get()) {
+ var ret int32
+ return ret
+ }
+ return *o.OuterHeight.Get()
+}
+
+// GetOuterHeightOk returns a tuple with the OuterHeight field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableRackTypeRequest) GetOuterHeightOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.OuterHeight.Get(), o.OuterHeight.IsSet()
+}
+
+// HasOuterHeight returns a boolean if a field has been set.
+func (o *WritableRackTypeRequest) HasOuterHeight() bool {
+ if o != nil && o.OuterHeight.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetOuterHeight gets a reference to the given NullableInt32 and assigns it to the OuterHeight field.
+func (o *WritableRackTypeRequest) SetOuterHeight(v int32) {
+ o.OuterHeight.Set(&v)
+}
+
+// SetOuterHeightNil sets the value for OuterHeight to be an explicit nil
+func (o *WritableRackTypeRequest) SetOuterHeightNil() {
+ o.OuterHeight.Set(nil)
+}
+
+// UnsetOuterHeight ensures that no value is present for OuterHeight, not even an explicit nil
+func (o *WritableRackTypeRequest) UnsetOuterHeight() {
+ o.OuterHeight.Unset()
+}
+
// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableRackTypeRequest) GetOuterDepth() int32 {
if o == nil || IsNil(o.OuterDepth.Get()) {
@@ -406,6 +448,7 @@ func (o *WritableRackTypeRequest) HasOuterDepth() bool {
func (o *WritableRackTypeRequest) SetOuterDepth(v int32) {
o.OuterDepth.Set(&v)
}
+
// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil
func (o *WritableRackTypeRequest) SetOuterDepthNil() {
o.OuterDepth.Set(nil)
@@ -448,6 +491,7 @@ func (o *WritableRackTypeRequest) HasOuterUnit() bool {
func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) {
o.OuterUnit.Set(&v)
}
+
// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil
func (o *WritableRackTypeRequest) SetOuterUnitNil() {
o.OuterUnit.Set(nil)
@@ -490,6 +534,7 @@ func (o *WritableRackTypeRequest) HasWeight() bool {
func (o *WritableRackTypeRequest) SetWeight(v float64) {
o.Weight.Set(&v)
}
+
// SetWeightNil sets the value for Weight to be an explicit nil
func (o *WritableRackTypeRequest) SetWeightNil() {
o.Weight.Set(nil)
@@ -532,6 +577,7 @@ func (o *WritableRackTypeRequest) HasMaxWeight() bool {
func (o *WritableRackTypeRequest) SetMaxWeight(v int32) {
o.MaxWeight.Set(&v)
}
+
// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil
func (o *WritableRackTypeRequest) SetMaxWeightNil() {
o.MaxWeight.Set(nil)
@@ -574,6 +620,7 @@ func (o *WritableRackTypeRequest) HasWeightUnit() bool {
func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) {
o.WeightUnit.Set(&v)
}
+
// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil
func (o *WritableRackTypeRequest) SetWeightUnitNil() {
o.WeightUnit.Set(nil)
@@ -616,6 +663,7 @@ func (o *WritableRackTypeRequest) HasMountingDepth() bool {
func (o *WritableRackTypeRequest) SetMountingDepth(v int32) {
o.MountingDepth.Set(&v)
}
+
// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil
func (o *WritableRackTypeRequest) SetMountingDepthNil() {
o.MountingDepth.Set(nil)
@@ -723,7 +771,7 @@ func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableRackTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -754,6 +802,9 @@ func (o WritableRackTypeRequest) ToMap() (map[string]interface{}, error) {
if o.OuterWidth.IsSet() {
toSerialize["outer_width"] = o.OuterWidth.Get()
}
+ if o.OuterHeight.IsSet() {
+ toSerialize["outer_height"] = o.OuterHeight.Get()
+ }
if o.OuterDepth.IsSet() {
toSerialize["outer_depth"] = o.OuterDepth.Get()
}
@@ -802,32 +853,31 @@ func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -854,6 +904,7 @@ func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "starting_unit")
delete(additionalProperties, "desc_units")
delete(additionalProperties, "outer_width")
+ delete(additionalProperties, "outer_height")
delete(additionalProperties, "outer_depth")
delete(additionalProperties, "outer_unit")
delete(additionalProperties, "weight")
@@ -904,5 +955,3 @@ func (v *NullableWritableRackTypeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go
index c9c46daf8..de3fcb64b 100644
--- a/model_writable_rear_port_request.go
+++ b/model_writable_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WritableRearPortRequest{}
// WritableRearPortRequest Adds support for custom fields and tags.
type WritableRearPortRequest struct {
- Device BriefDeviceRequest `json:"device"`
- Module NullableBriefModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Module NullableConsolePortRequestModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
// Number of front ports which may be mapped
- Positions *int32 `json:"positions,omitempty"`
+ Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest {
+func NewWritableRearPortRequest(device BriefInterfaceRequestDevice, name string, type_ FrontPortTypeValue) *WritableRearPortRequest {
this := WritableRearPortRequest{}
this.Device = device
this.Name = name
@@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest {
}
// GetDevice returns the Device field value
-func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableRearPortRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableRearPortRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -79,15 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableRearPortRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRearPortRequest) GetModule() BriefModuleRequest {
+func (o *WritableRearPortRequest) GetModule() ConsolePortRequestModule {
if o == nil || IsNil(o.Module.Get()) {
- var ret BriefModuleRequest
+ var ret ConsolePortRequestModule
return ret
}
return *o.Module.Get()
@@ -96,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() BriefModuleRequest {
// GetModuleOk returns a tuple with the Module field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) {
+func (o *WritableRearPortRequest) GetModuleOk() (*ConsolePortRequestModule, bool) {
if o == nil {
return nil, false
}
@@ -112,10 +111,11 @@ func (o *WritableRearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field.
-func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) {
+// SetModule gets a reference to the given NullableConsolePortRequestModule and assigns it to the Module field.
+func (o *WritableRearPortRequest) SetModule(v ConsolePortRequestModule) {
o.Module.Set(&v)
}
+
// SetModuleNil sets the value for Module to be an explicit nil
func (o *WritableRearPortRequest) SetModuleNil() {
o.Module.Set(nil)
@@ -150,7 +150,6 @@ func (o *WritableRearPortRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableRearPortRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -207,7 +206,6 @@ func (o *WritableRearPortRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *WritableRearPortRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -401,7 +399,7 @@ func (o *WritableRearPortRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableRearPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -457,32 +455,31 @@ func (o *WritableRearPortRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -551,5 +548,3 @@ func (v *NullableWritableRearPortRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go
index eeee3f31e..14bf158f9 100644
--- a/model_writable_rear_port_template_request.go
+++ b/model_writable_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{}
// WritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type WritableRearPortTemplateRequest struct {
- DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableConsolePortTemplateRequestDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableConsolePortTemplateRequestModuleType `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortTypeValue `json:"type"`
- Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortTypeValue `json:"type"`
+ Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"`
+ Positions *int32 `json:"positions,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest {
+func (o *WritableRearPortTemplateRequest) GetDeviceType() ConsolePortTemplateRequestDeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret BriefDeviceTypeRequest
+ var ret ConsolePortTemplateRequestDeviceType
return ret
}
return *o.DeviceType.Get()
@@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
+func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*ConsolePortTemplateRequestDeviceType, bool) {
if o == nil {
return nil, false
}
@@ -82,10 +82,11 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableConsolePortTemplateRequestDeviceType and assigns it to the DeviceType field.
+func (o *WritableRearPortTemplateRequest) SetDeviceType(v ConsolePortTemplateRequestDeviceType) {
o.DeviceType.Set(&v)
}
+
// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *WritableRearPortTemplateRequest) SetDeviceTypeNil() {
o.DeviceType.Set(nil)
@@ -97,9 +98,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() {
}
// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest {
+func (o *WritableRearPortTemplateRequest) GetModuleType() ConsolePortTemplateRequestModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret BriefModuleTypeRequest
+ var ret ConsolePortTemplateRequestModuleType
return ret
}
return *o.ModuleType.Get()
@@ -108,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest
// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) {
+func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ConsolePortTemplateRequestModuleType, bool) {
if o == nil {
return nil, false
}
@@ -124,10 +125,11 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field.
-func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableConsolePortTemplateRequestModuleType and assigns it to the ModuleType field.
+func (o *WritableRearPortTemplateRequest) SetModuleType(v ConsolePortTemplateRequestModuleType) {
o.ModuleType.Set(&v)
}
+
// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *WritableRearPortTemplateRequest) SetModuleTypeNil() {
o.ModuleType.Set(nil)
@@ -162,7 +164,6 @@ func (o *WritableRearPortTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *WritableRearPortTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
@@ -219,7 +220,6 @@ func (o *WritableRearPortTemplateRequest) SetType(v FrontPortTypeValue) {
o.Type = v
}
-
// GetColor returns the Color field value if set, zero value otherwise.
func (o *WritableRearPortTemplateRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
@@ -317,7 +317,7 @@ func (o *WritableRearPortTemplateRequest) SetDescription(v string) {
}
func (o WritableRearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -365,32 +365,31 @@ func (o *WritableRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -456,5 +455,3 @@ func (v *NullableWritableRearPortTemplateRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_region_request.go b/model_writable_region_request.go
index b356c8f4c..742552d2b 100644
--- a/model_writable_region_request.go
+++ b/model_writable_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WritableRegionRequest{}
// WritableRegionRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableRegionRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WritableRegionRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableRegionRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WritableRegionRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableRegionRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WritableRegionRequest) HasParent() bool {
func (o *WritableRegionRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableRegionRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WritableRegionRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableRegionRequest) 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 *WritableRegionRequest) 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 *WritableRegionRequest) 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 *WritableRegionRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableRegionRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WritableRegionRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWritableRegionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_service_request.go b/model_writable_service_request.go
index 6d1d8d7fb..e28cb1552 100644
--- a/model_writable_service_request.go
+++ b/model_writable_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &WritableServiceRequest{}
// WritableServiceRequest Adds support for custom fields and tags.
type WritableServiceRequest struct {
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"`
- Name string `json:"name"`
- Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
- Ports []int32 `json:"ports"`
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ ParentObjectType string `json:"parent_object_type"`
+ ParentObjectId int64 `json:"parent_object_id"`
+ Name string `json:"name"`
+ Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
+ Ports []int32 `json:"ports"`
+ Ipaddresses []int32 `json:"ipaddresses,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,8 +39,10 @@ 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, protocol PatchedWritableServiceRequestProtocol, ports []int32) *WritableServiceRequest {
+func NewWritableServiceRequest(parentObjectType string, parentObjectId int64, name string, protocol PatchedWritableServiceRequestProtocol, ports []int32) *WritableServiceRequest {
this := WritableServiceRequest{}
+ this.ParentObjectType = parentObjectType
+ this.ParentObjectId = parentObjectId
this.Name = name
this.Protocol = protocol
this.Ports = ports
@@ -55,88 +57,52 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest {
return &this
}
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest {
- if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+// GetParentObjectType returns the ParentObjectType field value
+func (o *WritableServiceRequest) GetParentObjectType() string {
+ if o == nil {
+ var ret string
return ret
}
- return *o.Device.Get()
+
+ return o.ParentObjectType
}
-// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
+// GetParentObjectTypeOk returns a tuple with the ParentObjectType 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 *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableServiceRequest) GetParentObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
+ return &o.ParentObjectType, true
}
-// HasDevice returns a boolean if a field has been set.
-func (o *WritableServiceRequest) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
- return true
- }
-
- return false
+// SetParentObjectType sets field value
+func (o *WritableServiceRequest) SetParentObjectType(v string) {
+ o.ParentObjectType = v
}
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) {
- o.Device.Set(&v)
-}
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *WritableServiceRequest) SetDeviceNil() {
- o.Device.Set(nil)
-}
-
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *WritableServiceRequest) UnsetDevice() {
- o.Device.Unset()
-}
-
-// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
- if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret BriefVirtualMachineRequest
+// GetParentObjectId returns the ParentObjectId field value
+func (o *WritableServiceRequest) GetParentObjectId() int64 {
+ if o == nil {
+ var ret int64
return ret
}
- return *o.VirtualMachine.Get()
+
+ return o.ParentObjectId
}
-// GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise
+// GetParentObjectIdOk returns a tuple with the ParentObjectId 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 *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *WritableServiceRequest) GetParentObjectIdOk() (*int64, bool) {
if o == nil {
return nil, false
}
- return o.VirtualMachine.Get(), o.VirtualMachine.IsSet()
+ return &o.ParentObjectId, true
}
-// HasVirtualMachine returns a boolean if a field has been set.
-func (o *WritableServiceRequest) HasVirtualMachine() bool {
- if o != nil && o.VirtualMachine.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
- o.VirtualMachine.Set(&v)
-}
-// SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil
-func (o *WritableServiceRequest) SetVirtualMachineNil() {
- o.VirtualMachine.Set(nil)
-}
-
-// UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil
-func (o *WritableServiceRequest) UnsetVirtualMachine() {
- o.VirtualMachine.Unset()
+// SetParentObjectId sets field value
+func (o *WritableServiceRequest) SetParentObjectId(v int64) {
+ o.ParentObjectId = v
}
// GetName returns the Name field value
@@ -163,7 +129,6 @@ func (o *WritableServiceRequest) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value
func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
@@ -188,7 +153,6 @@ func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProt
o.Protocol = v
}
-
// GetPorts returns the Ports field value
func (o *WritableServiceRequest) GetPorts() []int32 {
if o == nil {
@@ -213,7 +177,6 @@ func (o *WritableServiceRequest) SetPorts(v []int32) {
o.Ports = v
}
-
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
func (o *WritableServiceRequest) GetIpaddresses() []int32 {
if o == nil || IsNil(o.Ipaddresses) {
@@ -375,7 +338,7 @@ func (o *WritableServiceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableServiceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -384,12 +347,8 @@ func (o WritableServiceRequest) MarshalJSON() ([]byte, error) {
func (o WritableServiceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
- }
- if o.VirtualMachine.IsSet() {
- toSerialize["virtual_machine"] = o.VirtualMachine.Get()
- }
+ toSerialize["parent_object_type"] = o.ParentObjectType
+ toSerialize["parent_object_id"] = o.ParentObjectId
toSerialize["name"] = o.Name
toSerialize["protocol"] = o.Protocol
toSerialize["ports"] = o.Ports
@@ -421,6 +380,8 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
+ "parent_object_type",
+ "parent_object_id",
"name",
"protocol",
"ports",
@@ -428,32 +389,31 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -470,8 +430,8 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- delete(additionalProperties, "virtual_machine")
+ delete(additionalProperties, "parent_object_type")
+ delete(additionalProperties, "parent_object_id")
delete(additionalProperties, "name")
delete(additionalProperties, "protocol")
delete(additionalProperties, "ports")
@@ -521,5 +481,3 @@ func (v *NullableWritableServiceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go
index a451c15a7..8ac37104a 100644
--- a/model_writable_service_template_request.go
+++ b/model_writable_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableServiceTemplateRequest{}
// WritableServiceTemplateRequest Adds support for custom fields and tags.
type WritableServiceTemplateRequest struct {
- Name string `json:"name"`
- Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
- Ports []int32 `json:"ports"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
+ Ports []int32 `json:"ports"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -76,7 +76,6 @@ func (o *WritableServiceTemplateRequest) SetName(v string) {
o.Name = v
}
-
// GetProtocol returns the Protocol field value
func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
@@ -101,7 +100,6 @@ func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceReq
o.Protocol = v
}
-
// GetPorts returns the Ports field value
func (o *WritableServiceTemplateRequest) GetPorts() []int32 {
if o == nil {
@@ -126,7 +124,6 @@ func (o *WritableServiceTemplateRequest) SetPorts(v []int32) {
o.Ports = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableServiceTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -256,7 +253,7 @@ func (o *WritableServiceTemplateRequest) SetCustomFields(v map[string]interface{
}
func (o WritableServiceTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -300,32 +297,31 @@ func (o *WritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -390,5 +386,3 @@ func (v *NullableWritableServiceTemplateRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go
index 9c2dcc851..769dc7ead 100644
--- a/model_writable_site_group_request.go
+++ b/model_writable_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WritableSiteGroupRequest{}
// WritableSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableSiteGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WritableSiteGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableSiteGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WritableSiteGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableSiteGroupRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WritableSiteGroupRequest) HasParent() bool {
func (o *WritableSiteGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableSiteGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WritableSiteGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableSiteGroupRequest) 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 *WritableSiteGroupRequest) 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 *WritableSiteGroupRequest) 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 *WritableSiteGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableSiteGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WritableSiteGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWritableSiteGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_site_request.go b/model_writable_site_request.go
index 90022349b..dc652e092 100644
--- a/model_writable_site_request.go
+++ b/model_writable_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,16 +21,16 @@ var _ MappedNullable = &WritableSiteRequest{}
// WritableSiteRequest Adds support for custom fields and tags.
type WritableSiteRequest struct {
// Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Region NullableBriefRegionRequest `json:"region,omitempty"`
- Group NullableBriefSiteGroupRequest `json:"group,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Status *LocationStatusValue `json:"status,omitempty"`
+ Region NullablePatchedWritableSiteRequestRegion `json:"region,omitempty"`
+ Group NullablePatchedWritableSiteRequestGroup `json:"group,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
// Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- TimeZone NullableString `json:"time_zone,omitempty"`
- Description *string `json:"description,omitempty"`
+ Facility *string `json:"facility,omitempty"`
+ TimeZone NullableString `json:"time_zone,omitempty"`
+ Description *string `json:"description,omitempty"`
// Physical location of the building
PhysicalAddress *string `json:"physical_address,omitempty"`
// If different from the physical address
@@ -38,11 +38,11 @@ type WritableSiteRequest struct {
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
- Longitude NullableFloat64 `json:"longitude,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Longitude NullableFloat64 `json:"longitude,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Asns []int32 `json:"asns,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -91,7 +91,6 @@ func (o *WritableSiteRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableSiteRequest) GetSlug() string {
if o == nil {
@@ -116,7 +115,6 @@ func (o *WritableSiteRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *WritableSiteRequest) GetStatus() LocationStatusValue {
if o == nil || IsNil(o.Status) {
@@ -150,9 +148,9 @@ func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) {
}
// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableSiteRequest) GetRegion() BriefRegionRequest {
+func (o *WritableSiteRequest) GetRegion() PatchedWritableSiteRequestRegion {
if o == nil || IsNil(o.Region.Get()) {
- var ret BriefRegionRequest
+ var ret PatchedWritableSiteRequestRegion
return ret
}
return *o.Region.Get()
@@ -161,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() BriefRegionRequest {
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) {
+func (o *WritableSiteRequest) GetRegionOk() (*PatchedWritableSiteRequestRegion, bool) {
if o == nil {
return nil, false
}
@@ -177,10 +175,11 @@ func (o *WritableSiteRequest) HasRegion() bool {
return false
}
-// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field.
-func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) {
+// SetRegion gets a reference to the given NullablePatchedWritableSiteRequestRegion and assigns it to the Region field.
+func (o *WritableSiteRequest) SetRegion(v PatchedWritableSiteRequestRegion) {
o.Region.Set(&v)
}
+
// SetRegionNil sets the value for Region to be an explicit nil
func (o *WritableSiteRequest) SetRegionNil() {
o.Region.Set(nil)
@@ -192,9 +191,9 @@ func (o *WritableSiteRequest) UnsetRegion() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest {
+func (o *WritableSiteRequest) GetGroup() PatchedWritableSiteRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefSiteGroupRequest
+ var ret PatchedWritableSiteRequestGroup
return ret
}
return *o.Group.Get()
@@ -203,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) {
+func (o *WritableSiteRequest) GetGroupOk() (*PatchedWritableSiteRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -219,10 +218,11 @@ func (o *WritableSiteRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field.
-func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableSiteRequestGroup and assigns it to the Group field.
+func (o *WritableSiteRequest) SetGroup(v PatchedWritableSiteRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WritableSiteRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableSiteRequest) GetTenant() BriefTenantRequest {
+func (o *WritableSiteRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableSiteRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -261,10 +261,11 @@ func (o *WritableSiteRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableSiteRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableSiteRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -339,6 +340,7 @@ func (o *WritableSiteRequest) HasTimeZone() bool {
func (o *WritableSiteRequest) SetTimeZone(v string) {
o.TimeZone.Set(&v)
}
+
// SetTimeZoneNil sets the value for TimeZone to be an explicit nil
func (o *WritableSiteRequest) SetTimeZoneNil() {
o.TimeZone.Set(nil)
@@ -477,6 +479,7 @@ func (o *WritableSiteRequest) HasLatitude() bool {
func (o *WritableSiteRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
+
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *WritableSiteRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
@@ -519,6 +522,7 @@ func (o *WritableSiteRequest) HasLongitude() bool {
func (o *WritableSiteRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
+
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *WritableSiteRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
@@ -658,7 +662,7 @@ func (o *WritableSiteRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableSiteRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -733,32 +737,31 @@ func (o *WritableSiteRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -833,5 +836,3 @@ func (v *NullableWritableSiteRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go
index cbda64f23..e6cbe3767 100644
--- a/model_writable_tenant_group_request.go
+++ b/model_writable_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WritableTenantGroupRequest{}
// WritableTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableTenantGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WritableTenantGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableTenantGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WritableTenantGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableTenantGroupRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WritableTenantGroupRequest) HasParent() bool {
func (o *WritableTenantGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableTenantGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WritableTenantGroupRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableTenantGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WritableTenantGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WritableTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WritableTenantGroupRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWritableTenantGroupRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go
index 407e2567a..b1a9e6285 100644
--- a/model_writable_tunnel_request.go
+++ b/model_writable_tunnel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableTunnelRequest{}
// WritableTunnelRequest Adds support for custom fields and tags.
type WritableTunnelRequest struct {
- Name string `json:"name"`
- Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
- Group NullableBriefTunnelGroupRequest `json:"group,omitempty"`
- Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
- IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
+ Group NullablePatchedWritableTunnelRequestGroup `json:"group,omitempty"`
+ Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
+ IpsecProfile NullablePatchedWritableTunnelRequestIpsecProfile `json:"ipsec_profile,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ TunnelId NullableInt64 `json:"tunnel_id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -79,7 +79,6 @@ 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) {
@@ -113,9 +112,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest {
+func (o *WritableTunnelRequest) GetGroup() PatchedWritableTunnelRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefTunnelGroupRequest
+ var ret PatchedWritableTunnelRequestGroup
return ret
}
return *o.Group.Get()
@@ -124,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest {
// 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() (*BriefTunnelGroupRequest, bool) {
+func (o *WritableTunnelRequest) GetGroupOk() (*PatchedWritableTunnelRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -140,10 +139,11 @@ func (o *WritableTunnelRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field.
-func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableTunnelRequestGroup and assigns it to the Group field.
+func (o *WritableTunnelRequest) SetGroup(v PatchedWritableTunnelRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WritableTunnelRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -178,11 +178,10 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE
o.Encapsulation = v
}
-
// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest {
+func (o *WritableTunnelRequest) GetIpsecProfile() PatchedWritableTunnelRequestIpsecProfile {
if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret BriefIPSecProfileRequest
+ var ret PatchedWritableTunnelRequestIpsecProfile
return ret
}
return *o.IpsecProfile.Get()
@@ -191,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest {
// 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() (*BriefIPSecProfileRequest, bool) {
+func (o *WritableTunnelRequest) GetIpsecProfileOk() (*PatchedWritableTunnelRequestIpsecProfile, bool) {
if o == nil {
return nil, false
}
@@ -207,10 +206,11 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool {
return false
}
-// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field.
-func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) {
+// SetIpsecProfile gets a reference to the given NullablePatchedWritableTunnelRequestIpsecProfile and assigns it to the IpsecProfile field.
+func (o *WritableTunnelRequest) SetIpsecProfile(v PatchedWritableTunnelRequestIpsecProfile) {
o.IpsecProfile.Set(&v)
}
+
// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil
func (o *WritableTunnelRequest) SetIpsecProfileNil() {
o.IpsecProfile.Set(nil)
@@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest {
+func (o *WritableTunnelRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest {
// 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() (*BriefTenantRequest, bool) {
+func (o *WritableTunnelRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -249,10 +249,11 @@ func (o *WritableTunnelRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableTunnelRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableTunnelRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -295,6 +296,7 @@ func (o *WritableTunnelRequest) HasTunnelId() bool {
func (o *WritableTunnelRequest) SetTunnelId(v int64) {
o.TunnelId.Set(&v)
}
+
// SetTunnelIdNil sets the value for TunnelId to be an explicit nil
func (o *WritableTunnelRequest) SetTunnelIdNil() {
o.TunnelId.Set(nil)
@@ -434,7 +436,7 @@ func (o *WritableTunnelRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableTunnelRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -491,32 +493,31 @@ func (o *WritableTunnelRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -585,5 +586,3 @@ func (v *NullableWritableTunnelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go
index cbc274646..384bde0c0 100644
--- a/model_writable_tunnel_termination_request.go
+++ b/model_writable_tunnel_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{}
// WritableTunnelTerminationRequest Adds support for custom fields and tags.
type WritableTunnelTerminationRequest struct {
- Tunnel BriefTunnelRequest `json:"tunnel"`
- Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
- TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Tunnel PatchedWritableTunnelTerminationRequestTunnel `json:"tunnel"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ TerminationType string `json:"termination_type"`
+ TerminationId NullableInt64 `json:"termination_id,omitempty"`
+ OutsideIp NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"outside_ip,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,7 +36,7 @@ type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string) *WritableTunnelTerminationRequest {
+func NewWritableTunnelTerminationRequest(tunnel PatchedWritableTunnelTerminationRequestTunnel, terminationType string) *WritableTunnelTerminationRequest {
this := WritableTunnelTerminationRequest{}
this.Tunnel = tunnel
this.TerminationType = terminationType
@@ -52,9 +52,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio
}
// GetTunnel returns the Tunnel field value
-func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest {
+func (o *WritableTunnelTerminationRequest) GetTunnel() PatchedWritableTunnelTerminationRequestTunnel {
if o == nil {
- var ret BriefTunnelRequest
+ var ret PatchedWritableTunnelTerminationRequestTunnel
return ret
}
@@ -63,7 +63,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest {
// GetTunnelOk returns a tuple with the Tunnel field value
// and a boolean to check if the value has been set.
-func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) {
+func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*PatchedWritableTunnelTerminationRequestTunnel, bool) {
if o == nil {
return nil, false
}
@@ -71,11 +71,10 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, b
}
// SetTunnel sets field value
-func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) {
+func (o *WritableTunnelTerminationRequest) SetTunnel(v PatchedWritableTunnelTerminationRequestTunnel) {
o.Tunnel = v
}
-
// GetRole returns the Role field value if set, zero value otherwise.
func (o *WritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
if o == nil || IsNil(o.Role) {
@@ -132,7 +131,6 @@ 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()) {
@@ -165,6 +163,7 @@ func (o *WritableTunnelTerminationRequest) HasTerminationId() bool {
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)
@@ -176,9 +175,9 @@ func (o *WritableTunnelTerminationRequest) UnsetTerminationId() {
}
// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest {
+func (o *WritableTunnelTerminationRequest) GetOutsideIp() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.OutsideIp.Get()
@@ -187,7 +186,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest
// 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() (*BriefIPAddressRequest, bool) {
+func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -203,10 +202,11 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field.
-func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) {
+// SetOutsideIp gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the OutsideIp field.
+func (o *WritableTunnelTerminationRequest) SetOutsideIp(v DeviceWithConfigContextRequestPrimaryIp4) {
o.OutsideIp.Set(&v)
}
+
// SetOutsideIpNil sets the value for OutsideIp to be an explicit nil
func (o *WritableTunnelTerminationRequest) SetOutsideIpNil() {
o.OutsideIp.Set(nil)
@@ -282,7 +282,7 @@ func (o *WritableTunnelTerminationRequest) SetCustomFields(v map[string]interfac
}
func (o WritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -327,32 +327,31 @@ func (o *WritableTunnelTerminationRequest) UnmarshalJSON(data []byte) (err error
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -417,5 +416,3 @@ func (v *NullableWritableTunnelTerminationRequest) UnmarshalJSON(src []byte) err
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go
index 60b3f3a92..16b19ba1f 100644
--- a/model_writable_virtual_chassis_request.go
+++ b/model_writable_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritableVirtualChassisRequest{}
// WritableVirtualChassisRequest Adds support for custom fields and tags.
type WritableVirtualChassisRequest struct {
- Name string `json:"name"`
- Domain *string `json:"domain,omitempty"`
- Master NullableInt32 `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Domain *string `json:"domain,omitempty"`
+ Master NullableInt32 `json:"master,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +74,6 @@ func (o *WritableVirtualChassisRequest) SetName(v string) {
o.Name = v
}
-
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *WritableVirtualChassisRequest) GetDomain() string {
if o == nil || IsNil(o.Domain) {
@@ -139,6 +138,7 @@ func (o *WritableVirtualChassisRequest) HasMaster() bool {
func (o *WritableVirtualChassisRequest) SetMaster(v int32) {
o.Master.Set(&v)
}
+
// SetMasterNil sets the value for Master to be an explicit nil
func (o *WritableVirtualChassisRequest) SetMasterNil() {
o.Master.Set(nil)
@@ -278,7 +278,7 @@ func (o *WritableVirtualChassisRequest) SetCustomFields(v map[string]interface{}
}
func (o WritableVirtualChassisRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -324,32 +324,31 @@ func (o *WritableVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -414,5 +413,3 @@ func (v *NullableWritableVirtualChassisRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_virtual_circuit_request.go b/model_writable_virtual_circuit_request.go
index 7829ee977..f19f7ce4c 100644
--- a/model_writable_virtual_circuit_request.go
+++ b/model_writable_virtual_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,16 +21,16 @@ var _ MappedNullable = &WritableVirtualCircuitRequest{}
// WritableVirtualCircuitRequest Adds support for custom fields and tags.
type WritableVirtualCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"`
- ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"`
- Type BriefVirtualCircuitTypeRequest `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Cid string `json:"cid"`
+ ProviderNetwork BriefVirtualCircuitRequestProviderNetwork `json:"provider_network"`
+ ProviderAccount NullableCircuitRequestProviderAccount `json:"provider_account,omitempty"`
+ Type PatchedWritableVirtualCircuitRequestType `json:"type"`
+ Status *CircuitStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _WritableVirtualCircuitRequest WritableVirtualCircuitRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest) *WritableVirtualCircuitRequest {
+func NewWritableVirtualCircuitRequest(cid string, providerNetwork BriefVirtualCircuitRequestProviderNetwork, type_ PatchedWritableVirtualCircuitRequestType) *WritableVirtualCircuitRequest {
this := WritableVirtualCircuitRequest{}
this.Cid = cid
this.ProviderNetwork = providerNetwork
@@ -80,11 +80,10 @@ func (o *WritableVirtualCircuitRequest) SetCid(v string) {
o.Cid = v
}
-
// GetProviderNetwork returns the ProviderNetwork field value
-func (o *WritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest {
+func (o *WritableVirtualCircuitRequest) GetProviderNetwork() BriefVirtualCircuitRequestProviderNetwork {
if o == nil {
- var ret BriefProviderNetworkRequest
+ var ret BriefVirtualCircuitRequestProviderNetwork
return ret
}
@@ -93,7 +92,7 @@ func (o *WritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetwor
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) {
+func (o *WritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefVirtualCircuitRequestProviderNetwork, bool) {
if o == nil {
return nil, false
}
@@ -101,15 +100,14 @@ func (o *WritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNe
}
// SetProviderNetwork sets field value
-func (o *WritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) {
+func (o *WritableVirtualCircuitRequest) SetProviderNetwork(v BriefVirtualCircuitRequestProviderNetwork) {
o.ProviderNetwork = v
}
-
// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest {
+func (o *WritableVirtualCircuitRequest) GetProviderAccount() CircuitRequestProviderAccount {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret BriefProviderAccountRequest
+ var ret CircuitRequestProviderAccount
return ret
}
return *o.ProviderAccount.Get()
@@ -118,7 +116,7 @@ func (o *WritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccoun
// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) {
+func (o *WritableVirtualCircuitRequest) GetProviderAccountOk() (*CircuitRequestProviderAccount, bool) {
if o == nil {
return nil, false
}
@@ -134,10 +132,11 @@ func (o *WritableVirtualCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *WritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) {
+// SetProviderAccount gets a reference to the given NullableCircuitRequestProviderAccount and assigns it to the ProviderAccount field.
+func (o *WritableVirtualCircuitRequest) SetProviderAccount(v CircuitRequestProviderAccount) {
o.ProviderAccount.Set(&v)
}
+
// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
func (o *WritableVirtualCircuitRequest) SetProviderAccountNil() {
o.ProviderAccount.Set(nil)
@@ -149,9 +148,9 @@ func (o *WritableVirtualCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value
-func (o *WritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest {
+func (o *WritableVirtualCircuitRequest) GetType() PatchedWritableVirtualCircuitRequestType {
if o == nil {
- var ret BriefVirtualCircuitTypeRequest
+ var ret PatchedWritableVirtualCircuitRequestType
return ret
}
@@ -160,7 +159,7 @@ func (o *WritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) {
+func (o *WritableVirtualCircuitRequest) GetTypeOk() (*PatchedWritableVirtualCircuitRequestType, bool) {
if o == nil {
return nil, false
}
@@ -168,11 +167,10 @@ func (o *WritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeReq
}
// SetType sets field value
-func (o *WritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) {
+func (o *WritableVirtualCircuitRequest) SetType(v PatchedWritableVirtualCircuitRequestType) {
o.Type = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *WritableVirtualCircuitRequest) GetStatus() CircuitStatusValue {
if o == nil || IsNil(o.Status) {
@@ -206,9 +204,9 @@ func (o *WritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualCircuitRequest) GetTenant() BriefTenantRequest {
+func (o *WritableVirtualCircuitRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -217,7 +215,7 @@ func (o *WritableVirtualCircuitRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableVirtualCircuitRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +231,11 @@ func (o *WritableVirtualCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableVirtualCircuitRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableVirtualCircuitRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -376,7 +375,7 @@ func (o *WritableVirtualCircuitRequest) SetCustomFields(v map[string]interface{}
}
func (o WritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -429,32 +428,31 @@ func (o *WritableVirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -522,5 +520,3 @@ func (v *NullableWritableVirtualCircuitRequest) UnmarshalJSON(src []byte) error
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_virtual_circuit_termination_request.go b/model_writable_virtual_circuit_termination_request.go
index c0b6d67f3..4cee3c1f1 100644
--- a/model_writable_virtual_circuit_termination_request.go
+++ b/model_writable_virtual_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ var _ MappedNullable = &WritableVirtualCircuitTerminationRequest{}
// WritableVirtualCircuitTerminationRequest Adds support for custom fields and tags.
type WritableVirtualCircuitTerminationRequest struct {
- VirtualCircuit BriefVirtualCircuitRequest `json:"virtual_circuit"`
- Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
- Interface BriefInterfaceRequest `json:"interface"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VirtualCircuit PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit `json:"virtual_circuit"`
+ Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
+ Interface PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -35,7 +35,7 @@ type _WritableVirtualCircuitTerminationRequest WritableVirtualCircuitTermination
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest) *WritableVirtualCircuitTerminationRequest {
+func NewWritableVirtualCircuitTerminationRequest(virtualCircuit PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit, interface_ PatchedWritableVirtualCircuitTerminationRequestInterface) *WritableVirtualCircuitTerminationRequest {
this := WritableVirtualCircuitTerminationRequest{}
this.VirtualCircuit = virtualCircuit
this.Interface = interface_
@@ -51,9 +51,9 @@ func NewWritableVirtualCircuitTerminationRequestWithDefaults() *WritableVirtualC
}
// GetVirtualCircuit returns the VirtualCircuit field value
-func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest {
+func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuit() PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit {
if o == nil {
- var ret BriefVirtualCircuitRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit
return ret
}
@@ -62,7 +62,7 @@ func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirt
// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) {
+func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit, bool) {
if o == nil {
return nil, false
}
@@ -70,11 +70,10 @@ func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*Brief
}
// SetVirtualCircuit sets field value
-func (o *WritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) {
+func (o *WritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v PatchedWritableVirtualCircuitTerminationRequestVirtualCircuit) {
o.VirtualCircuit = v
}
-
// GetRole returns the Role field value if set, zero value otherwise.
func (o *WritableVirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole {
if o == nil || IsNil(o.Role) {
@@ -108,9 +107,9 @@ func (o *WritableVirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunn
}
// GetInterface returns the Interface field value
-func (o *WritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest {
+func (o *WritableVirtualCircuitTerminationRequest) GetInterface() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -119,7 +118,7 @@ func (o *WritableVirtualCircuitTerminationRequest) GetInterface() BriefInterface
// GetInterfaceOk returns a tuple with the Interface field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) {
+func (o *WritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -127,11 +126,10 @@ func (o *WritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInter
}
// SetInterface sets field value
-func (o *WritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) {
+func (o *WritableVirtualCircuitTerminationRequest) SetInterface(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.Interface = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableVirtualCircuitTerminationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -229,7 +227,7 @@ func (o *WritableVirtualCircuitTerminationRequest) SetCustomFields(v map[string]
}
func (o WritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -271,32 +269,31 @@ func (o *WritableVirtualCircuitTerminationRequest) UnmarshalJSON(data []byte) (e
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -360,5 +357,3 @@ func (v *NullableWritableVirtualCircuitTerminationRequest) UnmarshalJSON(src []b
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go
index d2d51c1a3..367e24f2c 100644
--- a/model_writable_virtual_device_context_request.go
+++ b/model_writable_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,17 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{}
// WritableVirtualDeviceContextRequest Adds support for custom fields and tags.
type WritableVirtualDeviceContextRequest struct {
- Name string `json:"name"`
- Device BriefDeviceRequest `json:"device"`
- Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Device BriefInterfaceRequestDevice `json:"device"`
+ Identifier NullableInt32 `json:"identifier,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest {
+func NewWritableVirtualDeviceContextRequest(name string, device BriefInterfaceRequestDevice, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest {
this := WritableVirtualDeviceContextRequest{}
this.Name = name
this.Device = device
@@ -80,11 +80,10 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) {
o.Name = v
}
-
// GetDevice returns the Device field value
-func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefInterfaceRequestDevice {
if o == nil {
- var ret BriefDeviceRequest
+ var ret BriefInterfaceRequestDevice
return ret
}
@@ -93,7 +92,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefInterfaceRequestDevice, bool) {
if o == nil {
return nil, false
}
@@ -101,11 +100,10 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest
}
// SetDevice sets field value
-func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) {
+func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefInterfaceRequestDevice) {
o.Device = v
}
-
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableVirtualDeviceContextRequest) GetIdentifier() int32 {
if o == nil || IsNil(o.Identifier.Get()) {
@@ -138,6 +136,7 @@ func (o *WritableVirtualDeviceContextRequest) HasIdentifier() bool {
func (o *WritableVirtualDeviceContextRequest) SetIdentifier(v int32) {
o.Identifier.Set(&v)
}
+
// SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *WritableVirtualDeviceContextRequest) SetIdentifierNil() {
o.Identifier.Set(nil)
@@ -149,9 +148,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetIdentifier() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest {
+func (o *WritableVirtualDeviceContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -160,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -176,10 +175,11 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableVirtualDeviceContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableVirtualDeviceContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequ
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -218,10 +218,11 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -233,9 +234,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -244,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequ
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -260,10 +261,11 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -298,7 +300,6 @@ func (o *WritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtual
o.Status = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableVirtualDeviceContextRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -428,7 +429,7 @@ func (o *WritableVirtualDeviceContextRequest) SetCustomFields(v map[string]inter
}
func (o WritableVirtualDeviceContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -484,32 +485,31 @@ func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err er
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -578,5 +578,3 @@ func (v *NullableWritableVirtualDeviceContextRequest) UnmarshalJSON(src []byte)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go
index 6adb1a694..d92c7c54a 100644
--- a/model_writable_virtual_machine_with_config_context_request.go
+++ b/model_writable_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,27 +20,27 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{}
// WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type WritableVirtualMachineWithConfigContextRequest struct {
- Name string `json:"name"`
- Status *InventoryItemStatusValue `json:"status,omitempty"`
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
- Device NullableBriefDeviceRequest `json:"device,omitempty"`
- Serial *string `json:"serial,omitempty"`
- Role NullableBriefDeviceRoleRequest `json:"role,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
- PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
+ Name string `json:"name"`
+ Status *PatchedWritableVirtualMachineWithConfigContextRequestStatus `json:"status,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Cluster NullableDeviceWithConfigContextRequestCluster `json:"cluster,omitempty"`
+ Device NullableDeviceBayRequestInstalledDevice `json:"device,omitempty"`
+ Serial *string `json:"serial,omitempty"`
+ Role NullablePatchedWritableVirtualMachineWithConfigContextRequestRole `json:"role,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Platform NullableDeviceTypeRequestDefaultPlatform `json:"platform,omitempty"`
+ PrimaryIp4 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip4,omitempty"`
+ PrimaryIp6 NullableDeviceWithConfigContextRequestPrimaryIp4 `json:"primary_ip6,omitempty"`
+ Vcpus NullableFloat64 `json:"vcpus,omitempty"`
+ Memory NullableInt32 `json:"memory,omitempty"`
+ Disk NullableInt32 `json:"disk,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableDeviceRoleRequestConfigTemplate `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
- LocalContextData interface{} `json:"local_context_data,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ LocalContextData interface{} `json:"local_context_data,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -88,11 +88,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) {
o.Name = v
}
-
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableVirtualMachineWithConfigContextRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret InventoryItemStatusValue
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestStatus
return ret
}
return *o.Status
@@ -100,7 +99,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryIt
// 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() (*InventoryItemStatusValue, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableVirtualMachineWithConfigContextRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -116,15 +115,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableVirtualMachineWithConfigContextRequestStatus and assigns it to the Status field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableVirtualMachineWithConfigContextRequestStatus) {
o.Status = &v
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -133,7 +132,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequ
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -149,10 +148,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -164,9 +164,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() {
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() DeviceWithConfigContextRequestCluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret BriefClusterRequest
+ var ret DeviceWithConfigContextRequestCluster
return ret
}
return *o.Cluster.Get()
@@ -175,7 +175,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClust
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*DeviceWithConfigContextRequestCluster, bool) {
if o == nil {
return nil, false
}
@@ -191,10 +191,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
+// SetCluster gets a reference to the given NullableDeviceWithConfigContextRequestCluster and assigns it to the Cluster field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v DeviceWithConfigContextRequestCluster) {
o.Cluster.Set(&v)
}
+
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
@@ -206,9 +207,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetCluster() {
}
// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceBayRequestInstalledDevice {
if o == nil || IsNil(o.Device.Get()) {
- var ret BriefDeviceRequest
+ var ret DeviceBayRequestInstalledDevice
return ret
}
return *o.Device.Get()
@@ -217,7 +218,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDevice
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceBayRequestInstalledDevice, bool) {
if o == nil {
return nil, false
}
@@ -233,10 +234,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) {
+// SetDevice gets a reference to the given NullableDeviceBayRequestInstalledDevice and assigns it to the Device field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceBayRequestInstalledDevice) {
o.Device.Set(&v)
}
+
// SetDeviceNil sets the value for Device to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetDeviceNil() {
o.Device.Set(nil)
@@ -280,9 +282,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() PatchedWritableVirtualMachineWithConfigContextRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefDeviceRoleRequest
+ var ret PatchedWritableVirtualMachineWithConfigContextRequestRole
return ret
}
return *o.Role.Get()
@@ -291,7 +293,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRo
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*PatchedWritableVirtualMachineWithConfigContextRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -307,10 +309,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
+// SetRole gets a reference to the given NullablePatchedWritableVirtualMachineWithConfigContextRequestRole and assigns it to the Role field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v PatchedWritableVirtualMachineWithConfigContextRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -322,9 +325,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetRole() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -333,7 +336,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenant
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -349,10 +352,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -364,9 +368,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetTenant() {
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() DeviceTypeRequestDefaultPlatform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret BriefPlatformRequest
+ var ret DeviceTypeRequestDefaultPlatform
return ret
}
return *o.Platform.Get()
@@ -375,7 +379,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlat
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*DeviceTypeRequestDefaultPlatform, bool) {
if o == nil {
return nil, false
}
@@ -391,10 +395,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
+// SetPlatform gets a reference to the given NullableDeviceTypeRequestDefaultPlatform and assigns it to the Platform field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v DeviceTypeRequestDefaultPlatform) {
o.Platform.Set(&v)
}
+
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
@@ -406,9 +411,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPlatform() {
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp4.Get()
@@ -417,7 +422,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIP
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -433,10 +438,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp4 field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp4.Set(&v)
}
+
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
@@ -448,9 +454,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() {
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() DeviceWithConfigContextRequestPrimaryIp4 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret BriefIPAddressRequest
+ var ret DeviceWithConfigContextRequestPrimaryIp4
return ret
}
return *o.PrimaryIp6.Get()
@@ -459,7 +465,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIP
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*DeviceWithConfigContextRequestPrimaryIp4, bool) {
if o == nil {
return nil, false
}
@@ -475,10 +481,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableDeviceWithConfigContextRequestPrimaryIp4 and assigns it to the PrimaryIp6 field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v DeviceWithConfigContextRequestPrimaryIp4) {
o.PrimaryIp6.Set(&v)
}
+
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
@@ -521,6 +528,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasVcpus() bool {
func (o *WritableVirtualMachineWithConfigContextRequest) SetVcpus(v float64) {
o.Vcpus.Set(&v)
}
+
// SetVcpusNil sets the value for Vcpus to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetVcpusNil() {
o.Vcpus.Set(nil)
@@ -563,6 +571,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasMemory() bool {
func (o *WritableVirtualMachineWithConfigContextRequest) SetMemory(v int32) {
o.Memory.Set(&v)
}
+
// SetMemoryNil sets the value for Memory to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetMemoryNil() {
o.Memory.Set(nil)
@@ -605,6 +614,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDisk() bool {
func (o *WritableVirtualMachineWithConfigContextRequest) SetDisk(v int32) {
o.Disk.Set(&v)
}
+
// SetDiskNil sets the value for Disk to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetDiskNil() {
o.Disk.Set(nil)
@@ -680,9 +690,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) {
}
// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() DeviceRoleRequestConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret BriefConfigTemplateRequest
+ var ret DeviceRoleRequestConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -691,7 +701,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Bri
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*DeviceRoleRequestConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -707,10 +717,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo
return false
}
-// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableDeviceRoleRequestConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v DeviceRoleRequestConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
+
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
@@ -819,7 +830,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetCustomFields(v map[s
}
func (o WritableVirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -904,32 +915,31 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -1007,5 +1017,3 @@ func (v *NullableWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(s
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go
index 52cd372e3..b69558ec4 100644
--- a/model_writable_vlan_request.go
+++ b/model_writable_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WritableVLANRequest{}
// WritableVLANRequest Adds support for custom fields and tags.
type WritableVLANRequest struct {
- Site NullableBriefSiteRequest `json:"site,omitempty"`
- Group NullableBriefVLANGroupRequest `json:"group,omitempty"`
+ Site NullablePatchedWritableVLANRequestSite `json:"site,omitempty"`
+ Group NullablePatchedWritableVLANRequestGroup `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
- Role NullableBriefRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- QinqRole NullableQInQRole `json:"qinq_role,omitempty"`
- QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
+ Role NullableIPRangeRequestRole `json:"role,omitempty"`
+ Description *string `json:"description,omitempty"`
+ QinqRole NullableQInQRole `json:"qinq_role,omitempty"`
+ QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +59,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVLANRequest) GetSite() BriefSiteRequest {
+func (o *WritableVLANRequest) GetSite() PatchedWritableVLANRequestSite {
if o == nil || IsNil(o.Site.Get()) {
- var ret BriefSiteRequest
+ var ret PatchedWritableVLANRequestSite
return ret
}
return *o.Site.Get()
@@ -70,7 +70,7 @@ func (o *WritableVLANRequest) GetSite() BriefSiteRequest {
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) {
+func (o *WritableVLANRequest) GetSiteOk() (*PatchedWritableVLANRequestSite, bool) {
if o == nil {
return nil, false
}
@@ -86,10 +86,11 @@ func (o *WritableVLANRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field.
-func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) {
+// SetSite gets a reference to the given NullablePatchedWritableVLANRequestSite and assigns it to the Site field.
+func (o *WritableVLANRequest) SetSite(v PatchedWritableVLANRequestSite) {
o.Site.Set(&v)
}
+
// SetSiteNil sets the value for Site to be an explicit nil
func (o *WritableVLANRequest) SetSiteNil() {
o.Site.Set(nil)
@@ -101,9 +102,9 @@ func (o *WritableVLANRequest) UnsetSite() {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest {
+func (o *WritableVLANRequest) GetGroup() PatchedWritableVLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefVLANGroupRequest
+ var ret PatchedWritableVLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -112,7 +113,7 @@ func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) {
+func (o *WritableVLANRequest) GetGroupOk() (*PatchedWritableVLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -128,10 +129,11 @@ func (o *WritableVLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field.
-func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableVLANRequestGroup and assigns it to the Group field.
+func (o *WritableVLANRequest) SetGroup(v PatchedWritableVLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WritableVLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -166,7 +168,6 @@ func (o *WritableVLANRequest) SetVid(v int32) {
o.Vid = v
}
-
// GetName returns the Name field value
func (o *WritableVLANRequest) GetName() string {
if o == nil {
@@ -191,11 +192,10 @@ func (o *WritableVLANRequest) SetName(v string) {
o.Name = v
}
-
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVLANRequest) GetTenant() BriefTenantRequest {
+func (o *WritableVLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -204,7 +204,7 @@ func (o *WritableVLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableVLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -220,10 +220,11 @@ func (o *WritableVLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableVLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableVLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -267,9 +268,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVLANRequest) GetRole() BriefRoleRequest {
+func (o *WritableVLANRequest) GetRole() IPRangeRequestRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret BriefRoleRequest
+ var ret IPRangeRequestRole
return ret
}
return *o.Role.Get()
@@ -278,7 +279,7 @@ func (o *WritableVLANRequest) GetRole() BriefRoleRequest {
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) {
+func (o *WritableVLANRequest) GetRoleOk() (*IPRangeRequestRole, bool) {
if o == nil {
return nil, false
}
@@ -294,10 +295,11 @@ func (o *WritableVLANRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field.
-func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) {
+// SetRole gets a reference to the given NullableIPRangeRequestRole and assigns it to the Role field.
+func (o *WritableVLANRequest) SetRole(v IPRangeRequestRole) {
o.Role.Set(&v)
}
+
// SetRoleNil sets the value for Role to be an explicit nil
func (o *WritableVLANRequest) SetRoleNil() {
o.Role.Set(nil)
@@ -372,6 +374,7 @@ func (o *WritableVLANRequest) HasQinqRole() bool {
func (o *WritableVLANRequest) SetQinqRole(v QInQRole) {
o.QinqRole.Set(&v)
}
+
// SetQinqRoleNil sets the value for QinqRole to be an explicit nil
func (o *WritableVLANRequest) SetQinqRoleNil() {
o.QinqRole.Set(nil)
@@ -414,6 +417,7 @@ func (o *WritableVLANRequest) HasQinqSvlan() bool {
func (o *WritableVLANRequest) SetQinqSvlan(v int32) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *WritableVLANRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -521,7 +525,7 @@ func (o *WritableVLANRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableVLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -584,32 +588,31 @@ func (o *WritableVLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -680,5 +683,3 @@ func (v *NullableWritableVLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go
index 258c4b4a9..ee6f107aa 100644
--- a/model_writable_vm_interface_request.go
+++ b/model_writable_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,23 +20,23 @@ var _ MappedNullable = &WritableVMInterfaceRequest{}
// WritableVMInterfaceRequest Adds support for custom fields and tags.
type WritableVMInterfaceRequest struct {
- VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Bridge NullableInt32 `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"`
- VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"`
- Vrf NullableBriefVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
+ VirtualMachine PatchedVirtualDiskRequestVirtualMachine `json:"virtual_machine"`
+ Name string `json:"name"`
+ Enabled *bool `json:"enabled,omitempty"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Bridge NullableInt32 `json:"bridge,omitempty"`
+ Mtu NullableInt32 `json:"mtu,omitempty"`
+ PrimaryMacAddress NullableInterfaceRequestPrimaryMacAddress `json:"primary_mac_address,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
+ UntaggedVlan NullableInterfaceRequestUntaggedVlan `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ QinqSvlan NullableInterfaceRequestUntaggedVlan `json:"qinq_svlan,omitempty"`
+ VlanTranslationPolicy NullableInterfaceRequestVlanTranslationPolicy `json:"vlan_translation_policy,omitempty"`
+ Vrf NullableIPAddressRequestVrf `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ AdditionalProperties map[string]interface{}
}
type _WritableVMInterfaceRequest WritableVMInterfaceRequest
@@ -45,7 +45,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest {
+func NewWritableVMInterfaceRequest(virtualMachine PatchedVirtualDiskRequestVirtualMachine, name string) *WritableVMInterfaceRequest {
this := WritableVMInterfaceRequest{}
this.VirtualMachine = virtualMachine
this.Name = name
@@ -61,9 +61,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest {
+func (o *WritableVMInterfaceRequest) GetVirtualMachine() PatchedVirtualDiskRequestVirtualMachine {
if o == nil {
- var ret BriefVirtualMachineRequest
+ var ret PatchedVirtualDiskRequestVirtualMachine
return ret
}
@@ -72,7 +72,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequ
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*PatchedVirtualDiskRequestVirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -80,11 +80,10 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachine
}
// SetVirtualMachine sets field value
-func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) {
+func (o *WritableVMInterfaceRequest) SetVirtualMachine(v PatchedVirtualDiskRequestVirtualMachine) {
o.VirtualMachine = v
}
-
// GetName returns the Name field value
func (o *WritableVMInterfaceRequest) GetName() string {
if o == nil {
@@ -109,7 +108,6 @@ func (o *WritableVMInterfaceRequest) SetName(v string) {
o.Name = v
}
-
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *WritableVMInterfaceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
@@ -174,6 +172,7 @@ func (o *WritableVMInterfaceRequest) HasParent() bool {
func (o *WritableVMInterfaceRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableVMInterfaceRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -216,6 +215,7 @@ func (o *WritableVMInterfaceRequest) HasBridge() bool {
func (o *WritableVMInterfaceRequest) SetBridge(v int32) {
o.Bridge.Set(&v)
}
+
// SetBridgeNil sets the value for Bridge to be an explicit nil
func (o *WritableVMInterfaceRequest) SetBridgeNil() {
o.Bridge.Set(nil)
@@ -258,6 +258,7 @@ func (o *WritableVMInterfaceRequest) HasMtu() bool {
func (o *WritableVMInterfaceRequest) SetMtu(v int32) {
o.Mtu.Set(&v)
}
+
// SetMtuNil sets the value for Mtu to be an explicit nil
func (o *WritableVMInterfaceRequest) SetMtuNil() {
o.Mtu.Set(nil)
@@ -269,9 +270,9 @@ func (o *WritableVMInterfaceRequest) UnsetMtu() {
}
// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest {
+func (o *WritableVMInterfaceRequest) GetPrimaryMacAddress() InterfaceRequestPrimaryMacAddress {
if o == nil || IsNil(o.PrimaryMacAddress.Get()) {
- var ret BriefMACAddressRequest
+ var ret InterfaceRequestPrimaryMacAddress
return ret
}
return *o.PrimaryMacAddress.Get()
@@ -280,7 +281,7 @@ func (o *WritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressReque
// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*InterfaceRequestPrimaryMacAddress, bool) {
if o == nil {
return nil, false
}
@@ -296,10 +297,11 @@ func (o *WritableVMInterfaceRequest) HasPrimaryMacAddress() bool {
return false
}
-// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field.
-func (o *WritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) {
+// SetPrimaryMacAddress gets a reference to the given NullableInterfaceRequestPrimaryMacAddress and assigns it to the PrimaryMacAddress field.
+func (o *WritableVMInterfaceRequest) SetPrimaryMacAddress(v InterfaceRequestPrimaryMacAddress) {
o.PrimaryMacAddress.Set(&v)
}
+
// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil
func (o *WritableVMInterfaceRequest) SetPrimaryMacAddressNil() {
o.PrimaryMacAddress.Set(nil)
@@ -374,6 +376,7 @@ func (o *WritableVMInterfaceRequest) HasMode() bool {
func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) {
o.Mode.Set(&v)
}
+
// SetModeNil sets the value for Mode to be an explicit nil
func (o *WritableVMInterfaceRequest) SetModeNil() {
o.Mode.Set(nil)
@@ -385,9 +388,9 @@ func (o *WritableVMInterfaceRequest) UnsetMode() {
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
+func (o *WritableVMInterfaceRequest) GetUntaggedVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.UntaggedVlan.Get()
@@ -396,7 +399,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest {
// GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -412,10 +415,11 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field.
-func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the UntaggedVlan field.
+func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v InterfaceRequestUntaggedVlan) {
o.UntaggedVlan.Set(&v)
}
+
// SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil
func (o *WritableVMInterfaceRequest) SetUntaggedVlanNil() {
o.UntaggedVlan.Set(nil)
@@ -459,9 +463,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
+func (o *WritableVMInterfaceRequest) GetQinqSvlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.QinqSvlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.QinqSvlan.Get()
@@ -470,7 +474,7 @@ func (o *WritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest {
// GetQinqSvlanOk returns a tuple with the QinqSvlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetQinqSvlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -486,10 +490,11 @@ func (o *WritableVMInterfaceRequest) HasQinqSvlan() bool {
return false
}
-// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field.
-func (o *WritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) {
+// SetQinqSvlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the QinqSvlan field.
+func (o *WritableVMInterfaceRequest) SetQinqSvlan(v InterfaceRequestUntaggedVlan) {
o.QinqSvlan.Set(&v)
}
+
// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil
func (o *WritableVMInterfaceRequest) SetQinqSvlanNil() {
o.QinqSvlan.Set(nil)
@@ -501,9 +506,9 @@ func (o *WritableVMInterfaceRequest) UnsetQinqSvlan() {
}
// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest {
+func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicy() InterfaceRequestVlanTranslationPolicy {
if o == nil || IsNil(o.VlanTranslationPolicy.Get()) {
- var ret BriefVLANTranslationPolicyRequest
+ var ret InterfaceRequestVlanTranslationPolicy
return ret
}
return *o.VlanTranslationPolicy.Get()
@@ -512,7 +517,7 @@ func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTransla
// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*InterfaceRequestVlanTranslationPolicy, bool) {
if o == nil {
return nil, false
}
@@ -528,10 +533,11 @@ func (o *WritableVMInterfaceRequest) HasVlanTranslationPolicy() bool {
return false
}
-// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field.
-func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) {
+// SetVlanTranslationPolicy gets a reference to the given NullableInterfaceRequestVlanTranslationPolicy and assigns it to the VlanTranslationPolicy field.
+func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicy(v InterfaceRequestVlanTranslationPolicy) {
o.VlanTranslationPolicy.Set(&v)
}
+
// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil
func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicyNil() {
o.VlanTranslationPolicy.Set(nil)
@@ -543,9 +549,9 @@ func (o *WritableVMInterfaceRequest) UnsetVlanTranslationPolicy() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest {
+func (o *WritableVMInterfaceRequest) GetVrf() IPAddressRequestVrf {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret BriefVRFRequest
+ var ret IPAddressRequestVrf
return ret
}
return *o.Vrf.Get()
@@ -554,7 +560,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest {
// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) {
+func (o *WritableVMInterfaceRequest) GetVrfOk() (*IPAddressRequestVrf, bool) {
if o == nil {
return nil, false
}
@@ -570,10 +576,11 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field.
-func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) {
+// SetVrf gets a reference to the given NullableIPAddressRequestVrf and assigns it to the Vrf field.
+func (o *WritableVMInterfaceRequest) SetVrf(v IPAddressRequestVrf) {
o.Vrf.Set(&v)
}
+
// SetVrfNil sets the value for Vrf to be an explicit nil
func (o *WritableVMInterfaceRequest) SetVrfNil() {
o.Vrf.Set(nil)
@@ -649,7 +656,7 @@ func (o *WritableVMInterfaceRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableVMInterfaceRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -721,32 +728,31 @@ func (o *WritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -820,5 +826,3 @@ func (v *NullableWritableVMInterfaceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go
index 1f13b8652..87e8bd0dc 100644
--- a/model_writable_wireless_lan_group_request.go
+++ b/model_writable_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,13 @@ var _ MappedNullable = &WritableWirelessLANGroupRequest{}
// WritableWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableWirelessLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,7 +75,6 @@ func (o *WritableWirelessLANGroupRequest) SetName(v string) {
o.Name = v
}
-
// GetSlug returns the Slug field value
func (o *WritableWirelessLANGroupRequest) GetSlug() string {
if o == nil {
@@ -99,7 +99,6 @@ func (o *WritableWirelessLANGroupRequest) SetSlug(v string) {
o.Slug = v
}
-
// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WritableWirelessLANGroupRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
@@ -132,6 +131,7 @@ func (o *WritableWirelessLANGroupRequest) HasParent() bool {
func (o *WritableWirelessLANGroupRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
+
// SetParentNil sets the value for Parent to be an explicit nil
func (o *WritableWirelessLANGroupRequest) SetParentNil() {
o.Parent.Set(nil)
@@ -238,8 +238,40 @@ func (o *WritableWirelessLANGroupRequest) SetCustomFields(v map[string]interface
o.CustomFields = v
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableWirelessLANGroupRequest) 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 *WritableWirelessLANGroupRequest) 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 *WritableWirelessLANGroupRequest) 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 *WritableWirelessLANGroupRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableWirelessLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -262,6 +294,9 @@ func (o WritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, error)
if !IsNil(o.CustomFields) {
toSerialize["custom_fields"] = o.CustomFields
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -281,32 +316,31 @@ func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error)
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -329,6 +363,7 @@ func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error)
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
@@ -370,5 +405,3 @@ func (v *NullableWritableWirelessLANGroupRequest) UnmarshalJSON(src []byte) erro
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go
index 08a6987d8..f76174bf1 100644
--- a/model_writable_wireless_lan_request.go
+++ b/model_writable_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WritableWirelessLANRequest{}
// WritableWirelessLANRequest Adds support for custom fields and tags.
type WritableWirelessLANRequest struct {
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"`
- Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
- Vlan NullableBriefVLANRequest `json:"vlan,omitempty"`
- ScopeType NullableString `json:"scope_type,omitempty"`
- ScopeId NullableInt32 `json:"scope_id,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
- AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Ssid string `json:"ssid"`
+ Description *string `json:"description,omitempty"`
+ Group NullablePatchedWritableWirelessLANRequestGroup `json:"group,omitempty"`
+ Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
+ Vlan NullableInterfaceRequestUntaggedVlan `json:"vlan,omitempty"`
+ ScopeType NullableString `json:"scope_type,omitempty"`
+ ScopeId NullableInt32 `json:"scope_id,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,7 +81,6 @@ func (o *WritableWirelessLANRequest) SetSsid(v string) {
o.Ssid = v
}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableWirelessLANRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -115,9 +114,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) {
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest {
+func (o *WritableWirelessLANRequest) GetGroup() PatchedWritableWirelessLANRequestGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret BriefWirelessLANGroupRequest
+ var ret PatchedWritableWirelessLANRequestGroup
return ret
}
return *o.Group.Get()
@@ -126,7 +125,7 @@ func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest {
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) {
+func (o *WritableWirelessLANRequest) GetGroupOk() (*PatchedWritableWirelessLANRequestGroup, bool) {
if o == nil {
return nil, false
}
@@ -142,10 +141,11 @@ func (o *WritableWirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field.
-func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) {
+// SetGroup gets a reference to the given NullablePatchedWritableWirelessLANRequestGroup and assigns it to the Group field.
+func (o *WritableWirelessLANRequest) SetGroup(v PatchedWritableWirelessLANRequestGroup) {
o.Group.Set(&v)
}
+
// SetGroupNil sets the value for Group to be an explicit nil
func (o *WritableWirelessLANRequest) SetGroupNil() {
o.Group.Set(nil)
@@ -189,9 +189,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque
}
// GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest {
+func (o *WritableWirelessLANRequest) GetVlan() InterfaceRequestUntaggedVlan {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret BriefVLANRequest
+ var ret InterfaceRequestUntaggedVlan
return ret
}
return *o.Vlan.Get()
@@ -200,7 +200,7 @@ func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest {
// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) {
+func (o *WritableWirelessLANRequest) GetVlanOk() (*InterfaceRequestUntaggedVlan, bool) {
if o == nil {
return nil, false
}
@@ -216,10 +216,11 @@ func (o *WritableWirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field.
-func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) {
+// SetVlan gets a reference to the given NullableInterfaceRequestUntaggedVlan and assigns it to the Vlan field.
+func (o *WritableWirelessLANRequest) SetVlan(v InterfaceRequestUntaggedVlan) {
o.Vlan.Set(&v)
}
+
// SetVlanNil sets the value for Vlan to be an explicit nil
func (o *WritableWirelessLANRequest) SetVlanNil() {
o.Vlan.Set(nil)
@@ -262,6 +263,7 @@ func (o *WritableWirelessLANRequest) HasScopeType() bool {
func (o *WritableWirelessLANRequest) SetScopeType(v string) {
o.ScopeType.Set(&v)
}
+
// SetScopeTypeNil sets the value for ScopeType to be an explicit nil
func (o *WritableWirelessLANRequest) SetScopeTypeNil() {
o.ScopeType.Set(nil)
@@ -304,6 +306,7 @@ func (o *WritableWirelessLANRequest) HasScopeId() bool {
func (o *WritableWirelessLANRequest) SetScopeId(v int32) {
o.ScopeId.Set(&v)
}
+
// SetScopeIdNil sets the value for ScopeId to be an explicit nil
func (o *WritableWirelessLANRequest) SetScopeIdNil() {
o.ScopeId.Set(nil)
@@ -315,9 +318,9 @@ func (o *WritableWirelessLANRequest) UnsetScopeId() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest {
+func (o *WritableWirelessLANRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -326,7 +329,7 @@ func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableWirelessLANRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -342,10 +345,11 @@ func (o *WritableWirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableWirelessLANRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableWirelessLANRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -388,6 +392,7 @@ func (o *WritableWirelessLANRequest) HasAuthType() bool {
func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *WritableWirelessLANRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -430,6 +435,7 @@ func (o *WritableWirelessLANRequest) HasAuthCipher() bool {
func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher.Set(&v)
}
+
// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil
func (o *WritableWirelessLANRequest) SetAuthCipherNil() {
o.AuthCipher.Set(nil)
@@ -569,7 +575,7 @@ func (o *WritableWirelessLANRequest) SetCustomFields(v map[string]interface{}) {
}
func (o WritableWirelessLANRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -636,32 +642,31 @@ func (o *WritableWirelessLANRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -733,5 +738,3 @@ func (v *NullableWritableWirelessLANRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go
index 7ec997b1a..70ce6cd33 100644
--- a/model_writable_wireless_link_request.go
+++ b/model_writable_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,20 @@ var _ MappedNullable = &WritableWirelessLinkRequest{}
// WritableWirelessLinkRequest Adds support for custom fields and tags.
type WritableWirelessLinkRequest struct {
- InterfaceA BriefInterfaceRequest `json:"interface_a"`
- InterfaceB BriefInterfaceRequest `json:"interface_b"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
- AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
- AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Distance NullableFloat64 `json:"distance,omitempty"`
- DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ InterfaceA PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_a"`
+ InterfaceB PatchedWritableVirtualCircuitTerminationRequestInterface `json:"interface_b"`
+ Ssid *string `json:"ssid,omitempty"`
+ Status *CableStatusValue `json:"status,omitempty"`
+ Tenant NullableASNRangeRequestTenant `json:"tenant,omitempty"`
+ AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"`
+ AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"`
+ AuthPsk *string `json:"auth_psk,omitempty"`
+ Distance NullableFloat64 `json:"distance,omitempty"`
+ DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +43,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest {
+func NewWritableWirelessLinkRequest(interfaceA PatchedWritableVirtualCircuitTerminationRequestInterface, interfaceB PatchedWritableVirtualCircuitTerminationRequestInterface) *WritableWirelessLinkRequest {
this := WritableWirelessLinkRequest{}
this.InterfaceA = interfaceA
this.InterfaceB = interfaceB
@@ -59,9 +59,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest {
}
// GetInterfaceA returns the InterfaceA field value
-func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest {
+func (o *WritableWirelessLinkRequest) GetInterfaceA() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -70,7 +70,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest {
// GetInterfaceAOk returns a tuple with the InterfaceA field value
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) {
+func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -78,15 +78,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest,
}
// SetInterfaceA sets field value
-func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) {
+func (o *WritableWirelessLinkRequest) SetInterfaceA(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceA = v
}
-
// GetInterfaceB returns the InterfaceB field value
-func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest {
+func (o *WritableWirelessLinkRequest) GetInterfaceB() PatchedWritableVirtualCircuitTerminationRequestInterface {
if o == nil {
- var ret BriefInterfaceRequest
+ var ret PatchedWritableVirtualCircuitTerminationRequestInterface
return ret
}
@@ -95,7 +94,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest {
// GetInterfaceBOk returns a tuple with the InterfaceB field value
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) {
+func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*PatchedWritableVirtualCircuitTerminationRequestInterface, bool) {
if o == nil {
return nil, false
}
@@ -103,11 +102,10 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest,
}
// SetInterfaceB sets field value
-func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) {
+func (o *WritableWirelessLinkRequest) SetInterfaceB(v PatchedWritableVirtualCircuitTerminationRequestInterface) {
o.InterfaceB = v
}
-
// GetSsid returns the Ssid field value if set, zero value otherwise.
func (o *WritableWirelessLinkRequest) GetSsid() string {
if o == nil || IsNil(o.Ssid) {
@@ -173,9 +171,9 @@ func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest {
+func (o *WritableWirelessLinkRequest) GetTenant() ASNRangeRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret BriefTenantRequest
+ var ret ASNRangeRequestTenant
return ret
}
return *o.Tenant.Get()
@@ -184,7 +182,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) {
+func (o *WritableWirelessLinkRequest) GetTenantOk() (*ASNRangeRequestTenant, bool) {
if o == nil {
return nil, false
}
@@ -200,10 +198,11 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
-func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) {
+// SetTenant gets a reference to the given NullableASNRangeRequestTenant and assigns it to the Tenant field.
+func (o *WritableWirelessLinkRequest) SetTenant(v ASNRangeRequestTenant) {
o.Tenant.Set(&v)
}
+
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *WritableWirelessLinkRequest) SetTenantNil() {
o.Tenant.Set(nil)
@@ -246,6 +245,7 @@ func (o *WritableWirelessLinkRequest) HasAuthType() bool {
func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) {
o.AuthType.Set(&v)
}
+
// SetAuthTypeNil sets the value for AuthType to be an explicit nil
func (o *WritableWirelessLinkRequest) SetAuthTypeNil() {
o.AuthType.Set(nil)
@@ -288,6 +288,7 @@ func (o *WritableWirelessLinkRequest) HasAuthCipher() bool {
func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) {
o.AuthCipher.Set(&v)
}
+
// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil
func (o *WritableWirelessLinkRequest) SetAuthCipherNil() {
o.AuthCipher.Set(nil)
@@ -362,6 +363,7 @@ func (o *WritableWirelessLinkRequest) HasDistance() bool {
func (o *WritableWirelessLinkRequest) SetDistance(v float64) {
o.Distance.Set(&v)
}
+
// SetDistanceNil sets the value for Distance to be an explicit nil
func (o *WritableWirelessLinkRequest) SetDistanceNil() {
o.Distance.Set(nil)
@@ -404,6 +406,7 @@ func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool {
func (o *WritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) {
o.DistanceUnit.Set(&v)
}
+
// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil
func (o *WritableWirelessLinkRequest) SetDistanceUnitNil() {
o.DistanceUnit.Set(nil)
@@ -543,7 +546,7 @@ func (o *WritableWirelessLinkRequest) SetCustomFields(v map[string]interface{})
}
func (o WritableWirelessLinkRequest) MarshalJSON() ([]byte, error) {
- toSerialize,err := o.ToMap()
+ toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
@@ -609,32 +612,31 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) {
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
- defaultValueFuncMap := map[string]func() interface{} {
- }
+ defaultValueFuncMap := map[string]func() interface{}{}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
- return err;
+ return err
}
- for _, requiredProperty := range(requiredProperties) {
+ for _, requiredProperty := range requiredProperties {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
- if value, exists := allProperties[requiredProperty]; !exists || value == ""{
+ if value, exists := allProperties[requiredProperty]; !exists || value == "" {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
- if err != nil{
+ if err != nil {
return err
}
}
@@ -706,5 +708,3 @@ func (v *NullableWritableWirelessLinkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
-
-
diff --git a/response.go b/response.go
index 0fe5d3c6d..22ba9e34e 100644
--- a/response.go
+++ b/response.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/tests/000_defaults_test.go b/tests/000_defaults_test.go
index 56a6e6669..4d8b3caee 100644
--- a/tests/000_defaults_test.go
+++ b/tests/000_defaults_test.go
@@ -85,12 +85,12 @@ func HGetDefaults(t *testing.T, client *netbox.APIClient) *Defaults {
fatalHttp(t, "Failed to create site", err, res)
}
- deviceRole := netbox.DeviceRoleRequest{
+ deviceRole := netbox.WritableDeviceRoleRequest{
Name: deviceRoleName + randString(4),
Slug: deviceRoleName + randString(4),
}
- newDeviceRole, res, err := client.DcimAPI.DcimDeviceRolesCreate(context.Background()).DeviceRoleRequest(deviceRole).Execute()
+ newDeviceRole, res, err := client.DcimAPI.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(deviceRole).Execute()
if err != nil {
fatalHttp(t, "Failed to create device role", err, res)
}
@@ -108,7 +108,7 @@ func HGetDefaults(t *testing.T, client *netbox.APIClient) *Defaults {
deviceType := netbox.WritableDeviceTypeRequest{
Model: deviceTypeName + randString(4),
Slug: deviceTypeName + randString(4),
- Manufacturer: *netbox.NewBriefManufacturerRequest(newManufacturer.Name, newManufacturer.Slug),
+ Manufacturer: netbox.BriefDeviceTypeRequestManufacturer{Int32: &newManufacturer.Id},
}
newDeviceType, res, err := client.DcimAPI.DcimDeviceTypesCreate(context.Background()).WritableDeviceTypeRequest(deviceType).Execute()
@@ -120,9 +120,9 @@ func HGetDefaults(t *testing.T, client *netbox.APIClient) *Defaults {
device := netbox.WritableDeviceWithConfigContextRequest{
Name: *netbox.NewNullableString(&name),
- Role: *netbox.NewBriefDeviceRoleRequest(newDeviceRole.Name, newDeviceRole.Slug),
- Site: *netbox.NewBriefSiteRequest(newSite.Name, newSite.Slug),
- DeviceType: *netbox.NewBriefDeviceTypeRequest(*netbox.NewBriefManufacturerRequest(newManufacturer.Name, newManufacturer.Slug), newDeviceType.Model, newDeviceType.Slug),
+ Role: netbox.DeviceWithConfigContextRequestRole{Int32: &newDeviceRole.Id},
+ Site: netbox.DeviceWithConfigContextRequestSite{Int32: &newSite.Id},
+ DeviceType: netbox.DeviceBayTemplateRequestDeviceType{Int32: &newDeviceType.Id},
}
newDevice, res, err := client.DcimAPI.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(device).Execute()
diff --git a/tests/198_test.go b/tests/198_test.go
deleted file mode 100644
index 7cb4c0bbb..000000000
--- a/tests/198_test.go
+++ /dev/null
@@ -1,92 +0,0 @@
-package main
-
-import (
- "context"
- "io"
- "testing"
-
- "github.com/netbox-community/go-netbox/v4"
-)
-
-type Seed198 struct {
- Interfaces []*netbox.Interface
- Cable *netbox.Cable
-}
-
-func (s *Seed198) Cleanup(t *testing.T, client *netbox.APIClient) {
- _, err := client.DcimAPI.DcimCablesDestroy(context.Background(), s.Cable.Id).Execute()
- if err != nil {
- t.Errorf("Failed to delete cable: %v", err)
- }
- for _, iface := range s.Interfaces {
- _, err := client.DcimAPI.DcimInterfacesDestroy(context.Background(), iface.Id).Execute()
- if err != nil {
- t.Errorf("Failed to delete interface: %v", err)
- }
- }
-}
-func HSeed198(t *testing.T, client *netbox.APIClient, defaults *Defaults) Seed198 {
- dr := netbox.BriefDeviceRequest{Name: defaults.Device.Name}
-
- interfaceRequests := []netbox.WritableInterfaceRequest{
- {
- Name: randString(10),
- Device: dr,
- Type: netbox.INTERFACETYPEVALUE__10GBASE_T,
- },
- {
- Name: randString(10),
- Device: dr,
- Type: netbox.INTERFACETYPEVALUE__10GBASE_T,
- },
- }
-
- interfaces := []*netbox.Interface{}
- for _, iface := range interfaceRequests {
- i, res, err := client.DcimAPI.DcimInterfacesCreate(context.Background()).WritableInterfaceRequest(iface).Execute()
- if err != nil {
- fatalHttp(t, "Failed to create interface", err, res)
- }
- body, _ := io.ReadAll(res.Body)
- t.Logf("Created interface: %s\n Theoretically: %d", string(body), i.Id)
- interfaces = append(interfaces, i)
- }
-
- cr := netbox.WritableCableRequest{
- ATerminations: []netbox.GenericObjectRequest{
- {
- ObjectType: "dcim.interface",
- ObjectId: interfaces[0].Id,
- },
- },
- BTerminations: []netbox.GenericObjectRequest{
- {
- ObjectType: "dcim.interface",
- ObjectId: interfaces[1].Id,
- },
- },
- }
-
- c, res, err := client.DcimAPI.DcimCablesCreate(context.Background()).WritableCableRequest(cr).Execute()
- if err != nil {
- fatalHttp(t, "Failed to created cable", err, res)
- }
-
- return Seed198{
- Interfaces: interfaces,
- Cable: c,
- }
-}
-
-func Test198(t *testing.T) {
- client := HGetClient(t)
- defaults := HGetDefaults(t, client)
- seed := HSeed198(t, client, defaults)
-
- _, _, err := client.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), seed.Interfaces[0].Id).Execute()
- if err == nil {
- t.Errorf("Expected error, got nil")
- }
-
- seed.Cleanup(t, client)
-}
diff --git a/tests/199_test.go b/tests/199_test.go
deleted file mode 100644
index c44bb2f57..000000000
--- a/tests/199_test.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-*
-# Error listing clusters with VirtualizationClustersList #199
-```
-> Hi, I have a problem with listing clusters:
->
-> ```
-> no value given for required property allocated_vcpus
-> ```
->
-> when running:
->
-> ```
-> res, status, err := c.VirtualizationAPI.VirtualizationClustersList(ctx).Limit(2).Execute()
-> ```
->
-> (status code 200)
->
-> go-netbox: 4.2.2-1 netbox server: 4.1.10
-```
-*
-*/
-package main
-
-import (
- "context"
- "testing"
-
- "github.com/netbox-community/go-netbox/v4"
-)
-
-type Seed199 struct {
- ClusterType *netbox.ClusterType
- Clusters []*netbox.Cluster
-}
-
-func (s *Seed199) Cleanup(t *testing.T, client *netbox.APIClient) {
- t.Helper()
- for _, cluster := range s.Clusters {
- t.Logf("Deleting cluster %s", cluster.Name)
- res, err := client.VirtualizationAPI.VirtualizationClustersDestroy(context.Background(), cluster.GetId()).Execute()
- if err != nil {
- fatalHttp(t, "failed to delete cluster", err, res)
- }
- }
-}
-
-const Seed199Count = 10
-
-func HSeed199(t *testing.T, client *netbox.APIClient) *Seed199 {
- t.Helper()
- seed := &Seed199{}
- seed.Clusters = []*netbox.Cluster{}
-
- ctr := netbox.ClusterTypeRequest{
- Name: randString(10),
- Slug: randString(10),
- }
-
- ct, res, err := client.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).ClusterTypeRequest(ctr).Execute()
- if err != nil {
- fatalHttp(t, "failed to create cluster type", err, res)
- }
- seed.ClusterType = ct
-
- for i := 0; i < Seed199Count; i++ {
- cluster := &netbox.WritableClusterRequest{
- Name: randString(10),
- Type: *netbox.NewBriefClusterTypeRequest(seed.ClusterType.Name, seed.ClusterType.Slug),
- }
- c, res, err := client.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).WritableClusterRequest(*cluster).Execute()
- if err != nil {
- fatalHttp(t, "failed to create cluster", err, res)
- }
- seed.Clusters = append(seed.Clusters, c)
- }
-
- return seed
-}
-
-func Test199(t *testing.T) {
- harness := GetHarness(t)
- defer harness.Cleanup(t)
- client := harness.client
-
- seed := HSeed199(t, harness.client)
- harness.AddCleanup(seed)
-
- clusters, res, err := client.VirtualizationAPI.VirtualizationClustersList(context.Background()).Limit(2).Execute()
- if err != nil {
- fatalHttp(t, "failed to list clusters", err, res)
- }
-
- if len(clusters.Results) != 2 {
- t.Fatalf("expected 2 clusters, got %d", len(clusters.Results))
- }
-
-}
diff --git a/tests/disc_183_test.go b/tests/disc_183_test.go
deleted file mode 100644
index 036081ea2..000000000
--- a/tests/disc_183_test.go
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
-
-Issue Body:
-
-```
-Sup guyz! I'm tryna to get a devicelist like that
-```
-res1, httpRes, err := c.DcimAPI.DcimDevicesList(ctx).Status([]string{"active"}).Limit(10).Execute()
-
-if err != nil {
- log.Printf("Error get devices list: %v", err)
-}
-
-log.Printf("%v", res1.Results)
-log.Printf("Response: %v\n", res1)
-log.Printf("HTTP Response: %+v", httpRes)
-```
-but all i got is
-```
-2024/09/06 17:13:41 Error get devices list: no value given for required property device_count
-2024/09/06 17:13:41 []
-2024/09/06 17:13:41 Response: &{0 { false} { false} [] map[]}
-2024/09/06 17:13:41 HTTP Response: &{Status:200 OK StatusCode:200 Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Allow:[GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS] Connection:[keep-alive] Content-L
-anguage:[en] Content-Length:[5577] Content-Type:[application/json] Cross-Origin-Opener-Policy:[same-origin] Date:[Fri, 06 Sep 2024 17:13:41 GMT] Referrer-Policy:[same-origin] Server:[nginx] Vary:[HX-Reque
-st, Accept-Language, Cookie, origin] X-Content-Type-Options:[nosniff] X-Frame-Options:[SAMEORIGIN] X-Request-Id:[7fed8b0e-c509-450d-9d5f-23ef54cf2c2b]] Body:{Reader:{"count":3,"next":null,"previous":null,
-"results":[{ ___HERE ALL MY DEVICES___ }]}} ContentLength:5577 TransferEncoding:[] Close:false Uncompressed:false Trailer:map[] Request:0xc0001712c0 TLS:}
-```
-
-Why the list is empty? Am i doing something wrong or it's just because of bugs: https://github.com/netbox-community/netbox/issues/16670 https://github.com/netbox-community/go-netbox/issues/165
-
-P.S. I use the latest netbox 4.1.0
-````
-
-
-*/
-
-package main
-
-import (
- "context"
- "testing"
-
- "github.com/netbox-community/go-netbox/v4"
-)
-
-type Seed183Disc struct {
- Devices []*netbox.DeviceWithConfigContext
-}
-
-func (s *Seed183Disc) Cleanup(t *testing.T, client *netbox.APIClient) {
- t.Helper()
-
- for _, device := range s.Devices {
- res, err := client.DcimAPI.DcimDevicesDestroy(context.Background(), device.Id).Execute()
- if err != nil {
- fatalHttp(t, "failed to delete device", err, res)
- }
- }
-}
-
-const disc183DeviceCount = 10
-
-var disc183DeviceDescription = "test-disc-183"
-
-func HSeed183Disc(t *testing.T, client *netbox.APIClient, defaults *Defaults) *Seed183Disc {
- t.Helper()
- seed := &Seed183Disc{}
-
- for i := 0; i < disc183DeviceCount; i++ {
- name := randString(10)
- device := netbox.WritableDeviceWithConfigContextRequest{
- Name: *netbox.NewNullableString(&name),
- Description: &disc183DeviceDescription,
- Site: *netbox.NewBriefSiteRequest(defaults.Site.Name, defaults.Site.Slug),
- DeviceType: *netbox.NewBriefDeviceTypeRequest(*netbox.NewBriefManufacturerRequest(defaults.Manufacturer.Name, defaults.Manufacturer.Slug), defaults.DeviceType.Model, defaults.DeviceType.Slug),
- Role: *netbox.NewBriefDeviceRoleRequest(defaults.DeviceRole.Name, defaults.DeviceRole.Slug),
- }
-
- d, res, err := client.DcimAPI.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(device).Execute()
- if err != nil {
- fatalHttp(t, "failed to create device", err, res)
- }
- seed.Devices = append(seed.Devices, d)
- }
-
- return seed
-}
-
-func Test183Disc(t *testing.T) {
- harness := GetHarness(t)
- defer harness.Cleanup(t)
- client := harness.client
-
- seed := HSeed183Disc(t, client, harness.defaults)
- harness.AddCleanup(seed)
-
- devicelist, res, err := client.DcimAPI.DcimDevicesList(context.Background()).Description([]string{disc183DeviceDescription}).Execute()
- if err != nil {
- fatalHttp(t, "failed to get device list", err, res)
- }
-
- if len(devicelist.Results) != disc183DeviceCount {
- t.Fatalf("expected %d devices, got %d", disc183DeviceCount, len(devicelist.Results))
- }
-}
diff --git a/utils.go b/utils.go
index a0799682a..425e2d653 100644
--- a/utils.go
+++ b/utils.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 4.2.2 (4.2)
+API version: 4.3.0-Docker-3.3.0 (4.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -358,4 +358,4 @@ func newStrictDecoder(data []byte) *json.Decoder {
// Prevent trying to import "fmt"
func reportError(format string, a ...interface{}) error {
return fmt.Errorf(format, a...)
-}
\ No newline at end of file
+}